{"id":26274452,"url":"https://github.com/exios66/gaze_calculatorz","last_synced_at":"2025-03-14T09:19:51.273Z","repository":{"id":281952136,"uuid":"946989108","full_name":"Exios66/Gaze_Calculatorz","owner":"Exios66","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-12T02:03:16.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T02:34:02.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Exios66.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-12T01:36:33.000Z","updated_at":"2025-03-12T02:03:21.000Z","dependencies_parsed_at":"2025-03-12T02:44:05.598Z","dependency_job_id":null,"html_url":"https://github.com/Exios66/Gaze_Calculatorz","commit_stats":null,"previous_names":["exios66/gaze_calculatorz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exios66%2FGaze_Calculatorz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exios66%2FGaze_Calculatorz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exios66%2FGaze_Calculatorz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exios66%2FGaze_Calculatorz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Exios66","download_url":"https://codeload.github.com/Exios66/Gaze_Calculatorz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243551248,"owners_count":20309300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-14T09:19:50.780Z","updated_at":"2025-03-14T09:19:51.264Z","avatar_url":"https://github.com/Exios66.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gaze Data Processing Pipeline\n\nA comprehensive data pipeline for processing eye-tracking gaze data, calculating fixations, saccades, and metrics useful for Continuous Wavelet Transform (CWT) analysis.\n\n## Features\n\n- Load and preprocess raw gaze data\n- Detect fixations and saccades using velocity-based or DBSCAN clustering methods\n- Compute various gaze metrics including:\n  - Fixation duration and dispersion\n  - Saccade amplitude and velocity\n  - Path complexity measures\n  - Wavelet coefficients for CWT analysis\n- Generate visualizations:\n  - Gaze trajectory plots\n  - Fixation and saccade maps\n  - Velocity profiles\n  - CWT scalograms\n  - Gaze density heatmaps\n- Save processed data for further analysis\n\n## Installation\n\n1. Clone this repository\n2. Install the required dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\nBasic usage:\n\n```python\nfrom gaze_data_processor import GazeDataProcessor\n\n# Initialize the processor with the path to your gaze data file\nprocessor = GazeDataProcessor(\"path/to/your/gaze_data.csv\")\n\n# Run the complete pipeline with default parameters\nresults = processor.run_pipeline()\n\n# Or customize the pipeline parameters\nresults = processor.run_pipeline(\n    velocity_threshold=100,  # pixels/sec\n    min_fixation_duration=0.1,  # seconds\n    min_saccade_velocity=300,  # pixels/sec\n    use_dbscan=False  # Set to True to use DBSCAN clustering\n)\n```\n\n## Input Data Format\n\nThe input CSV file should contain at minimum the following columns:\n\n- `timestamp`: Time in milliseconds\n- `x`: X-coordinate of gaze position\n- `y`: Y-coordinate of gaze position\n\n## Output\n\nThe pipeline generates several outputs in the `processed_data` directory:\n\n- CSV files with processed data, fixations, and saccades\n- Visualization images (PNG format)\n- Metrics summary\n- Wavelet data for CWT analysis\n\n## Customizing the Pipeline\n\nYou can use individual methods of the `GazeDataProcessor` class to customize your analysis:\n\n```python\nprocessor = GazeDataProcessor(\"path/to/your/gaze_data.csv\")\n\n# Load and preprocess data\nprocessor.load_data()\n\n# Choose your fixation detection method\nprocessor.detect_fixations_and_saccades()  # Velocity-based method\n# OR\nprocessor.detect_fixations_dbscan()  # DBSCAN clustering method\n\n# Compute metrics\nprocessor.compute_cwt_metrics()\n\n# Generate visualizations\nprocessor.visualize_results()\n\n# Save processed data\nprocessor.save_processed_data()\n```\n\n## CWT Analysis\n\nThe Continuous Wavelet Transform analysis is particularly useful for:\n\n- Identifying patterns at different time scales\n- Analyzing non-stationary signals\n- Detecting transient events in gaze data\n- Quantifying the time-frequency characteristics of eye movements\n\nThe pipeline computes wavelet coefficients, power spectra, and entropy measures that can be used for further CWT analysis.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexios66%2Fgaze_calculatorz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexios66%2Fgaze_calculatorz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexios66%2Fgaze_calculatorz/lists"}