IntroductionEndometriosis (EMs) and adenomyosis (AD) are common gynecological diseases that impact women's health, and they share symptoms such as dysmenorrhea, chronic pain, and infertility, which adversely affect women's quality of life. Current diagnostic approaches for EMs and AD involve invasive surgical procedures, and thus, methods of noninvasive differentiation between EMs and AD are needed. This retrospective cohort study introduces a novel, noninvasive classification methodology employing a stacked ensemble machine learning (ML) model that utilizes peripheral blood and coagulation markers to distinguish between EMs and AD.MethodsThe study included a total of 558 patients (329 with EMs and 229 with AD), in whom key hematological and coagulation markers were analyzed to identify distinctive profiles. Feature selection was conducted through ML (logistic regression, support vector machine, and K-nearest neighbors) to determine significant hematological markers.ResultsRed cell distribution width, mean corpuscular hemoglobin concentration, activated partial thromboplastin time, international normalized ratio, and antithrombin III were proved to be the key distinguishing indexes for disease differentiation. Among all the ML classification models developed, the stacked ensemble model demonstrated superior performance (area under the curve = 0.803, 95% credibility interval = 0.701–0.904). Our findings demonstrate the effectiveness of the stacked ensemble ML model for classifying EMs and AD.DiscussionIntegrating biomarkers into this multi-algorithm framework offers a novel approach to noninvasive diagnosis. These results advocate for the application of stacked ensemble ML utilizing cost-effective and readily available peripheral blood and coagulation indicators for the early, rapid, and noninvasive differential diagnosis of EMs and AD, offering a potentially transformative approach for clinical decision-making and personalized treatment strategies.