<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en"><front><journal-meta><journal-id journal-id-type="publisher-id">problendo</journal-id><journal-title-group><journal-title xml:lang="en">Problems of Endocrinology</journal-title><trans-title-group xml:lang="ru"><trans-title>Проблемы Эндокринологии</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">0375-9660</issn><issn pub-type="epub">2308-1430</issn><publisher><publisher-name>Endocrinology Research Centre</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.14341/probl13342</article-id><article-id custom-type="elpub" pub-id-type="custom">problendo-13342</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>Clinical endocrinology</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>Клиническая эндокринология</subject></subj-group></article-categories><title-group><article-title>Machine learning methods in differential diagnosis of ACTH-dependent hypercortisolism</article-title><trans-title-group xml:lang="ru"><trans-title>Применение методов машинного обучения в дифференциальной диагностике АКТГ-зависимого эндогенного гиперкортицизма</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0003-2320-1051</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Голоунина</surname><given-names>О. О.</given-names></name><name name-style="western" xml:lang="en"><surname>Golounina</surname><given-names>O. O.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Голоунина Ольга Олеговна.</p><p>Москва</p></bio><bio xml:lang="en"><p>Olga O. Golounina - MD.</p><p>Moscow</p></bio><email xlink:type="simple">olga.golounina@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-6674-6441</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Белая</surname><given-names>Ж. Е.</given-names></name><name name-style="western" xml:lang="en"><surname>Belaya</surname><given-names>Zh. E.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Белая Жанна Евгеньевна - д.м.н., профессор, заведующая отделением нейроэндокринологии и остеопатий.</p><p>Москва</p></bio><bio xml:lang="en"><p>Zhanna E. Belaya - MD, PhD, Professor.</p><p>Moscow</p></bio><email xlink:type="simple">jannabelaya@gmail.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0009-0008-7186-913X</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Воронов</surname><given-names>К. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Voronov</surname><given-names>K. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Воронов Кирилл Андреевич - руководитель отдела биомедицинский статистики.</p><p>Екатеринбург</p></bio><bio xml:lang="en"><p>Kirill A. Voronov.</p><p>Yekaterinburg</p></bio><email xlink:type="simple">kvoronov@statandocs.com</email><xref ref-type="aff" rid="aff-2"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-4564-2168</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Солодовников</surname><given-names>А. Г.</given-names></name><name name-style="western" xml:lang="en"><surname>Solodovnikov</surname><given-names>A. G.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Солодовников Александр Геннадьевич - доцент кафедры профилактической и семейной медицины УГМУ, директор по управлению качеством.</p><p>Екатеринбург</p></bio><bio xml:lang="en"><p>Alexander G. Solodovnikov - MD.</p><p>Yekaterinburg</p></bio><email xlink:type="simple">asolodovnikov@statandocs.com</email><xref ref-type="aff" rid="aff-3"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0001-7041-0732</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Рожинская</surname><given-names>Л. Я.</given-names></name><name name-style="western" xml:lang="en"><surname>Rozhinskaya</surname><given-names>L. Ya.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Рожинская Людмила Яковлевна - д.м.н., профессор, главный научный сотрудник отделения нейроэндокринологии и остеопатий.</p><p>Москва</p></bio><bio xml:lang="en"><p>Liudmila Ya. Rozhinskaya - MD, PhD, Professor.</p><p>Moscow</p></bio><email xlink:type="simple">lrozhinskaya@gmail.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-5634-7877</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Мельниченко</surname><given-names>Г. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Melnichenko</surname><given-names>G. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Мельниченко Галина Афанасьевна - д.м.н., профессор, академик Российской академии наук, заместитель директора по научной работе.</p><p>Москва</p></bio><bio xml:lang="en"><p>Galina A. Melnichenko - MD, PhD, Professor, Academician of the Russian Academy of Sciences.</p><p>Moscow</p></bio><email xlink:type="simple">teofrast2000@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-9717-9742</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Мокрышева</surname><given-names>Н. Г.</given-names></name><name name-style="western" xml:lang="en"><surname>Mokrysheva</surname><given-names>N. G.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Мокрышева Наталья Георгиевна - д.м.н., профессор, член-корреспондент Российской академии наук, директор ГНЦ РФ ФГБУ «НМИЦ эндокринологии» МЗ РФ.</p><p>Москва</p></bio><bio xml:lang="en"><p>Natalia G. Mokrysheva - MD, PhD, Professor.</p><p>Moscow</p></bio><email xlink:type="simple">mokrisheva.natalia@endocrincentr.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-8175-7886</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Дедов</surname><given-names>И. И.</given-names></name><name name-style="western" xml:lang="en"><surname>Dedov</surname><given-names>I. I.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Дедов Иван Иванович - д.м.н., профессор, академик Российской академии наук, президент ГНЦ РФ ФГБУ «НМИЦ эндокринологии» МЗ РФ, член Президиума РАН.</p><p>Москва</p></bio><bio xml:lang="en"><p>Ivan I. Dedov - MD, PhD, Professor, Academician of the Russian Academy of Sciences.</p><p>Moscow</p></bio><email xlink:type="simple">dedov@endocrincentr.ru</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Национальный медицинский исследовательский центр эндокринологии</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Endocrinology Research Center</institution><country>Russian Federation</country></aff></aff-alternatives><aff-alternatives id="aff-2"><aff xml:lang="ru"><institution>ООО «Статэндокс»</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Statandocs LLC</institution><country>Russian Federation</country></aff></aff-alternatives><aff-alternatives id="aff-3"><aff xml:lang="ru"><institution>ООО «Статэндокс»; Уральский государственный медицинский университет</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Statandocs LLC; Ural State Medical University</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2024</year></pub-date><pub-date pub-type="epub"><day>27</day><month>02</month><year>2024</year></pub-date><volume>70</volume><issue>1</issue><fpage>18</fpage><lpage>29</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Golounina O.O., Belaya Z.E., Voronov K.A., Solodovnikov A.G., Rozhinskaya L.Y., Melnichenko G.A., Mokrysheva N.G., Dedov I.I., 2024</copyright-statement><copyright-year>2024</copyright-year><copyright-holder xml:lang="ru">Голоунина О.О., Белая Ж.Е., Воронов К.А., Солодовников А.Г., Рожинская Л.Я., Мельниченко Г.А., Мокрышева Н.Г., Дедов И.И.</copyright-holder><copyright-holder xml:lang="en">Golounina O.O., Belaya Z.E., Voronov K.A., Solodovnikov A.G., Rozhinskaya L.Y., Melnichenko G.A., Mokrysheva N.G., Dedov I.I.</copyright-holder><license license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://www.probl-endojournals.ru/jour/article/view/13342">https://www.probl-endojournals.ru/jour/article/view/13342</self-uri><abstract><sec><title>AIM</title><p>AIM: To develop a noninvasive method of differential diagnosis of ACTH-dependent hypercortisolism, as well as to evaluate the effectiveness of an optimal algorithm for predicting the probability of ectopic ACTH syndrome (EAS) obtained using machine learning methods based on the analysis of clinical data.</p></sec><sec><title>MATERIALS AND METHODS</title><p>MATERIALS AND METHODS: As part of a single-center, one-stage, cohort study, a retrospective prediction of the probability of EAS among patients with ACTH-dependent hypercortisolism was carried out. Patients were randomly stratified into 2 samples: training (80%) and test (20%). Eleven machine learning algorithms were used to develop predictive models: Linear Discriminant Analysis, Logistic Regression, elastic network (GLMNET), Support Vector machine (SVM Radial), k-nearest neighbors (kNN), Naive Bayes, binary decision tree (CART), C5.0 decision tree algorithms, Bagged CART, Random Forest, Gradient Boosting (Stochastic Gradient Boosting, GBM).</p></sec><sec><title>RESULTS</title><p>RESULTS: The study included 223 patients (163 women, 60 men) with ACTH-dependent hypercortisolism, of which 175 patients with Cushing’s disease (CD), 48 — with EAS. As a result of preliminary data processing and selection of the most informative signs, the final variables for the classification and prediction of EAS were selected: ACTH level at 08:00 hours, potassium level (the minimum value of potassium in the active stage of the disease), 24-h urinary free cortisol, late-night serum cortisol, late-night salivary cortisol, the largest size of pituitary adenoma according to MRI of the brain. The best predictive ability in a training sample of all trained machine learning models for all three final metrics (ROC-AUC (0.867), sensitivity (90%), specificity (56.4%)) demonstrated a model of gradient boosting (Generalized Boosted Modeling, GBM). In the test sample, the AUC, sensitivity and specificity of the model in predicting EAS were 0.920; 77.8% and 97.1%, respectively.</p></sec><sec><title>CONCLUSION</title><p>CONCLUSION: The prognostic model based on machine learning methods makes it possible to differentiate patients with EAS and CD based on basic clinical results and can be used as a primary screening of patients with ACTH-dependent hypercortisolism.</p></sec></abstract><trans-abstract xml:lang="ru"><sec><title>ЦЕЛЬ</title><p>ЦЕЛЬ. Разработка неинвазивного способа дифференциальной диагностики АКТГ-зависимых форм эндогенного гиперкортицизма (ЭГ), а также оценка эффективности оптимального алгоритма прогнозирования вероятности АКТГ-эктопированного синдрома (АКТГ-ЭС), полученного с использованием методов машинного обучения на основе анализа клинических данных.</p></sec><sec><title>МАТЕРИАЛЫ И МЕТОДЫ</title><p>МАТЕРИАЛЫ И МЕТОДЫ. В рамках одноцентрового, одномоментного, когортного исследования проведено ретроспективное прогнозирование вероятности АКТГ-ЭС среди пациентов с АКТГ-зависимым ЭГ. Пациенты случайным стратифицированным отбором разделены на 2 выборки: обучающую/тренировочную (80%) и тестовую (20%). Для построения прогностических моделей использовали 11 алгоритмов машинного обучения: линейный дискриминантный анализ (Linear Discriminant Analysis), логистическую регрессию (Logistic Regression), эластичную сеть (GLMNET), метод опорных векторов (SVM Radial), метод k-ближайших соседей (k-nearest neighbors, kNN), наивный байесовский классификатор (Naive Bayes), бинарное дерево решений (CART), алгоритмы дерева решений C5.0, бутстрэп-агрегирование CART (Bagged CART), случайный лес (Random Forest), градиентный бустинг (Stochastic Gradient Boosting, GBM).</p></sec><sec><title>РЕЗУЛЬТАТЫ</title><p>РЕЗУЛЬТАТЫ. В исследование включены 223 пациента (163 женщины, 60 мужчин) с АКТГ-зависимым ЭГ, из них 175 пациентов с БИК, 48 — с АКТГ-ЭС. В результате предварительной обработки данных и отбора наиболее информативных признаков финальными переменными для классификации и прогнозирования АКТГ-ЭС отобраны: уровень АКТГ в 08:00, уровень калия (минимальное значение в активной стадии заболевания), показатели кортизола в суточной моче, кортизола в крови в 23:00, кортизола в слюне в 23:00, наибольший размер аденомы гипофиза по данным МРТ головного мозга. Наилучшую предсказательную способность из всех обученных моделей машинного обучения по всем трем итоговым метрикам — ROC-AUC (0,867), чувствительность (90%), специфичность (56,4%) — на тренировочной выборке продемонстрировала модель градиентного бустинга (Generalized Boosted Modeling, GBM). На тестовой выборке показатели AUC, чувствительности и специфичности модели в отношении прогнозирования АКТГ-ЭС составили 0,920; 77,8% и 97,1% соответственно.</p></sec><sec><title>ВЫВОД</title><p>ВЫВОД. Прогностическая модель, основанная на методах машинного обучения, позволяет дифференцировать пациентов с АКТГ-ЭС и БИК по базовым клиническим результатам и может быть использована в качестве первичного скрининга пациентов с АКТГ-зависимым ЭГ.</p></sec></trans-abstract><kwd-group xml:lang="ru"><kwd>гиперкортицизм</kwd><kwd>болезнь Иценко-Кушинга (БИК)</kwd><kwd>АКТГ-эктопированный синдром</kwd><kwd>нейроэндокринная опухоль (НЭО)</kwd><kwd>машинное обучение</kwd><kwd>прогностические модели</kwd></kwd-group><kwd-group xml:lang="en"><kwd>hypercortisolism</kwd><kwd>Cushing’s disease</kwd><kwd>ectopic ACTH syndrome</kwd><kwd>neuroendocrine tumor (NET)</kwd><kwd>machine learning</kwd><kwd>predictive models</kwd></kwd-group><funding-group><funding-statement xml:lang="ru">Исследование проведено при поддержке Российского научного фонда (грант РНФ 19-15-00398-П).</funding-statement></funding-group></article-meta></front><body><sec><title>BACKGROUND</title><p>Endogenous hypercortisolism is an extremely rare and one of the most severe endocrine diseases caused by long-term body exposure to excessive levels of cortisol. To avoid the development of life-threatening complications and patient disability, timely diagnosis of this condition is necessary to establish the disease ethiology and subsequent adequate treatment [<xref ref-type="bibr" rid="cit1">1</xref>]. ACTH-secreting pituitary adenomas (Cushing disease) account for up to 80% of nosologies leading to hypercortisolism. A much rarer type of ACTH-dependent hypercortisolism is ectopic ACTH syndrome (EAS) caused by overproduction of ACTH, or, less frequently, overproduction of corticotropin-releasing hormone (CRH) or neuroendocrine tumour (NET) of various localisations [<xref ref-type="bibr" rid="cit2">2</xref>].</p><p>Differentiating between Cushing disease and EAS is very challenging, especially in patients without adenoma visualisation or with pituitary microadenomas less than 6 mm in diameter and/or negative results of topical NET diagnostics obtained through radiological, functional, and receptor imaging [<xref ref-type="bibr" rid="cit3">3</xref>].</p><p>The gold standard for differential diagnosis of ACTH-dependent forms of endogenous hypercortisolism is bilateral selective blood sampling from the inferior stony sinuses with determination of the ACTH centre/periphery gradient before and after administration of the stimulating agent [<xref ref-type="bibr" rid="cit4">4</xref>]. Since its introduction, the method has undergone significant changes and improvements to enhance diagnostic accuracy [<xref ref-type="bibr" rid="cit5">5</xref>]. The results of a study conducted in Russia’s Endocrinology Research Centre indicate high sensitivity (98.31% (95% CI 95.16–99.43)) and specificity (94.64% (95% CI 85.39–98.16)) of selective blood sampling using desmopressin stimulation [<xref ref-type="bibr" rid="cit6">6</xref>].</p><p>Despite the high diagnostic accuracy of the method, selective blood sampling from the inferior stony sinuses can be performed in only a handful of Russia’s medical institutions due to the technical difficulties of this procedure, high cost, high man-hour expenses and potential complications of this invasive intervention. In turn, non-invasive diagnostic tests used for differential diagnosis, such as the high-dose dexamethasone test (HDT) and peripheral corticoliberin test, do not have sufficient sensitivity and specificity [<xref ref-type="bibr" rid="cit7">7</xref>]. To improve the differential diagnosis of ACTH-dependent forms of endogenous hypercortisolism, there is a clear need for more accessible, easy-to-use and non-invasive methods that can be used in conditions where selective blood sampling from the lower stony sinuses is impossible.</p><p>Development of digital technologies and a trend towards personalised medicine in recent years have encouraged active implementation of artificial intelligence methods to support physician’s decision-making in many areas of medicine [<xref ref-type="bibr" rid="cit8">8</xref>]. Machine learning methods are considered to be the main tools of artificial intelligence and have been increasingly used in diagnostic and predictive studies. To enable early and differential diagnosis of ACTH-dependent hypercortisolism, an algorithm combining the analysis of simple medical history data with the results of clinical and instrumental examination can be proposed as a non-invasive screening or primary diagnosis method.</p></sec><sec><title>PURPOSE</title><p>To develop a non-invasive method of differential diagnosis of ACTH-dependent endogenous hypercortisolism based on data accessible in regular clinical practice and to evaluate the effectiveness of an optimal algorithm for predicting the probability of ectopic ACTH syndrome developed through machine learning methods.</p></sec><sec><title>MATERIALS AND METHODS</title></sec><sec><title>Study design</title><p>A single-centre cross-sectional cohort study with a retrospective data analysis. The study included patients observed and/or treated in Russia’s Endocrinology Research Centre from 28 October 2015 to 29 December 2022.</p></sec><sec><title>Inclusion criteria</title><p>Inclusion criteria: patients of both sexes with ACTH-dependent endogenous hypercortisolism confirmed as per federal clinical guidelines [<xref ref-type="bibr" rid="cit7">7</xref>] by at least two laboratory tests: elevated 24-h urinary free cortisol and/or late-night salivary cortisol or late-night blood cortisol and/or negative small-dose (1 mg) dexamethasone test with (cut-off point: 50 nmol/L); morning ACTH concentration ≥10 pg/ml; no visualisation of pituitary adenoma on MRI or pituitary adenoma size less than 10 mm.</p><p>Exclusion criteria: patients with other verified forms of hypercortisolism; a history of bilateral adrenalectomy; taking medications for conservative treatment of hypercortisolism; therapy with prolonged-acting somatostatin analogues; women during pregnancy, childbirth, or breastfeeding; persons suffering from psychiatric diseases; patients with poorly maintained medical records; patients with missing values of the analysed indicators.</p></sec><sec><title>Population sampling</title><p>To build a model of differential diagnosis between Cushing disease and EAS, we used data from a sample of ACTH-dependent endogenous hypercortisolism patients selected from the general cohort of patients who underwent in-patient examination and neurosurgical treatment at the Russia’s Endocrinology Research Centre or underwent surgical treatment of NET with ectopic ACTH production in a relevant specialised medical institution in 2015–2022.</p><p>During sampling, the following inclusion criteria were applied: patients who received neurosurgical treatment for Cushing disease and achieved remission and/or histological and immunohistochemical confirmation of the diagnosis; patients without surgical treatment and without ACTH centre/periphery gradient as per selective blood sampling from the lower stony sinuses, with NET markers as per planar scintigraphy in the “whole body” scanning mode, combined with 99mTc-tectrotide SPECT/CT and/or combined positron emission and computed tomography with DOTA-conjugated radiopharmaceuticals (68Ga-DOTA-TATE, 68Ga-DOTA-TOC, 68Ga-DOTA-NOC).
Exclusion criteria: patients who received no neurosurgical or surgical treatment and had no histological verification of the diagnosis or NET markers as per radiological and radionuclide diagnostics.
</p></sec><sec><title>Medical intervention procedures</title><p>In all patients included in the study, ACTH-dependent endogenous hypercortisolism was laboratory and clinically confirmed at the screening stage in accordance with clinical guidelines [<xref ref-type="bibr" rid="cit7">7</xref>]. In order to differentiate between Cushing disease and EAS, 113 patients included in the study underwent HDT. A decrease in blood cortisol at 08:00 by more than 60% from baseline after 8 mg dexamethasone administration the day before was considered as a central form of endogenous hypercortisolism (Cushing disease), whereas a decrease in cortisol level by less than 60% was in favour of EAS.</p><p>All patients included in the study underwent selective blood sampling from the inferior cavernous sinuses with desmopressin stimulation (Ferring Pharmaceuticals Desmopressin Acetate 4 µg per 1 ml for intravenous, intramuscular and subcutaneous injections) at a 8 µg dose. Selective blood sampling results were evaluated based on the estimated maximum ratio of sinus ACTH to peripheral ACTH before desmopressin stimulation and after IV administration of the drug. Any ACTH centre/periphery gradient ≥2 before desmopressin stimulation and/or ≥3 thereafter was considered to be in favour of Cushing disease, whereas lower values of the ACTH centre/periphery gradient were considered as EAS [<xref ref-type="bibr" rid="cit9">9</xref>].</p></sec><sec><title>Measurement equipment</title><p>Brain MRI was performed with Magnetom Harmony magnetic resonance tomograph (Siemens, Germany) with field strength from 1.5 to 3 Tesla and gadolinium contrast agent.</p><p>Hormonal ACTH measurements (reference interval: morning 7.2–63.3 pg/ml, evening 2–25.5 pg/ml), late night serum cortisol measurements (64–327 nmol/L), late night salivary cortisol (0.5–9.6 nmol/L) were conducted by electrochemiluminescent method on a Cobas 6000 Module e601 analyser (Roche); 24-h urinary free cortisol (100–379 nmol/day) was measured by immunochemiluminescent method on Vitros ECi device; potassium level (3.5–5.1 mmol/L) was measured with Architect c8000 analyser (Abbott, USA).</p></sec><sec><title>Modelling methods</title><p>The concept of developing and validating predictive models is presented in Figure 1.</p><fig id="fig-1"><caption><p>Figure 1. The concept of developing predictive models.</p></caption><graphic xlink:href="problendo-70-1-g001.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/problendo/2024/1/uao5fn1Aq6dwd4ajfnSyyGbAb15zruSodh1TWzgH.jpeg</uri></graphic></fig><p>Data pre-processing included removing features with near-zero variance and screening out collinear predictors. In addition, predictors were normalised and centred for those algorithms that required it. To avoid data leakage, all pre-processing and transformation was performed after splitting the dataset.</p><p>The sample split into the training set and the test set was performed using an 80/20 random stratified selection. In order to confirm the consistency of the data distribution in the training and test sets, analyses were performed by estimating the modified multivariate Mahalanobis distance (Eklavya Jain, 2022) and testing the null hypothesis of consistency of distributions (Monte Carlo test). The analysis showed a small distance of 12.7 between the training and the test sets. Accepting the null hypothesis with a p-value significance at 0.755, we concluded that this separation can be used to measure the model effectiveness.</p><p>We subjected the available data to mathematical processing to select an optimal set of indicators that would be more likely to be characteristic for Cushing disease or EAS. Moreover, we searched for parameters recommended by the software on the basis of mathematical calculations in order to exercise optimal control over the model training process. Baseline clinical features presented in Table 1 were considered as potential parameters.</p><p>Eleven machine learning algorithms were compared to develop an EAS predictive model for patients with ACTH-dependent endogenous hypercortisolism: Linear Discriminant Analysis, Logistic Regression, Elastic Network (GLMNET), Support Vector Machine (SVM Radial), k-Nearest Neighbours (kNN), Naïve Bayes, Binary Decision Tree (CART), C5.0 Decision Tree Algorithms, CART Bootstrap Aggregation (Bagged CART), Random Forest, and Stochastic Gradient Boosting (GBM). The result of the prediction is the probability of EAS in the patient, expressed as a percentage value.</p><table-wrap id="table-1"><caption><p>Table 1. General data and main laboratory-determined parameters of the study subjects – patients with ACTH-dependent endogenous hypercortisolism</p></caption><table><tbody><tr><td>Parameter</td><td>Cushing disease patients</td><td>Ectopic ACTH syndrome patients</td><td>p</td></tr><tr><td>Total count</td><td>175</td><td>48</td><td>-</td></tr><tr><td>Males (%) : Females (%)</td><td>41 (23.4%) : 134 (76.6%)</td><td>19 (39.6%) : 29 (60.4%)</td><td>0.029*</td></tr><tr><td>Age at disease onset</td><td>35 [ 27; 46]
(11; 70)</td><td>36.5 [ 28; 54]
(16; 76)</td><td>0.129</td></tr><tr><td>Age at inclusion in the study</td><td>39 [ 30; 50]
(18; 72)</td><td>43 [ 31; 57]
(18; 76)</td><td>0.213</td></tr><tr><td>Body mass index (kg/m²)</td><td>31.1 [ 26.6; 34.7]
(18.3; 57.5)</td><td>29 [ 25.3; 33.6]
(21; 48.7)</td><td>0.148</td></tr><tr><td>Laboratory-determined parameters at the time of diagnosis</td></tr><tr><td>Late-night blood cortisol (nmol/L)</td><td>660.1 [ 518.2; 904]
(93.2; 1,960)</td><td>1,128.5 [ 691.1; 1,412.3]
(460.2; 5,854.8)</td><td>&lt;0.001*</td></tr><tr><td>Late-night salivary cortisol (nmol/L)</td><td>22.5 [ 14.7; 39.3]
(4.2; 436)</td><td>60.1 [ 35.4; 117]
(9.8; 711.5)</td><td>&lt;0.001*</td></tr><tr><td>24-h urinary cortisol (nmol/day)</td><td>1,198.4 [ 721; 2,362]
(284; 15,196)</td><td>3,460.4 [ 1,597.6; 6,994.2]
(640.2; 12,332.25)</td><td>&lt;0.001*</td></tr><tr><td>Morning ACTH (pg/ml)</td><td>63.5 [ 45.5; 82.1]
(13.4; 428.3)</td><td>127.2 [ 94.2; 188.3]
(39.9; 536.7)</td><td>&lt;0.001*</td></tr><tr><td>Late-night ACTH (pg/ml)</td><td>51.5 [ 33.2; 75.3]
(8.1; 208.7)</td><td>108.6 [ 77.9; 173.3]
(38; 755.6)</td><td>&lt;0.001*</td></tr><tr><td>Minimum potassium level during the disease period (mmol/L)</td><td>4.2 [ 3.9; 4.4]
(1.6; 5.1)</td><td>3.5 [ 2.8; 4.1]
(1.6; 4.9)</td><td>&lt;0.001*</td></tr><tr><td>Small-dose (1 mg) dexamethasone test</td></tr><tr><td>Positive test</td><td>1</td><td>0</td><td>0.758</td></tr><tr><td>Negative test</td><td>173</td><td>48</td></tr><tr><td>High-dose (8 mg) dexamethasone test</td></tr><tr><td>Positive test</td><td>65</td><td>4</td><td>&lt;0.001*</td></tr><tr><td>Negative test</td><td>14</td><td>26</td></tr><tr><td>Adenoma visualisation at brain MRI</td></tr><tr><td>Adenoma visible</td><td>105</td><td>20</td><td>0.031*</td></tr><tr><td>Adenoma invisible</td><td>68</td><td>27</td></tr><tr><td>Maximum size of adenoma on MRI image (mm)</td><td>3.5 [ 0.0; 5.5]
(0; 10)</td><td>0.0 [ 0.0; 4.5]
(0; 8)</td><td>0.551</td></tr><tr><td>No MRI performed</td><td>2</td><td>1</td><td>-</td></tr></tbody></table></table-wrap></sec><sec><title>Model training</title><p>To identify the best algorithm for predicting EAS among patients with ACTH-dependent endogenous hypercortisolism, nested cross-validation with five external and three internal cycles (3×5 Nested Cross-Validation) was used as per the scheme proposed by Isci S. et al. [<xref ref-type="bibr" rid="cit10">10</xref>]. This approach provides a more accurate estimation of Generalisation error while optimising the hyperparameters and has shown its applicability in the subject domain.</p><p>The Boruta algorithm (Kursa and Rudnicki, 2010) was used to select predictors for model training. This algorithm is a wrapper-based marker selection method; it is tuned to find the minimum optimal marker set instead of all possible relevant markers, resulting in an unbiased and consistent selection of important predictors.</p><p>Training and performance evaluation of the machine learning algorithms were performed on a training dataset. After selecting the best algorithm, its final evaluation was performed on the test set.</p></sec><sec><title>Model performance assessment</title><p>Performance results of the models were compared with one another by analysing standard metrics derived from the confusion matrix: 1) Accuracy; 2) ROC-AUC (Area Under Receiver Operating Characteristic Curve; 3) Sensitivity; 4) Specificity; 5) Precision; 6) Recall; 7) F₁-measure.</p><p>The main metrics for selecting the final model were: ROC-AUC, Sensitivity, and Specificity.</p></sec><sec><title>Statistical analysis</title><p>Quantitative indicators were presented as median (Me) and interquartile range [ Q25-Q75], maximum and minimum values; qualitative variables were presented as absolute and relative frequencies. Ratios of qualitative features are presented as fractions (%). Comparison of two independent groups for quantitative data was performed using Student’s t-test for indicators conforming to the law of normal distribution and using Mann-Whitney test for indicators not conforming thereto. Qualitative variables were compared with each other using the chi-square test (χ2) and double-tailed Fisher’s exact test.</p><p>Data processing was performed using the IBM SPSS Statistics 23 software package (SPSS. Inc., Chicago, IL, USA).</p><p>R 4.2.3. software package was used to build and develop predictive models and to assess their performance.</p></sec><sec><title>Ethical expertise</title><p>The study protocol was approved by Endocrinology Research Centre’s local ethical committee on 20 February 2013, session record no. 2. Extract no. 12 from the record was made on 29 June 2022. All patients included in the study have given their informed consent to participate therein.</p></sec><sec><title>RESULTS</title></sec><sec><title>Subjects of the study</title><p>The study included 223 patients (163 females, 60 males) with ACTH-dependent endogenous hypercortisolism, of which 175 had Cushing disease and 48 had EAS. General characteristics of patients, main laboratory-determined parameters and results of comparative analysis are presented in Table 1. The patients were divided into two groups according to the final clinical diagnosis.</p><p>At the first stage of the study, we analysed possible differences in clinical-demographic and laboratory-instrumental parameters between the comparison groups (Table 1). Patients in both groups were predominantly female; the groups did not differ in age at disease onset, body mass index or the results of low-dose dexamethasone test (LDT). EAS patients had higher levels of all major hormonal parameters (p&lt;0.001) and lower potassium values (p&lt;0.001) in the active stage of the disease. Negative results of highdose dexamethasone test and no visible pituitary adenoma in brain MRI occurred statistically significantly more frequently in the EAS group of patients vs. Cushing disease patients (Table 1). Out of the 223 patients, three patients did not undergo MRI imaging of the pituitary gland because of a pacemaker, claustrophobia, and morbid obesity (BMI at 57.5 kg/m²).</p></sec><sec><title>Machine learning model for predicting the probability of EAS in patients with ACTH-dependent endogenous hypercortisolism</title><p>Initially, the total group of patients (n=223) was randomly divided into two sets at 80-20 ratio: the training set (n=179) and the test set (n=44) (Figure 1).</p><p>As a result of data pre-processing and selection of the most informative markers using random forest method and Boruta algorithm, the following were selected as final variables for EAS classification and prediction: morning ACTH level, potassium level, 24-h urinary cortisol, late-night blood cortisol, late-night salivary cortisol, and the largest size of pituitary adenoma on brain MRI. At the end of the selection procedure, each marker was assigned a value expressing its informativeness (Figure 2). The higher the value, the more valuable the marker is for prediction and classification. As a result, we obtained a list of markers that can be ranked according to their relevance to the classification and prediction (Figure 2).</p><fig id="fig-2"><caption><p>Figure 2. Predictor ranging by Boruta algorithm.</p></caption><graphic xlink:href="problendo-70-1-g002.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/problendo/2024/1/m4mudi1d0PtciFl99xUZuYtK0AWQCDkXnlwQivkv.jpeg</uri></graphic></fig><p>Variables that turned out to be less relevant were removed from the analysis: age at disease onset, sex, BMI, LDT result, and pituitary adenoma visibility on brain MRI (Figure 2).</p><p>Table 2 presents performance parameters of predictive models. These parameters were obtained through machine learning algorithms applied to the training sample (n=179). Comparative analysis of predictive accuracy indicators enabled us to identify certain differences between the models. Thus, the quality of prediction by AUC, sensitivity and specificity metrics for the model based on the binary decision tree (CART) was 0.694; 87.3 and 48.7%, respectively, which indicates that the accuracy of the model when tested on the analysed cohort of patients is insufficient and needs to be improved. In turn, the GLMNET model provided good sensitivity (96.4%) and AUC (0.840) on the training sample yet with the lowest specificity (28.2%). The highest ROC-AUC values were obtained for the Naïve Bayes and the Gradient Boosted Modelling models (AUC of 0.856 and 0.867, respectively), which means they have a very good predictive accuracy.</p><table-wrap id="table-2"><caption><p>Table 2. Comparing the models performance in predicting EAS in patients with ACTH-dependent hypercortisolism</p></caption><table><tbody><tr><td>Algorithm</td><td>Area under ROC curve (AUC)</td><td>Sensitivity (%)</td><td>Specificity (%)</td></tr><tr><td>Linear Discriminant Analysis</td><td>0.820</td><td>95.7</td><td>35.9</td></tr><tr><td>Logistic Regression</td><td>0.807</td><td>93.6</td><td>41.0</td></tr><tr><td>GLMNET</td><td>0.840</td><td>96.4</td><td>28.2</td></tr><tr><td>SVM Radial</td><td>0.824</td><td>91.4</td><td>51.3</td></tr><tr><td>kNN</td><td>0.783</td><td>95.7</td><td>28.2</td></tr><tr><td>Naïve Bayes</td><td>0.856</td><td>95.0</td><td>48.7</td></tr><tr><td>CART</td><td>0.694</td><td>87.3</td><td>48.7</td></tr><tr><td>C5.0</td><td>0.818</td><td>84.9</td><td>61.5</td></tr><tr><td>Bagged CART</td><td>0.808</td><td>85.7</td><td>56.4</td></tr><tr><td>Random Forest</td><td>0.841</td><td>89.3</td><td>51.3</td></tr><tr><td>Generalised Boosted Modelling</td><td>0.867</td><td>90.0</td><td>56.4</td></tr></tbody></table></table-wrap><p>The Generalised Boosted Modelling (GBM) demonstrated the best predictive ability of all trained machine learning models in all three final metrics (ROC-AUC, sensitivity, and specificity).</p><p>The final model was trained with the following hyperparameters (Table 3).</p><table-wrap id="table-3"><caption><p>Table 3. Generalised Boosted Modelling (GBM) final hyperparameters</p></caption><table><tbody><tr><td>n.trees</td><td>interaction.depth</td><td>shrinkage</td><td>n.minobsinnode</td></tr><tr><td>50</td><td>3</td><td>0.1</td><td>10</td></tr></tbody></table></table-wrap><p>The results of testing the accuracy of classification performed by the Generalised Boosted Modelling (GBM) on the test sample (n=44) are presented in Figures 3 and 4 and Table 4. The accuracy of our model of differential diagnosis is as follows: probability of correct EAS prediction (predictive value of a positive result) is 87.5%; probability of correct EAS exclusion (predictive value of a negative result) is 94,4%. This method of differential diagnosis using machine learning algorithm enables EAS predicting with a sensitivity of 77.8% and a specificity of 97.1%.</p><fig id="fig-3"><caption><p>Figure 3. Generalised Boosted Modelling (GBM) accuracy of prediction on the test sample.</p></caption><graphic xlink:href="problendo-70-1-g003.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/problendo/2024/1/E2bDnbXXknTx75qiayxt8t7Qd468PcYD4Nsnxwt7.jpeg</uri></graphic></fig><fig id="fig-4"><caption><p>Figure 4. ROC curve for the Generalised Boosted Modelling (GBM) obtained on the test sample.</p></caption><graphic xlink:href="problendo-70-1-g004.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/problendo/2024/1/P9RaZlz1QbXvKYdV4Wq5Ebmb9lANrYgnMGKweDBK.jpeg</uri></graphic></fig><table-wrap id="table-4"><caption><p>Table 4. Quality metrics of the Generalised Boosted Modelling (GBM) predictive model obtained after application to the test sample</p></caption><table><tbody><tr><td>Model</td><td>Accuracy</td><td>F1 measure</td><td>Sensitivity</td><td>Specificity</td><td>Precision</td><td>Recall</td><td>ROC-AUC</td></tr><tr><td>GBM</td><td>93.2%</td><td>82.3%</td><td>77.8%</td><td>97.1%</td><td>87.5%</td><td>77.8%</td><td>0.920</td></tr></tbody></table></table-wrap><p>The significance of clinical markers determining prediction accuracy of the Generalised Boosted Modelling (GBM) model is shown in Figure 5. Six factors were found to have a dominant influence on the resulting variable, with the most significant parameters being early morning ACTH level, minimum potassium value during the active stage of the disease, 24-h urinary cortisol and late-night blood cortisol. Late-night salivary cortisol was less influential, and the contribution of the maximum size of pituitary adenoma at brain MRI scan was minimal (Figure 5).</p><fig id="fig-5"><caption><p>Figure 5. Predictive significance of markers that provide decision support for the Generalised Boosted Modelling (GBM) model.</p></caption><graphic xlink:href="problendo-70-1-g005.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/problendo/2024/1/dEtDvFzJYzYrUluvUj89B1p4oE10TugiZb5FnFnA.jpeg</uri></graphic></fig><table-wrap id="table-5"><caption><p>Table 5. Results of Patient S. examination</p></caption><table><tbody><tr><td>Parameter</td><td>Value</td></tr><tr><td>Morning ACTH (pg/ml)</td><td>82.4</td></tr><tr><td>Late-night blood cortisol (nmol/L)</td><td>653.2</td></tr><tr><td>Late-night salivary cortisol (nmol/L)</td><td>52.7</td></tr><tr><td>24-h urinary cortisol (nmol/day)</td><td>2,538.4</td></tr><tr><td>Potassium (mmol/L)</td><td>3.7</td></tr><tr><td>Maximum size of pituitary adenoma (mm)</td><td>0</td></tr></tbody></table></table-wrap></sec><sec><title>Examples of using the developed machine learning model for differential diagnosis of ACTH-dependent endogenous hypercortisolism</title><p>Clinical example 1</p><p>Patient S., male, 38, was admitted to Neuroendocrinology and Osteopathy Department of Russia’s Endocrinology Research Centre. Results of Patient S. examination in the hospital are presented in Table 5. Brain MRI with intravenous contrasting revealed diffuse heterogeneity of the anterior pituitary structure; no convincing data for pituitary microadenoma were obtained.</p><p>Our predictive model determined the probability of EAS in this patient at 11%; i.e., in this case the model enabled us to conclude in favour of Cushing disease in Patient S.</p><p>To confirm this conclusion using our machine learning model we compared the results of histological and immunohistochemical examinations of Patient S’s pituitary tumour tissue that had been removed. Histology findings: pituitary adenoma from basophilic cells. Immunohistochemical findings: corticotropinoma (positive ACTH expression). Thus, the conclusion made on the basis of our non-invasive method of differential diagnosis based on machine learning algorithm coincided with the results of pathomorphological examination.</p><p>Clinical example 2</p><p>Patient O., female, 32, was admitted to Neuroendocrinology and Osteopathy Department of Russia’s Endocrinology Research Centre. Results of Patient O. examination in the hospital are presented in Table 6. Brain MRI with intravenous contrasting revealed a 5.5×4 mm pituitary adenoma.</p><table-wrap id="table-6"><caption><p>Table 6. Results of Patient O. examination</p></caption><table><tbody><tr><td>Parameter</td><td>Value</td></tr><tr><td>Morning ACTH (pg/ml)</td><td>133.9</td></tr><tr><td>Late-night blood cortisol (nmol/L)</td><td>809</td></tr><tr><td>Late-night salivary cortisol (nmol/L)</td><td>47.08</td></tr><tr><td>24-h urinary cortisol (nmol/day)</td><td>5,542</td></tr><tr><td>Potassium (mmol/L)</td><td>4.06</td></tr><tr><td>Maximum size of pituitary adenoma (mm)</td><td>5.5</td></tr></tbody></table></table-wrap><p>The model determined the probability of EAS in this patient at 62%, which required us to use additional instrumental diagnostic methods to localise the source of ectopic ACTH hyperproduction. Chest MSCT revealed a 7.5×5 mm mass in S4 of the right lung. Somatostatin-receptor scintigraphy combined with 99mTc-tectrotide SPECT/CT revealed a similar mass in S4 of the right lung with evidence of increased 99mTc-tectrotide fixation.
</p><p>To confirm this conclusion, we compared the results of histological and immunohistochemical examinations of the removed lung tumour tissue. Histological findings: typical lung carcinoid. Immunohistochemical conclusion: focal expression of ACTH in the tumour cells. Thus, our machine learning model correctly classified the type of ACTH-dependent hypercortisolism in this patient, which was confirmed by the results of pathomorphological examination of the removed lung tumour tissue.</p></sec><sec><title>DISCUSSION</title><p>In this study, we developed Russia’s first machine learning-based model for and proposed a method of non-invasive differential diagnosis of ACTH-dependent forms of endogenous hypercortisolism (Cushing disease and EAS) which enable prediction of EAS probability in a patient with high accuracy (93.2%), sensitivity (77.8%) and specificity (97.1%). The use of our algorithm can significantly reduce the need for invasive differential diagnosis through bilateral selective blood sampling from inferior stony sinuses.</p><p>Predictive research in clinical medicine is one of the most promising and rapidly developing areas. Publications in international literature indicate growing interest for the development of predictive models for non-invasive verification of the etiology of endogenous hypercortisolism on the basis of modern machine learning technologies. Currently, active research is being undertaken to improve and increase the models predictive value. For example, machine learning models can effectively predict both early postoperative outcomes in patients with pituitary adenoma, including patients with Cushing disease [<xref ref-type="bibr" rid="cit11">11</xref>], and long-term remission after removal of pituitary corticotropinoma [<xref ref-type="bibr" rid="cit12">12</xref>]. However, the smallest amount of research in this area is devoted to differential diagnosis of various forms of hypercortisolism.</p><p>Isci S. et al. [<xref ref-type="bibr" rid="cit10">10</xref>] were the first to propose a method of differential diagnosis of various forms of endogenous hypercortisolism (Cushing disease, Cushing syndrome, subclinical hypercortisolism) using machine learning methods based on data from 241 patients and including 11 predictor variables. Researchers applied various machine learning methods to create predictive models. Their results showed that the Random Forest (RF) algorithm significantly outperformed predictive abilities of other machine learning algorithms. Application of the model enabled classification of hypercortisolism syndrome with an average accuracy of 92%. A binary classification algorithm based on RF ‘one vs all’ demonstrated a sensitivity of 97.6%, accuracy of 91.1%, and specificity of 87.1% in confirming or excluding endogenous hypercortisolism in the test sample. Multiclass classification with RF showed an average sensitivity by class at 91.8%, average specificity at 97.1%, and average accuracy at 92.1% when classifying different forms of endogenous hypercortisolism in the test dataset. However, the algorithm developed by our international colleagues cannot provide differential diagnosis of Cushing disease and EAS the as the selected cohort had no patients with EAS.</p><p>The first research into the capacity of machine learning methods in the area of differential diagnosis of ACTH-dependent forms of endogenous hypercortisolism (Cushing disease and EAS) was conducted by Chinese scientists Lyu X. et al. [<xref ref-type="bibr" rid="cit13">13</xref>][<xref ref-type="bibr" rid="cit14">14</xref>]. Data from 311 patients, including 47 patients with EAS, were used for modelling. Based on multivariate logistic regression analysis, out of 11 variables, female sex (odds ratio (OR) 3.030), hypokalaemia (OR 0.209), ACTH level (OR 0.988), visibility of pituitary adenoma on MRI (OR 8.671), and positive HDT (OR 2.768) were identified as predictors associated with Cushing disease in patients with ACTH-dependent endogenous hypercortisolism [<xref ref-type="bibr" rid="cit13">13</xref>]. Out of the eight models created, GBM yielded the highest values of the area under the ROC curve (AUC 0.980±0.02), but the RF model was the best for predicting Cushing disease among all machine learning models. RF algorithm sensitivity was 98.9%; its specificity was 87.9%, and its AUC was 0.976. Application of the predictive model to the training sample demonstrated high sensitivity (98.4%) and specificity (100%) of the algorithm, but in the test dataset, the sensitivity and specificity values were 95% and 71.4%, respectively. According to the results, the three most significant variables were serum potassium level, size of pituitary adenoma on MRI and ACTH values. The RF algorithm-based model had the largest area under the ROC curve (AUC 0.984 (95% CI 0.950-0.993)) compared to the AUC for LDT and HDT (p&lt;0.001), but no statistically significant differences were found when comparing the areas of the selected model and the ‘gold standard’ method, i.e., bilateral selective blood sampling from inferior stony sinuses using a stimulation agent [<xref ref-type="bibr" rid="cit14">14</xref>].</p><p>In contrast to the aforementioned study, in addition to early morning ACTH levels and potassium levels, we included 24-h urinary free cortisol, late-night blood cortisol, late-night salivary cortisol, and the largest size of pituitary adenoma on brain MRI into the set of universal predictors providing high predictive accuracy. EAS is believed to have a more severe course with a rapid increase in the severity of clinical symptoms and higher levels of all major hormonal parameters [<xref ref-type="bibr" rid="cit15">15</xref>]. Decrease in blood potassium occurs in hypercortisolism of any etiology and is not a specific marker of EAS despite the fact that the frequency of hypokalaemia in ectopic ACTH production syndrome can reach 82.6% against 21% of cases in Cushing disease (p=0.001), according to the results of a comparative study by Attr B. et al. [<xref ref-type="bibr" rid="cit15">15</xref>]. According to our data, the results of preoperative laboratory examination were statistically significantly different between patients with Cushing disease and EAS (p&lt;0.001), which is consistent with the aforementioned study.</p><p>In our study, prediction of EAS probability was based on the analyses of simple laboratory and instrumental parameters available in routine clinical practice. The high quality of predictor variables in our study was ensured by a multistage selection procedure, which included assessment of their informativeness using automatic methods, in particular the Boruta algorithm, as well as selection of clinical features that ensure prediction accuracy. The use of this algorithm enabled ranking individual predictors in terms of their contribution to the predictive potential and determining the variables required for a high-performance model.</p><p>The results of our study are consistent with those achieved by international scholars who also find that more sophisticated machine learning methods surpass the capabilities of traditional statistical models, including models based on logistic regression. However, in contrast to previous research, in our study the best quality metrics in predicting EAS probability were observed when using a machine learning method based on gradient boosting (Generalised Boosted Modelling, GBM); therefore, this model seems preferable for use in clinical practice.</p></sec><sec><title>Clinical significance of the results</title><p>The model for EAS differential diagnosis and probability prediction developed in this study can be used as a piece of software (a calculator) and provides a decision support tool. The calculator may include fields where parameter values are entered (results of laboratory tests: early morning ACTH, late-night blood cortisol, late-night salivary cortisol, 24-h urinary free cortisol, potassium, and the largest size of pituitary adenoma on brain MRI). Based on the model judgement, the physician will be able to personalise the patient management algorithm, select the optimal set of therapeutic measures and, in the event the model yields a positive prediction, select additional diagnosis activities which will ultimately improve the treatment effectiveness, reduce the sick leave duration, eliminate unjustified surgical interventions and reduce the patient disability rate.</p></sec><sec><title>Limitations of this study</title><p>Limitations of this study include a relatively small sample size, which is largely due to the orphan character of the underlying disease (Cushing disease and EAS). A single-centre study design is also a limitation which may reduce the predictive value of the model in external validation.</p></sec><sec><title>Areas of further research</title><p>Areas of further research could include the expansion of the training sample by involving data from other medical institutions of the Russian Federation, which will contribute to improving the model accuracy.</p></sec><sec><title>CONCLUSION</title><p>A machine learning predictive model enables differentiating patients with EAS and Cushing disease based on baseline clinical parameters and can be used as a primary screening of patients with ACTH-dependent endogenous hypercortisolism. The results obtained justify the use of machine learning methods in the area of medical prognosis, mark a step towards the development of personalised treatment methods and can serve as a basis for the implementation of medical decision support systems in patients with ACTH-dependent hypercortisolism.</p></sec><sec><title>ADDITIONAL INFORMATION</title><p>Source of funding. This study was funded by the Russian Science Foundation (Grant 9-15-00398-П).</p><p>Conflict of interest. The authors hereby declare they have had no apparent or potential conflict of interest related to the content of this publication.</p></sec></body><back><ref-list><ref id="cit1"><element-citation><name><surname>Belaya</surname> <given-names>Zh E</given-names> </name> <name><surname>Rozhinskaya</surname> <given-names>L Y</given-names> </name> <name><surname>Dragunova</surname> <given-names>N V</given-names> </name> <name><surname>Dzeranova</surname> <given-names>L K</given-names> </name> <name><surname>Marova</surname> <given-names>E I</given-names> </name> <name><surname>Arapova</surname> <given-names>S D</given-names> </name> <name><surname>Molitvoslovova</surname> <given-names>N N</given-names> </name> <name><surname>Zenkova</surname> <given-names>T S</given-names> </name> <name><surname>Melnichenko</surname> <given-names>G A</given-names> </name> <name><surname>Dedov</surname> <given-names>I I</given-names> </name> <article-title>Metabolic complications of endogenous Cushing: patient selection for screening</article-title> <source>Obesity and metabolism</source> <year>2014</year> <month>03</month> <fpage>26</fpage> <lpage>31</lpage> <volume>10</volume> <issue>1</issue> <object-id pub-id-type="doi" specific-use="metadata">10.14341/2071-8713-5068</object-id></element-citation></ref><ref id="cit2"><element-citation><name><surname>Golounina</surname> <given-names>Olga O.</given-names> </name> <name><surname>Belaya</surname> <given-names>Zhanna E.</given-names> </name> <name><surname>Rozhinskaya</surname> <given-names>Liudmila Ya.</given-names> </name> <name><surname>Marova</surname> <given-names>Evgeniya I.</given-names> </name> <name><surname>Pikunov</surname> <given-names>Michail Yu.</given-names> </name> <name><surname>Khandaeva</surname> <given-names>Patimat M.</given-names> </name> <name><surname>Arapova</surname> <given-names>Svetlana D.</given-names> </name> <name><surname>Dzeranova</surname> <given-names>Larisa K.</given-names> </name> <name><surname>Kuznetsov</surname> <given-names>Nikolai S.</given-names> </name> <name><surname>Fadeev</surname> <given-names>Valentin V.</given-names> </name> <name><surname>Melnichenko</surname> <given-names>Galina A.</given-names> </name> <name><surname>Dedov</surname> <given-names>Ivan I.</given-names> </name> <article-title>Clinical and laboratory characteristics and results of treatment of patients with ACTH-producing neuroendocrine tumors of various localization</article-title> <source>Terapevticheskii arkhiv</source> <year>2021</year> <month>11</month> <fpage>1171</fpage> <lpage>1178</lpage> <volume>93</volume> <issue>10</issue> <object-id pub-id-type="doi" specific-use="metadata">10.26442/00403660.2021.10.201102</object-id></element-citation></ref><ref id="cit3"><element-citation><name><surname>Golounina</surname> <given-names>O.O.</given-names> </name>  <name><surname>Slashchuk</surname> <given-names>K.Yu.</given-names> </name> <name><surname>Khairieva</surname> <given-names>A.V.</given-names> </name> <name><surname>Tarbaeva</surname> <given-names>N.V.</given-names> </name> <name><surname>Degtyarev</surname> <given-names>M.V.</given-names> </name> <name><surname>Belaya</surname> <given-names>Zh.E.</given-names> </name>      <article-title>X-ray and Radionuclide Imaging in the Diagnosis of ACTH-Producing Neuroendocrine Tumors</article-title> <source>MEDICAL RADIOLOGY AND RADIATION SAFETY</source> <year>2022</year> <month>08</month> <fpage>80</fpage> <lpage>88</lpage> <volume>67</volume> <issue>4</issue> <object-id pub-id-type="doi" specific-use="metadata">10.33266/1024-6177-2022-67-4-80-88</object-id></element-citation></ref><ref id="cit4"><mixed-citation publication-type="commun" publication-format="web"><name><surname>Sitkin</surname> <given-names>I.I.</given-names></name>, <name><surname>Belaya</surname> <given-names>Zh.E.</given-names></name>, <name><surname>Rozhinskaya</surname> <given-names>L.Ya.</given-names></name>, i dr. <article-title>Dvukhstoronnii selektivnyi zabor krovi iz nizhnikh kamenistykh sinusov na fone stimulyatsii desmopressinom v differentsial'noi diagnostike AKTG-zavisimogo giperkortitsizma</article-title> // <source>Diagnosticheskaya i interventsionnaya radiologiya.</source> — <year>2013</year>. — T. <volume>7</volume>. — №<month>3</month>. — S. <fpage>57</fpage>–<lpage>68</lpage>. doi: https://doi.org/<object-id pub-id-type="doi" specific-use="metadata">10.25512/DIR.2013.07.3.06</object-id></mixed-citation></ref><ref id="cit5"><element-citation><name><surname>Belaia</surname> <given-names>Zh E</given-names> </name> <name><surname>Rozhinskaia</surname> <given-names>L Ia</given-names> </name> <name><surname>Mel'nichenko</surname> <given-names>G A</given-names> </name> <name><surname>Sitkin</surname> <given-names>I I</given-names> </name> <name><surname>Dzeranova</surname> <given-names>L K</given-names> </name> <name><surname>Marova</surname> <given-names>E I</given-names> </name> <name><surname>Vaks</surname> <given-names>V V</given-names> </name> <name><surname>Vorontsov</surname> <given-names>A V</given-names> </name> <name><surname>Il'in</surname> <given-names>A V</given-names> </name> <name><surname>Kolesnikova</surname> <given-names>G S</given-names> </name> <name><surname>Dedov</surname> <given-names>I I</given-names> </name> <article-title>The role of prolactin gradient and normalized ACTH/prolactin ratio in the improvement of sensitivity and specificity of selective blood sampling from inferior petrosal sinuses for differential diagnostics of ACTH-dependent hypercorticism</article-title> <source>Problems of Endocrinology</source> <year>2014</year> <month>03</month> <fpage>3</fpage> <lpage>10</lpage> <volume>59</volume> <issue>4</issue> <object-id pub-id-type="doi" specific-use="metadata">10.14341/probl20135943-10</object-id></element-citation></ref><ref id="cit6"><element-citation><name><surname>Belaya</surname> <given-names>Zh. E.</given-names> </name> <name><surname>Golounina</surname> <given-names>O. O.</given-names> </name> <name><surname>Sitkin</surname> <given-names>I. I.</given-names> </name> <name><surname>Rozhinskaya</surname> <given-names>L. Ya.</given-names> </name> <name><surname>Degtyarev</surname> <given-names>M. V.</given-names> </name> <name><surname>Trukhina</surname> <given-names>D. A.</given-names> </name> <name><surname>Bondarenko</surname> <given-names>E. V.</given-names> </name> <name><surname>Lapshina</surname> <given-names>A. M.</given-names> </name> <name><surname>Mamedova</surname> <given-names>E. O.</given-names> </name> <name><surname>Przhiyalkovskaya</surname> <given-names>E. G.</given-names> </name> <name><surname>Vaks</surname> <given-names>V. V.</given-names> </name> <name><surname>Melnichenko</surname> <given-names>G. A.</given-names> </name> <name><surname>Mokrysheva</surname> <given-names>N. G.</given-names> </name> <name><surname>Dedov</surname> <given-names>I. I.</given-names> </name> <article-title>Diagnostic value of bilateral inferior petrosal sinus sampling in various modifications and methods of radiation and radionuclide imaging in the diagnosis and differential diagnosis of ACTH-dependent endogenous hypercortisolism</article-title> <source>Problems of Endocrinology</source> <year>2024</year> <month>01</month> <fpage>4</fpage> <lpage>16</lpage> <volume>69</volume> <issue>6</issue> <object-id pub-id-type="doi" specific-use="metadata">10.14341/probl13299</object-id></element-citation></ref><ref id="cit7"><element-citation><name><surname>Melnichenko</surname> <given-names>G A</given-names> </name> <name><surname>Dedov</surname> <given-names>I I</given-names> </name> <name><surname>Belaya</surname> <given-names>Zh E</given-names> </name> <name><surname>Rozhinskaya</surname> <given-names>L Ya</given-names> </name> <name><surname>Vagapova</surname> <given-names>G R</given-names> </name> <name><surname>Volkova</surname> <given-names>N I</given-names> </name> <name><surname>Grigor’ev</surname> <given-names>A Yu</given-names> </name> <name><surname>Grineva</surname> <given-names>E N</given-names> </name> <name><surname>Marova</surname> <given-names>E I</given-names> </name> <name><surname>Mkrtumayn</surname> <given-names>A M</given-names> </name> <name><surname>Trunin</surname> <given-names>Yu Yu</given-names> </name> <name><surname>Cherebillo</surname> <given-names>V Yu</given-names> </name> <article-title>Cushing’s disease: the clinical features, diagnostics, differential diagnostics, and methods of treatment</article-title> <source>Problems of Endocrinology</source> <year>2015</year> <month>06</month> <fpage>55</fpage> <lpage>77</lpage> <volume>61</volume> <issue>2</issue> <object-id pub-id-type="doi" specific-use="metadata">10.14341/probl201561255-77</object-id></element-citation></ref><ref id="cit8"><mixed-citation publication-type="commun" publication-format="web"><name><surname>Petryaikin</surname> <given-names>A.V.</given-names></name>, <name><surname>Belaya</surname> <given-names>Zh.E.</given-names></name>, <name><surname>Kiseleva</surname> <given-names>A.N.</given-names></name>, i dr. <article-title>Tekhnologiya iskusstvennogo intellekta dlya raspoznavaniya kompressionnykh perelomov pozvonkov s pomoshch'yu modeli morfometricheskogo analiza, osnovannoi na svertochnykh neironnykh setyakh</article-title> // <source>Problemy Endokrinologii.</source> — <year>2020</year>. — T. <volume>66</volume>. — №<month>5</month>. — S. <fpage>48</fpage>–<lpage>60</lpage>. doi: https://doi.org/<object-id pub-id-type="doi" specific-use="metadata">10.14341/probl12605</object-id></mixed-citation></ref><ref id="cit9"><element-citation><name><surname>Dedov</surname> <given-names>I I</given-names> </name> <name><surname>Belaya</surname> <given-names>Z E</given-names> </name> <name><surname>Sitkin</surname> <given-names>I I</given-names> </name> <name><surname>Marova</surname> <given-names>E I</given-names> </name> <name><surname>Przhiyalkovskaya</surname> <given-names>E G</given-names> </name> <name><surname>Remizov</surname> <given-names>O V</given-names> </name> <name><surname>Rozhinskaya</surname> <given-names>L Y</given-names> </name> <article-title>Significance of the method of selective blood collection from the inferior petrosal sinuses for differential diagnosis of ACTH-dependent hypercorticism</article-title> <source>Problems of Endocrinology</source> <year>2014</year> <month>03</month> <fpage>35</fpage> <lpage>40</lpage> <volume>55</volume> <issue>6</issue> <object-id pub-id-type="doi" specific-use="metadata">10.14341/probl200955635-40</object-id></element-citation></ref><ref id="cit10"><element-citation><name><surname>Isci</surname> <given-names>Senol</given-names> </name> <name><surname>Kalender</surname> <given-names>Derya Sema Yaman</given-names> </name> <name><surname>Bayraktar</surname> <given-names>Firat</given-names> </name> <name><surname>Yaman</surname> <given-names>Alper</given-names> </name> <article-title>Machine Learning Models for Classification of Cushing's Syndrome Using Retrospective Data</article-title> <source>IEEE Journal of Biomedical and Health Informatics</source> <year>2021</year> <month>01</month> <fpage>3153</fpage> <lpage>3162</lpage> <volume>25</volume> <issue>8</issue> <object-id pub-id-type="doi" specific-use="metadata">10.1109/jbhi.2021.3054592</object-id></element-citation></ref><ref id="cit11"><element-citation><name><surname>Hollon</surname> <given-names>Todd C.</given-names> </name> <name><surname>Parikh</surname> <given-names>Adish</given-names> </name> <name><surname>Pandian</surname> <given-names>Balaji</given-names> </name> <name><surname>Tarpeh</surname> <given-names>Jamaal</given-names> </name> <name><surname>Orringer</surname> <given-names>Daniel A.</given-names> </name> <name><surname>Barkan</surname> <given-names>Ariel L.</given-names> </name> <name><surname>McKean</surname> <given-names>Erin L.</given-names> </name> <name><surname>Sullivan</surname> <given-names>Stephen E.</given-names> </name> <article-title>A machine learning approach to predict early outcomes after pituitary adenoma surgery</article-title> <source>Neurosurgical Focus</source> <year>2018</year> <month>11</month> <fpage>E8</fpage> <volume>45</volume> <issue>5</issue> <object-id pub-id-type="doi" specific-use="metadata">10.3171/2018.8.focus18268</object-id></element-citation></ref><ref id="cit12"><element-citation><name><surname>Fan</surname> <given-names>Yanghua</given-names> </name> <name><surname>Li</surname> <given-names>Yichao</given-names> </name> <name><surname>Bao</surname> <given-names>Xinjie</given-names> </name> <name><surname>Zhu</surname> <given-names>Huijuan</given-names> </name> <name><surname>Lu</surname> <given-names>Lin</given-names> </name> <name><surname>Yao</surname> <given-names>Yong</given-names> </name> <name><surname>Li</surname> <given-names>Yansheng</given-names> </name> <name><surname>Su</surname> <given-names>Mingliang</given-names> </name> <name><surname>Feng</surname> <given-names>Feng</given-names> </name> <name><surname>Feng</surname> <given-names>Shanshan</given-names> </name> <name><surname>Feng</surname> <given-names>Ming</given-names> </name> <name><surname>Wang</surname> <given-names>Renzhi</given-names> </name> <article-title>Development of Machine Learning Models for Predicting Postoperative Delayed Remission in Patients With Cushing’s Disease</article-title> <source>The Journal of Clinical Endocrinology &amp; Metabolism</source> <year>2020</year> <month>10</month> <fpage>e217</fpage> <lpage>e231</lpage> <volume>106</volume> <issue>1</issue> <object-id pub-id-type="doi" specific-use="metadata">10.1210/clinem/dgaa698</object-id></element-citation></ref><ref id="cit13"><element-citation><name><surname>Lyu</surname> <given-names>Xiaohong</given-names> </name> <name><surname>Zhang</surname> <given-names>Dingyue</given-names> </name> <name><surname>Pan</surname> <given-names>Hui</given-names> </name> <name><surname>Zhu</surname> <given-names>Huijuan</given-names> </name> <name><surname>Chen</surname> <given-names>Shi</given-names> </name> <name><surname>Lu</surname> <given-names>Lin</given-names> </name> <article-title>A noninvasive scoring model for the differential diagnosis of ACTH-dependent Cushing’s syndrome: a retrospective analysis of 311 patients based on easy-to-use parameters</article-title> <source>Endocrine</source> <year>2022</year> <month>08</month> <fpage>114</fpage> <lpage>122</lpage> <volume>78</volume> <issue>1</issue> <object-id pub-id-type="doi" specific-use="metadata">10.1007/s12020-022-03081-0</object-id></element-citation></ref><ref id="cit14"><element-citation><name><surname>Lyu</surname> <given-names>Xiaohong</given-names> </name> <name><surname>Zhang</surname> <given-names>Dingyue</given-names> </name> <name><surname>Pan</surname> <given-names>Hui</given-names> </name> <name><surname>Zhu</surname> <given-names>Huijuan</given-names> </name> <name><surname>Chen</surname> <given-names>Shi</given-names> </name> <name><surname>Lu</surname> <given-names>Lin</given-names> </name> <article-title>Machine learning models for differential diagnosis of Cushing’s disease and ectopic ACTH secretion syndrome</article-title> <source>Endocrine</source> <year>2023</year> <month>03</month> <fpage>639</fpage> <lpage>646</lpage> <volume>80</volume> <issue>3</issue> <object-id pub-id-type="doi" specific-use="metadata">10.1007/s12020-023-03341-7</object-id></element-citation></ref><ref id="cit15"><element-citation><name><surname>Attri</surname> <given-names>Bhawna</given-names> </name> <name><surname>Goyal</surname> <given-names>Alpesh</given-names> </name> <name><surname>Kalaivani</surname> <given-names>Mani</given-names> </name> <name><surname>Kandasamy</surname> <given-names>Devasenathipathy</given-names> </name> <name><surname>Gupta</surname> <given-names>Yashdeep</given-names> </name> <name><surname>Agarwal</surname> <given-names>Shipra</given-names> </name> <name><surname>Shamim</surname> <given-names>Shamim A.</given-names> </name> <name><surname>Damle</surname> <given-names>Nishikant</given-names> </name> <name><surname>Dhingra</surname> <given-names>Atul</given-names> </name> <name><surname>Jyotsna</surname> <given-names>Viveka P.</given-names> </name> <name><surname>Suri</surname> <given-names>Ashish</given-names> </name> <name><surname>Tandon</surname> <given-names>Nikhil</given-names> </name> <article-title>Clinical profile and treatment outcomes of patients with ectopic ACTH syndrome compared to Cushing disease: a single-center experience</article-title> <source>Endocrine</source> <year>2023</year> <month>01</month> <fpage>408</fpage> <lpage>418</lpage> <volume>80</volume> <issue>2</issue> <object-id pub-id-type="doi" specific-use="metadata">10.1007/s12020-022-03298-z</object-id></element-citation></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
