CoolFace
Apppublic

ricardo15222024/gaze-track-analyzer

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

Gaze Tracking Data Analyzer

A simple ML model for analyzing gaze tracking data and providing attention/focus scores.

Features

  • โ€”๐Ÿ“Š Analyzes CSV gaze tracking data
  • โ€”๐ŸŽฏ Calculates attention scores (1-100)
  • โ€”๐Ÿ“ˆ Provides movement and stability metrics
  • โ€”๐Ÿš€ REST API compatible
  • โ€”๐Ÿ“ฑ Designed for mobile app integration

Usage

Web Interface

  1. 1.Paste your CSV data in the text box
  2. 2.Click Submit to get analysis results

API Usage

Send POST request to /api/predict:

bash
curl -X POST \
  https://YOUR_USERNAME-gaze-tracking-analyzer.hf.space/api/predict \
  -H "Content-Type: application/json" \
  -d '{
    "data": ["elapsedTime(seconds),x,y\n0.000,100.50,200.30\n0.016,101.20,201.15\n"]
  }'

Expected CSV Format

elapsedTime(seconds),x,y
0.000,100.50,200.30
0.016,101.20,201.15
0.032,102.10,202.05
...

Analysis Metrics

  • โ€”Attention Score: Overall focus quality (1-100)
  • โ€”Duration: Total tracking time
  • โ€”Movement Patterns: Average and total eye movement
  • โ€”Stability: Consistency of gaze patterns
  • โ€”Coverage Area: Screen area covered by gaze

Score Interpretation

  • โ€”85-100: Excellent attention patterns
  • โ€”70-84: Good attention stability
  • โ€”55-69: Moderate attention focus
  • โ€”40-54: Needs attention improvement
  • โ€”1-39: Poor attention patterns

Integration

This model is designed to work with the GazeTrackApp iOS application for real-time gaze tracking analysis.