Related Experiment Video
Updated: Aug 23, 2025

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Diagnosing ectopic pregnancy using Bayes theorem: a retrospective cohort study
Carlos A Link1, Jackson Maissiat2, Ben W Mol3
1Postgraduate Program in Medicine: Surgical Sciences, School of Medicine, Universidade Federal do Rio Grande do Sul, Porto Alegre, Brazil.
Objective:
To verify the accuracy of an online algorithm using Bayes' theorem for diagnosing ectopic pregnancy (EP) using human chorionic gonadotropin (hCG), ultrasound, and clinical data in a real cohort.
Design:
A retrospective cohort study.
Setting:
Gynecologic emergency unit in a tertiary teaching hospital.
Patient(S):
First-trimester pregnant women who attended the gynecologic emergency unit for any reason. Those who had <13 weeks of pregnancy confirmed by a recent positive pregnancy test; a digital image or electronic report of transvaginal ultrasound (TVUS) obtained from hospital database; and a follow-up with a pathology report or a clinical resolution of a confirmed pregnancy were included in the study. Clinical signs and symptoms, the presence of risk factors for EP, the TVUS findings in each consultation, and the hCG levels were independent variables obtained from the electronic medical records. From these data, the pretest probability, based on the clinical presentation and risk factors, and the likelihood ratio for each variable were calculated for their use in the algorithm, yielding a posttest probability.
Intervention:
Not applicable.
Main Outcome Measure(S):
The accuracy of the online algorithm to identify cases of EP using clinical signs and symptoms, the presence of risk factors for EP, the TVUS findings in each consultation, and the hCG levels. The main outcome was EP, confirmed either by pathology report or by the presence of fetal heartbeat or gestational sac outside the uterine cavity.
Result(S):
Between January 1, 2009 and December 27, 2016, 2,495 women were analyzed, and the algorithm was applied to 2,185 of them. The incidence of EP was 8.5% (212/2,495); 310 women were excluded because they were submitted to surgery with decision thresholds <95%. The algorithm was applied to 2,185 women. Just one case remained inconclusive after 3 consultations, and it was considered as an error in prediction. The sensitivity, specificity, and accuracy values (95% confidence interval) of the algorithm were 98.9% (96.1%-99.8%), 98.9% (98.3%-99.2%), and 98.9% (98.3%-99.2%), respectively.
Conclusion(S):
The accuracy of the Bayesian algorithm to confirm or rule out EP is excellent. Online Nomogram https://docs.google.com/spreadsheets/d/1jStXlMBjbPyDf6_W0deKGKQLZHU5EFAe8rLhNVPuJuY/edit?usp=sharing.
More Related Videos
10:46A Method of Trigonometric Modelling of Seasonal Variation Demonstrated with Multiple Sclerosis Relapse Data
Published on: December 9, 2015
06:55Inverse Probability of Treatment Weighting Propensity Score using the Military Health System Data Repository and National Death Index
Published on: January 8, 2020
Related Concept Videos
Kaplan-Meier Approach
Actuarial Approach
Consider the example of a high-risk surgical procedure with significant early-stage mortality. A two-year clinical study is conducted,...
Regression Toward the Mean
Types of Biopharmaceutical Studies: Controlled and Non-Controlled Approaches
Non-controlled studies, commonly employed for initial exploration, lack a control group, rendering them susceptible to biases and external influences. In contrast,...
Comparing the Survival Analysis of Two or More Groups
Testing a Claim about Population Proportion
There are two methods of testing a claim about a population proportion: (1) Using the sample proportion from the data where a binomial distribution is approximated to the normal distribution and (2) Using the binomial probabilities calculated from the data.
The first method uses normal distribution as an approximation to the binomial distribution. The requirements are as follows: sample size is large...