567
Views
1
CrossRef citations to date
0
Altmetric
Empirical Papers

Detecting defense mechanisms from Adult Attachment Interview (AAI) transcripts using machine learning

, , ORCID Icon, ORCID Icon, & ORCID Icon
Pages 757-767 | Received 27 May 2022, Accepted 30 Nov 2022, Published online: 16 Dec 2022
 

Abstract

Objective:

Defensive functioning (i.e., unconscious process used to manage real or perceived threats) may play a role in the development of various psychopathologies. It is typically assessed via observer rating measures, however, human coding of defensive functioning is resource-intensive and time-consuming. The purpose of this study was to develop a machine learning approach to automate coding of defense mechanisms from interview transcripts.

Method:

Participants included a clinical sample of women with binge-eating disorder (n = 92) and a community sample without binge-eating disorder (n = 66). We trained and evaluated five RoBERTa-based models to detect the presence of defenses in 16,785 interviewer-participant talk-turn pairs nested within 192 interviews. A model detected the presence of any defense, while four additional models detected the most common defenses in this sample (repression, intellectualization, reaction formation, undoing).

Results:

The models were capable of distinguishing defenses (ROC-AUC .82-.90) but were not proficient enough to warrant replacing human coders (PR-AUC .28-.60). Follow-up analysis was performed to assess other practical uses of these models.

Discussion:

Our machine learning models could be used to assist coders. Future research should conduct a deployment study to determine if human coding of defense mechanisms can be expedited using machine learning models.

Disclosure Statement

No potential conflict of interest was reported by the author(s).

Additional information

Funding

The original studies were funded by the Canadian Institutes for Health Research, the Group Psychotherapy Foundation, and the Ontario Mental Health Foundation.

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.