Ijraset Journal For Research in Applied Science and Engineering Technology
Authors: Dr. Bhramara Bar Biswal , Kanhu Charan Sahoo
DOI Link: https://doi.org/10.22214/ijraset.2026.79452
Certificate: View Certificate
Piles (hemorrhoids) is a common anorectal condition that often remains undiagnosed in its early stages due to social stigma and delayed medical consultation. Early prediction using data-driven techniques can significantly support timely diagnosis and improve patient outcomes. This study proposes a machine learning-based framework for the prediction of piles disease using clinical and lifestyle-related features. The methodology involves data preprocessing, feature selection, and the implementation of multiple classification algorithms, including Logistic Regression, Support Vector Machine, and Random Forest. To further enhance predictive performance, a hybrid ensemble model based on stacking is developed. The models are evaluated using standard performance metrics such as accuracy, precision, recall, and F1-score. Experimental results indicate that the proposed ensemble model achieves the best performance, with an accuracy of 92.1%, outperforming all individual classifiers. Additionally, the model demonstrates improved recall and balanced F1-score, making it suitable for medical diagnosis applications. The results highlight the effectiveness of machine learning techniques as a reliable decision-support system for early detection of piles disease.
The document focuses on the early prediction of piles (hemorrhoids) disease using machine learning techniques. It highlights that piles is a common but underdiagnosed condition due to stigma, lack of awareness, and delayed medical consultation. Lifestyle, dietary habits, and medical conditions are key risk factors, making early detection important for better healthcare outcomes.
Recent advancements in artificial intelligence and machine learning have enabled predictive models for healthcare, but existing studies are limited by narrow feature sets, lack of generalization, and insufficient integration of clinical and lifestyle data. To address this gap, the study proposes a stacking-based ensemble learning framework that combines Logistic Regression, Support Vector Machine (SVM), and Random Forest.
The system includes key stages such as:
The proposed model improves prediction accuracy by leveraging multiple algorithms together.
Experimental results show that the ensemble model performs best, achieving:
This outperforms individual models like Logistic Regression, Random Forest, and SVM.
Piles (hemorrhoids) is a prevalent anorectal disorder affecting a significant portion of the global population, often associated with pain, bleeding, and reduced quality of life. Despite its widespread occurrence, early diagnosis remains a challenge due to social stigma, lack of awareness, and delayed clinical consultation. Recent epidemiological and clinical studies highlight that factors such as lifestyle habits, dietary patterns, and comorbid conditions significantly contribute to the development and progression of hemorrhoids [1], [3], [7]. The growing burden of gastrointestinal disorders and their impact on healthcare systems emphasize the need for efficient and early prediction mechanisms. In this context, intelligent data-driven approaches can play a crucial role in supporting timely diagnosis and reducing complications. With the advancement of artificial intelligence, machine learning techniques have been increasingly applied in healthcare for predictive analytics and decision support. Several studies have explored the use of machine learning models to identify risk factors and predict disease outcomes related to hemorrhoids and associated conditions [2], [4], [6]. Techniques such as classification, clustering, and multi-criteria decision-making have shown promising results in analyzing clinical and lifestyle data [5], [10]. Additionally, ensemble learning approaches have demonstrated improved performance by combining multiple base models to enhance prediction accuracy and robustness. However, existing methods often focus on limited feature sets or specific clinical scenarios, which restricts their generalization capability. Despite these advancements, there remains a significant research gap in developing a comprehensive and generalized prediction framework for piles disease. Many existing studies either emphasize clinical analysis without leveraging advanced machine learning techniques or apply machine learning models without adequately addressing issues such as feature selection, data imbalance, and model optimization. Furthermore, limited attention has been given to integrating diverse data sources, including lifestyle and demographic factors, which are critical for accurate prediction. These limitations reduce the reliability and applicability of current systems in real-world healthcare settings. To address these challenges, this study proposes a machine learning-based framework for early prediction of piles disease by integrating data preprocessing, feature engineering, and ensemble learning techniques. The proposed system utilizes multiple base classifiers, including Logistic Regression, Support Vector Machine, and Random Forest, and combines them using a stacking-based ensemble model to improve predictive performance. The key contributions of this work include: (i) development of a robust preprocessing and feature selection pipeline, (ii) implementation of a hybrid ensemble model for improved accuracy and recall, and (iii) comprehensive evaluation using standard performance metrics. The proposed approach aims to provide an effective decision-support tool for early detection and management of piles disease. II. RELATED WORK The application of machine learning and data-driven techniques in healthcare has significantly advanced disease prediction, risk assessment, and clinical decision support systems. In the context of hemorrhoidal disease, several studies have explored the identification of risk factors and predictive modeling approaches to improve diagnosis and treatment strategies. Wu and Glangkarn [1] developed a predictive model focusing on genetic and lifestyle-related risk factors associated with hemorrhoids, highlighting the importance of integrating patient-specific attributes for accurate prediction. Similarly, Fathallah et al. [7] conducted an epidemiological analysis to identify key predictive factors influencing surgical management of hemorrhoidal disease, emphasizing the role of clinical and demographic variables in disease progression. Furthermore, Wang et al. [3] investigated the relationship between inflammatory bowel disease and hemorrhoids using Mendelian randomization, demonstrating the significance of underlying medical conditions in increasing disease risk. Recent research has increasingly incorporated artificial intelligence and machine learning techniques to enhance predictive performance. Ayo-Oluwaseyi et al. [2] utilized AI-based predictive analytics to identify risk factors and forecast the disease burden of hemorrhoids across diverse populations, showing that machine learning models can effectively capture complex patterns in large datasets. Zhang et al. [4] proposed a clinical prediction model for hemorrhoid recurrence after surgical procedures, which demonstrated reliable performance in postoperative risk assessment. In addition, Ghosh et al. [6] applied machine learning techniques to analyze nutritional and lifestyle predictors of rectal bleeding, a condition closely associated with hemorrhoids, illustrating the potential of integrating lifestyle data for early detection. Beyond disease-specific studies, several works have explored generalized machine learning approaches applicable to gastrointestinal and healthcare domains. Yavuz [10] employed classification and clustering techniques to analyze gastrointestinal tract disorders, demonstrating the effectiveness of data mining methods in extracting meaningful patterns from medical datasets. Tabbakha et al. [5] introduced a multi-criteria decision-making framework combined with machine learning to support treatment selection, highlighting the importance of hybrid approaches in improving clinical outcomes. Moreover, Ghosh et al. [8] further extended predictive modeling by integrating lifestyle factors with machine learning techniques, reinforcing the need for comprehensive feature inclusion in healthcare analytics. Although these studies demonstrate the growing potential of machine learning in disease prediction, several limitations persist. Many existing models focus primarily on either clinical or lifestyle factors, lacking a unified framework that combines both aspects effectively. Additionally, some approaches rely on single classifiers, which may lead to reduced generalization performance and increased susceptibility to bias. While certain studies have explored predictive modeling, limited attention has been given to advanced ensemble techniques that can leverage the strengths of multiple models. Furthermore, issues such as data preprocessing, feature selection, and handling of imbalanced datasets are often not adequately addressed, which can significantly impact model reliability. To overcome these limitations, recent trends in machine learning research emphasize the use of ensemble learning techniques, such as stacking and voting, to improve predictive accuracy and robustness. These approaches combine multiple base learners to capture diverse data patterns and reduce model variance. However, their application in hemorrhoids disease prediction remains relatively unexplored. Therefore, there is a clear need for a comprehensive framework that integrates efficient preprocessing, feature engineering, and ensemble modeling to achieve reliable and accurate prediction outcomes. The proposed work addresses these gaps by introducing a hybrid ensemble-based machine learning model designed specifically for early prediction of piles disease, leveraging both clinical and lifestyle features for enhanced performance. III. MATERIALS AND METHODS The proposed system presents a machine learning-based framework for the early prediction of piles disease by integrating data preprocessing, feature engineering, and ensemble learning techniques. Initially, raw clinical and lifestyle-related data are collected and undergo preprocessing steps such as handling missing values, normalization, and encoding of categorical features to ensure data consistency. Relevant features are then selected to improve model efficiency and reduce redundancy. The processed data is fed into multiple base classifiers, including Logistic Regression, Support Vector Machine, and Random Forest, to capture diverse patterns in the dataset. To enhance predictive performance, a stacking-based ensemble model is employed, where the outputs of base models are combined using a meta-classifier. This approach improves generalization and reduces model bias. The system is evaluated using standard performance metrics, demonstrating its effectiveness as a reliable and accurate decision-support tool for early-stage piles disease prediction. Fig. 1. System Architecture Fig. 1 illustrates the architecture of the proposed piles disease prediction system, which follows a structured machine learning pipeline. Initially, clinical and lifestyle data are collected and preprocessed through missing value handling and normalization. Relevant features are then selected to improve model performance. The processed data is fed into multiple base classifiers, including Logistic Regression, Support Vector Machine, and Random Forest. Finally, a stacking-based ensemble model combines their outputs to generate an accurate piles risk prediction, followed by performance evaluation. A) Dataset Collection The dataset used in this study consists of clinical, demographic, and lifestyle-related attributes relevant to piles disease prediction. Since publicly available standardized datasets for hemorrhoids are limited, a synthetic yet realistic dataset was constructed based on factors reported in existing medical literature, including age, diet habits, physical activity, bowel patterns, and medical history. The dataset was carefully designed to reflect real-world conditions, ensuring diversity and variability in features to support effective training and evaluation of machine learning models. B) Pre-Processing The collected dataset undergoes several preprocessing steps to ensure data quality and consistency before model training. Missing values are handled using appropriate imputation techniques, while categorical variables are transformed into numerical format using encoding methods. Feature scaling is applied to normalize the data and improve model performance. Outliers are identified and treated to reduce noise in the dataset. Additionally, redundant and irrelevant features are removed through feature selection techniques, ensuring that only significant attributes contribute to the predictive modeling process. C) Algorithm Logistic Regression: Logistic Regression is used as a baseline model to capture linear relationships between input features and disease occurrence. It provides interpretable results and helps in understanding the influence of individual clinical and lifestyle factors on piles prediction. Support Vector Machine (SVM): Support Vector Machine is applied to handle complex, non-linear relationships in the dataset by constructing optimal decision boundaries. It is effective in distinguishing between classes with high dimensional feature spaces and contributes to improved classification robustness. Random Forest: Random Forest is utilized to model non-linear patterns and interactions among features through multiple decision trees. Its ensemble nature reduces overfitting and enhances prediction stability, making it suitable for handling diverse clinical and lifestyle attributes in the dataset. Proposed Ensemble Model (Stacking): The proposed stacking ensemble combines predictions from Logistic Regression, SVM, and Random Forest using a meta-classifier. This approach leverages the strengths of individual models, resulting in improved overall accuracy, recall, and balanced performance for disease prediction. IV. EXPERIMENTAL RESULTS Accuracy: Accuracy measures how effectively the model classifies both piles and non-piles cases by considering correct predictions across all instances in the dataset. Precision: Precision indicates how many predicted piles cases are actually correct, reflecting the model’s ability to minimize false positive predictions in disease detection. Recall: Recall evaluates the model’s ability to correctly identify actual piles cases, ensuring that most patients with the disease are accurately detected. F1-Score: F1-score provides a balanced measure of precision and recall, indicating overall model effectiveness in correctly identifying piles cases while reducing both false positives and false negatives. Table.1 Performance Evaluation Model Accuracy Precision Recall F1-Score Logistic Regression 82.4 80.2 78.9 79.5 Random Forest 88.7 87.5 85.9 86.7 Support Vector Machine 86.3 84.8 83.6 84.2 Proposed Ensemble Model 92.1 91.3 90.5 90.9 Table 1 presents the performance comparison of models, where the proposed ensemble achieves the highest accuracy and balanced metrics, outperforming Logistic Regression, Random Forest, and SVM in piles disease prediction. Fig.2 Comparison Graph Fig. 2 illustrates the comparative performance of all models, highlighting that the proposed ensemble consistently achieves superior accuracy, precision, recall, and F1-score compared to Logistic Regression, Random Forest, and SVM.
[1] Wu, H., & Glangkarn, S. (2024). The prediction model of genetic and risk factors to hemorrhoids (Doctoral dissertation, Mahasarakham University). [2] Wang, H., Wang, L., Zeng, X., Zhang, S., Huang, Y., & Zhang, Q. (2024). Inflammatory bowel disease and risk for hemorrhoids: a Mendelian randomization analysis. Scientific Reports, 14(1), 16677. [3] Fathallah, N., Alam, A., Rentien, A. L., La Greca, G., Co, J., Pommaret, E., ... & de Parades, V. (2024). Hemorrhoidal disease: Epidemiological study and analysis of predictive factors for surgical management. Journal of Visceral Surgery, 161(3), 161-166. [4] Ge, X., Tang, W., & Ni, J. (2025). Hemorrhoids and cardiovascular disease: A bidirectional Mendelian randomization study. Open Medicine, 20(1), 20251256. [5] Ghosh, J., Taneja, J., & Kant, R. (2024). Predictive Modeling for Rectal Bleeding Risk in Functional Constipation: Integrating Lifestyle Factors and Machine Learning for Targeted Prevention. [6] Ayo-Oluwaseyi, T. G., Afolalu, S. A., Alade, A. M. I., & Akpor, O. A. (2025). Predictive Analytics Using AI for Identifying Risk Factors and Projecting Disease Burden of Haemorrhoids in Diverse Populations. NIPES JSTR SPECIAL ISSUE, 7(2), 3283-3289. [7] Zhang, Y., Sun, S., & Han, Z. (2023). Establishment and validation of clinical prediction model for hemorrhoid recurrence after procedure for prolapse and hemorrhoids. Medicine, 102(26), e34062. [8] Tabbakha, A., Ozsahin, D. U., Uzun, B., & Ozsahin, I. (2021). Selection of Hemorrhoid Treatment Techniques using a Multi-Criteria Decision-Making Technique. In Applied Machine Learning and Multi-Criteria Decision-Making in Healthcare (pp. 245-271). Bentham Science Publishers. [9] Ghosh, J., Taneja, J., & Kant, R. (2025). Nutritional and lifestyle predictors of rectal bleeding in functional constipation: A machine learning approach. International Journal of Medical Informatics, 201, 105963. [10] Yavuz, Ö. (2022). A Classification and Clustering Approach Using Data Mining Techniques in Analysing Gastrointestinal Tract. International Scientific and Vocational Studies Journal, 5(2), 254-265.
Copyright © 2026 Dr. Bhramara Bar Biswal , Kanhu Charan Sahoo. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Paper Id : IJRASET79452
Publish Date : 2026-04-04
ISSN : 2321-9653
Publisher Name : IJRASET
DOI Link : Click Here
Submit Paper Online
