Machine Learning and the Limits of Classical Ayurvedic Food Data: Evidence from Caraka Samhita for Model Evaluation and Diet Assessment

Authors

  • Ankit Raj Research Scholar, School of Sanskrit and Indic Studies, Jawaharlal Nehru University, New Delhi 110067, India. Author
  • Ranjana M Research Scholar, Centre for Studies in Science Policy, School of Social Sciences, Jawaharlal Nehru University, New Delhi, India Author

DOI:

https://doi.org/10.31305/rrijm.2026.v11.n10.011

Keywords:

Caraka Samhita, Rasapanchaka, Machine learning, Data leakage, Prakriti

Abstract

Machine-learning studies increasingly draw on classical Ayurvedic texts, but how data derived from such texts should be tested has received little attention. We coded 368 food entries from Caraka Samhita Sutrasthana 27 into a knowledge base of Rasapanchaka attributes and Dosha effects and compared a classifier that uses food names alone with classifiers that use Rasapanchaka attributes to predict the Dosha effects the text records. We then applied the knowledge base to twelve months of mess menus from four hostels of Jawaharlal Nehru University (336 day-menus), assessed the Prakriti of 197 resident students with a standardised scale, and recorded clinically assessed Vikriti in eight residents of single-Dosha constitution. Two sources of inflated accuracy were found. A classifier that used only food names scored 100% on its training data but no better than the majority class on unseen foods (Vata 51.1%, equal to the majority share). Because Caraka often describes several foods in one passage, 81 of the 156 entries used for attribute models were exact copies of another entry, and allowing copies to fall in different cross-validation folds raised macro-F1 to 0.58 to 0.72. With copies kept together, Rasapanchaka attributes predicted the text’s Dosha effects moderately for Vata (macro-F1 0.49 to 0.50; AUC 0.71), no better than the classical taste rule for Pitta (0.40 to 0.44 against 0.42) and at chance for Kapha (AUC 0.51 to 0.54). Scored through the knowledge base, all four hostel diets came out as net Dosha-decreasing, mainly because 72.0% of Caraka’s directional statements describe a Dosha being lowered and most foods carry no statement on Pitta; recoding four staple grains by their recorded taste reversed the mean Kapha score of three hostels from -18% to +47%. Of the 197 residents, 177 (89.8%) were of dual-Dosha (Dvandvaja) constitution and 20 (10.2%) of single-Dosha (Ekadoshaja) constitution, and Prakriti did not differ by sex. Vata appeared in the Vikriti of six of the eight residents examined, although every hostel diet was predicted to lower Vata. Models built on classical food texts should be tested on held-out textual descriptions rather than single entries, and diet scores derived from such texts describe what the text chooses to mention until they are validated against measured outcomes.

References

[1] Acharya, Y. T. (Ed.). (2014). Charaka Samhita of Agnivesha with the Ayurveda Dipika commentary of Chakrapanidatta (7th ed.). Chaukhambha Surbharati Prakashan.

[2] Adolph, T. E., & Tilg, H. (2024). Western diets and chronic diseases. Nature Medicine, 30(8), 2133-2147. https://doi.org/10.1038/s41591-024-03165-6 DOI: https://doi.org/10.1038/s41591-024-03165-6

[3] Agnivesha. (2014). Charaka Samhita: Text with English translation (P. V. Sharma, Ed. & Trans.; Vols. 1-2). Chaukhambha Orientalia.

[4] Banerjee, S., Debnath, P., Debnath, P. K., et al. (2015). Ayurnutrigenomics: Ayurveda-inspired personalized nutrition from inception to evidence. Journal of Traditional and Complementary Medicine, 5(4), 228-233. DOI: https://doi.org/10.1016/j.jtcme.2014.12.009

[5] Bhushan, P., Kalpana, J., & Arvind, C. (2005). Classification of human population based on HLA gene polymorphism and the concept of Prakriti in Ayurveda. Journal of Alternative and Complementary Medicine, 11(2), 349-353. https://doi.org/10.1089/acm.2005.11.349 DOI: https://doi.org/10.1089/acm.2005.11.349

[6] Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5-32. https://doi.org/10.1023/A:1010933404324 DOI: https://doi.org/10.1023/A:1010933404324

[7] Chaudhari, D., et al. (2019). Understanding the association between the human gut, oral and skin microbiome and the Ayurvedic concept of prakriti. Journal of Biosciences, 44(5). DOI: https://doi.org/10.1007/s12038-019-9939-6

[8] Chauhan, N. S., Pandey, R., Mondal, A. K., et al. (2018). Western Indian rural gut microbial diversity in extreme Prakriti endo-phenotypes reveals signature microbes. Frontiers in Microbiology, 9, 118. https://doi.org/10.3389/fmicb.2018.00118 DOI: https://doi.org/10.3389/fmicb.2018.00118

[9] Cohen, J. (1960). A coefficient of agreement for nominal scales. Educational and Psychological Measurement, 20(1), 37-46. https://doi.org/10.1177/001316446002000104 DOI: https://doi.org/10.1177/001316446002000104

[10] Cortes, C., & Vapnik, V. (1995). Support-vector networks. Machine Learning, 20(3), 273-297. https://doi.org/10.1007/BF00994018 DOI: https://doi.org/10.1023/A:1022627411411

[11] David, L. A., Maurice, C. F., Carmody, R. N., et al. (2014). Diet rapidly and reproducibly alters the human gut microbiome. Nature, 505(7484), 559-563. https://doi.org/10.1038/nature12820 DOI: https://doi.org/10.1038/nature12820

[12] Dey, S., & Pahwa, P. (2014). Prakriti and its associations with metabolism, chronic diseases, and genotypes: Possibilities of new born screening and a lifetime of personalized prevention. Journal of Ayurveda and Integrative Medicine, 5(1), 15-24. https://doi.org/10.4103/0975-9476.128848 DOI: https://doi.org/10.4103/0975-9476.128848

[13] Govindaraj, P., Nizamuddin, S., Sharath, A., et al. (2015). Genome-wide analysis correlates Ayurveda Prakriti. Scientific Reports, 5, 15786. https://doi.org/10.1038/srep15786 DOI: https://doi.org/10.1038/srep15786

[14] Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), 100804. https://doi.org/10.1016/j.patter.2023.100804 DOI: https://doi.org/10.1016/j.patter.2023.100804

[15] Kurande, V., Waagepetersen, R., Toft, E., & Prasad, R. (2013). Interrater reliability of diagnostic methods in traditional Indian Ayurvedic medicine. Evidence-Based Complementary and Alternative Medicine, 2013, 658275. https://doi.org/10.1155/2013/658275 DOI: https://doi.org/10.1155/2013/658275

[16] Mobeen, F., Sharma, V., & Prakash, T. (2019). Functional signature analysis of extreme Prakriti endo-phenotypes in gut microbiome of western Indian rural population. Bioinformation, 15(7), 490-505. https://doi.org/10.6026/97320630015490 DOI: https://doi.org/10.6026/97320630015490

[17] Pedregosa, F., Varoquaux, G., Gramfort, A., et al. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825-2830.

[18] Prasher, B., Negi, S., Aggarwal, S., et al. (2008). Whole genome expression and biochemical correlates of extreme constitutional types defined in Ayurveda. Journal of Translational Medicine, 6, 48. https://doi.org/10.1186/1479-5876-6-48 DOI: https://doi.org/10.1186/1479-5876-6-48

[19] Rotti, H., Raval, R., Anchan, S., et al. (2014). Determinants of Prakriti, the human constitution types of Indian traditional medicine and its correlation with contemporary science. Journal of Ayurveda and Integrative Medicine, 5(3), 167-175. https://doi.org/10.4103/0975-9476.140478 DOI: https://doi.org/10.4103/0975-9476.140478

[20] Sabnis, M. (2012). Viruddha Ahara: A critical view. AYU, 33(3), 332-336. https://doi.org/10.4103/0974-8520.108817 DOI: https://doi.org/10.4103/0974-8520.108817

[21] Singh, R., et al. (2022). Development of a standardized assessment scale for assessing Prakriti (psychosomatic constitution). AYU, 43(4), 109-129. https://doi.org/10.4103/ayu.ayu_239_22 DOI: https://doi.org/10.4103/ayu.ayu_239_22

[22] Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427-437. https://doi.org/10.1016/j.ipm.2009.03.002 DOI: https://doi.org/10.1016/j.ipm.2009.03.002

[23] Tiwari, P., Kutum, R., Sethi, T., et al. (2017). Recapitulation of Ayurveda constitution types by machine learning of phenotypic traits. PLoS ONE, 12(10), e0185380. https://doi.org/10.1371/journal.pone.0185380 DOI: https://doi.org/10.1371/journal.pone.0185380

[24] Varma, S., & Simon, R. (2006). Bias in error estimation when using cross-validation for model selection. BMC Bioinformatics, 7, 91. https://doi.org/10.1186/1471-2105-7-91 DOI: https://doi.org/10.1186/1471-2105-7-91

[25] Wu, G. D., Chen, J., Hoffmann, C., et al. (2011). Linking long-term dietary patterns with gut microbial enterotypes. Science, 334(6052), 105-108. https://doi.org/10.1126/science.1208344 DOI: https://doi.org/10.1126/science.1208344

[26] Zeevi, D., Korem, T., Zmora, N., et al. (2015). Personalized nutrition by prediction of glycemic responses. Cell, 163(5), 1079-1094. https://doi.org/10.1016/j.cell.2015.11.001 DOI: https://doi.org/10.1016/j.cell.2015.11.001

Downloads

Published

2026-10-15

How to Cite

Raj, A., & Ranjana, M. (2026). Machine Learning and the Limits of Classical Ayurvedic Food Data: Evidence from Caraka Samhita for Model Evaluation and Diet Assessment . RESEARCH REVIEW International Journal of Multidisciplinary, 11(10), 101-116. https://doi.org/10.31305/rrijm.2026.v11.n10.011