How to Improve Medical Diagnosis Using Machine Learning
How long did your last chat with a doctor was?
Let me guess – around 10-15 minutes. That’s exactly how much time your average clinician can spare on a patient to assess the complaints, scroll through the past records, and suggest a possible diagnosis.
In critical cases, the time is even more limited and the decisions must be made within minutes.
EHR software facilitates this process and offers all the essential patient information on the platter.
The question, however – is this information enough?
After all, the annual cost of medical errors still remains close to $17.1 billion, not to mention the non-financial liabilities a professional will have to deal after concluding a wrong diagnosis and assigning incorrect treatment.
To understand the nature of errors, let’s take a look at the standard medical diagnosis procedures framework:
As you can see from the diagram, information integration & interpretation is the most important stage during the diagnostic process.
Yet, during this stage, most medical errors occur. According to Agency of Healthcare Research and Quality, doctors and clinicians are often prone to cognitive bias and incorrect applications of heuristics (“rules of thumb”) during the diagnostic stage. Specifically, the next errors are the most common:
- Availability heuristic – being biased by past cases when diagnosing a current patient.
- Anchoring heuristic – the clinician trusts the initial diagnostic impression, though further information does not support the assumption.
- Framing effects – being biased by collateral information and subtle clues.
- Blind Obedience – making the final decision based on test results or “expert” opinion only.
One of the main applications of machine learning in medicine is to eliminate these biases and help answer this question with higher accuracy:
“Has Sufficient Information Been Collected?”
Why Machine Learning is The Answer To Better Diagnosis
“Smart” machine learning algorithms are already used across different industries to replace repetitive, costly, and time-consuming tasks.
Their advantage is that, unlike the human eye (and brain), they can capture unforeseen patterns within complex data sets at lightning speed.
In other words – they can determine a certain condition or a health risk much faster and with higher accuracy. Additionally, machine learning algorithms for healthcare data analytics can churn all sorts of forecast such as the likelihood of developing a certain condition; being re-hospitalized in X days and even suggest the possible patient’s response to a new drug.
To give you some better context, here are some of the latest healthtech trends on how to improve diagnosis in healthcare:
Using machine learning and pattern recognition to assist diagnosis – an algorithm developed by Google can identify cancerous cell patterns in slides of tissue and detect breast cancer. The algorithm showed 89% accuracy, compared to a 73% accuracy score of a human pathologist.
Stanford Artificial Intelligence Laboratory trained their algorithm to visually recognize and diagnose potential skin cancer. During benchmark tests, the algorithm matched the performance of a human dermatologist.
Create health risk predictions based on existing data from similar cases. Scientists from Indiana University-Purdue University Indianapolis deployed a machine learning algorithm capable to predict leukemia remission with 100% accuracy. Relapses were correctly predicted as well with 90% accuracy. The model was trained to analyze bone marrow data and medical histories of AML patients and compare it to blood data from healthy individuals.
Forecast patient admission rates. Assistance Publique-Hôpitaux de Paris (AP-HP) has created an algorithm to predict patient admission rates on a daily basis. By utilizing internal and external data sets – public statistical data plus 10+ years worth of hospital admission records – the institution has managed to predict how many patients will come through the door each hour, and predictions can be made up to 15 days in advance.
This way, the hospital can optimize and allocate human resources as per demand and improve the patient outcomes.
These examples perfectly illustrate the areas that could be addressed and improved with machine learning. The next logical step, however, is to understand how exactly those algorithms function.
How To Improve Medical Diagnosis Using Machine Learning
The section below will illustrate three different approaches to machine learning in the healthcare domain, along with the positive outcomes they could bring for healthcare institutions.
The special emphasis is placed on improving the diagnosis process specifically.
Use Cluster and Classification Models To Refine The Existing Data
Big data in healthcare is getting really big.
While EHR systems were designed specifically to cope with this issue – store and categorize all the incoming and existing patient data. Modern EHR software is capable to automate a significant chunk of manual work such as:
- Create and store admission/discharge records;
- Store patient’s demographic data;
- Integrate with pharmacy systems to keep track of the prescribed medication;
- Store and categorize radiology data, lab tests, physicians’ orders.
Then, it can process these piles of unstructured data (raw, scattered entries) into structured data – information with a top-level of organization, which is easy-to-search and operate.
In order to leverage that data and turn it into actionable insights, you will need to utilize machine learning.
In the book, “Machine Learning in Medicine – a Complete Overview“, researchers from the Netherlands Ton Cleophas and Aeilko Zwinderman have outlined 80 machine learning applications in healthcare.
The first, chapter specifically outlines how to improve diagnosis and reduce diagnostic error with the help of cluster and classification models.
Clustering allows you to identify similar sets of observations and group them into respective subsets (clusters). All the clusters bear similar characteristics in some sense. Basically, you teach the algorithm to identify whether certain relationships exist between two data entries and group them accordingly.
For instance, you have survey results/records from a demographical group of patients suffering from different levels of mental depression. Based on the existing data, you can train the algorithm to identify and categorize all the patients in respective sub-groups (based on their current level of depression) and then predict subgroup membership for future patients with similar symptoms.
The benefits, in this case, are the following:
- You minimize the impact of heuristic bias on disease diagnosis (determining the level of depression).
- You can build a recommendation engine for EMR that would automatically suggest the right categorization and possible treatment for patients belonging to a certain cluster.
- EMR will automatically notify doctors whenever a certain patient moves to another subgroup and adjust the treatment accordingly.
Next, classification function will help you improve data analysis even further. Specifically, it allows you to establish to which class a new data entry belongs.
The next examples illustrate what could be achieved with simple classification functions:
- Determine the place of a new drug with its class. For instance, to identify how one newly developed opioid drug could be incorporated into the existing therapeutic regimens.
- Predict whether a patient’s mole is cancerous or not based on the data set of scans from some 1000+ patients that are already available in the system.
- Diagnose any diseases based on the provided symptoms as long as you have an extensive, well-documented database at disposal.
Additionally, our Big Data engineers suggest using DBSCAN (Density-based spatial clustering of applications with noise) when you need to get through noisy data (aka meaningless entries that could not be rendered by the machine) and classify all the entries at disposal at the same time.
Improve Diagnosis Process with Decision Trees
Decision trees can be leveraged both in the diagnosis process and to determine best predictors of health risks.
For example, you could explore the correlation between inflammatory markers and pneumonia severities.
Or analyze cardiovascular autonomic neuropathy data obtained through sensors to determine whether a patient has any signs of diabetes or not.
In the latter case, applying the decision tree and ensemble methods could help you determine the right treatment plan and diet for the patient.
As Dr. GP Pulipaka notes, you will need to apply the next methods:
- ADTree, which creates a two-way classification of the stated problem for generating an alternative decision tree to enhance machine learning.
- J48, which allows leveraging both pruned and unpruned trees with this c.45 decision tree classifier.
- Next, Naïve Bayes Algorithm is applied to generate the decision tree.
- Finally, you can use SimpleCart to reduce the complexity of the pruning in the decision tree.
For computing, you can use Spark ML, which incorporates methods for processing the data, which is formed as a Dataset. A dataset that can support a variety of data types (text, vectors, images, etc.) under a unified dataset concept and allows combining multiple algorithms into a single pipeline (workflow). This increases the processing speed and reduces the chances for errors at the same time.
Receive Actionable Clinical Insights With The Regression Model
In data mining, the regression model is used to predict a certain number based on the existing data.
For instance, it could help you answer such questions as:
- How long is it before a patient discharged from a hospital with a chronic condition will be re-admitted?
- How much will it cost to treat a patient with a certain condition?
- How long does it usually take a certain insurance provider to compensate a claim?
- How much body fat is considered to be the norm for a representative of a certain demographics?
Considering that you already have a dataset labeled with numbers (past records on costs or admission days of similar patients), you will then need to “feed” your algorithm with this data plus additional demographic information such as age, gender and so on.
Using regression, you can then predict how likely the person will be re-hospitalized and within what period of time.
Again, you can use Apache Spark (the framework we swear by at Romexsoft) to conduct simultaneous calculations of different problem types at excellent speed.
Using a regression model can help hospitals to optimize their billing cycles and patient flow management by predicting the chance of re-hospitalization for instance or deterring how long a certain patient will need to stay in the ICU. Doctors, on the other hand, can benefit from receiving immediate insights about certain new and existing patients (e.g. whether a person is overweight/underweight; whether their leucocytes numbers are within normal range compared to the peer group with similar symptoms/chronic illness and so on).
Romexsoft has previously helped healthcare startups to develop innovative big data solutions and built “smart” EMR and EHR systems for traditional health care institutions. Get in touch with us to discover how your organization can benefit from adopting machine learning algorithms.