An intelligent veterinary diagnostic system that detects diseases in Dogs, Cats, and Cattle — and plans the optimal treatment path — using hybrid AI reasoning.
/api/diagnose."39.2°C" → 39.2 float. Handles inconsistent formatting across records.When complete patient data is available, the Decision Tree runs — splitting on the most informative feature at each node using the Gini impurity criterion.
predict_proba() — the probability mass at the predicted leaf node.
When input is partial or incomplete, Naive Bayes takes over — computing posterior probabilities over all disease classes using only the features that are available.
| Disease | Probability | Score |
|---|---|---|
| Bovine Resp. Disease | 78.2% | |
| Kennel Cough | 62.1% | |
| Canine Distemper | 48.5% | |
| URI (Cat) | 31.3% | |
| Bovine TB | 18.0% |
After diagnosis, A* search navigates a disease-specific treatment graph — finding the lowest-cost path from initial triage to full recovery discharge.
The system exposes a clean REST interface. Any frontend — web, mobile, or embedded — can query it. The model trains automatically on startup from the CSV.