» Articles » PMID: 30890124

Machine Learning in Medicine: a Practical Introduction

Overview
Publisher Biomed Central
Date 2019 Mar 21
PMID 30890124
Citations 334
Authors
Affiliations
Soon will be listed here.
Abstract

Background: Following visible successes on a wide range of predictive tasks, machine learning techniques are attracting substantial interest from medical researchers and clinicians. We address the need for capacity development in this area by providing a conceptual introduction to machine learning alongside a practical guide to developing and evaluating predictive algorithms using freely-available open source software and public domain data.

Methods: We demonstrate the use of machine learning techniques by developing three predictive models for cancer diagnosis using descriptions of nuclei sampled from breast masses. These algorithms include regularized General Linear Model regression (GLMs), Support Vector Machines (SVMs) with a radial basis function kernel, and single-layer Artificial Neural Networks. The publicly-available dataset describing the breast mass samples (N=683) was randomly split into evaluation (n=456) and validation (n=227) samples. We trained algorithms on data from the evaluation sample before they were used to predict the diagnostic outcome in the validation dataset. We compared the predictions made on the validation datasets with the real-world diagnostic decisions to calculate the accuracy, sensitivity, and specificity of the three models. We explored the use of averaging and voting ensembles to improve predictive performance. We provide a step-by-step guide to developing algorithms using the open-source R statistical programming environment.

Results: The trained algorithms were able to classify cell nuclei with high accuracy (.94 -.96), sensitivity (.97 -.99), and specificity (.85 -.94). Maximum accuracy (.96) and area under the curve (.97) was achieved using the SVM algorithm. Prediction performance increased marginally (accuracy =.97, sensitivity =.99, specificity =.95) when algorithms were arranged into a voting ensemble.

Conclusions: We use a straightforward example to demonstrate the theory and practice of machine learning for clinicians and medical researchers. The principals which we demonstrate here can be readily applied to other complex tasks including natural language processing and image recognition.

Citing Articles

Predicting total healthcare demand using machine learning: separate and combined analysis of predisposing, enabling, and need factors.

Orhan F, Kurutkan M BMC Health Serv Res. 2025; 25(1):366.

PMID: 40075408 PMC: 11900254. DOI: 10.1186/s12913-025-12502-5.


Stacking Model-Based Classifiers for Dealing With Multiple Sets of Noisy Labels.

Montani G, Cappozzo A Biom J. 2025; 67(2):e70042.

PMID: 40071867 PMC: 11898607. DOI: 10.1002/bimj.70042.


Advanced applications in chronic disease monitoring using IoT mobile sensing device data, machine learning algorithms and frame theory: a systematic review.

Liu Y, Wang B Front Public Health. 2025; 13:1510456.

PMID: 40061474 PMC: 11885302. DOI: 10.3389/fpubh.2025.1510456.


A bibliometric analysis of the advance of artificial intelligence in medicine.

Lin M, Lin L, Lin L, Lin Z, Yan X Front Med (Lausanne). 2025; 12:1504428.

PMID: 40061376 PMC: 11885233. DOI: 10.3389/fmed.2025.1504428.


Applications of Artificial Intelligence for the Prediction and Diagnosis of Cancer Therapy-Related Cardiac Dysfunction in Oncology Patients.

Scalia I, Pathangey G, Abdelnabi M, Ibrahim O, Abdelfattah F, Pereyra Pietri M Cancers (Basel). 2025; 17(4).

PMID: 40002200 PMC: 11852369. DOI: 10.3390/cancers17040605.


References
1.
Bland J, Altman D . Statistical methods for assessing agreement between two methods of clinical measurement. Lancet. 1986; 1(8476):307-10. View

2.
WOLBERG W, Mangasarian O . Multisurface method of pattern separation for medical diagnosis applied to breast cytology. Proc Natl Acad Sci U S A. 1990; 87(23):9193-6. PMC: 55130. DOI: 10.1073/pnas.87.23.9193. View

3.
Wagland R, Recio-Saucedo A, Simon M, Bracher M, Hunt K, Foster C . Development and testing of a text-mining approach to analyse patients' comments on their experiences of colorectal cancer care. BMJ Qual Saf. 2015; 25(8):604-14. DOI: 10.1136/bmjqs-2015-004063. View

4.
Hawkins J, Brownstein J, Tuli G, Runels T, Broecker K, Nsoesie E . Measuring patient-perceived quality of care in US hospitals using Twitter. BMJ Qual Saf. 2015; 25(6):404-13. PMC: 4878682. DOI: 10.1136/bmjqs-2015-004309. View

5.
Gibbons C, Richards S, Valderas J, Campbell J . Supervised Machine Learning Algorithms Can Classify Open-Text Feedback of Doctor Performance With Human-Level Accuracy. J Med Internet Res. 2017; 19(3):e65. PMC: 5371715. DOI: 10.2196/jmir.6533. View