MTM
Portuguese energy market competitive intelligence — real-time tracking, ML forecasting, copycat detection
What It Is
MTM is a competitive intelligence dashboard for the Portuguese energy retail market. It tracks 7 competitors, 318+ offers, and uses machine learning to detect reaction patterns, forecast discount trends, and identify copycat behavior — all in real-time.
The project started as a personal need: working at MEO Energia, I wanted to know what competitors were doing before they knew I was watching. The result is a Streamlit dashboard that combines web scraping, Wayback Machine archives, and ML models into actionable intelligence.
Live Metrics (v0.1)
Capabilities
📊 5 Dashboard Views
Overview (KPIs), Competitors (reaction lag), Timeline (discount evolution), Patterns (PCA positioning), Forecasts (time series prediction).
🎯 Copycat Detection
Identifies when competitors copy offers with 68% similarity threshold. GoldEnergy → Galp detected with 3-day lag.
⏱️ Reaction Lag Analysis
Measures how fast competitors respond to market changes. Range: 1 day (fastest) to 12 days (slowest).
🔮 ML Forecasting
Linear regression predicts 8.63 offers/day trend. Per-competitor discount forecasting with 95% confidence intervals.
📡 Real-Time Alerts
Visualping integration monitors 10 competitor pages. Instant notifications when new offers launch.
🗄️ Wayback Archive
66 historical snapshots (Jan–May 2026) for trend analysis. See how pricing evolved over time.