Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022 Jul 22:4:836733.
doi: 10.3389/fdgth.2022.836733. eCollection 2022.

A method to advance adolescent sexual health research: Automated algorithm finds sexual history documentation

Affiliations

A method to advance adolescent sexual health research: Automated algorithm finds sexual history documentation

Caryn Robertson et al. Front Digit Health. .

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.

PubMed Disclaimer

Similar articles

Cited by

References

    1. 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).
    1. Murray PJ, Braverman PK, Adelman WP, Breuner CC, Levine DA, Marcell AV, et al. . Screening for nonviral sexually transmitted infections in adolescents and young adults. Pediatrics. (2014) 134:e302–11. 10.1542/peds.2014-1024 - DOI - PMC - PubMed
    1. Goyal MK, Witt R, Hayes KL, Zaoutis TE, Gerber JS. Clinician adherence to recommendations for screening of adolescents for sexual activity and sexually transmitted infection/human immunodeficiency virus. J Pediatr. (2014) 165:343–7. 10.1016/j.jpeds.2014.04.009 - DOI - PMC - PubMed
    1. Burstein GR, Lowry R, Klein JD, Santelli JS. Missed opportunities for sexually transmitted diseases, human immunodeficiency virus, and pregnancy prevention services during adolescent health supervision visits. Pediatrics. (2003) 111:996–1001. 10.1542/peds.111.5.996 - DOI - PubMed
    1. Riese A, Tarr EE, Baird J, Alverson B. Documentation of sexual history in hospitalized adolescents on the general pediatrics service. Hosp Pediatrics. (2018) 8:179–86. 10.1542/hpeds.2017-0044 - DOI - PubMed