Integrating Deep Learning Nodes into an Augmented Decision Tree for Automated Medical Coding
Abstract
1. Introduction
- Introduced an ADT framework that adaptively integrates rule-based and deep learning methods in a hybrid decision tree, improving classification accuracy and interpretability for ICD code prediction.
- Developed a two-phase keyword-based node screening method that automatically assigns nodes as rule-based classifiers or deep learning models, reducing manual intervention and enhancing scalability across ICD hierarchies.
- Utilized the PubMedBERT pretrained model at deep learning nodes and fine-tuned it to enable richer semantic representations and improve accuracy in diagnostically overlapping or ambiguous cases.
- Presented a case study demonstrating that this hybrid and adaptive ADT approach enables scalable and efficient ICD coding while advancing automation in healthcare information management.
2. Related Work
2.1. Rule-Based and Classical Machine Learning Approaches
2.2. Deep Learning-Based ICD Coding Models
2.3. Hierarchy-Aware Deep Learning Methods
2.4. Decomposed and Hybrid ICD Coding Frameworks
3. A Framework for Augmented Decision Tree
3.1. Generation of Fine-Grained Data Points
3.2. Augmented Decision Tree-Based Classification
| Algorithm 1: Automated ICD Coding Using an Augmented Decision Tree |
| Input: Doctor’s notes Ξ and ADT Γ Output: A list of predicted ICD codes ω 1. Split the free-text notes in Ξ into a list of sentences Σ 2. Initialize the FGDPs list σ as empty 3. Initialize the predicted ICD codes list ω as empty 4. for each diagnosis ρ in Ξ do 5. Extract semantically related sentences ξ from Σ 6. Create a FGDP using ρ and ξ, and add it to σ 7. for each FGDP d in σ do 8. Set current decision node η to the root node of Γ 9. while η is not a leaf node of Γ do 10. if the current node η is a rule-based node then 11. Compute feature scores using weighted n-grams 12. Set the next node η* based on term-matching 13. else if η is a deep learning node then 14. Encode d into a contextual representation using PubMedBERT 15. Pass encoded input to the deep learning model at η 16. Set the next node η* based on the model’s prediction 17. Set η = η* 18. Add the ICD code associated with η to ω 19. return ω |
3.3. Two-Phase Keyword-Based Node Screening Method
| Algorithm 2: Two-Phase Keyword-Based Node Screening |
| Input: A dataset D of FGDPs; ADT Γ; A set of CKSs K, where KC is a CKS for node C in Γ Output: Map of node classification type nodeType (rule-based or deep-learning) 1. Initialize nodeType for all nodes in Γ to rule-based 2. Set thresholds τ1 and τ2 for Phase 1 and Phase 2 (e.g., τ1 = 70%, τ2 = 95%) 3. for each node η in Γ // Phase 1: Keyword-based node screening 4. Set classifiableCount = 0 5. for each data point d in Dη do 6. for each child class C of node η do 7. Initialize count[C] = 0 8. for each keyword k in KC do 9. if k occurs in d then count[C]++ 10. Identify the child class Cmax with the highest count[C] 11. if Cmax has a strictly higher count than all other child classes then 12. classifiableCount++ // d is considered classifiable 13. else continue // d is not classifiable 14. Compute classifiableRate[η] as in Equation (1) 15. if classifiableRate[η] < τ1 then nodeType[η] = deep-learning 16. for each node η in Γ do // Phase 2: Validation of provisional rule-based nodes 17. if nodeType[η] = deep-learning then continue // skip deep-learning nodes 18. Run node η using the rule-based classification method described in Section 4 19. if accuracy < τ2 then nodeType[η] = deep-learning 20. return updated map of node classification type nodeType |
4. Designing Rule-Based Decision Nodes
4.1. Example Demonstrating Rule-Based Classification
4.2. Text Normalization and Class-Specific Term Weighting
| Algorithm 3: Text Normalization and Class-Specific Term Weighting |
| Input: A labeled dataset Φ with m ICD classes Output: Normalized term-weight array for n-grams in each ICD class 1. Initialize to 0 for each n-gram t and each ICD class C 2. for each FGDP d in Φ do 3. Standardize medical terminology using domain dictionaries 4. Remove negated expressions and their associated terms 5. Extract n-grams from d and filter out irrelevant ones 6. for each class C in the set of m ICD classes do 7. Identify the set of n-grams associated with class C 8. for each n-gram t in do 9. Compute as in Equation (2) 10. for each n-gram t appearing in multiple classes do 11. Determine as in Equation (3) 12. Retain and set for all ≠ 13. Normalize all as in Equation (4) 14. return the normalized term-weight array |
4.3. Classification in Rule-Based Decision Nodes
| Algorithm 4: Classification in a Rule-Based Decision Node |
| Input: FGDP d, term-weight array , and rule-based decision node η in an ADT with k subclasses Output: Predicted ICD code category 1. Initialize predicted ICD code category = null 2. for each subclass C of node η do 3. Initialize feature score FS(C|d) = 0 4. for each unigram u in d do 5. if > 0 then 6. Compute unigram frequency 7. for each bigram b in d do 8. if > 0 then 9. Compute bigram frequency 10. Compute feature score FS(C|d) using Equation (5) 11. Identify subclass with the highest feature score using Equation (6) 12. return as the predicted ICD category |
5. Constructing Deep Learning Nodes for Complex Decisions
5.1. Illustrative Case for Deep-Learning-Based Classification
“Patient presents with recurrent episodes of wheezing and shortness of breath, particularly at night. Symptoms improve noticeably after inhaler use.”
“Patient reports chronic cough and persistent wheezing, with long-term tobacco exposure. Spirometry shows consistently reduced airflow with no improvement after bronchodilator administration …”
5.2. Fine-Tuning PubMedBERT for ICD Classification
5.3. PubMedBERT-Based Classification for Complex Decisions
| Algorithm 5: Classification in a Deep Learning Node Using PubMedBERT |
| Input: FGDP d, fine-tuned PubMedBERT model Λ, node η with k subclasses Output: Predicted ICD code category η* 1. Preprocess all sentences in d by normalizing terms and removing negations 2. Concatenate the preprocessed sentences into a single sequence 3. Tokenize the sequence x into WordPiece tokens, applying padding and truncation 4. Generate embeddings E(x) using PubMedBERT’s embedding layer 5. Pass (x) through PubMedBERT’s Transformer encoder to obtain hidden states h 6. Extract the [CLS] token vector from the final encoder layer 7. Feed into a fully connected classification head 8. Apply softmax activation function to compute class probabilities P(C∣d) 9. Identify the predicted ICD code category η* as in Equation (7) 10. return η* |
6. Case Study
6.1. Construction of an ADT Based on the ICD-10 Hierarchy
6.2. Analysis of Decision Nodes in the Constructed ADT
6.3. Comparative Analysis with a Pure Decision Tree Approach
6.4. Comparative Analysis with a Full Deep Learning-Based Decision Tree Approach
7. Conclusions and Future Work
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| ADT | Augmented Decision Tree |
| API | Application Programming Interface |
| BERT | Bidirectional Encoder Representations from Transformers |
| CKS | Class-specific Keyword Set |
| CLI-RAG | Clinically Informed Retrieval-Augmented Generation |
| CNN | Convolutional Neural Network |
| COPD | Chronic Lower Respiratory Disease |
| EHR | Electronic Health Record |
| FDL | Full Deep Learning |
| FGDP | Fine-Grained Data Point |
| GPT | Generative Pre-Trained Transformer |
| ICD | International Classification of Diseases |
| ICU | Intensive Care Unit |
| LATA | Label Attention Transformer Architecture |
| LSTM | Long Short-Term Memory |
| MIMIC | Medical Information Mart for Intensive Care |
| ML | Machine Learning |
| NLP | Natural Language Processing |
| PDT | Pure Decision Tree |
| WHO | World Health Organization |
References
- Seinen, T.M.; Kors, J.A.; van Mulligen, E.M.; Rijnbeek, P.R. Using structured codes and free-text notes to measure information complementarity in electronic health records: Feasibility and validation study. J. Med. Internet Res. 2025, 27, e66910. [Google Scholar] [CrossRef] [PubMed]
- Pan, J.; Lee, S.; Cheligeer, C.; Martin, E.A.; Rizazi, K.; Quan, H.; Li, N. Enhancing large language models with human expertise for disease detection in electronic health records. In Proceedings of the 2024 IEEE International Conference on Digital Health (ICDH), Shenzhen, China, 2024; IEEE: New York, NY, USA, 2024; pp. 129–131. [Google Scholar] [CrossRef]
- WHO. International Statistical Classification of Diseases and Related Health Problems (ICD); World Health Organization: Geneva, Switzerland, 2025. Available online: https://www.who.int/standards/classifications/classification-of-diseases (accessed on 12 October 2025).
- Goldstein, I.; Arzumtsyan, A.; Uzuner, Ö. Three approaches to automatic assignment of ICD-9-CM codes to radiology reports. In Proceedings of the American Medical Informatics Association Annual Symposium, 2007, Chicago, IL, USA, 10–14 November 2007; American Medical Informatics Association (AMIA): Washington, DC, USA, 2007; pp. 279–283. [Google Scholar]
- Johnson, A.E.W.; Bulgarelli, L.; Shen, L.; Gayles, A.; Shammout, A.; Horng, S.; Pollard, T.J.; Hao, S.; Moody, B.; Gow, B.; et al. MIMIC-IV, a freely accessible electronic health record dataset. Sci. Data 2023, 10, 1. [Google Scholar] [CrossRef] [PubMed]
- Baumel, T.; Nassour-Kassis, J.; Cohen, R.; Elhadad, M. Multi-label classification of patient notes: Case study on ICD code assignment. In Proceedings of the AAAI Conference on Artificial Intelligence, New Orleans, LA, USA, 2–7 February 2018; AAAI Workshops: Singapore, 2018; pp. 409–416. [Google Scholar]
- Carberry, J.; Xu, H. A hierarchical fine-grained deep learning model for automated medical coding. In Proceedings of the 2024 IEEE 3rd International Conference on Computing and Machine Intelligence (ICMI), Mt Pleasant, MI, USA, 13–14 April 2024; IEEE: New York, NY, USA, 2024; pp. 1–6. [Google Scholar] [CrossRef]
- Bhat, S.; Xu, H.; Carberry, J. Automated medical coding using a hybrid decision tree with deep learning nodes. In Proceedings of the 2025 IEEE 11th International Conference on Big Data Computing Service and Machine Learning Applications (BigDataService), Tucson, AZ, USA, 21–24 July 2025; IEEE: New York, NY, USA, 2025; pp. 81–88. [Google Scholar] [CrossRef]
- Gu, Y.; Tinn, R.; Cheng, H.; Lucas, M.; Usuyama, N.; Liu, X.; Naumann, T.; Gao, J.; Poon, H. Domain-specific language model pretraining for biomedical natural language processing. ACM Trans. Comput. Healthc. 2022, 3, 1–23. [Google Scholar] [CrossRef]
- Farkas, R.; Szarvas, G. Automatic construction of rule-based ICD-9-CM coding systems. BMC Bioinform. 2008, 9, S10. [Google Scholar] [CrossRef] [PubMed]
- Medori, J.; Fairon, C. Machine learning and features selection for semi-automatic ICD-9-CM encoding. In Proceedings of the NAACL HLT 2010 Second Louhi Workshop on Text and Data Mining of Health Documents, Association for Computational Linguistics, Los Angeles, CA, USA, June 2010; Association for Computational Linguistics: Stroudsburg, PA, USA, 2010; pp. 84–89. [Google Scholar]
- Singto, C.; Wongwirat, O. An automated ICD-10 code assigning system using a classification method. In Proceedings of the 2021 13th Biomedical Engineering International Conference (BMEiCON), Ayutthaya, Thailand, 19–21 November 2021; IEEE: New York, NY, USA, 2021; pp. 1–5. [Google Scholar] [CrossRef]
- Albokae, N.; AlKhtib, B.; Omar, K. Hybrid method for ICD prediction using word embedding and natural language processing. In Proceedings of the 2023 24th International Arab Conference on Information Technology (ACIT), Ajman, United Arab Emirates, 6–8 December 2023; IEEE: New York, NY, USA, 2023; pp. 1–5. [Google Scholar] [CrossRef]
- Harerimana, G.; Kim, G.I.; Kim, J.W.; Jang, B. HSGA: A hybrid LSTM-CNN self-guided attention to predict the future diagnosis from discharge narratives. IEEE Access 2023, 11, 106334–106346. [Google Scholar] [CrossRef]
- Falis, M.; Pajak, M.; Lisowska, A.; Schrempf, P.; Deckers, L.; Mikhael, S.; Tsaftaris, S.; O’Neil, A. Ontological attention ensembles for capturing semantic concepts in ICD code prediction from clinical text. In Proceedings of the Tenth International Workshop on Health Text Mining and Information Analysis (LOUHI 2019), Association for Computational Linguistics, Hong Kong, November 2019; Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; pp. 168–177. [Google Scholar] [CrossRef]
- Merchant, A.M.; Shenoy, N.; Lanka, S.; Kamath, S. Ensemble neural models for ICD code prediction using unstructured and structured healthcare data. Heliyon 2024, 10, e36569. [Google Scholar] [CrossRef] [PubMed]
- Mayya, V.; Kamath, S.S.; Sugumaran, V. LATA-label attention transformer architectures for ICD-10 coding of unstructured clinical notes. In Proceedings of the 2021 IEEE Conference on Computational Intelligence in Bioinformatics and Computational Biology (CIBCB), Melbourne, Australia, 13–15 October 2021; IEEE: New York, NY, USA, 2021; pp. 1–7. [Google Scholar] [CrossRef]
- Liu, L.; Perez-Concha, O.; Nguyen, A.; Bennett, V.; Jorm, L. Hierarchical label-wise attention transformer model for explainable ICD coding. J. Biomed. Inform. 2022, 133, 104161. [Google Scholar] [CrossRef] [PubMed]
- Chen, Y.; Ren, J. Automatic ICD code assignment utilizing textual descriptions and hierarchical structure of ICD code. In Proceedings of the 2019 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), San Diego, CA, USA, 18–21 November 2019; IEEE: New York, NY, USA, 2019; pp. 348–353. [Google Scholar] [CrossRef]
- Wang, S.; Tang, D.; Zhang, L.; Li, H.; Han, D. HieNet: Bidirectional hierarchy framework for automated ICD coding. In Database Systems for Advanced Applications. DASFAA 2022. Lecture Notes in Computer Science; Bhattacharya, A., Li, J., Agrawal, D., Reddy, P.K., Mohania, M., Mondal, A., Goyal, V., Kiran, R.U., Eds.; Springer: Cham, Switzerland, 2022; Volume 13246, pp. 523–539. [Google Scholar] [CrossRef]
- Xi, S.; Shi, J.; Yan, J.; Lin, M.; Zhou, X.; Cheng, Y.; Ding, H.; Kang, C.C. Breaking barriers in ICD classification with a robust graph neural network for hierarchical coding. Sci. Rep. 2025, 15, 25676. [Google Scholar] [CrossRef] [PubMed]
- Perotte, A.; Pivovarov, R.; Natarajan, K.; Weiskopf, N.; Wood, F.; Elhadad, N. Diagnosis code assignment: Models and evaluation metrics. J. Am. Med. Inform. Assoc. 2014, 21, 231–237. [Google Scholar] [CrossRef] [PubMed]
- Wu, Y.; Zeng, M.; Fei, Z.; Yu, Y.; Wu, F.-X.; Li, M. KAICD: A knowledge attention-based deep learning framework for automatic ICD coding. Neurocomput 2022, 469, 376–383. [Google Scholar] [CrossRef]
- Sen, C.; Ye, B.; Aslam, J.; Tahmasebi, A. From extreme multi-label to multi-class: A hierarchical approach for automated ICD-10 coding using phrase-level attention. arXiv 2022. [Google Scholar] [CrossRef]
- Carberry, J.; Xu, H. Fine-grained ICD code assignment using ontology-based classification. In Proceedings of the 2022 IEEE 23rd International Conference on Information Reuse and Integration for Data Science (IRI), 9–11 August 2022; IEEE: New York, NY, USA, 2022; pp. 228–233. [Google Scholar] [CrossRef]
- Devlin, J.; Chang, M.; Lee, L.; Toutanova, K. BERT: Pre-training of deep bidirectional transformers for language understanding. arXiv 2019. [Google Scholar] [CrossRef]
- Zhuang, Y.; Zhang, J.; Li, X.; Liu, C.; Yu, Y.; Dong, W.; He, K. Autonomous international classification of diseases coding using pretrained language models and advanced prompt learning techniques: Evaluation of an automated analysis system using medical text. JMIR Med. Inform. 2025, 13, e63020. [Google Scholar] [CrossRef] [PubMed]
- Jovic, A.; Prcela, M.; Gamberger, D. Ontologies in medical knowledge representation. In Proceedings of the 29th International Conference on Information Technology Interfaces, Cavtat, Croatia, 2007; IEEE: New York, NY, USA, 2007; pp. 535–540. [Google Scholar] [CrossRef]
- Shamatrin, D. Adaptive thresholding for multi-label classification via global-local signal fusion. arXiv 2025. [Google Scholar] [CrossRef]
- Keerthana, G.; Gupta, M. CLI-RAG: A retrieval-augmented framework for clinically structured and context aware text generation with LLMs. arXiv 2025. [Google Scholar] [CrossRef]
- Chefer, H.; Gur, S.; Wolf, L. Transformer interpretability beyond attention visualization. In Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 2021; IEEE: New York, NY, USA, 2021; pp. 782–791. [Google Scholar] [CrossRef]





| Category | Core Methodology | ICD Hierarchy Utilization | Interpretability | Scalability | Computational Cost |
|---|---|---|---|---|---|
| Rule-Based & Classical ML [4,10,11,12] | Handcrafted rules, decision trees, Naïve Bayes, statistical features | No | High | Limited | Low |
| Deep Learning-Based Models [13,14,15,16] | CNN, LSTM, attention, contextual embeddings | No | Low | Low | High |
| Hierarchy-Aware Deep Learning [17,18,19,20,21] | Transformers, Tree-LSTM, hierarchical attention, graph models | Yes | Low | Low | Very High |
| Decomposed & Hybrid Frameworks [22,23,24] | Hierarchical classifiers, phrase-level attention, staged pipelines | Partial | Moderate | Limited | Moderate |
| Proposed ADT | Hybrid rule-based + PubMedBERT with automated node screening | Yes | High | High | Moderate |
| User Message (Prompt) | Related Terms (GPT-5 Output) |
|---|---|
| List diagnostic terms or related medical conditions for “Asthma.” | Asthma, bronchial asthma, allergic asthma, airway disease, chronic airway inflammation |
| List common symptoms and signs associated with “Asthma.” | Wheezing, shortness of breath, chest tightness, coughing, difficulty breathing |
| List common diagnostic or monitoring procedures associated with “Asthma.” | Spirometry, peak flow measurement, bronchodilator test, allergy testing |
| List medications or treatment options typically prescribed for “Asthma.” | Inhalers, bronchodilators, corticosteroids, leukotriene modifiers, nebulizers |
| Categories | Representative Keywords (GPT-5 Output) |
|---|---|
| Diagnoses | hypertension, high blood pressure, vasoconstriction, left ventricular hypertrophy, vascular resistance |
| Symptoms | headache, dizziness, blurred vision, ringing in ears, chest pressure, fatigue |
| Procedures | blood pressure screening, sphygmomanometry, clinical check-up, telemonitoring, triage assessment |
| Medications | candesartan, labetalol, amlodipine, lisinopril, hydrochlorothiazide |
| Decision Node | Classifiable Rate | Phase 1 Result |
|---|---|---|
| Root Decision Node | 83% | Rule-based |
| Circulatory Disease | 79% | Rule-based |
| Hypertensive Disease | 45% | Deep Learning |
| Hypertensive-chronic Kidney Disease | 81% | Rule-based |
| Chronic Ischemic Heart Disease | 45% | Deep Learning |
| Other Forms of Heart Diseases | 82% | Rule-based |
| Nonrheumatic Aortic Valve Disorder | 45% | Deep Learning |
| Respiratory Disease | 86% | Rule-based |
| Chronic Lower Respiratory Disease | 70% | Rule-based |
| Other COPD | 81% | Rule-based |
| Asthma | 82% | Rule-based |
| Mild Intermittent Asthma | 86% | Rule-based |
| Unspecified Asthma | 49% | Deep Learning |
| Other Diseases of Respiratory System | 83% | Rule-based |
| Respiratory Failure | 42% | Deep Learning |
| Acute Respiratory Failure | 81% | Rule-based |
| Decision Node | Rule-Based Accuracy | Phase 2 Result |
|---|---|---|
| Root Decision Node | 98% | Rule-based |
| Circulatory Disease | 98% | Rule-based |
| Hypertensive-chronic Kidney Disease | 96% | Rule-based |
| Other Forms of Heart Diseases | 97% | Rule-based |
| Respiratory Disease | 99% | Rule-based |
| Chronic Lower Respiratory Disease | 91% | Reassigned to Deep Learning |
| Other COPD | 95% | Rule-based |
| Asthma | 97% | Rule-based |
| Mild Intermittent Asthma | 95% | Rule-based |
| Other Diseases of Respiratory System | 96% | Rule-based |
| Acute Respiratory Failure | 95% | Rule-based |
| Decision Node | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|
| Rule-Based | 0.955 | 0.931 | 0.925 | 0.926 |
| Deep Learning | 0.967 | 0.958 | 0.978 | 0.968 |
| Decision Node | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|
| Rule-Based | 0.830 | 0.763 | 0.678 | 0.699 |
| Deep Learning | 0.975 | 0.972 | 0.924 | 0.946 |
| Decision Node | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|
| Rule-Based | 0.913 | 0.907 | 0.923 | 0.910 |
| Deep Learning | 0.950 | 0.948 | 0.950 | 0.949 |
| Approach | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|
| PDT | 0.812 | 0.794 | 0.810 | 0.779 |
| ADT | 0.951 | 0.939 | 0.947 | 0.935 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Bhat, S.; Bandi, V.S.; Xu, H.; Carberry, J. Integrating Deep Learning Nodes into an Augmented Decision Tree for Automated Medical Coding. Analytics 2026, 5, 11. https://doi.org/10.3390/analytics5010011
Bhat S, Bandi VS, Xu H, Carberry J. Integrating Deep Learning Nodes into an Augmented Decision Tree for Automated Medical Coding. Analytics. 2026; 5(1):11. https://doi.org/10.3390/analytics5010011
Chicago/Turabian StyleBhat, Spoorthi, Veda Sahaja Bandi, Haiping Xu, and Joshua Carberry. 2026. "Integrating Deep Learning Nodes into an Augmented Decision Tree for Automated Medical Coding" Analytics 5, no. 1: 11. https://doi.org/10.3390/analytics5010011
APA StyleBhat, S., Bandi, V. S., Xu, H., & Carberry, J. (2026). Integrating Deep Learning Nodes into an Augmented Decision Tree for Automated Medical Coding. Analytics, 5(1), 11. https://doi.org/10.3390/analytics5010011

