Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

Using a self-attention architecture to automate valence categorization of French teenagers’ free descriptions of their family relationships. A proof of concept

Mohammed Sedki, Nathan Vidal, View ORCID ProfilePaul Roux, View ORCID ProfileCaroline Barry, View ORCID ProfileMario Speranza, View ORCID ProfileBruno Falissard, View ORCID ProfileEric Brunet-Gouet
doi: https://doi.org/10.1101/2023.01.16.23284557
Mohammed Sedki
1CESP, Fac. de Médecine - Université Paris-Sud, Fac. de Médecine - UVSQ, INSERM UMR1018, DevPsy, Université Paris-Saclay, Villejuif, France
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • For correspondence: mohammed.sedki@universite-paris-saclay.fr
Nathan Vidal
2Université Paris-Saclay, Université Versailles Saint-Quentin-En-Yvelines, DisAP-DevPsy-CESP, INSERM UMR1018, 94807 Villejuif, France
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Paul Roux
2Université Paris-Saclay, Université Versailles Saint-Quentin-En-Yvelines, DisAP-DevPsy-CESP, INSERM UMR1018, 94807 Villejuif, France
3Centre Hospitalier de Versailles, Service Hospitalo-Universitaire de Psychiatrie d’Adultes et d’Addictologie, Le Chesnay, France
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Paul Roux
Caroline Barry
1CESP, Fac. de Médecine - Université Paris-Sud, Fac. de Médecine - UVSQ, INSERM UMR1018, DevPsy, Université Paris-Saclay, Villejuif, France
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Caroline Barry
Mario Speranza
2Université Paris-Saclay, Université Versailles Saint-Quentin-En-Yvelines, DisAP-DevPsy-CESP, INSERM UMR1018, 94807 Villejuif, France
3Centre Hospitalier de Versailles, Service Hospitalo-Universitaire de Psychiatrie d’Adultes et d’Addictologie, Le Chesnay, France
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Mario Speranza
Bruno Falissard
1CESP, Fac. de Médecine - Université Paris-Sud, Fac. de Médecine - UVSQ, INSERM UMR1018, DevPsy, Université Paris-Saclay, Villejuif, France
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Bruno Falissard
Eric Brunet-Gouet
2Université Paris-Saclay, Université Versailles Saint-Quentin-En-Yvelines, DisAP-DevPsy-CESP, INSERM UMR1018, 94807 Villejuif, France
3Centre Hospitalier de Versailles, Service Hospitalo-Universitaire de Psychiatrie d’Adultes et d’Addictologie, Le Chesnay, France
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Eric Brunet-Gouet
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Data/Code
  • Preview PDF
Loading

Abstract

This paper proposes a proof of concept of using natural language processing techniques to categorize valence of family relationships described in free texts written by french teenagers. The proposed study traces the evolution of techniques for word embedding. After decomposing the different texts in our possession into short texts composed of sentences and manual labeling, we tested different word embedding scenarios to train a multi-label classification model where a text can take several labels : labels describing the family link between the teenager and the person mentioned in the text and labels describing the teenager’s relationship with them positive/negative/neutral valence). The natural baseline for word vector representation of our texts is to build a TF-IDF and train classical classifiers (Elasticnet logistic regression, gradient boosting, random forest, support vector classifier) after selecting a model by cross validation in each class of machine learning models. We then studied the strengths of word-vectors embeddings by an advanced language representation technique via the CamemBERT transformer model, and, again, used them with classical classifiers to compare their respective performances. The last scenario consisted in augmenting the CamemBERT with output dense layers (perceptron) representing a classifier adapted to the multi-label classification and fine-tuning the CamemBERT original layers. The optimal fine-tuning depth that achieves a bias-variance trade-off was obtained by a cross-validation procedure. The results of the comparison of the three scenarios on a test dataset show a clear improvement of the classification performances of the scenario with fine-tuning beyond the baseline and of a simple vectorization using CamemBERT without fine-tuning. Despite the moderate size of the dataset and the input texts, fine-tuning to an optimal depth remains the best solution to build a classifier.

Competing Interest Statement

The authors have declared no competing interest.

Funding Statement

This study did not receive any funding.

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

The details of the IRB/oversight body that provided approval or exemption for the research described are given below:

This study reports an additional analysis of data collected and published in Falissard, B. et al. (2015). PLOS ONE, 10(7), doi.org/10.1371/journal.pone.0132153 which obtained ethical agreement from the CCTIRS, CNIL (national IRB for this kind of study) with number MG/CP 10962.

I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines and uploaded the relevant EQUATOR Network research reporting checklist(s) and other pertinent material as supplementary files, if applicable.

Yes

Data Availability

Computer code is available online.

https://github.com/masedki/ados_familles

Copyright 
The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. All rights reserved. No reuse allowed without permission.
Back to top
PreviousNext
Posted January 18, 2023.
Download PDF
Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
Using a self-attention architecture to automate valence categorization of French teenagers’ free descriptions of their family relationships. A proof of concept
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
Using a self-attention architecture to automate valence categorization of French teenagers’ free descriptions of their family relationships. A proof of concept
Mohammed Sedki, Nathan Vidal, Paul Roux, Caroline Barry, Mario Speranza, Bruno Falissard, Eric Brunet-Gouet
medRxiv 2023.01.16.23284557; doi: https://doi.org/10.1101/2023.01.16.23284557
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
Using a self-attention architecture to automate valence categorization of French teenagers’ free descriptions of their family relationships. A proof of concept
Mohammed Sedki, Nathan Vidal, Paul Roux, Caroline Barry, Mario Speranza, Bruno Falissard, Eric Brunet-Gouet
medRxiv 2023.01.16.23284557; doi: https://doi.org/10.1101/2023.01.16.23284557

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Health Informatics
Subject Areas
All Articles
  • Addiction Medicine (403)
  • Allergy and Immunology (712)
  • Anesthesia (207)
  • Cardiovascular Medicine (2970)
  • Dentistry and Oral Medicine (336)
  • Dermatology (253)
  • Emergency Medicine (446)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1050)
  • Epidemiology (12816)
  • Forensic Medicine (12)
  • Gastroenterology (830)
  • Genetic and Genomic Medicine (4622)
  • Geriatric Medicine (423)
  • Health Economics (732)
  • Health Informatics (2943)
  • Health Policy (1073)
  • Health Systems and Quality Improvement (1092)
  • Hematology (393)
  • HIV/AIDS (933)
  • Infectious Diseases (except HIV/AIDS) (14145)
  • Intensive Care and Critical Care Medicine (854)
  • Medical Education (430)
  • Medical Ethics (116)
  • Nephrology (476)
  • Neurology (4412)
  • Nursing (238)
  • Nutrition (652)
  • Obstetrics and Gynecology (817)
  • Occupational and Environmental Health (739)
  • Oncology (2296)
  • Ophthalmology (652)
  • Orthopedics (260)
  • Otolaryngology (327)
  • Pain Medicine (282)
  • Palliative Medicine (84)
  • Pathology (503)
  • Pediatrics (1200)
  • Pharmacology and Therapeutics (510)
  • Primary Care Research (503)
  • Psychiatry and Clinical Psychology (3803)
  • Public and Global Health (7008)
  • Radiology and Imaging (1545)
  • Rehabilitation Medicine and Physical Therapy (920)
  • Respiratory Medicine (921)
  • Rheumatology (444)
  • Sexual and Reproductive Health (446)
  • Sports Medicine (386)
  • Surgery (491)
  • Toxicology (60)
  • Transplantation (212)
  • Urology (185)