How vharichandana/jiva works
JIVA is a Streamlit research-screening application: users choose a modality or the agent workflow, submit patient media, and receive analysis findings with downloadable reports. The agent path validates and routes inputs, executes selected modality adapters, and synthesizes results. The README also documents VOC explainability and benchmarking, audio/X-ray assisted reads, video rPPG, and the scoped Ask JIVA assistant. Relationships below rely on the README and shown source/index references; some modality internals were not sampled, so uncertain wiring is omitted.
Main entry points: streamlit_app.py Application routing · module_registry.py Adapter registry · orchestrator.py Execution controller · agent_page.py Agent interface
Components 26
Streamlit experience
- Application routing
streamlit_app.py - Home and chat
pages/home.py - Ask JIVA
components/chatbot.py
Screening modalities
- Breath VOC
pages/voc_analysis.py - Audio analysis
pages/audio_analysis.py - Chest X-ray
pages/xray_analysis.py - Video rPPG
pages/video_analysis.py - VOC adapter
agent/adapters/voc_adapter.py - Audio adapter
agent/adapters/audio_adapter.py - X-ray adapter
agent/adapters/xray_adapter.py - Video adapter
agent/adapters/video_adapter.py
Agent workflow
- Agent interface
pages/agent_page.py - Input validation
agent/input_analyzer.py - Decision routing
agent/router.py - Laya decisions
agent/laya_engine.py - Adapter registry
agent/module_registry.py - Execution controller
agent/orchestrator.py - Result contracts
agent/schemas.py - Result aggregation
agent/result_aggregator.py - Summary synthesis
agent/summary_generator.py
Models and knowledge
- Video processing
utils/video_processor.py - PhysFormer network
models/physformer/Physformer.py - JIVA knowledge
components/jiva_knowledge.py
Results and reports
- PDF reports
utils/pdf_report.py - Agent reports
agent/report_generator.py
Other components
- User
Connections 31
- User → Application routing: opens
README.md - Application routing → Home and chat: routes
streamlit_app.py - Application routing → Breath VOC: routes
streamlit_app.py - Application routing → Audio analysis: routes
streamlit_app.py - Application routing → Chest X-ray: routes
streamlit_app.py - Application routing → Video rPPG: routes
streamlit_app.py - Application routing → Agent interface: routes
streamlit_app.py - Home and chat → Ask JIVA: renders
pages/home.py - Ask JIVA → JIVA knowledge: uses knowledge
components/chatbot.py - Agent interface → Input validation: submits inputs
pages/agent_page.py - Agent interface → Decision routing: requests routing
- Decision routing → Laya decisions: requests decisions
agent/router.py - Decision routing → Adapter registry: checks adapters
agent/router.py - Execution controller → Adapter registry: fetches adapters
agent/orchestrator.py - Execution controller → Result aggregation: aggregates outputs
agent/orchestrator.py - Execution controller → Summary synthesis: synthesizes summary
agent/orchestrator.py - Execution controller → Result contracts: uses contracts
agent/orchestrator.py - Adapter registry → VOC adapter: registers
agent/module_registry.py - Adapter registry → Audio adapter: registers
agent/module_registry.py - Adapter registry → X-ray adapter: registers
agent/module_registry.py - Adapter registry → Video adapter: registers
agent/module_registry.py - VOC adapter → Result contracts: returns output
agent/adapters/voc_adapter.py - Audio adapter → Result contracts: returns output
agent/adapters/audio_adapter.py - Video adapter → Video processing: delegates processing
agent/adapters/video_adapter.py - X-ray adapter → Chest X-ray: uses inspection
agent/adapters/xray_adapter.py - Video processing → PhysFormer network: runs network
utils/video_processor.py - Breath VOC → PDF reports: generates report
pages/voc_analysis.py - Audio analysis → PDF reports: generates report
pages/audio_analysis.py - Chest X-ray → PDF reports: generates report
pages/xray_analysis.py - Video rPPG → PDF reports: generates report
pages/video_analysis.py - Agent interface → Agent reports: generates report