PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
February 14, 2026PLoS ONE0 citationsOpen Access

A modular and interpretable framework for tabular data analysis using LLaMA 7B: Enhancing preprocessing, modeling, and explainability with local language models

View Full Paper
SMShahab Ahmad Al MaaytahAQAyman Qahmash

Key Points

  • The aim is to develop a framework using LLaMA 7B to improve data preprocessing and explainability in predicting medical appointment attendance.
  • Implemented a local LLM-assisted pipeline for semantic preprocessing.
  • Automated tasks included column renaming, datatype inference, and cleaning recommendations.
  • Applied the pipeline on the Medical Appointment No-Shows dataset.
  • Utilized XGBoost classifier for predictive modeling and SHAP for explainability.
  • Achieved an overall accuracy of 80% with the XGBoost classifier.
  • F1-score was 0.89 for the majority Show class and 0.03 for the minority No-show class.
  • AUC-ROC reached 0.65 and precision-recall AUC was 0.87, highlighting class imbalance effects.
  • Identified waiting days, age, and SMS notifications as key influential predictors through SHAP analysis.

Abstract

Predicting whether a patient will attend a scheduled medical appointment is essential for reducing inefficiencies in healthcare systems and optimizing resource allocation. This study introduces a local, LLM-assisted pipeline that uses LLaMA 7B solely to automate semantic preprocessing such as column renaming, datatype inference, and cleaning recommendations while the predictive task is performed by classical machine-learning models. Applied to the Medical Appointment No-Shows dataset, the pipeline spans dataset analysis, feature transformation, classification, SHAP-based explainability, and system profiling. Using LLM-guided preprocessing, the downstream XGBoost classifier achieved an overall accuracy of 80%, with an F1-score of 0.89 for the majority Show class and 0.03 for the minority No-show class, reflecting the strong class imbalance in the dataset. The AUC-ROC reached 0.65 and the precision–recall AUC was 0.87, driven primarily by majority-class performance. SHAP analysis identified waiting days, age, and SMS notifications as the most influential predictors. Overall, the results demonstrate that local large language models can enhance preprocessing and interpretability within an efficient, deployable workflow for tabular prediction tasks, while classical supervised models remain responsible for final prediction.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Maaytah et al. (2026) studied this question.

synapsesocial.com/papers/699011b32ccff479cfe58a67https://doi.org/10.1371/journal.pone.0341002
Ask AI
Helpful
Bookmark
Share
View Full Paper