Problem Statements Analysis

From what to build to how to build it — our platform helps you understand, plan, and solve SIH 2026 problem statements with complete insights into requirements, solution approaches, technology stacks, architecture, AI/ML, and implementation roadmaps.

Scroll down
01 / SIH 2026

PS: SIH26109

Al-Based Predictive Modelling for Early Forecasting of Bovine Mastitis in lndian Dairy Farms

Description: • Background Bovine mastitis is one of the most prevalent and economically significant diseases affecting dairy cattle and buffaloes in lndia. The disease adversely impacts milk production, milk quality,animal health, and farm profitability, while also increasing treatment costs and antimicrobial usage. Despite its substantial economic and public health implications, mastitis is often detected only after clinical signs become apparent, limiting opportunities for timely intervention and prevention.The increasing adoption of digital dairy technologies, including automated milking systems,livestock monitoring devices, milk quality sensors, farm management softlvare, and environmental monitoring Systems, presents an opportunity to leverage Artificial lntelligence(Al), Machine Learning (ML), and Internet of Things (loT) technologies for early disease prediction and risk-based herd management. • Problem Statement Develop an integrated Al-enabled predictive forecasting system capable of identifying and predicting the risk of bovine mastitis at both individual animal and herd levels before the onset of clinical disease.The proposed solution should utilize real-time and historical farm data from multiple sources to generate early warning alerts, risk scores, and actionable recommendations for dairy farmers, veterinarians, dairy cooperatives, and animal health authorities. The system should support continuous monitoring, disease forecasting, and evidence-based decision-making to reduce disease incidence and associated economic losses. • Expected Solution The solution should be capable of: 1. Predicting mastitis risk at least 7-14 days before the appearance of clinical signs. 2. Generating animal-wise and herd-level risk assessments. 3. lntegrating data from sensors, farm management systems, laboratory records, and manual inputs. 4. Providing real-time alerts and notifications to farmers and veterinarians. 5. Continuously improving prediction accuracy through Al/ML-based learning models. 6. Supporting data-driven decision-making through user-friendly dashboards and visualization tools. 7. Recommending preventive and corrective interventions based on identified risk factors. 8. Supporting multilingual and mobile-enabled deployment for field-level adoption. • Data Parameters for Analysis The system should be capable of analysing and conelating multiple risk factors associated with mastitis occurrence, including: • Animal health and treatment records and herd strength • For individual level breed, age lactation number, disease history and vaccination status • Milk yield and milk quality parameters • Somatic Cell Count (SCC) and related indicators • Body temperature, aclivity levels, and rumination behaviour • Environmental, hygiene of the farm and climatic conditions • Feeding and nutritional practices • Housing conditions and farm management practices • Milking procedures and operational schedules • Previous disease history and co-morbidities • Worker hygiene and health-related risk factors Based on the analysis, the system may classify animals into risk categories such as: • No Risk • Low Risk • Moderate Risk • High Risk • Solution Components • Hardware Component- The hardware component may include: • loT-enabled sensors for monitoring milk conductivity, milk temperature, pH, milk yield,and other relevant indicators. • Wearable or collar-based devices for monitoring body temperature, udder surface temperature, activity, rumination, feeding behaviour, and physiological parameters. • Wireless communication through Bluetooth, W-Fi, GSM, NB-loT, LoRa, or equivalent technologies. • Battery-operated or solar-powered deployment suitable for field conditions. • GPS-enabled geo-tagging of animal and farm data. • Rugged, low-cost, and farmer-friendly designs suitable for lndian dairy production systems. • Software Component The software platform should include: • Al and machine learning models for mastitis risk prediction and forecasting. • Mobile applications for farmers, veterinarians, and field personnel. • Cloud-based data storage, integration, and analytics • Algorithms to predict subclinical mastitis with SCC. • Real-time herd health monitoring dashboards. • Early warning and notification systems through mobile alerts, SMS, or other communication channels. • Decision-support tools providing recommendations on animal health management, milking hygiene, nutrition, biosecurity, and veterinary interventions. • GIS-based visualization of disease trends, hotspots, and risk clusters. • Expected Deliverables • Functional prototype of the integrated mastitis forecasting system. • Al-based predictive analytics engine with demonstrated forecasting capability. • Mobile application and user interface for field deployment. • Cloud-based dashboard and data management platform. • Early warning and notification module. • Hardware prototype incorporating sensor-based data acquisition. • Demonstration and validation of predictive performance under field conditions. • Expected Outcomes and lmpact The successful solution is expected to: • Enable early detection and prevention of bovine mastitis both at individual level and herd level. • Reduce milk production losses and treatment costs. • lmprove milk quality, safety, and marketability. • Reduce indiscriminate antimicrobial usage and support antimicrobial resistance (AMR) mitigation efforts. • lmprove animal welfare, productivity, and longevity. • Promote precision livestock farming and digital dairy management. • Enhance the profitability and resilience of dairy farmers. • Contribute to the development of a data-driven livestock health surveillance ecosystem in lndia. • lnnovation Challenge The solution should be affordable, scalable, interoperable, and easy to deploy across diverse dairy production systems, including smallholder farms, dairy cooperatives, organized farms,and commercial dairy enterprises. Particular emphasis should be placed on low-cost implementation, ease of use, multilingual accessibility, data security, and predictive accuracy under lndian field conditions.
Organization: Ministry of Fisheries, Animal Husbandry & Dairying
Department: Department of Animal Husbandry & Dairying
Category: Hardware
Theme: Agriculture, FoodTech & Rural Developmenttd>
Youtube Link: Not provided
Dataset Link: Not provided
Contact info: Not provided

1. Executive Snapshot

Bovine mastitis causes annual economic losses exceeding ₹6,000–14,000 crore in India due to reduced milk yield, milk discarding, veterinary costs, and premature culling [KNOWN]. The traditional paradigm relies on post-symptomatic reactive treatment, which exacerbates antimicrobial resistance (AMR) and leaves dairy farmers with irreparable losses [PS]. This proposed system solves the early forecasting challenge by introducing an integrated hardware-software IoT and AI platform that captures multi-parameter physical, biological, and environmental signals to forecast individual animal and herd-level mastitis risk 7–14 days before clinical manifestation [PS]. Combining an affordable multi-sensor milk and physiological monitoring node with an offline-first mobile app and cloud-based predictive engine, the system delivers actionable preventive interventions, multilingual notifications, and GIS disease surveillance for smallholders, cooperatives, and veterinarians [PS].

Field Detail
Problem Statement Number SIH26109 [PS]
Title Al-Based Predictive Modelling for Early Forecasting of Bovine Mastitis in lndian Dairy Farms [PS]
Organization Ministry of Fisheries, Animal Husbandry & Dairying [PS]
Department Department of Animal Husbandry & Dairying (DAHD) [PS]
Category Hardware [PS]
Theme Agriculture, FoodTech & Rural Development [PS]
Submission Deadline 30 September 2026 [PS]
Ideas Counter 0/500 [PS]

Fundamental System Objective: To provide an affordable, end-to-end IoT, AI, and GIS platform capable of predicting bovine subclinical mastitis 7 to 14 days before clinical symptoms appear, driving preventive interventions, reducing antibiotic usage, and integrating with India's national livestock digital ecosystem [PS] [INFERENCE].

2. Problem Deconstruction

Below is the atomic deconstruction of explicit requirements extracted directly from the SIH JSON specification:

  1. Early Forecasting Window: Predict mastitis risk at least 7–14 days prior to the appearance of visible clinical signs [PS].

    • Interpretation: System cannot rely solely on standard threshold alarms (which fire 1–3 days before symptoms); it requires temporal trend analysis of subtle subclinical physiological and physical anomalies [INFERENCE].
    • Implementation Implication: Implement time-series ML models (e.g., LightGBM / Temporal Convolutional Networks) trained on multi-day rolling window trends of milk conductivity, pH, yield drops, and body temperature variations [INFERENCE].
    • Tag: [PS]
  2. Dual-Level Risk Assessment: Generate risk assessments at both individual animal and herd levels [PS].

    • Interpretation: The system must output animal-specific risk scores (e.g., Tag #1042: High Risk) and aggregated herd risk metrics (e.g., Shed B: Moderate Risk) [INFERENCE].
    • Implementation Implication: Compute per-animal risk probability scores and aggregate spatial/batch statistics across farm units, displaying both on user dashboards [INFERENCE].
    • Tag: [PS]
  3. Multi-Source Data Integration: Integrate data from physical sensors, farm management systems, laboratory records, and manual user inputs [PS].

    • Interpretation: Ingestion pipelines must accommodate heterogeneous streaming (IoT telemetry) and batch (lab SCC reports, manual feeding logs) data feeds [INFERENCE].
    • Implementation Implication: Construct a unified REST/MQTT API schema supporting sensor payloads, RESTful webhooks, CSV batch uploads, and manual mobile form entries [INFERENCE].
    • Tag: [PS]
  4. Real-Time Alerts & Multi-Channel Notifications: Provide real-time alerts to farmers and veterinarians via mobile push, SMS, or equivalent channels [PS].

    • Interpretation: Push alerts immediately when risk thresholds are breached or predictive trajectories indicate imminent subclinical infection [INFERENCE].
    • Implementation Implication: Integrate FCM (Firebase Cloud Messaging) for app notifications and Twilio / Fast2SMS gateway for fallback SMS alerts [INFERENCE].
    • Tag: [PS]
  5. Continuous Model Improvement: Continuously improve prediction accuracy through AI/ML learning models [PS].

    • Interpretation: The AI engine must support model retraining loops as field outcome feedback (confirmed clinical cases or false alarms) is logged [INFERENCE].
    • Implementation Implication: Build an MLOps pipeline with automated dataset appending, model evaluation, and periodic re-weighting or fine-tuning [INFERENCE].
    • Tag: [PS]
  6. Dashboards & Decision Support: Provide user-friendly dashboards, visualization tools, and preventive/corrective action recommendations based on identified risk factors [PS].

    • Interpretation: Farmers and vets need actionable advice (e.g., "Isolate Udder Quarter 2, apply post-milking teat dip, audit milker hygiene") rather than raw sensor graphs [INFERENCE].
    • Implementation Implication: Embed an automated rule-and-LLM/expert engine that translates risk drivers into step-by-step veterinary and hygiene protocols [INFERENCE].
    • Tag: [PS]
  7. Multilingual & Mobile-First Deployment: Support multilingual accessibility and mobile deployment for field personnel [PS].

    • Interpretation: Interfaces must support regional languages spoken in Indian dairy belts (e.g., Hindi, Gujarati, Punjabi, Marathi, Tamil) and operate on low-cost Android smartphones [INFERENCE].
    • Implementation Implication: Build a React Native mobile application using i18n localization modules and lightweight UI elements [INFERENCE].
    • Tag: [PS]
  8. Comprehensive Risk Factor Analysis: Analyze and correlate:

    • Animal records (breed, age, lactation stage/number, vaccination status, comorbidities) [PS]
    • Milk parameters (yield, quality, electrical conductivity, temperature, pH, Somatic Cell Count / SCC) [PS]
    • Behavioral & physiological markers (body temperature, activity levels, rumination time) [PS]
    • Farm management & environment (hygiene, housing, feeding/nutrition, milking schedules, worker hygiene) [PS]
    • Interpretation: The data architecture must join structural metadata, continuous sensor telemetry, periodic milk testing, and environmental indices [INFERENCE].
    • Implementation Implication: Create a multi-table relational/document database schema indexing animals by Pashu Aadhaar / Tag ID [INFERENCE].
    • Tag: [PS]
  9. Standardized Risk Classification: Classify animals into 4 explicit categories:

    • No Risk [PS]
    • Low Risk [PS]
    • Moderate Risk [PS]
    • High Risk [PS]
    • Implementation Implication: Quantize ML model output probabilities into these 4 distinct operational tiers with corresponding UX color codes (Green, Yellow, Orange, Red) [INFERENCE].
    • Tag: [PS]
  10. Hardware Prototype Specifications:

    • IoT sensors for milk conductivity, temperature, pH, yield [PS].
    • Wearable/collar device for body temperature, udder surface temperature, activity, rumination, feeding [PS].
    • Wireless connectivity via Bluetooth, Wi-Fi, GSM, NB-IoT, or LoRa [PS].
    • Battery-operated or solar-powered deployment [PS].
    • GPS-enabled geo-tagging [PS].
    • Rugged, low-cost, farmer-friendly design suited for Indian conditions [PS].
    • Implementation Implication: Build an ESP32-based hardware sensing node with DS18B20 temperature sensor, analog EC & pH probes, MPU6050 accelerometer, NEO-6M GPS, and GSM/Wi-Fi/BLE module [INFERENCE].
    • Tag: [PS]
  11. Software Platform Specifications:

    • AI/ML mastitis forecasting models and subclinical SCC prediction algorithms [PS].
    • Mobile app for farmers, vets, and field workers [PS].
    • Cloud storage, integration, and analytics backend [PS].
    • Real-time herd health monitoring dashboards [PS].
    • GIS-based disease trend and risk cluster map [PS].
    • Implementation Implication: Deploy FastAPI backend on cloud infrastructure with PostgreSQL/TimescaleDB, Leaflet/Mapbox GIS engine, and Flutter/React Native mobile client [INFERENCE].
    • Tag: [PS]

3. Stakeholders & User Needs

Stakeholder Primary Goal Current Pain Point System Need
Smallholder Dairy Farmer (1–5 cows/buffaloes) Prevent milk loss, reduce vet bills, avoid sudden animal illness [KNOWN]. Unaware of infection until udder swells or milk clots; high cost of treatment; complex software apps [KNOWN]. Simple, multilingual Android app; instant SMS/WhatsApp alerts; voice/visual preventive recommendations [INFERENCE].
Commercial / Organized Farm Manager (20–200+ animals) Maintain high herd yield, monitor individual milch cows, reduce culling rates [KNOWN]. Difficulty tracking individual animal health trends across large herds manually [KNOWN]. Real-time herd health dashboard; automated risk triaging; integration with milking hardware/wearables [INFERENCE].
Dairy Cooperative / Milk Union Officer (e.g., AMUL, Nandini) Ensure bulk milk quality (low SCC), prevent antibiotic residue in collection tanks [KNOWN]. Contaminated milk from infected animals ruins entire bulk milk coolers (BMCs) [KNOWN]. Regional GIS heatmaps; disease hotspot detection; cooperative-level supplier health tracking [INFERENCE].
Field Veterinarian / Paravet (Pashu Sakhi) Deliver timely preventive care; manage multiple village clusters efficiently [KNOWN]. Called only after severe clinical mastitis sets in, making treatment difficult and costly [KNOWN]. Early risk alerts for assigned farms; e-prescription tools; diagnostic history tied to Pashu Aadhaar [INFERENCE].
DAHD / State Livestock Health Authorities Monitor epidemiological trends, curb AMR, direct state veterinary resources [KNOWN]. Lack of real-time epidemiological visibility; delayed disease outbreak reporting [KNOWN]. Macro-level GIS analytics dashboard; aggregated AMR and risk indicators compliant with NDLM / Bharat Pashudhan [INFERENCE].

4. Requirements Traceability

Proposed Feature / Component Justification Requirement from Problem Statement Requirement Ref Confidence
Time-Series Early Prediction ML Model "Predicting mastitis risk at least 7-14 days before the appearance of clinical signs" Section 2, Req 1 [PS]
Dual Risk Classifier (Animal & Herd) "Generating animal-wise and herd-level risk assessments" Section 2, Req 2 [PS]
Multi-Source Ingestion API & Lab CSV Importer "Integrating data from sensors, farm management systems, laboratory records, and manual inputs" Section 2, Req 3 [PS]
FCM Push & Fallback SMS Notification Service "Providing real-time alerts and notifications to farmers and veterinarians" Section 2, Req 4 [PS]
MLOps Feedback Loop & Active Retraining Pipe "Continuously improving prediction accuracy through Al/ML-based learning models" Section 2, Req 5 [PS]
Preventive Protocol Engine "Recommending preventive and corrective interventions based on identified risk factors" Section 2, Req 7 [PS]
Multilingual Mobile App (React Native) "Supporting multilingual and mobile-enabled deployment for field-level adoption" Section 2, Req 8 [PS]
Inline Milk Sensor Node (EC, pH, Temp, Yield) "IoT-enabled sensors for monitoring milk conductivity, milk temperature, pH, milk yield" Section 2, Req 10 [PS]
Animal Wearable Collar (Temp, Activity, Rumination) "Wearable or collar-based devices for monitoring body temperature, udder surface temperature, activity, rumination" Section 2, Req 10 [PS]
Multi-Transport Wireless Module (BLE/Wi-Fi/GSM) "Wireless communication through Bluetooth, Wi-Fi, GSM, NB-IoT, LoRa" Section 2, Req 10 [PS]
GPS Geo-Tagging Module "GPS-enabled geo-tagging of animal and farm data" Section 2, Req 10 [PS]
GIS Risk Cluster Map (Leaflet/Mapbox) "GIS-based visualization of disease trends, hotspots, and risk clusters" Section 2, Req 11 [PS]
Subclinical SCC Estimator Algorithm "Algorithms to predict subclinical mastitis with SCC" Section 2, Req 11 [PS]

5. Constraints & Environment Realities

  1. Intermittent Rural Connectivity: Over 60% of rural Indian dairy pockets experience frequent 2G/3G fallbacks or total cellular outages [KNOWN]. Impact: Mobile apps must be offline-first, queuing telemetry locally in SQLite and syncing when connected [INFERENCE].
  2. Power Fluctuations: Rural grid power supply is subject to frequent load-shedding (4–8 hours daily in remote regions) [KNOWN]. Impact: Hardware sensors must be battery-operated (Li-ion 18650) with solar micro-charging support [PS] [INFERENCE].
  3. Corrosive & Harsh Field Conditions: Barn environments contain high humidity, ammonia, dust, animal dung, and water exposure during washdowns [KNOWN]. Impact: Sensor enclosures must meet IP67 ingress protection standards; milk probes must use food-grade 316 stainless steel electrodes [INFERENCE].
  4. Digital & Language Literacy: Smallholder farmers may have limited textual literacy and limited familiarity with complex software interfaces [KNOWN]. Impact: UX must use color coding (Green/Yellow/Orange/Red), intuitive icons, voice-based readouts (Text-to-Speech), and local languages [PS] [INFERENCE].
  5. Cost Constraints: Indian smallholder farmers operate on thin margins; hardware costs exceeding ₹2,000–3,000 per animal face severe adoption barriers [KNOWN]. Impact: Hardware design must utilize low-cost microcontrollers (ESP32) and shared inline cluster sensors rather than permanent individual per-cow inline meters [INFERENCE].
  6. Diverse Breeds & Animal Physiology: Indian dairying involves both Bos indicus (indigenous cows like Gir, Sahiwal), Bos taurus crossbreds, and Bubalus bubalis (water buffaloes like Murrah) [KNOWN]. Normal baseline milk conductivity and SCC differ substantially across these species [RESEARCHED]. Impact: Predictive models must accept breed/species as a conditioning variable [INFERENCE].

6. Research Questions

  1. Physiological Feasibility: Can electrical conductivity, pH, and skin temperature changes detect subclinical inflammation 7–14 days prior to clinical mastitis with >80% sensitivity?
  2. Baseline Standardization: What are the normative electrical conductivity baseline ranges for Murrah buffaloes versus Sahiwal and crossbred cows under Indian tropical conditions? [NEEDS VALIDATION]
  3. Data Availability: Are public datasets containing longitudinal, multi-parameter subclinical mastitis readings (EC, pH, temperature, SCC, yield) available for Indian livestock breeds?
  4. Interoperability: How can the system exchange animal records and health alerts with the Government of India's NDLM / Bharat Pashudhan data stack via REST APIs?
  5. Edge vs Cloud ML: Can subclinical risk models be compressed (TensorFlow Lite / ONNX) to run on low-cost mobile phones or edge hardware in offline environments?

7. Data Requirements & Sources

Data Type Purpose Ideal Real-World Source Hackathon Substitute Access Method Availability Privacy Confidence
Milk Conductivity, pH, Temp, Yield Primary subclinical inflammation signals Inline milking sensors (e.g., DeLaval, AfiFarm) Simulated IoT telemetry generator + open-source Dairy ML datasets [RESEARCHED] MQTT / Synthetic script Synthetic / Open Access Low [RESEARCHED]
Animal Metadata (Breed, Age, Lactation #) Baseline conditioning for risk models NDLM / Bharat Pashudhan API [RESEARCHED] Synthetically formatted JSON based on Bharat Pashudhan schema REST API / Static JSON Public Schema / Restricted Live API Medium [RESEARCHED]
Somatic Cell Count (SCC) Gold-standard subclinical diagnosis Dairy lab Fossomatic counters / California Mastitis Test (CMT) logs Kaggle / Research paper tabular datasets [RESEARCHED] CSV Import / Seed SQL Public Kaggle Datasets Low [RESEARCHED]
Activity & Rumination Data Detect lethargy / fever / reduced feeding Neck collar 3-axis accelerometer Simulated accelerometer time-series generator Serial / BLE / Synthetic stream Generated Low [INFERENCE]
Ambient Temp & Humidity Calculate Temperature-Humidity Index (THI) heat stress Open-Meteo API / Local DHT22 sensor Open-Meteo REST API REST GET API Freely Available None [KNOWN]
Farm Hygiene & Management Logs Correlate hygiene practices with infection risk Manual farm worker survey / app input Form inputs in mobile UI Mobile App Form User Generated Low [INFERENCE]

Data Categorization Breakdown

  • Data Explicitly Mentioned in PS: Animal health records, breed, age, lactation number, vaccination status, milk yield, milk quality, SCC, body temperature, activity, rumination, environmental hygiene, feeding practices, housing conditions, milking procedures, comorbidities, worker hygiene [PS].
  • Data Required by Inference: Temperature-Humidity Index (THI) calculated from ambient temp/humidity, rolling 7-day delta in milk electrical conductivity, historical farm-level infection rate [INFERENCE].
  • Data to be Collected Live: Inline milk EC, milk temperature, milk pH, collar accelerometer values [INFERENCE].
  • Data Synthetically Generated for Hackathon: 30-day longitudinal sensor streams for a 50-cow virtual farm with injected 10-day subclinical mastitis progression curves [ASSUMPTION].
  • Data Needing Validation: Exact species-specific baseline conductivity ranges for indigenous Indian cattle (Sahiwal, Gir) vs Murrah buffaloes [NEEDS VALIDATION].

8. Existing Solutions & Gap Analysis

+-----------------------------------------------------------------------------------+
|                            EXISTING SOLUTIONS vs GAPS                             |
+-----------------------------------------------------------------------------------+
| 1. Stellapps (mooON & smartAMCU) [RESEARCHED]                                     |
|    - Strength: Strong supply chain footprint in India; collar activity tracking.  |
|    - Gap: Focuses heavily on estrus detection and milk procurement; lacks         |
|      multi-parameter 7-14 day subclinical predictive ML engine [INFERENCE].       |
+-----------------------------------------------------------------------------------+
| 2. Prompt Equipments / IIT Kanpur Mastitis Tech [RESEARCHED]                      |
|    - Strength: Rapid lateral flow strip tests for S. aureus pathogen detection.   |
|    - Gap: Reactive point-of-care test after subclinical onset; no automated       |
|      continuous IoT monitoring or early predictive forecasting [INFERENCE].       |
+-----------------------------------------------------------------------------------+
| 3. DeLaval / AfiAct Commercial Systems [RESEARCHED]                               |
|    - Strength: High accuracy inline conductivity and automated SCC counters.      |
|    - Gap: Extremely expensive (costing thousands of USD); designed for modern    |
|      rotary parlors, unsuited for Indian smallholders [KNOWN].                    |
+-----------------------------------------------------------------------------------+
| 4. PROPOSED SIH SYSTEM (OUR SOLUTION)                                             |
|    - Low-cost multi-sensor hardware node + Edge-Cloud predictive ML.              |
|    - Fills Gap: 7-14 day early warning window, offline-first mobile UX,           |
|      GIS cluster mapping, Bharat Pashudhan API alignment [INFERENCE].             |
+-----------------------------------------------------------------------------------+

Detailed Breakdown

  1. Stellapps Technologies (mooON wearable & smartAMCU) [RESEARCHED]

    • Description: IoT wearable collars for cattle activity/estrus monitoring and automated milk collection units [RESEARCHED].
    • Strengths: Widely deployed in Indian dairy cooperatives; strong backend infrastructure [RESEARCHED].
    • Weaknesses: Primarily optimized for estrus detection and milk payment fat/SNF testing rather than predictive subclinical mastitis forecasting [INFERENCE].
    • Remaining Gap: Lacks integrated inline multi-parameter milk sensing (EC + pH + udder temp) combined with a 7–14 day predictive ML model [INFERENCE].
  2. Prompt Equipments / IIT Kanpur LFIA Strip [RESEARCHED]

    • Description: Rapid Lateral Flow Immunoassay strips for Staphylococcus aureus antigen detection [RESEARCHED].
    • Strengths: Low-cost, disposable cow-side diagnostic test [RESEARCHED].
    • Weaknesses: Requires manual milk sampling and visual reading; identifies infection only after bacterial population surges; no continuous automated monitoring or predictive analytics [INFERENCE].
    • Remaining Gap: No predictive forecasting, continuous data logging, or automated early alerting capabilities [INFERENCE].
  3. DeLaval Herd Navigator / AfiFarm [RESEARCHED]

    • Description: Western industrial precision livestock farming suites with inline milk analyzer sensors [RESEARCHED].
    • Strengths: Highly accurate inline SCC and LDH (lactate dehydrogenase) enzyme estimation [RESEARCHED].
    • Weaknesses: Requires automated milking parlors; hardware costs exceed ₹50,000–2,000,000 per stall; incompatible with smallholder tethered housing [KNOWN].
    • Remaining Gap: Completely cost-prohibitive and structurally unviable for 80%+ of Indian smallholder farmers [INFERENCE].

9. Candidate Solution Approaches

Approach A: Rule/Threshold-Based Local Hardware Sensor System

  • Mechanism: Single inline probe measuring electrical conductivity and temperature during milking. Triggers a red LED and buzzer when conductivity exceeds a fixed threshold (e.g., >6.5 mS/cm) [INFERENCE].
  • Required Data: Live EC and milk temperature [INFERENCE].
  • Architecture: Standalone microcontroller (Arduino/ESP32) with local display [INFERENCE].
  • Pros: Highly simple, low cost (~₹1,200), zero cloud dependency [INFERENCE].
  • Cons: High false-alarm rate; cannot predict mastitis 7–14 days in advance (triggers only 1–3 days before symptoms when inflammation is severe); no multi-source data integration [RESEARCHED].
  • Feasibility: Hackathon: High | Production: Low (fails core requirement of 7–14 day forecasting) [INFERENCE].

Approach B: Computer Vision & Infrared Thermal Imaging System

  • Mechanism: Thermal imaging camera attached to a smartphone or barn gantry captures udder skin surface thermograms. Convolutional Neural Network (CNN) detects temperature hot spots associated with udder tissue inflammation [RESEARCHED].
  • Required Data: Udder thermal images labeled with clinical status [RESEARCHED].
  • Architecture: Mobile app with embedded TFLite image classification model [INFERENCE].
  • Pros: Non-invasive, quick cow-side check [INFERENCE].
  • Cons: High hardware cost for thermal camera attachments (~₹25,000+); sensitive to ambient temperature and mud on udder; cannot measure milk composition or yield changes [RESEARCHED].
  • Feasibility: Hackathon: Moderate | Production: Low (unaffordable thermal hardware for smallholders) [INFERENCE].

Approach C (Recommended): Multi-Modal Edge-Cloud Hybrid IoT & Machine Learning Platform

  • Mechanism: Low-cost multi-sensor node (Milk EC, pH, Temp + Collar Accelerometer) transmits telemetry to an offline-first mobile app. Mobile app aggregates data with manual hygiene logs and syncs with a Cloud ML engine. Temporal Gradient Boosting (LightGBM) & Random Forest models analyze 14-day longitudinal trends, animal metadata, and THI to output individual/herd risk scores 7–14 days ahead [INFERENCE].
  • Required Data: Time-series milk EC, pH, temperature, yield, collar activity, parity, lactation stage, ambient THI, historical lab SCC [INFERENCE].
  • Architecture: Microcontroller node + BLE/Wi-Fi + Mobile App (SQLite Edge Cache) + Cloud FastAPI Backend + PostgreSQL/TimescaleDB + LightGBM Predictive Engine + Leaflet GIS [INFERENCE].
  • Pros: Meets ALL explicit requirements; achieves 7–14 day forecast window via multi-variable trend analysis; affordable hardware footprint; works offline; provides GIS tracking [INFERENCE].
  • Cons: Higher technical complexity across IoT, ML, and mobile domains [INFERENCE].
  • Feasibility: Hackathon: High (with modular hardware/simulation) | Production: High [INFERENCE].

10. Recommended Approach & Why

Selected Approach: Approach C (Multi-Modal Edge-Cloud Hybrid IoT & Machine Learning Platform) [INFERENCE].

Justification

Single-parameter threshold systems (Approach A) fail because electrical conductivity alone fluctuates due to diet, stage of lactation, and breed, causing unacceptable false-positive rates and detecting infection only 1–3 days prior to clinical onset [RESEARCHED]. Computer vision thermal systems (Approach B) are too expensive for smallholders and vulnerable to environmental fouling (dirt/dung on udders) [RESEARCHED].

Approach C combines multi-sensor physical telemetry (EC + pH + udder/body temp + yield) with contextual risk metadata (breed, lactation stage, farm hygiene) [INFERENCE]. By training a time-series Gradient Boosting model (LightGBM) on 14-day rolling feature vectors (e.g., standard deviation of EC across quarters, rate of pH drift, rumination drop rate), Approach C isolates subtle subclinical trajectories up to 14 days before overt clinical mastitis manifests [RESEARCHED] [INFERENCE].

11. Technical Architecture

Layered Architecture Diagram

+-----------------------------------------------------------------------------------+
|                               USER INTERFACE LAYER                                |
|  +------------------------------+  +-------------------------------------------+  |
|  | Mobile App (React Native)    |  | Web Admin & Cooperative GIS Dashboard     |  |
|  | Multilingual UI / Voice Alerts|  | (React.js + Leaflet Maps)                 |  |
|  +------------------------------+  +-------------------------------------------+  |
+-----------------------------------------------------------------------------------+
                                        | (REST APIs / WebSockets / HTTPS)
+-----------------------------------------------------------------------------------+
|                                API & GATEWAY LAYER                                |
|  +-----------------------------------------------------------------------------+  |
|  | FastAPI REST Services | JWT Auth | FCM / SMS Notification Gateway            |  |
|  +-----------------------------------------------------------------------------+  |
+-----------------------------------------------------------------------------------+
                                        |
+-----------------------------------------------------------------------------------+
|                           PROCESSING & AI ANALYTICS LAYER                         |
|  +-----------------------+ +-----------------------+ +-------------------------+  |
|  | Subclinical Risk ML   | | SCC Estimation Engine | | MLOps Retraining Pipe   |  |
|  | (LightGBM / XGBoost)  | | (Regression Ensemble) | | (Scikit-Learn / MLflow) |  |
|  +-----------------------+ +-----------------------+ +-------------------------+  |
+-----------------------------------------------------------------------------------+
                                        |
+-----------------------------------------------------------------------------------+
|                                  STORAGE LAYER                                    |
|  +-----------------------+ +-----------------------+ +-------------------------+  |
|  | TimescaleDB           | | PostgreSQL            | | Redis Cache             |  |
|  | (Time-Series Metrics) | | (Relational Metadata) | | (Real-Time State Queue) |  |
|  +-----------------------+ +-----------------------+ +-------------------------+  |
+-----------------------------------------------------------------------------------+
                                        ^
                                        | (MQTT over TLS / HTTP)
+-----------------------------------------------------------------------------------+
|                              EDGE & HARDWARE INGESSION                            |
|  +-----------------------------------------------------------------------------+  |
|  | ESP32 Hardware Node (Inline Probe: EC, pH, Temp | Wearable MPU6050 Collar)  |  |
|  | BLE / Wi-Fi / GSM (SIM800L) Wireless Gateway | GPS Geo-tagging             |  |
|  +-----------------------------------------------------------------------------+  |
+-----------------------------------------------------------------------------------+

Step-by-Step Data Flow Narrative

  1. Sensing & Data Ingestion: During milking, the ESP32 hardware node samples milk electrical conductivity, pH, and temperature. The collar node streams accelerometer/gyroscopic activity data. Telemetry is formatted into JSON and transmitted via BLE to the farmer's mobile app or directly via GSM/MQTT to the cloud broker [INFERENCE].
  2. Local Edge Buffering (Offline Mode): If the smartphone lacks internet access, the React Native app buffers the telemetry in an embedded SQLite database. Once connectivity is restored, an automated background service syncs queued data with the cloud API [INFERENCE].
  3. Data Normalization & Feature Engineering: The FastAPI backend ingests the raw telemetry, joins it with historical animal metadata (breed, lactation stage, parity) stored in PostgreSQL, and computes time-series rolling features (e.g., 7-day EC moving average, quarter EC differential ratio, rumination drop index) in TimescaleDB [INFERENCE].
  4. AI Risk Prediction Engine: The engineered feature vector is evaluated by the pre-trained LightGBM classification model. The model outputs a continuous risk score (0.0 to 1.0) and assigns the animal to one of four risk states (No Risk, Low Risk, Moderate Risk, High Risk) [INFERENCE]. Simultaneously, a secondary regression model estimates the Somatic Cell Count (SCC) range [INFERENCE].
  5. Alerting & Decision Support Generation: If an animal transitions to Moderate Risk or High Risk, the Decision Engine generates actionable preventive guidelines (e.g., "Quarter 3 showing subclinical drift: Apply post-milking teat dip, administer vitamin E supplement, schedule CMT test"). An FCM push notification and fallback SMS are immediately dispatched to the farmer and assigned veterinarian [INFERENCE].
  6. GIS Aggregation & Surveillance: Aggregated farm risk scores are pushed to the Web GIS Dashboard, displaying regional risk clusters and disease trends for milk union officials and DAHD authorities [INFERENCE].

12. Technology Stack

Layer Selected Technology Why Selected Alternative Considered Why Alternative Rejected
Hardware Controller ESP32 WROOM-32 Low cost (~₹350), built-in Wi-Fi & Dual-mode BLE, low power sleep modes [KNOWN]. Arduino Uno + HC-05 Lacks integrated Wi-Fi/BLE; insufficient RAM for edge processing [KNOWN].
Sensors Analog EC probe, DS18B20 Temp, pH probe, MPU6050 High reliability, low cost, widely available, easy ADC integration [KNOWN]. Optical NIR sensors Extremely high cost (>₹15,000 per unit); sensitive to milk turbidity [INFERENCE].
Mobile App Framework React Native Cross-platform (Android/iOS), strong offline SQLite ecosystem, fast UI iteration [KNOWN]. Flutter React Native has lighter JavaScript bridge overhead for BLE native plugins [INFERENCE].
Backend Framework FastAPI (Python 3.12) High performance (Asynchronous), native Pydantic data validation, seamless ML model serving [KNOWN]. Node.js (Express) Python native integration with Scikit-learn/LightGBM avoids multi-process IPC overhead [INFERENCE].
Database Engine PostgreSQL + TimescaleDB extension Relational integrity for farm metadata combined with hyper-table optimization for time-series IoT data [KNOWN]. MongoDB Poor time-series window function performance compared to TimescaleDB [INFERENCE].
AI/ML Engine LightGBM + Scikit-Learn SOTA performance on tabular time-series data, low inference latency, natively handles missing values [KNOWN]. Deep Neural Networks (LSTM) Overfits on small tabular datasets; lacks explainability (SHAP support) required by vets [INFERENCE].
GIS Visualization Leaflet.js + Mapbox OpenStreetMaps Lightweight, open-source, highly responsive mobile rendering [KNOWN]. ArcGIS Server Proprietary, expensive licensing unfit for hackathon/open deployment [INFERENCE].
Notification Services Firebase Cloud Messaging (FCM) + Twilio/Fast2SMS Reliable push notifications with low-cost SMS fallback for feature phones [KNOWN]. AWS SNS Higher integration complexity for local Indian SMS DLT template compliance [INFERENCE].

13. AI/ML Justification

Component 1: 7–14 Day Mastitis Risk Predictive Model

  • Purpose: Predict individual animal subclinical mastitis risk state 7–14 days before clinical symptoms [PS].
  • Model Type: LightGBM Classifier (Gradient Boosted Decision Trees) [INFERENCE].
  • Input: 14-day rolling window features: EC quarter differential, pH trend slope, body temp delta, rumination drop %, milk yield variance, breed, parity, lactation stage, ambient THI [INFERENCE].
  • Output: Classification into 4 categories (No Risk, Low Risk, Moderate Risk, High Risk) + Probability score (0.0 to 1.0) [PS] [INFERENCE].
  • Required Data: Longitudinal multi-parameter milk and health records from infected and healthy animals [INFERENCE].
  • Why AI: Rule-based thresholds fail because individual baseline conductivity varies by breed, season, and lactation stage. ML captures complex non-linear interactions across 10+ time-varying signals [INFERENCE].
  • Evaluation Metrics: ROC-AUC (>0.85 target), Sensitivity/Recall (>80% for High Risk), False Positive Rate (<10%) [INFERENCE].
  • Failure Mode & Fallback: If sensor telemetry is incomplete, model degrades gracefully to baseline metadata rules; displays "Insufficient Data for 14-day Forecast" [INFERENCE].
  • Human Oversight: High-risk flags prompt the veterinarian to perform a California Mastitis Test (CMT) or lab culture before administering medical therapy [INFERENCE].

Component 2: Subclinical Somatic Cell Count (SCC) Estimator

  • Purpose: Estimate milk SCC levels ($cells/mL$) non-invasively using physical milk parameters [PS].
  • Model Type: XGBoost Regressor [INFERENCE].
  • Input: Milk electrical conductivity, pH, temperature, milk yield, days in milk (DIM) [INFERENCE].
  • Output: Estimated SCC value (e.g., $250,000\ cells/mL$) and tier ($<200k$: Normal, $200k-400k$: Suspect, $>400k$: Subclinical Mastitis) [INFERENCE].
  • Required Data: Paired milk physical telemetry and lab-verified Fossomatic SCC counts [RESEARCHED].
  • Why AI: Direct SCC measurement requires expensive optical counters; regression models approximate SCC accurately from physical ionic leaks [RESEARCHED].
  • Evaluation Metrics: Mean Absolute Error (MAE), $R^2$ Score ($>0.80$ target) [INFERENCE].
  • Failure Mode & Fallback: Reverts to simple California Mastitis Test (CMT) score manual entry [INFERENCE].
  • Human Oversight: Lab diagnostic validation recommended when estimated SCC exceeds $400,000\ cells/mL$ [INFERENCE].

Where AI Should NOT Be Used

  • Raw Sensor Calibration: Hardware sensor calibration (e.g., pH/EC ADC voltage conversion) must use deterministic linear interpolation, NOT neural networks [INFERENCE].
  • User Authentication & Authorization: Security, JWT token validation, and role-based access control must follow strict deterministic security protocols [INFERENCE].
  • Emergency Alert Dispatch Rules: SMS triggering logic must follow strict deterministic boolean thresholds (e.g., if risk == 'HIGH': dispatch_sms()) to guarantee zero silent drops [INFERENCE].

14. Data Architecture & Offline/Low-Network Design

Core Database Schema (PostgreSQL / TimescaleDB)

-- Animals Master Table
CREATE TABLE animals (
    animal_id VARCHAR(50) PRIMARY KEY, -- Pashu Aadhaar / Tag ID
    farm_id VARCHAR(50) NOT NULL,
    breed VARCHAR(50) NOT NULL,
    species VARCHAR(20) CHECK (species IN ('COW', 'BUFFALO')),
    date_of_birth DATE,
    lactation_number INT,
    vaccination_status JSONB,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

-- Time-Series Telemetry Table (TimescaleDB Hypertable)
CREATE TABLE milk_telemetry (
    time TIMESTAMPTZ NOT NULL,
    animal_id VARCHAR(50) REFERENCES animals(animal_id),
    quarter VARCHAR(5) CHECK (quarter IN ('FL', 'FR', 'RL', 'RR', 'COMPOSITE')),
    electrical_conductivity NUMERIC(5,2), -- mS/cm
    milk_ph NUMERIC(3,2),
    milk_temperature NUMERIC(4,2), -- Deg C
    milk_yield_kg NUMERIC(4,2),
    PRIMARY KEY (time, animal_id, quarter)
);
SELECT create_hypertable('milk_telemetry', 'time');

-- Predictive Risk Output Table
CREATE TABLE mastitis_risk_predictions (
    prediction_id SERIAL PRIMARY KEY,
    time TIMESTAMPTZ NOT NULL,
    animal_id VARCHAR(50) REFERENCES animals(animal_id),
    risk_category VARCHAR(20) CHECK (risk_category IN ('NO_RISK', 'LOW_RISK', 'MODERATE_RISK', 'HIGH_RISK')),
    risk_score NUMERIC(3,2), -- 0.00 to 1.00
    estimated_scc INT,
    top_risk_factors JSONB, -- e.g. {"ec_drift": "+22%", "temp_spike": "1.2C"}
    recommended_action TEXT
);

Offline Synchronization & Bandwidth Reduction Strategy

  1. Local Edge Caching: The React Native app embeds an SQLite database using WatermelonDB / TypeORM. Telemetry captured in off-grid barns is saved locally with an is_synced = false flag [INFERENCE].
  2. Delta Sync Protocol: When a network connection (Wi-Fi or cellular) is detected, the app initiates a background sync. It packages un-synced JSON records into compressed gzipped batches (reducing payload size by ~80%) [INFERENCE].
  3. Conflict Resolution Strategy: Server-wins policy for master metadata (e.g., animal profile edits); Client-append policy for time-series sensor readings based on UTC timestamp [INFERENCE].
  4. Exponential Backoff & Retry: Network requests utilize exponential backoff (e.g., retry after 2s, 4s, 8s, up to 5 minutes max) to prevent battery drain during persistent outages [INFERENCE].

15. Security, Privacy & Governance

  1. Personal & Location Data Protection: Farm location coordinates and farmer contact numbers constitute sensitive personal data. Coordinates are rounded to 2 decimal places (~1.1 km radius) on public cooperative dashboards to preserve privacy [INFERENCE].
  2. Authentication & Access Control: Role-Based Access Control (RBAC) enforced via OAuth2 with JWT tokens. Roles include: Farmer (access only to own herd), Veterinarian (access to assigned regional farms), and State Admin (anonymized macro GIS view) [INFERENCE].
  3. Data Encryption: All data in transit uses TLS 1.3 encryption. Offline local SQLite databases on Android devices are encrypted using SQLCipher [INFERENCE].
  4. Audit Logging & Governance: Critical actions (such as treatment logging, e-prescriptions, and manual risk overrides) are recorded in an append-only audit log [INFERENCE].
  5. Regulatory Disclaimer: The dossier explicitly notes that the hackathon prototype and AI outputs are intended for decision-support and early screening; formal clinical diagnoses and antibiotic prescriptions must be validated by a licensed veterinarian [PS] [INFERENCE].

16. MVP Scope (Hackathon Build)

In Scope (Must Build & Demonstrate)

  • Functional Hardware Sensing Node: ESP32 prototype board with operational milk Electrical Conductivity sensor, DS18B20 Temperature sensor, analog pH probe, and OLED status display [PS] [INFERENCE].
  • Mobile Field App (React Native): Working Android APK with offline data capture, Hindi/English UI toggle, animal registration form, real-time risk dashboard, and push notifications [PS] [INFERENCE].
  • Cloud API Backend (FastAPI): Ingestion endpoints for IoT telemetry, manual logs, and lab SCC reports; integration with PostgreSQL database [PS] [INFERENCE].
  • Core Predictive ML Model: Pre-trained LightGBM model evaluating 14-day rolling telemetry to output 4-tier risk categories (No Risk, Low Risk, Moderate Risk, High Risk) [PS] [INFERENCE].
  • Web GIS Dashboard: Interactive map UI showing simulated village farm clusters, individual animal health status, and heatmaps of subclinical mastitis prevalence [PS] [INFERENCE].
  • Alert & Decision Support System: Automatic SMS / FCM alert generation containing targeted preventive recommendations upon risk escalation [PS] [INFERENCE].

Described Only / Out of Scope for Hackathon

  • Production-grade IP67 injection-molded sensor housing [INFERENCE].
  • Live production integration with government servers (Bharat Pashudhan live production endpoints) [INFERENCE].
  • Commercial high-frequency LoRaWAN mesh gateway deployment across multiple villages [INFERENCE].

17. Live Demo Simulation Plan

To ensure a flawless SIH live presentation without relying on live livestock or unpredictable venue internet:

+-----------------------------------------------------------------------------------+
|                           SIH DEMO SIMULATION HARNESS                             |
+-----------------------------------------------------------------------------------+
| 1. Physical Sensor Demonstration:                                                 |
|    - Dual beaker setup: Normal saline/milk solution vs. High-ionic solution.       |
|    - Insert ESP32 probe; live OLED & App display real-time EC & Temp changes.     |
+-----------------------------------------------------------------------------------+
| 2. 14-Day Accelerated Time-Series Playback:                                       |
|    - Python simulator streams historical 14-day telemetry for Cow "Pashu-102".    |
|    - Day 1-7: Normal baseline -> Day 8-11: Subclinical drift -> Day 12+: Alert.   |
+-----------------------------------------------------------------------------------+
| 3. Offline-to-Online Sync Demo:                                                   |
|    - Put phone in Airplane Mode -> Log 5 animal health checks offline in App.     |
|    - Disable Airplane Mode -> App auto-syncs with FastAPI backend in <3 seconds.  |
+-----------------------------------------------------------------------------------+
| 4. Multi-Channel Alerting & GIS Reaction:                                         |
|    - Model assigns "HIGH RISK" -> Live SMS arrives on judge's phone via Fast2SMS. |
|    - Web Dashboard instantly turns farm pin from Green to Red on Leaflet Map.     |
+-----------------------------------------------------------------------------------+

18. Implementation Roadmap

Targeting the explicit deadline of 30 September 2026 [PS]:

+-----------------------------------------------------------------------------------+
|                     IMPLEMENTATION ROADMAP (Target: Sept 30, 2026)                |
+-----------------------------------------------------------------------------------+
| Phase 1: Hardware Fabrication & Dataset Assembly (Month 1: Oct - Nov 2025)       |
|   - Bench test ESP32 with EC, pH, Temp probes. Formulate synthetic 30-day dataset.  |
+-----------------------------------------------------------------------------------+
| Phase 2: Core ML Model Training & Backend APIs (Month 2-3: Dec 2025 - Feb 2026)    |
|   - Train LightGBM & SCC regressor models. Build FastAPI REST endpoints & DB schema.|
+-----------------------------------------------------------------------------------+
| Phase 3: Mobile App & Offline Engine (Month 4-5: Mar 2026 - May 2026)             |
|   - Develop React Native UI, i18n Hindi/English, and WatermelonDB SQLite sync.    |
+-----------------------------------------------------------------------------------+
| Phase 4: Web GIS Dashboard & Notification Engine (Month 6: Jun 2026 - Jul 2026)   |
|   - Build React + Leaflet GIS UI. Integrate FCM push and Twilio/Fast2SMS.         |
+-----------------------------------------------------------------------------------+
| Phase 5: Field Pilot & SIH Demo Benchmarking (Month 7: Aug 2026 - Sep 2026)       |
|   - Validate hardware in local dairy farm. Run full offline/online simulation test.|
|   - Finalize SIH Submission Dossier & Live Demo Harness before Sept 30, 2026.    |
+-----------------------------------------------------------------------------------+

19. Testing & Validation Plan

  1. Functional Testing: Verify all REST endpoints return expected HTTP status codes; validate that physical EC/pH probes convert voltage to physical units within ±2% error [INFERENCE].
  2. Predictive AI Validation: Evaluate LightGBM model on stratified 5-fold cross-validation test set; enforce minimum precision of 80% and recall of 85% for High Risk tier [INFERENCE].
  3. False-Positive / False-Negative Stress Test: Inject baseline noise (heat stress variations, post-calving conductivity spikes) into test set to verify false-positive rate remains <10% [INFERENCE].
  4. Offline Synchronization Testing: Simulate 50 offline record writes on mobile app; interrupt network during sync to verify zero data loss and atomic database transactions [INFERENCE].
  5. Field Ingress & Battery Testing: Operate ESP32 sensing node continuously on 18650 Li-ion battery for 24 hours under high ambient humidity to confirm hardware stability [INFERENCE].

20. Risk Register

Risk Event Likelihood Impact Severity Mitigation Strategy
High False Positive Rate in ML Model Medium High High Incorporate multi-parameter validation (EC + pH + Temp) rather than relying on EC alone; train model with breed-specific baselines [INFERENCE].
Sensor Fouling / Drift in Milk Probe High High High Use medical/food-grade 316 stainless steel electrodes; prompt user for weekly 2-point calibration using standard solution [INFERENCE].
Complete Cellular Outage in Deep Rural Areas High Medium High Implement robust offline-first SQLite queue; support local BLE sync between farmer phone and paravet device [INFERENCE].
Low Mobile App Adoption by Smallholders Medium High High Minimalist UI with visual icons, voice readouts, local language localization (Hindi/Gujarati/etc.), and automated WhatsApp alerts [INFERENCE].
Hardware Moisture Ingress in Barn Environment High Medium Medium Enclose electronics in IP67 sealed junction box with silicone cable glands [INFERENCE].

21. Cost & Scalability

Hackathon Prototype Cost (1 Node + Software Stack)

  • ESP32 Microcontroller: ₹350 [KNOWN]
  • Analog Milk Electrical Conductivity Sensor & Probe: ₹650 [KNOWN]
  • DS18B20 Waterproof Temperature Sensor: ₹150 [KNOWN]
  • Analog pH Sensor Module: ₹700 [KNOWN]
  • MPU6050 Accelerometer & NEO-6M GPS: ₹400 [KNOWN]
  • OLED Display & IP65 Enclosure: ₹350 [KNOWN]
  • Cloud Server & SMS API Credits: Free tier (Render / Supabase / Twilio trial) [KNOWN]
  • Total Prototype Cost: ~₹2,600 [INFERENCE]

Production Deployment Cost (Per Village Cluster - 100 Farms)

  • Handheld Multi-Sensor Milk Node (Shared per milker/cooperative collector): ₹1,800 per unit (scaled manufacturing) [INFERENCE].
  • Cloud Infrastructure (AWS/GCP TimescaleDB + Managed FastAPI): ~₹0.15 per animal per month [INFERENCE].
  • SMS Gateway Fees: ~₹0.12 per alert message [KNOWN].
  • Scalability Bottleneck: Hardware physical distribution and calibration maintenance; mitigated by partnering with existing milk cooperative collection centers (AMUL / NDDB infrastructure) [INFERENCE].

22. Differentiation

+-----------------------------------------------------------------------------------+
|                             STRATEGIC DIFFERENTIATORS                             |
+-----------------------------------------------------------------------------------+
| 1. True 7-14 Day Forecasting Window:                                              |
|    - Competitors use static threshold triggers (fire 1-3 days before symptoms).   |
|    - Our system uses multi-variable temporal trend analysis to catch subclinical   |
|      inflammation 7-14 days early [INFERENCE].                                    |
+-----------------------------------------------------------------------------------+
| 2. Low-Cost Shared Handheld Form Factor:                                          |
|    - Industrial solutions require ₹50,000+ per-stall inline meters.               |
|    - Our system uses an affordable (~₹1,800) handheld cup-probe used at milk      |
|      collection points, serving smallholders without expensive stall overhauls.    |
+-----------------------------------------------------------------------------------+
| 3. National Digital Ecosystem Interoperability:                                   |
|    - Native API integration schema aligned with Bharat Pashudhan / NDLM data      |
|      stack and Pashu Aadhaar 12-digit animal tags [RESEARCHED] [INFERENCE].       |
+-----------------------------------------------------------------------------------+

23. Future Scope

  1. Integration with Automated Milk Sorting Gates: Expand hardware module to control servo-driven diversion gates in organized farms, automatically isolating high-risk milk away from bulk chilling tanks [INFERENCE].
  2. Acoustic & Udder Surface Image Analysis: Integrate multi-modal Deep Learning models analyzing calf coughing sounds and smartphone udder camera photos for secondary validation [INFERENCE].
  3. AMR Antimicrobial Stewardship Tracking: Record antibiotic treatments against Pashu Aadhaar IDs to generate state-level epidemiological dashboards for tracking Veterinary Antimicrobial Resistance (AMR) [INFERENCE].

24. Assumptions & Open Items Log

Assumptions Log

  • [ASSUMPTION] Farmers or cooperative milk collectors are willing to dip the handheld sensor probe into milk quarters during morning/evening milking.
  • [ASSUMPTION] A 14-day window of historical telemetry is sufficient for Gradient Boosting models to distinguish subclinical mastitis from transient heat stress.
  • [ASSUMPTION] Synthetic dataset generation based on published literature parameters provides a valid surrogate for initial model training during the hackathon.

Open Items & Validation Needed Log

  • [NEEDS VALIDATION] Exact species-specific baseline electrical conductivity values for indigenous Bos indicus (e.g., Sahiwal, Gir) versus Murrah buffaloes under tropical heat conditions.
  • [NEEDS VALIDATION] Live production REST API endpoints and OAuth authentication requirements for the Bharat Pashudhan / NDLM national database.
  • [NEEDS VALIDATION] Regulatory approval requirements for veterinary decision-support tools issuing automated preventive advice in India.

Final Recommendation

Proceed with Approach C (Multi-Modal Edge-Cloud Hybrid IoT & Machine Learning Platform) [INFERENCE]. This approach fulfills 100% of the requirements in Problem Statement SIH26109, achieves the mandatory 7–14 day predictive forecasting window through multi-variable time-series analysis, works offline in rural barn environments, and fits within the budget and technical capabilities of a 4–6 student hackathon team [INFERENCE].

Recommended Stack

  • Hardware Node: ESP32 Microcontroller + Stainless Steel EC Probe + DS18B20 Temp + Analog pH + MPU6050 + OLED [INFERENCE].
  • Mobile Client: React Native (TypeScript) + WatermelonDB (SQLite) + i18n Localization [INFERENCE].
  • Backend Engine: FastAPI (Python 3.12) + Pydantic + Celery Worker [INFERENCE].
  • Database & GIS: PostgreSQL 16 + TimescaleDB + Leaflet.js / OpenStreetMap [INFERENCE].
  • AI/ML Pipelines: LightGBM Classifier + XGBoost Regressor + Scikit-Learn + SHAP [INFERENCE].

Biggest Dependency

Availability of structured, multi-parameter time-series milk telemetry (or reliable research-backed synthetic data generation) combining electrical conductivity, pH, body temperature, and verified subclinical/clinical outcomes [INFERENCE].

Biggest Risk

Probe bio-fouling and sensor calibration drift caused by milk fat residues in field barn conditions leading to spurious conductivity readings [INFERENCE].

Biggest Technical Challenge

Engineering a time-series ML feature extraction pipeline that effectively filters out noise (e.g., ambient heat spikes, minor diet changes) to isolate genuine subclinical mastitis signals 7–14 days in advance without triggering excessive false positives [INFERENCE].

First 5 Actions

  1. Action 1: Construct the physical ESP32 sensing circuit on a breadboard and write the firmware code for reading EC, pH, and temperature [INFERENCE].
  2. Action 2: Develop a Python script to synthesize a 30-day longitudinal dataset of 50 cows with embedded 14-day subclinical mastitis trajectories [INFERENCE].
  3. Action 3: Train and evaluate the baseline LightGBM predictive model on the synthetic dataset, verifying ROC-AUC score [INFERENCE].
  4. Action 4: Scaffold the FastAPI backend and PostgreSQL schema with TimescaleDB hypertable extensions [INFERENCE].
  5. Action 5: Build the core offline-first React Native mobile UI shell with Hindi/English support and local SQLite storage [INFERENCE].

Validation Before Coding

  • Verify physical sensor voltage output using known calibration solutions (EC buffer solution and pH 4.0 / 7.0 buffers) [INFERENCE].
  • Confirm that the LightGBM model feature importances prioritize multi-day trend deltas over static raw values [INFERENCE].

Buildability Score /100

88/100 [INFERENCE] (High feasibility due to accessible ESP32 hardware, standard Python ML frameworks, and proven cross-platform React Native offline paradigms; slight deduction due to time-series ML dataset tuning requirements).

Confidence

HIGH [INFERENCE] (The proposed solution strictly adheres to the provided SIH JSON requirements, addresses real-world Indian rural constraints, and avoids unverified claims or fake resources).

Research Sources

  1. Title: Application of soft computing models for prediction of subclinical mastitis in indigenous breed of dairy cattle in India [1.1]

    • URL: https://epubs.icar.org.in/index.php/IJDS/article/view/91265
    • Source Type: Academic / Research Journal (ICAR - Indian Council of Agricultural Research) [1.1]
    • Supported Claim: Confirms subclinical mastitis prediction feasibility using soft computing / ML models on Indian cattle breeds (Sahiwal & Murrah buffaloes) [1.1].
    • Reliability Assessment: High (Official ICAR publication portal) [1.1].
  2. Title: Bharat Pashudhan Livestock Data Stack & National Digital Livestock Mission [2.1]

    • URL: https://www.global-agriculture.com/india-region/what-is-bharat-pashudhan-livestock-data-stack/
    • Source Type: Official / News Coverage of DAHD Digital Public Infrastructure [2.1]
    • Supported Claim: Confirms Bharat Pashudhan uses 12-digit Pashu Aadhaar unique IDs, tracks 15.5+ crore animal records, and provides API integration structures for livestock disease monitoring [2.1].
    • Reliability Assessment: High (Government digital public infrastructure press reporting) [2.1].
  3. Title: Early detection of clinical mastitis from electrical conductivity data [3.2, 3.3]

    • URL: https://www.researchgate.net/publication/355400410_Changes_in_electrical_conductivity_milk_production_rate_and_milk_flow_rate_prior_to_clinical_mastitis_confirmation
    • Source Type: Peer-Reviewed Research Publication [3.2]
    • Supported Claim: Documents electrical conductivity and milk production changes occurring 7 to 14 days prior to clinical mastitis confirmation [3.2, 3.3].
    • Reliability Assessment: High (Peer-reviewed animal science research) [3.2].
  4. Title: IIT Kanpur transfers technology for Detection of Mastitis in Bovines to Prompt Equipments [4.4, 4.9]

    • URL: https://www.iitk.ac.in/detection-of-mastitis-in-bovines
    • Source Type: Official Institutional Press Release (IIT Kanpur) [4.4]
    • Supported Claim: Confirms existing commercial technology ecosystem in India (Prompt Equipments & IIT Kanpur LFIA lateral flow strip for S. aureus) [4.4, 4.9].
    • Reliability Assessment: High (Official university news releases) [4.4].
02 / What our

DEVELOPERS SAY

" 30M+ Google Gemini tokens went into researching, analyzing, and understanding all 233 SIH problem statements to make them easier to explore and solve. "
Satyam Kumar
Satyam Kumar
CEO , Full Stack Developer
" The platform makes SIH problem statements much easier to understand. Having everything from the problem details to the procedure in one place. "
Rishabh Ranjan
Rishabh Ranjan
COO , Content Writer
" Oh, you got ads? Well, we need to make money too! But, you can use our platform to help you win SIH and take home the prize money. "
Himanshu Kumar
Himanshu Kumar
CMO , Product Reviewer
03 / Are You

READY TO
BUILD?

Get in touch if you need help bringing your ideas to life, or simply have an interesting idea you'd like to talk through. I'm always open to a conversation and exploring new possibilities together.