Skip to main content

Fuel EKO Wars: Gamified Telematics for Eco-Driving

This is a repository for the collection of drive cycles with E. Tzirakis.

Project Status: 🛠️ Prototype Phase / Conceptual Architecture Primary Goal: Transform raw OBD-II data into a competitive "Eco-Index" to incentivize defensive driving and reduce fuel consumption by up to 20%.


🏎️ Project Overview

Fuel EKO Wars is a comprehensive hardware-software ecosystem designed to bridge the gap between mechanical vehicle performance and human driver behavior. While modern vehicles often provide real-time fuel economy feedback, older vehicles lack these insights, and most systems fail to provide the social motivation necessary for long-term behavior change. This project addresses that "motivation gap" by gamifying the driving experience.

The system functions as a closed-loop feedback mechanism:

  1. Data Acquisition: High-frequency telematics (RPM, Speed, Throttle, Fuel Rate) are pulled from the vehicle via an OBD-II (ELM327) interface.
  2. Edge Processing: An Android device (initially using the Torque app) acts as a gateway, logging drive cycles and syncing them with user-inputted refueling data and vehicle specs.
  3. Cloud Analytics: A centralized server processes these logs to calculate an Eco-Index—a weighted metric comparing the user against factory benchmarks (NEDC/WLTP) and the community mean.
  4. Gamified Feedback: Users receive rankings, "Fuel Vouchers," and psychological nudges ("Loss Aversion" messages) via a dedicated UI to encourage smoother, safer, and more efficient driving.

🛠️ The Engineering Logic

As a Mechanical Engineering project, the focus extends beyond simple "average MPG". We are building a database capable of Drive Cycle Synthesis. By recording "Real-World" data, the project aims to help academic and research institutions (like NTUA/ETeKL) create more accurate emissions and consumption models that reflect actual Greek or European road conditions rather than idealized lab cycles.

Core Evaluation Pillars:

  • Behavioral Analysis: Monitoring throttle position ("The Egg under the Pedal" theory), aggressive acceleration/deceleration, and excessive idling.
  • Performance Benchmarking: Real-time deviation from NEDC/WLTP standards.
  • Environmental Impact: Direct calculation of $CO_2$ footprint reduction.

📊 System Architecture & Data Flow

graph TD
    %% Node Definitions
    Vehicle["🚗 Vehicle <br/>(OBD-II Port)"]
    App1["📱 App 1: Logger <br/>(Torque/Android)"]
    Server["☁️ App 2: Server <br/>(Statistical Engine)"]
    App3["🏆 App 3: Dashboard <br/>(Leaderboard/UI)"]

    %% Flow/Connections
    Vehicle -- "BT/WiFi" --> App1
    App1 -- "CSV Upload" --> Server
    Server -- "Eco-Index" --> App3
    
    %% Feedback Loop (Dashed)
    App3 -. "Behavioral Feedback" .-> Vehicle

    %% Styling
    style Vehicle fill:#f9f9f9,stroke:#333,stroke-width:2px
    style App1 fill:#e1f5fe,stroke:#01579b,stroke-width:2px
    style Server fill:#e8f5e9,stroke:#1b5e20,stroke-width:2px
    style App3 fill:#fff3e0,stroke:#e65100,stroke-width:2px

📈 Current Project Status (Internal Log)

Component Status Notes
Hardware ✅ Verified Standard ELM327 (WiFi/BT) is sufficient.
Data Logging ⚠️ Testing Currently manual via Torque; needs automation.
Drive Cycle Pipeline ✅ Active src/drive_cycle_calculator/ — two-stage archive + analysis pipeline.
Local DB ✅ Active DuckDB catalog (data/metadata.duckdb) + v2 archive Parquets.
Cloud DB 🏗️ Planned Supabase/PostgreSQL migration scripted but not deployed.
Gamification 💡 Conceptual "Loss Aversion" messaging and reward tiers defined.
Partnerships 🔍 Exploring Looking at EKO, NTUA, and TEI Crete for scaling.

💻 Software

The src/drive_cycle_calculator/ Python package implements the data pipeline:

Raw OBD xlsx/csv
  → dcc config-init <folder>              # generate metadata-<folder>.yaml template
  [user fills in metadata-<folder>.yaml]
  → dcc ingest <raw_dir> <out_dir>        # archive to <out_dir>/trips/*.parquet
                                          # embeds UserMetadata + GPS stats in each file
  → dcc extract <data_dir>               # parquets → trip_metrics (DuckDB / CSV / XLSX)
  → dcc analyze <data_dir>               # similarity scores + representative trip

CLI reference:

Command Description
dcc config-init <folder> Write metadata-<folder>.yaml template
dcc ingest <raw_dir> <out_dir> Raw xlsx/csv → v2 archive Parquets (no DuckDB)
dcc extract <data_dir> Archive Parquets → trip_metrics DuckDB/CSV/XLSX
dcc analyze <data_dir> Similarity analysis from metrics.duckdb
dcc gui Launch the tkinter GUI

See CLAUDE.md for developer guidance, TODOS.md for the backlog, and notes/designs/obd-file-processing-config.md for the full pipeline design.


🚩 Things to Clarify (Proactive Review)

  • Automation Loop (Slide 20): Currently, Torque requires a manual export of CSV files. For a viable "game," this must be replaced with a background service or a custom-built logger in App 3 to ensure zero-friction data uploads.
  • Incentive Verification (Slide 15): If rewards are tied to specific fuel brands (e.g., EKO), how do we verify the user actually filled up there? (e.g., OCR for receipts or QR codes).
  • Correction on "Penalty": The presentation mentions "User Burden" (Επιβάρυνση). I have interpreted this as Psychological Loss Aversion (messages about missed rewards) rather than financial penalties, as the latter would likely alienate users.
  • Obsolete Standards: The slides focus on NEDC. For a 2026 deployment, the backend must prioritize WLTP values for vehicle benchmarking to maintain scientific accuracy.

#FuelEkoWars #Telematics #EcoDriving #MechanicalEngineering #Obsidian #DriveCycles #Sustainability

Metadata

Release files for drive-cycle-calculator 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drive-cycle-calculator 0.5.1
File Size Uploaded Provenance Actions
drive_cycle_calculator-0.5.1.tar.gz 10.2 MB Without provenance Details for drive_cycle_calculator-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for drive-cycle-calculator 0.5.1
File Interpreter ABI Platform Actions
drive_cycle_calculator-0.5.1-py3-none-any.whl Python 3 none any Details for drive_cycle_calculator-0.5.1-py3-none-any.whl

Total release size: 10.3 MB

Release files / drive_cycle_calculator-0.5.1.tar.gz

Download URL drive_cycle_calculator-0.5.1.tar.gz
Size 10.2 MB
Tags Source
SHA-256 checksum
How to use checksums
642fdca52635a99485dc5869ced2649d5535ac902044e1fbe53064129a0cd51f
BLAKE2b-256 checksum
How to use checksums
14fb5a76ab0352a51cbaba62d20e75affc4be61864166fe278403810b79cc891
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / drive_cycle_calculator-0.5.1-py3-none-any.whl

Download URL drive_cycle_calculator-0.5.1-py3-none-any.whl
Size 66.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c107492c7bccee9f97717a4662cce2bceca3f3afe6e24e681f0667a01a05834
BLAKE2b-256 checksum
How to use checksums
23b1b9a1b54d3a48d0b48616fc78ce56e9463798a3d38e37f8cb8f04df780006
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for drive-cycle-calculator 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page