Skip to content

guglxni/DevTrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DevTrack

Python FastAPI React License

DevTrack Platform Banner

A comprehensive platform for developmental assessment and tracking

οΏ½οΏ½ Table of Contents

πŸ” Overview

DevTrack provides a comprehensive API and demonstration web application for processing and analyzing developmental milestone assessments. The system supports question processing, keyword management, score recording, and response analysis to facilitate the assessment of developmental milestones in children.

🧠 Advanced NLP Analysis πŸ”„ Continuous Learning πŸ“Š Detailed Reporting
State-of-the-art language models for assessment Improves accuracy over time with active learning Comprehensive visualization of developmental progress

✨ Features

  • Smart Response Analysis: Sophisticated NLP techniques to analyze caregiver responses
  • Multi-tier Scoring System: Combines LLM, keyword-based, and ensemble approaches
  • Active Learning: Continuously improves with expert feedback
  • R2R Integration: Enhanced reasoning and retrieval for complex cases
  • Comprehensive Assessment API: Unified API endpoints for all assessment needs
  • Interactive Web Demo: User-friendly interface for demonstrating capabilities
  • Extensive Testing Framework: Robust testing and performance reporting

πŸš€ Quick Start

For a comprehensive guide on using the API and web interface, see our API Quick Start Guide.

Starting the Application

We've provided several scripts to make it easy to start the application:

# Start the API server
./start_api_server.sh
Component URL Description
API Server http://localhost:8003 Endpoints for assessment processing
Active Learning Dashboard http://localhost:8003/active-learning/ Review and improve model performance
Expert Feedback Interface http://localhost:8003/feedback/ Input from domain experts
R2R Dashboard http://localhost:8003/r2r-dashboard/ Enhanced reasoning visualization

🧠 Active Learning System

Active Learning System

DevTrack includes an Active Learning system that helps improve scoring accuracy over time:

  • 🎯 Targeted Learning: Identifies valuable examples for expert review based on uncertainty and disagreement
  • πŸ“Š Prioritization: Focuses on examples that would provide the most information gain
  • πŸ“ˆ Model Tracking: Monitors versions and performance improvements over time
  • πŸ”„ Feedback Loop: Provides an interface for expert feedback

To start the API server with Active Learning enabled:

# Using the provided script
./start_active_learning.sh

# Or manually
export ENABLE_ACTIVE_LEARNING=true
python3 main.py --api

πŸ” R2R Integration

R2R Integration

The system includes a fully implemented and production-ready R2R (Reason to Retrieve) integration that enhances developmental assessment accuracy:

πŸš€ 40% improved accuracy on edge cases compared to the standard system
πŸ“ Detailed reasoning for each scoring decision
🧩 Better handling of context-dependent, contradictory, and ambiguous parent responses
πŸ” Advanced retrieval capabilities for developmental research and guidelines

To start the API server with R2R enabled:

# Using the provided script
./start_with_r2r.sh

# Or manually
export ENABLE_R2R=true
python3 main.py --api

For detailed information and benchmarking results, see the R2R Integration Documentation.

🎯 Smart Scoring System

DevTrack's smart scoring system provides reliable and accurate assessments through multiple approaches:

Enhanced Keyword Scoring

The system detects various response patterns:

Response Type Keywords Score
Positive "yes", "always", "consistently" INDEPENDENT
Emerging "sometimes", "occasionally", "starting to" EMERGING
Support-needed "with help", "with assistance" WITH_SUPPORT
Regression "used to", "stopped", "regressed" LOST_SKILL
Negative "no", "never", "not at all" CANNOT_DO

Tiered Scoring Approach

Smart Scoring Pipeline
  1. Primary: LLM-based scoring (when available)
  2. Secondary: Keyword-based scoring as reliable fallback
  3. Tertiary: Ensemble scoring for uncertain cases

Advanced Techniques

  • βœ… Word boundary-aware keyword matching: Prevents false matches
  • βœ… Negation detection: Correctly identifies negated phrases
  • βœ… Milestone-specific pattern matching: Uses custom patterns for each milestone type
  • βœ… Special phrase handling: Correctly interprets complex phrases

For more details on the reliable scoring system, see Reliable Scoring Documentation.

πŸ“ Directory Structure

project/
β”œβ”€β”€ src/                  # Core source code
β”‚   β”œβ”€β”€ api/              # FastAPI application code
β”‚   β”œβ”€β”€ core/             # Core scoring and NLP functionality
β”‚   β”œβ”€β”€ utils/            # Utility functions and helpers
β”‚   β”œβ”€β”€ testing/          # Testing framework and tools
β”œβ”€β”€ scripts/              # Scripts for running, testing, managing
β”‚   β”œβ”€β”€ start/            # Scripts for starting servers
β”‚   β”œβ”€β”€ test/             # Scripts for running tests
β”‚   β”œβ”€β”€ debug/            # Scripts for debugging issues
β”‚   └── fixes/            # Scripts for fixing specific issues
β”œβ”€β”€ tests/                # Python test files
β”œβ”€β”€ examples/             # Example usage of the API
β”œβ”€β”€ docs/                 # Documentation files
β”œβ”€β”€ data/                 # Data files for milestones and scoring
β”œβ”€β”€ test_data/            # Test data for API testing
β”œβ”€β”€ test_results/         # Output directory for test results
└── logs/                 # Log files

🧩 Components

πŸ”„ API Service πŸ§ͺ Testing Framework
FastAPI-based REST API for developmental milestone assessments Comprehensive testing tools and performance reporting

πŸ”„ API Service

The API service provides the following endpoints:

Endpoint Description
/question Processes questions related to developmental milestones
/keywords Manages keywords used for analyzing responses
/send-score Records scores for specific developmental milestones
/score-response Analyzes parent/caregiver responses
/comprehensive-assessment Combines all functionality in a single call

For detailed API documentation, see API Documentation.

Running the API Service

# Using Python directly
python3 -m uvicorn src.api.app:app --port 8003

# Or with the provided script
./scripts/start/start_api.sh

πŸ§ͺ Testing Framework

The testing framework includes tools for API testing and performance reporting:

Test Results Dashboard

Running Tests

# Run all tests
./run_tests.sh

# Test a single endpoint
./scripts/test/test_single_endpoint.sh /endpoint_path iterations data_file

# Test the comprehensive endpoint
./scripts/test/test_comprehensive_endpoint.sh test_data/comprehensive_test.json

# Run tests for all endpoints
./scripts/test/run_all_tests.sh

Test results are saved to the test_results directory, including JSON results, performance charts, and HTML reports.

For detailed testing documentation, see Testing Documentation.

πŸ“š Documentation

Additional documentation is available in the docs/ directory:

πŸ“„ License

This software is proprietary and owned by Aaryan Guglani. All rights reserved.

Copyright (c) 2025 Aaryan Guglani

This software is provided under a proprietary license. See the LICENSE file for details.

Contact

For inquiries regarding commercial use or licensing, please contact [email protected]


Made with ❀️ for improving developmental assessment and tracking

Β© 2025 Aaryan Guglani

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published