Improving Diagnostic Accuracy on Prescription Text Data Using SMOTE-Optimized SVM
DOI:
https://doi.org/10.29207/resti.v10i2.7441Keywords:
classification, prescription, SMOTE, SVM, text miningAbstract
Disease classification based on drug prescription data plays a crucial role in helping healthcare professionals understand patient health conditions and supporting clinical decision-making. Drug prescription data actually contains a wealth of information regarding disease indications, but is generally presented in unstructured, free-text form. Furthermore, the data distribution across disease classes is often imbalanced, with some diseases receiving less data than others. This can lead to inaccurate classification models that favor disease classes with more data. This study aims to enhance the performance of disease classification based on drug prescription data by combining text mining approaches, the Synthetic Minority Oversampling Technique (SMOTE), and the Support Vector Machine (SVM) algorithm. The research process begins with text preprocessing, which includes case folding, tokenization, stopword removal, and stemming, to clean and normalize the prescription data. Next, the text data is converted into numeric features using the Term Frequency–Inverse Document Frequency (TF-IDF) method to enable processing by machine learning algorithms. To address the class imbalance issue, the SMOTE method is applied to training data by generating synthetic data for a limited number of disease classes. A classification model was then built using the SVM algorithm, known to be effective in handling high-dimensional text data. Model performance was evaluated using accuracy, precision, recall, and F1-score metrics. The results showed that the application of SMOTE and parameter optimization in Support Vector Machine significantly improved classification performance, with an accuracy of 92.6%, a precision of 91.8%, a recall of 93.4%, and an F1-score of 92.6%. The increased recall value in the class of patients diagnosed with diabetes indicates that the model is able to correctly identify most diabetes cases based on medical prescription data.
Downloads
References
G. N. Okoli et al., “Use of Primary Care Data in Research and Pharmacovigilance: Eight Scenarios Where Prescription Data are Absent,” Drug Safety, vol. 44, no. 10, pp. 1033–1040, Oct. 2021, doi: 10.1007/s40264-021-01093-9.
J. Tantray et al., “Prescription Precision: A Comprehensive Review of Intelligent Prescription,” Current Pharmaceutical Design, vol. 30, no. 24, pp. 2671–2684, 2024, doi: 10.2174/0113816128321623240719104337.
M. Vejdani et al., “Electronic prescription system requirements: a scoping review,” BMC Medical Informatics and Decision Making, vol. 22, no. 1, p. 236, Sep. 2022, doi: 10.1186/s12911-022-01948-w.
M. M. Hossain et al., “Performance analysis of classical and quantum support vector machine for diagnosis of chronic kidney disease,” Informatics in Health, vol. 2, no. 2, 2022, doi: 10.1016/j.infoh.2025.08.003.
M. Yusoff et al., “The improvement of SMOTE-ENN-XGBoost through Yeo Johnson strategy on Dissolved Gas Analysis dataset,” Energy Reports, vol. 13, pp. 6281–6290, 2025, doi: /10.1016/j.egyr.2025.05.013.
M. P. Raghunath et al., “PCA and PSO based optimized support vector machine for efficient intrusion detection in internet of things,” Measurement: Sensors, vol. 37, p. 101806, 2025, doi: 10.1016/j.measen.2024.101806.
S. Chong et al., “Two-interaction iterative multi-layer classification model for EEG signals using support vector machines,” Alexandria Engineering Journal, vol. 128, pp. 1046–1056, 2025, doi: 10.1016/j.aej.2025.07.042.
G. Xu and Q. He, “Applying particle swarm optimization algorithm and support vector machine for optimizing metal flow in extrusion,” Journal of Alloy and Metallurgical Systems, vol. 11, p. 100198, 2025, doi: 10.1016/j.jalmes.2025.100198.
F. M. Amin and D. C. R. Novitasari, “Identification of Stunting Disease using Anthropometry Data and Long Short-Term Memory (LSTM) Model,” Computer Engineering and Applications Journal, vol. 11, no. 1, pp. 25–36, Jan. 2022, doi: 10.18495/comengapp.v11i1.395.
C. Zhao et al., “Enhancing aspect category detection in imbalanced online reviews: An integrated approach using Select-SMOTE and LightGBM,” International Journal of Intelligent Networks, vol. 5, pp. 364–372, 2024, doi: 10.1016/j.ijin.2024.10.002.
Q. Yang et al., “Fusion of terahertz spectroscopy and Raman spectroscopy combined with support vector machine to distinguish different Pericarpium citri reticulatae species,” Heliyon, vol. 11, no. 6, p. e43136, Jun. 2025, doi: 10.1016/j.heliyon.2025.e43136.
R. K. Dubey and D. K. Choubey, “Classification of Paddy Plant leaf diseases using optimized Support Vector Machine,” in Procedia Computer Science, vol. 258, 2025, pp. 1619–1628, doi: 10.1016/j.procs.2025.04.393.
H. H. Rasheed and A. M. Abdulazeez, “Leukemia Detection and Classification Based on Machine Learning and CNN: A Review,” International Journal of Computing Science, vol. 13, no. 3, p. 4112, 2024, doi: 10.33022/ijcs.v13i3.4044.
M. Libnao et al., “Traffic incident prediction and classification system using naïve bayes algorithm,” in Procedia Computer Science, vol. 227, 2023, pp. 316–325, doi: 10.1016/j.procs.2023.10.530.
Y. Shang, “Prevention and detection of DDOS attack in virtual cloud computing environment using Naive Bayes algorithm,” Measurement: Sensors, vol. 31, p. 100991, 2024, doi: 10.1016/j.measen.2023.100991.
M. Khakbiz et al., “AI-enhanced support vector machine framework for nanoparticle size and surface nanotopography analysis,” Particuology, vol. 106, pp. 156–173, 2025, doi: 10.1016/j.partic.2025.07.017.
S. Mojrian et al., “Hybrid Machine Learning Model of Extreme Learning Machine Radial Basis Function for Breast Cancer Detection,” in Proc. RIVF International Conference, IEEE, 2020, doi: 10.1109/RIVF48685.2020.9140744.
A. Tariq et al., “Modelling, mapping and monitoring of forest cover changes using support vector machine,” Heliyon, vol. 9, no. 2, p. e13212, Feb. 2023, doi: 10.1016/j.heliyon.2023.e13212.
Y. Zhang et al., “Comparative Study of Machine Learning Models for Textual Medical Note Classification,” Computers, vol. 15, no. 1, p. 7, Jan. 2026, doi: 10.3390/computers15010007.
M. S. Simanjuntak and L. Hoki, “A Comparative Study of Machine Learning and Deep Learning Models for Heart Disease Classification,” Journal of Applied Informatics and Computing, vol. 9, no. 6, pp. 3405–3409, 2025, doi: 10.30871/jaic.v9i6.11546
F. Maggioni and A. Spinelli, “A novel robust optimization model for nonlinear Support Vector Machine,” European Journal of Operational Research, vol. 322, no. 1, pp. 237–253, 2025, doi: 10.1016/j.ejor.2024.12.014.
A. G. Senthil et al., “Generative AI in Agri: Sustainability in Smart Precision Farming,” Procedia Computer Science, vol. 252, pp. 365–380, 2025, doi: 10.1016/j.procs.2024.12.038.
H. Hairani et al., “Optimizing Sentiment Analysis for Lombok Tourism Using SMOTE,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 9, no. 4, pp. 706–713, 2025, doi: 10.29207/resti.v9i4.6623.
S. Matharaarachchi et al., “Enhancing SMOTE for imbalanced data with abnormal minority instances,” Machine Learning with Applications, vol. 18, 2024, doi: 10.1016/j.mlwa.2024.100597.
K. K. Ray et al., “Guava leaf disease detection using support vector machine (SVM),” Smart Agricultural Technology, vol. 12, p. 101190, 2025, doi: 10.1016/j.atech.2025.101190.
E. Ludivin et al., “Effective multimodal hate speech detection using PCA, SMOTE, and adversarial learning,” Machine Learning with Applications, vol. 20, 2025, doi: 10.1016/j.mlwa.2025.100647.
S. Krakhofer and M. Kaftan, “Augmented reality design decision support engine,” in CAADRIA Conference, 2015, doi: 10.52842/conf.caadria.2015.231.
W. A. van Eeden et al., “Predicting the course of mood disorders with automated machine learning,” Psychiatry Research, vol. 299, p. 113823, May 2021, doi: 10.1016/j.psychres.2021.113823.
A. Siddiqua, “Design and Development of an Efficient Ensemble Model,” Engineering Technology Applied Science Research, vol. 15, no. 4, 2025, doi: 10.48084/etasr.11176.
R. Kusumaningrum et al., “Benchmarking of multi-class algorithms for classifying documents,” Applied Sciences, vol. 10, no. 23, p. 8621, Dec. 2020, doi: 10.3390/app10238621.
E. Sugiharti, “Optimizing Support Vector Machine Performance using PCA,” JISEBI, vol. 10, no. 1, pp. 38–50, 2024, doi: 10.20473/jisebi.10.1.38-50.
Y. Altork, “Comparative analysis of machine learning models for wind speed forecasting,” International Journal of Thermofluids, vol. 27, p. 101217, 2025, doi: 10.1016/j.ijft.2025.101217.
S. Wang et al., “Max-Relevance-Min-Divergence for data discretization,” Pattern Recognition, vol. 149, p. 110236, 2024, doi: https://doi.org/10.1016/j.patcog.2023.110236.
A. Biswas and S. Islam, “Hybrid Deep CNN-SVM Approach for Brain Tumor Classification,” JISEBI, vol. 9, no. 1, pp. 1–15, 2023, doi: 10.20473/jisebi.9.1.1-15.
M. Ali, “Classification of imbalanced dataset with SMOTE,” Sustainable Futures, vol. 10, p. 101119, 2025, doi: 10.1016/j.sftr.2025.101119.
I. Aruleba and Y. Sun, “Enhanced credit risk prediction using SMOTE-ENN,” Machine Learning with Applications, vol. 21, p. 100692, 2025, doi: 10.1016/j.mlwa.2025.100692.
A. A. Kohan et al., “External Validation of a CT-Based Radiogenomics Model,” Academic Radiology, vol. 32, no. 9, 2025, doi: 10.1016/j.acra.2025.04.064.
V. Lakshmi and S. Rajkumar, “Hybrid ensemble federated learning using SMOTE-Tomek for DDoS detection,” Results in Engineering, vol. 28, p. 107601, 2025, doi: 10.1016/j.rineng.2025.107601.
M. Piazza et al., “Robust support vector machine for Raman data classification,” Decision Analytics Journal, vol. 16, p. 100595, 2025, doi: 10.1016/j.dajour.2025.100595.
N. Mateen et al., “Feature selection for brain computer interface using SVM,” Results in Engineering, vol. 27, p. 105649, 2025, doi: 10.1016/j.rineng.2025.105649.
X. Wang, “Aero Engine Fault Diagnosis Based on Support Vector Machine,” in Procedia Computer Science, vol. 262, 2025, doi: 10.1016/j.procs.2025.05.181.
L. Bergamin and F. Aiolli, “Counterfactual examples for non-linear SVM,” Neurocomputing, vol. 651, 2025, doi: 10.1016/j.neucom.2025.130809.
A. Alfaleh et al., “Predicting thermal conductivity using SVM: A review,” Energy Reports, vol. 10, 2023, doi: 10.1016/j.egyr.2023.08.001.
C. D. Sinaulan and A. Hantara, “Model Klasifikasi Permasalahan Kulit Wajah Menggunakan SVM,” Jurnal Pendidikan dan Kewirausahaan, vol. 9, no. 1, 2021, doi: 10.47668/pkwu.v9i1.246.
N. W. A. Prasetya et al., “Sistem Pakar Deteksi Preeklamsia menggunakan Certainty Factor,” Infotekmesin, vol. 13, no. 1, 2022, doi: 10.35970/infotekmesin.v13i1.1050.
L. P. Wanti et al., “Diagnosis of ENT diseases using Naïve Bayes with genetic algorithm,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 37, no. 1, pp. 398–405, 2025, doi: 10.11591/ijeecs.v37.i1.pp398-405.
W. Guo et al., “Distribution network topology identification using naive Bayes,” Energy Reports, vol. 9, 2023, doi: 10.1016/j.egyr.2023.04.256.
A. Chourlias et al., “Virtual sensors for smart farming: IoT and AI approach,” Internet of Things, vol. 32, p. 101611, 2025, doi: 10.1016/j.iot.2025.101611.
L. P. Wanti and L. Puspitasari, “Optimization of Fuzzy Logic for Autism Spectrum Disorder Diagnosis,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 6, no. 1, 2022, doi: 10.29207/resti.v6i1.3599.
J. Ventelä et al., “Associations between autoimmune diseases and leukemia,” Cancer Epidemiology, vol. 86, p. 102411, 2023, doi: 10.1016/j.canep.2023.102411.
W. A. Massawe et al., “Laryngopharyngeal reflux disease prevalence,” World Journal of Otorhinolaryngology, vol. 7, no. 1, 2021, doi: 10.1016/j.wjorl.2020.04.009.
Downloads
Published
Issue
Section
License
Copyright in each article belongs to the author
- The author acknowledges that the RESTI Journal (System Engineering and Information Technology) is the first publisher to publish with a license Creative Commons Attribution 4.0 International License.
- Authors can enter writing separately, arrange the non-exclusive distribution of manuscripts that have been published in this journal into other versions (eg sent to the author's institutional repository, publication in a book, etc.), by acknowledging that the manuscript has been published for the first time in the RESTI (Rekayasa Sistem dan Teknologi Informasi) journal ;





