dasemu 5e2a22340f refactor(crowd_analysis): simplify table + upgrade YOLO + add regional holidays
- Remove internal YOLO counts (cars/people/buses/total_vehicles) from crowd_analysis table
- Keep only crowd_density and confidence_scores for persistence (no ML training impact)
- Upgrade from YOLOv8n to YOLOv11m for better person detection (fewer false positives)
- Add regional holidays: Día de Castilla y León (4/23), Santiago Apóstol (7/25, shared with Galicia)
- Add Easter Monday (moveable, 2018-2035) for Castilla y León and Galicia
- Update all tests to match simplified crowd_analysis schema

Tests: all 38 SQLite/crowd_analyzer tests + 13 feature tests passing.
2026-03-13 18:03:15 +01:00
2026-03-12 14:51:32 +01:00
2026-03-13 15:10:37 +01:00
2026-03-13 15:10:37 +01:00
2026-03-13 10:52:48 +01:00

SkiPredictor

Autonomous Ski Station Forecasting System for Northern Spain.

SkiPredictor uses a hybrid approach (Rules Engine + Machine Learning) to provide high-accuracy forecasts for ski station status, open kilometers, and crowd levels. It targets three main stations: Valgrande-Pajares, San Isidro, and Fuentes de Invierno.

🚀 Overview

  • Hybrid Prediction: Combines physical rules (wind thresholds, minimum snow depth, precipitation) with ML models (Random Forest, Gradient Boosting, LightGBM) trained on 15+ years of historical data.
  • Automated Pipeline: Daily data collection from Open-Meteo (weather) and Infonieve (station status), followed by automated feature engineering and prediction runs.
  • Multi-Channel Delivery:
    • Telegram Bot: Instant updates and interactive station queries.
    • FastAPI Backend: Professional REST API for integration with web and mobile apps.
    • Scheduled Tasks: Internal APScheduler manages forecast cycles and weekly model retraining.
  • Crowd Analysis: Experimental YOLOv8-based crowd detection via public webcams.

🛠️ Core Components

  • Backend (app/): FastAPI server providing JWT-authenticated access to forecasts and system status.
  • ML Engine (ml/, predictor/): Training and inference logic using scikit-learn and LightGBM.
  • Bot (bot/): Telegram bot implementation for user interaction.
  • Pipeline (pipeline/, scripts/): Data ingestion, scraping, and feature engineering.
  • Storage (storage/): Unified SQLite database for historical datasets, runtime logs, and predictions.

🏁 Quick Start

# Clone the repository
git clone https://git.dariosevilla.es/dasemu/skipredictor.git
cd skipredictor

# Initialize environment and start bot
./start.sh --cron --collect-now --bot

See DEPLOYMENT.md for detailed server setup, ML training, and systemd integration.

📖 Documentation

⚖️ License

MIT License - Copyright (c) 2026 Darío Sevilla

S
Description
No description provided
Readme
6.2 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 84.6%
TypeScript 11.8%
CSS 2.3%
Shell 0.7%
Java 0.3%
Other 0.2%