Tridoshai: Integrating Tridosha Theory With Machine Learning for Personalized Wellness

Authors

  • Gagandeep Singh

Keywords:

Ayurveda, Tridosha, Prakriti, Indian Knowledge Systems, Fastapi, React, Tensorflow/Keras, Scikit-Learn, Conversational AI, Ethical AI

Abstract

We introduce TriDoSHAI, an end-to-end framework that integrates
Ayurveda’s Tridosha theory (Vata, Pitta, Kapha) with modern machine
learning for culturally grounded, ethical wellness prediction. The
system combines a React/Tailwind conversational frontend with a
FastAPI WebSocket backend that orchestrates intent recognition and
a supervised feed-forward neural classifier. Using a curated dataset of
1,201 records across 20 encoded features, TriDoSHAI predicts one of
six Prakriti labels (including mixed constitutions) based on a structured
20-question interview. We describe the data schema, feature encodings,
model architectures, training protocol (80/20 split; validation split 0.2),
deployment pipeline, and a comprehensive evaluation suite including
accuracy, per-class metrics, normalized confusion matrices, radar plots,
and error decompositions. The classifier achieves 0.8833 accuracy with
a macro-F1 of 0.8835, demonstrating reliable performance across both
single- and mixed-dosha classes. Importantly, the system is explicitly
non-diagnostic, providing lifestyle and dietary suggestions under Ahimsaoriented safety constraints. This work advances the vision of India’s
National Education Policy by operationalizing Indian Knowledge Systems
in AI-enabled healthcare, while aligning with WHO recommendations on the integration of traditional medicine into modern health ecosystems. 

References

Ministry of Human Resource Development, Government

of India. National Education Policy 2020 (NEP 2020).

World Health Organization. WHO Traditional Medicine

Strategy 2014–2023. WHO Press, 2013.

R. K. Sharma and B. Dash (translators). Charaka

Samhita. Chowkhamba Sanskrit Series, reprint eds.,

–2000/2014.

K. K. Bhishagratna (translator). An English Translation of

the Sushruta Samhita. 1911; various modern reprints.

M. Abadi et al. TensorFlow: A system for large-scale

machine learning. In OSDI, 2016.

F. Chollet and others. Keras. https://keras.io, 2015.

F. Pedregosa et al. Scikit-learn: Machine learning

in Python. Journal of Machine Learning Research,

:2825–2830, 2011.

S. Bird, E. Loper, and E. Klein. Natural Language

Processing with Python. O’Reilly, 2009.

S. Ram´ırez. FastAPI documentation. https://fastapi.

tiangolo.com, 2019.

Meta Platforms, Inc. React: A JavaScript library for

building user interfaces. https://react. dev, accessed

Published

2026-12-03