A novel recommender framework with chatbot to stratify heart attack risk
Bibliographic record
Abstract
Cardiovascular diseases are a major cause of mortality and morbidity. Fast detection of life-threatening emergency events and an earlier start of the therapy would save many lives and reduce successive disabilities. Understanding the specific risk factors associated with heart attack and the degree of association is crucial in the clinical diagnosis. Considering the potential benefits of intelligent models in healthcare, many researchers have developed a variety of machine learning (ML)-based models to identify patients at risk of a heart attack. However, the common problem of previous works that used ML concepts was the lack of transparency in black-box models, which makes it difficult to understand how the model made the prediction. In this study, an automated smart recommender system (Explainable Artificial Intelligence) for heart attack prediction and risk stratification was developed. For the purpose, the CatBoost classifier was applied as the initial step. Then, the SHAP (SHapley Additive exPlanation) explainable algorithm was employed to determine reasons behind high or low risk classification. The recommender system can provide insights into the reasoning behind the predictions, including group-based and patient-specific explanations. In the final step, we integrated a Large Language Model (LLM) called BioMistral for chatting functionally to talk to users based on the model output as a digital doctor for consultation. Our smart recommender system achieved high accuracy in predicting a patient risk level with an average AUC of 0.88 and can explain the results transparently. Moreover, a Django-based online application that uses patient data to update medical information about an individual's heart attack risk was created. The LLM chatbot component would answer user questions about heart attacks and serve as a virtual companion on the route to heart health, our system also can locate nearby hospitals by applying Google Maps API and alert the users. The recommender system could improve patient management and lower heart attack risk while timely therapy aids in avoiding subsequent disabilities.
Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.
How this classification was reachedexpand
Full frame distilled prediction
Teacher imitationNot calibrated prevalence, not ground truth. Human validation pending. Learned from the 10,348 direct Codex labels and 10,348 direct Gemma labels. Candidate is the union of thresholded teacher heads; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels or direct frontier model labels.
Codex and Gemma teacher scores by category
| Category | Codex | Gemma |
|---|---|---|
| Metaresearch | 0.001 | 0.000 |
| Meta-epidemiology (narrow) | 0.000 | 0.000 |
| Meta-epidemiology (broad) | 0.000 | 0.000 |
| Bibliometrics | 0.000 | 0.001 |
| Science and technology studies | 0.000 | 0.000 |
| Scholarly communication | 0.000 | 0.000 |
| Open science | 0.001 | 0.000 |
| Research integrity | 0.000 | 0.001 |
| Insufficient payload (model declined to judge) | 0.000 | 0.000 |
Machine scores (provisional)
The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.
Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.
score_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from itClassification
machine, unvalidatedMachine predicted; a candidate call from one teacher head, not a consensus.
How this classification was reached, model by model and score by score, is at the end of the page under "How this classification was reached".