A method to advance adolescent sexual health research: Automated algorithm finds sexual history documentation
- PMID: 35937421
- PMCID: PMC9354080
- DOI: 10.3389/fdgth.2022.836733
A method to advance adolescent sexual health research: Automated algorithm finds sexual history documentation
Abstract
Background: We aimed to develop and validate a rule-based Natural Language Processing (NLP) algorithm to detect sexual history documentation and its five key components [partners, practices, past history of sexually transmitted infections (STIs), protection from STIs, and prevention of pregnancy] among adolescent encounters in the pediatric emergency and inpatient settings.
Methods: We iteratively designed a NLP algorithm using pediatric emergency department (ED) provider notes from adolescent ED visits with specific abdominal or genitourinary (GU) chief complaints. The algorithm is composed of regular expressions identifying commonly used phrases in sexual history documentation. We validated this algorithm with inpatient admission notes for adolescents. We calculated the sensitivity, specificity, negative predictive value, positive predictive value, and F1 score of the tool in each environment using manual chart review as the gold standard.
Results: In the ED test cohort with abdominal or GU complaints, 97/179 (54%) provider notes had a sexual history documented, and the NLP algorithm correctly classified each note. In the inpatient validation cohort, 97/321 (30%) admission notes included a sexual history, and the NLP algorithm had 100% sensitivity and 98.2% specificity. The algorithm demonstrated >97% sensitivity and specificity in both settings for detection of elements of a high quality sexual history including protection used and contraception. Type of sexual practice and STI testing offered were also detected with >97% sensitivity and specificity in the ED test cohort with slightly lower performance in the inpatient validation cohort.
Conclusion: This NLP algorithm automatically detects the presence of sexual history documentation and its key components in ED and inpatient settings.
Keywords: adolescent; free text; natural language processing (computer science); regular expression (regex); sexual health; sexually transmitted infections.
Copyright © 2022 Robertson, Mukherjee, Gooding, Kandaswamy and Orenstein.
Similar articles
-
Missed Opportunities for Sexual History Documentation and Sexually Transmitted Infection Testing in the Pediatric Emergency Department.J Adolesc Health. 2022 Mar;70(3):429-434. doi: 10.1016/j.jadohealth.2021.10.002. Epub 2021 Nov 24. J Adolesc Health. 2022. PMID: 34836803
-
Sexual History Documentation and Screening in Adolescent Females with Suicidal Ideation in the Emergency Department.Int J Environ Res Public Health. 2022 Oct 11;19(20):13018. doi: 10.3390/ijerph192013018. Int J Environ Res Public Health. 2022. PMID: 36293599 Free PMC article.
-
Natural Language Processing of Clinical Notes to Identify Mental Illness and Substance Use Among People Living with HIV: Retrospective Cohort Study.JMIR Med Inform. 2021 Mar 10;9(3):e23456. doi: 10.2196/23456. JMIR Med Inform. 2021. PMID: 33688848 Free PMC article.
-
Detecting Language Associated With Home Healthcare Patient's Risk for Hospitalization and Emergency Department Visit.Nurs Res. 2022 Jul-Aug 01;71(4):285-294. doi: 10.1097/NNR.0000000000000586. Epub 2022 Feb 16. Nurs Res. 2022. PMID: 35171126 Free PMC article.
-
Racial Disparities in the Emergency Department Evaluation of Adolescent Girls.Pediatr Emerg Care. 2022 Jul 1;38(7):307-311. doi: 10.1097/PEC.0000000000002675. Epub 2022 Mar 29. Pediatr Emerg Care. 2022. PMID: 35353799
Cited by
-
An Algorithm to Assess Guideline Concordance of Antibiotic Choice in Community-Acquired Pneumonia.Hosp Pediatr. 2024 Feb 1;14(2):137-145. doi: 10.1542/hpeds.2023-007418. Hosp Pediatr. 2024. PMID: 38287897 Free PMC article.
-
Sensitivity and Specificity of Natural Language Processing Systems for Identification of Hospitalized People Who Use Drugs.Open Forum Infect Dis. 2025 Jun 23;12(7):ofaf370. doi: 10.1093/ofid/ofaf370. eCollection 2025 Jul. Open Forum Infect Dis. 2025. PMID: 40672759 Free PMC article.
References
-
- Adolescents Young Adults | Prevention | STDs . CDC (2021). Available online at: https://www.cdc.gov/std/life-stages-populations/adolescents-youngadults.htm (accessed January 6, 2001).
LinkOut - more resources
Full Text Sources
Miscellaneous