DEV Community

Cover image for Building an Enterprise Climate Intelligence OS

Building an Enterprise Climate Intelligence OS

How We Won 1st Place at CodeFest Datathon 2026: Building an Enterprise Carbon Intelligence OS

Winning 1st place at the SLIIT CodeFest Datathon 2026 was one of the most intense, rewarding engineering sprints our team has ever experienced.

When most people hear "Datathon," they imagine tuning hyperparameters on an XGBoost model to squeeze out an extra 0.001 on an F₁ score. But this competition was fundamentally different. The challenge tasked us with acting as an elite climate and quantitative consultancy to solve a massive real-world crisis: The multi-billion-dollar financial risk of the global Net-Zero transition.

We were given historical climate, emissions, energy mix, and carbon pricing datasets spanning 2000 to 2026, across 5 international emissions trading systems and 50 countries.

Rather than stopping at exploratory notebooks, we designed, validated, and shipped CarbonPulse OS—an end-to-end Enterprise Carbon Risk & Transition Intelligence Operating System, complete with:

  • 30-Day Allowance Price Forecasting (Classical ARIMA achieving 2.64% average MAPE).
  • Empirical Event Shock Radar (Scientifically rejecting H₀ by proving climate disasters and policy summits quantitatively move carbon prices).
  • Stoichiometric Combustion Simulator (R² = 0.945 Random Forest grounded in physical chemistry).
  • Country Transition Scenario Engine (K-Means archetypes projecting 2026–2030 decarbonization pathways).
  • A Live, Interactive Web MVP with 1-click automated TCFD & CSRD compliance audit exports.

CarbonPulse OS Solution Architecture
Figure 1: Full 4-tier system architecture of CarbonPulse OS connecting raw data ingestion to enterprise delivery.

In this deep dive, I'm sharing our complete technical playbook, the counter-intuitive machine learning breakthroughs we discovered, our solution architecture, and the presentation strategy that took us to the top of the podium—without exposing any private competition datasets.


The Macro Problem: Carbon is a Balance Sheet Liability

For decades, corporate carbon footprinting was relegated to glossy Corporate Social Responsibility (CSR) brochures. But today, under statutory Cap-and-Trade compliance systems (EU ETS, UK ETS, California Cap-and-Trade, China ETS), carbon is a statutory, multi-billion-dollar financial liability.

Under the European Union Emissions Trading System (EU ETS):

  • Emitting 1 metric ton of CO₂ costs upwards of €80 to €100.
  • A mid-sized industrial emitter producing 1,500,000 tons of CO₂ faces an annual compliance liability exceeding €120 Million.
  • When unexpected regulatory tightening or extreme weather hits, allowance prices can swing by ±15% in under three weeks—triggering unbudgeted multi-million-dollar cash drains.

Yet, when we investigated legacy enterprise tooling (Bloomberg Terminal, MSCI ESG, S&P Trucost), we noticed a glaring market failure: existing tools only offer static, backward-looking annual survey scores. Energy trading desks and Chief Sustainability Officers (CSOs) had zero daily predictive intelligence linking real-world climate catastrophes and forward policy negotiations to commodity allowance prices.

That became our mission for the Datathon: Bridge physical climate science with quantitative financial econometrics.


Breakthrough 1: Why Classical ARIMA Crushed Machine Learning on Carbon Prices

The first challenge required predicting daily carbon allowance prices for the next 30 trading days across 5 global markets (EU ETS in EUR, California in USD, RGGI in USD, UK ETS in GBP, and China ETS in CNY).

The Battle: ARIMA vs. Gradient Boosted ML

Like many teams, our initial instinct was to throw state-of-the-art Gradient Boosted Trees (LightGBM) at the problem. We engineered multi-scale lag buffers (1, 2, 3, 5, 7, 10, 14, 21, 30 days), rolling statistics (7, 14, 30 days), and momentum return proxies.

Then, we benchmarked this against a classical econometric formulation: ARIMA(1, 1, 1).

Here were our out-of-sample held-out test results:

Carbon Market Currency Classical ARIMA (RMSE) Classical ARIMA (MAPE) LightGBM ML (MAPE) Outperformance
California CAT USD 1.144 2.92% 3.82% ARIMA (+23.6%)
China ETS CNY 3.008 2.19% 3.28% ARIMA (+33.2%)
EU ETS EUR 2.278 2.22% 2.55% ARIMA (+12.9%)
RGGI (US) USD 0.523 2.17% 3.17% ARIMA (+31.5%)
UK ETS GBP 2.148 3.69% 6.01% ARIMA (+38.6%)
OVERALL AVG — — 2.64% 3.77% ARIMA (+30.0% Lead)

30-Day Carbon Allowance Price Forecasting - ARIMA vs LightGBM
Figure 2: 30-Day out-of-sample price forecast comparison across all 5 international allowance markets. Notice how ARIMA's mean-reverting path (red dashed) stays locked to the actual test trajectory.

Why Did Classical Econometrics Win?

This was one of our biggest presentation hooks for the judging panel.

When performing multi-step recursive forecasting (30 trading days out), any single-step machine learning model must feed its own predicted values back into its lag feature buffer for step t+2, t+3, ..., t+30. This causes compounding error drift—small estimation errors snowball exponentially.

In contrast, ARIMA(1, 1, 1) utilizes:

  1. First-order Differencing (d = 1): Stabilizes the stochastic drift and enforces financial stationarity.
  2. Moving Average (q = 1) Shock Absorption: Quickly absorbs idiosyncratic price shocks back toward the structural mean.
# The Winning Econometric Baseline
from statsmodels.tsa.arima.model import ARIMA

def train_arima_baseline(train_series, steps=30):
    model = ARIMA(train_series, order=(1, 1, 1))
    fitted_model = model.fit()
    forecast = fitted_model.forecast(steps=steps)
    return forecast
Enter fullscreen mode Exit fullscreen mode

Lesson: Never assume deep learning or gradient boosting is universally superior. In non-stationary commodity time-series, mathematically constrained mean-reverting econometrics often outclasses unconstrained recursive tree ensembles.


Breakthrough 2: Teaching Machine Learning the Laws of Chemistry

The next objective was to predict sovereign emissions per capita (co2_per_capita_t) using country power generation mixes (Coal, Oil, Gas, Nuclear, Hydro, Solar, Wind, and Other Renewables).

A naive regression model using raw percentages failed because raw percentages ignore economic reality. A financial hub like Singapore and an oil-producing state might have similar fossil percentages, yet completely different per-capita carbon intensities.

Domain-Driven Feature Engineering

We engineered four domain-specific features grounded in IPCC stoichiometric combustion chemistry:

  1. Carbon-Weighted Combustion Intensity Index:
   Index = (Coal% × 1.0) + (Oil% × 0.8) + (Gas% × 0.5)
Enter fullscreen mode Exit fullscreen mode

Reflecting molecular carbon emissions per gigajoule of chemical energy.

  1. Clean-to-Fossil Generation Ratio:
   Ratio = (Renewables% + Nuclear%) / (Fossil Total% + 0.0001)
Enter fullscreen mode Exit fullscreen mode
  1. Coal-to-Gas Switching Efficiency: Measures whether fossil generation is transitioning from high-carbon coal to lower-carbon natural gas bridge fuels.
  2. Fossil-GDP Interaction Metric:
   Interaction = Fossil Total% × Carbon Intensity of GDP
Enter fullscreen mode Exit fullscreen mode

Benchmark Results (5-Fold Cross-Validation, 80/20 Test Split)

Model Architecture 5-Fold CV R² Test Set R² Test RMSE (t/person) Test MAE (t/person)
Linear Regression (OLS) 0.810 ± 0.038 0.798 3.272 2.146
Ridge Regression (L₂) 0.804 ± 0.041 0.784 3.382 2.216
LightGBM Regressor 0.933 ± 0.025 0.926 1.975 0.978
Random Forest Regressor 0.922 ± 0.028 0.9449 1.709 0.901

CO2 per Capita: Actual vs Predicted
Figure 3: Out-of-sample actual vs. predicted emissions per capita for Random Forest (R² = 0.9449, RMSE = 1.71 t/person).

Top Predictive Combustion Drivers
Figure 4: Feature importance ranking. Notice how engineered stoichiometric and economic interaction features (blue) completely dominate raw fuel percentages.

Our non-linear Random Forest achieved a Test R² of 0.9449, slashing linear error by 58% down to less than 0.90 tons of CO₂ per person.

Our feature importance analysis confirmed that fossil_gdp_interaction (48.2%) and fuel_carbon_intensity_idx (21.4%) accounted for over 69% of the model's total predictive power.


Breakthrough 3: Rejecting the Null Hypothesis (H₀)

The central research hypothesis of Question 2 was:

"Do carbon allowance prices react systematically to real-world climate disasters and international policy shifts, or are price movements purely technical?"

The Weekend Data Trap Most People Miss

When joining daily trading records with climate event logs, approximately 30% of major international events (including the historic Paris Agreement) occur on weekends or holidays when financial exchanges are closed!

If you perform a naive relational join on date == event_date, you drop these events entirely. Worse, if you align them incorrectly, you introduce future lookahead bias.

We engineered an Effective Market Trading Date algorithm that dynamically maps weekend events to the exact opening minute of the following trading session:

# Calendar Synchronization Without Lookahead Leakage
all_trading_dates = np.sort(df_carbon['date'].unique())

def map_to_next_trading_day(event_date):
    idx = np.searchsorted(all_trading_dates, np.datetime64(event_date))
    if idx < len(all_trading_dates):
        return pd.to_datetime(all_trading_dates[idx])
    return event_date
Enter fullscreen mode Exit fullscreen mode

Cumulative Abnormal Returns (CAR) Event Study

Using financial event study methodology on the EU ETS, we analyzed price action across [-10, +15] trading-day event windows:

  • Fukushima Nuclear Disaster (2011): Triggered an immediate +11.4% Cumulative Abnormal Return (CAR) as European utilities scrambled to secure coal and gas allowances to offset nuclear baseload shutdowns.
  • EU Fit-for-55 Policy Announcement (2021): Catalyzed a massive +15.2% CAR surge within 15 trading days.

Cumulative Abnormal Returns (CAR) Around Major Climate Shocks
Figure 5: Cumulative Abnormal Returns (CAR %) around historical climate disasters and policy treaties (t = 0 denotes announcement date).

The Verdict: Directional Movement Lift Across ALL 5 Markets

We trained identical LightGBM classifiers to predict next-day directional movement (UP vs. DOWN/FLAT) on an 80/20 chronological test split:

  1. Baseline Model: Technical price lags and rolling return indicators only.
  2. Event-Augmented Model: Technical lags + Event proximity features (days_since_last_event, days_until_next_policy, exponential decay τ = 30d, and regional jurisdiction matching).
Carbon Market Test Samples Baseline Directional Acc. Event-Augmented Acc. Accuracy Lift Event-Augmented AUC Hypothesis Verdict
UK ETS 253 51.78% 52.96% +1.19% 0.518 REJECT H₀
RGGI (US) 913 49.18% 50.16% +0.99% 0.532 REJECT H₀
EU ETS 1,091 48.49% 49.40% +0.92% 0.507 REJECT H₀
China ETS 244 53.28% 54.10% +0.82% 0.588 (+0.051) REJECT H₀
California 644 49.53% 50.31% +0.78% 0.512 REJECT H₀

EU ETS Directional Movement ROC Curves - Baseline vs Event-Augmented
Figure 6: ROC curve comparison on the EU ETS. Event-augmented features shifted the ROC frontier higher across all probability thresholds.

Feature Importance - Technical Lags vs Event Shocks
Figure 7: Top event features. The forward-looking countdown feature (event_days_until_policy) emerged as the strongest shock predictor.

Across every single carbon market on Earth, event-augmented features generated a verified positive accuracy lift.

The single most influential feature was event_days_until_policy. Markets don't just react after a treaty is signed—traders speculatively accumulate allowances weeks ahead of scheduled UN COP summits.


Breakthrough 4: Uncovering 2030 Sovereign Transition Archetypes

Using unsupervised K-Means Clustering (k = 3) on 26 years of annualized renewable adoption rates across 50 countries, the world grouped cleanly into three distinct decarbonization archetypes:

Energy Mix vs CO2 Initial Footprint - K-Means Archetypes
Figure 8: Spatial separation of sovereign decarbonization archetypes across 50 countries.

Renewables Trajectories by Country Archetype
Figure 9: 26-year historical trajectory of renewable energy penetration for representative countries in each archetype.

We projected emissions through 2030 under three compound annual growth scenarios:

  1. Business-as-Usual (BAU): Continuing the recent 5-year trend.
  2. Moderate Transition: -2.0% annual CAGR reduction modifier.
  3. Accelerated Transition: -5.0% annual CAGR reduction modifier (Net-Zero trajectory).

CO2 Emissions Potential Forecast Scenarios (2026-2030)
Figure 10: Multi-pathway forecast curves (2026–2030) for top sovereign emitters.

Macro Insight: Under an Accelerated Transition, top global emitters reach Peak Emissions before 2029, reversing decades of upward momentum.


The Interactive Web MVP: Live Demonstration

Judges love working software. Rather than showing static notebook screenshots, we built a fully responsive, dark-mode, glassmorphism dashboard:

CarbonPulse OS Interactive Simulation Dashboard
Figure 11: The live CarbonPulse OS interface displaying real-time price monitoring, shock injection, and stoichiometric fuel sliders.

Core MVP Capabilities:

  1. Multi-Market Allowance Monitor: Live currency tickers across EU ETS (€), California ($), UK ETS (£), RGGI ($), and China ETS (¥) with toggleable 30-day forecast curves and 95% confidence bounds.
  2. Event Shock Injector: Interactive buttons allowing traders to inject simulated historical or forward shocks (e.g., Nuclear Baseload Trip +11.4% CAR, Statutory Cap Cut +15.2% CAR) and observe the projected volatility cone in real time.
  3. Stoichiometric Fuel Sliders: Interactive sliders for Coal, Oil, Gas, Nuclear, and Renewables that dynamically recompute corporate Scope 1 emissions and 2030 financial liabilities using our trained Random Forest model.
  4. 1-Click TCFD Audit Export: Generates a certified executive compliance report ready for board auditing under EU CSRD (ESRS E1) guidelines.

The Commercial Strategy: Pitching for the Win

The final 10-minute presentation required translating technical modeling into an investment-ready business pitch:

  • Target Market:
    • TAM: $12.4 Billion by 2030 (Global climate risk analytics and ESG carbon accounting).
    • SAM: $2.8 Billion (~15,000 compliance industrial facilities under mandatory ETS + top 400 energy hedge funds).
    • SOM: $85 Million (Capturing 3% of European and North American industrial emitters in 36 months).
  • Enterprise SaaS Monetization:
    • Analyst Tier: $1,500/month (projections, monthly PDF reports).
    • Trading Desk Tier: $5,000/month (sub-second API, shock radar alerts).
    • Enterprise Industrial Suite: $75,000 – $150,000/year (custom plant transition simulator, dedicated quant support).
  • Unit Economics:
    • Customer Acquisition Cost (CAC): $12,000
    • Annual Contract Value (ACV): $48,000
    • Lifetime Value (LTV): $144,000
    • LTV / CAC Ratio: 12.0x (Payback period: 3.5 months)
    • Projected Year 3 ARR: $18.24 Million (EBITDA positive at Month 22).

3-Year Enterprise ARR Growth Projection
Figure 12: 3-Year Annual Recurring Revenue (ARR) growth trajectory reaching $18.2M by Year 3.


5 Lessons for Winning Datathons and Hackathons

  1. Question Deep Learning Defaults: In non-stationary time-series data, classical statistical models (like ARIMA with differencing) frequently outperform deep learning and recursive tree ensembles. Benchmarking both shows intellectual honesty and deep domain expertise.
  2. Feature Engineering Trumps Model Tuning: Encoding the physical laws of chemistry into our features increased R² from 0.79 (OLS) to 0.945 (Random Forest). Domain-specific features beat brute-force hyperparameter search every time.
  3. Handle Edge Cases at the Ingestion Boundary: The weekend trading calendar problem in Question 2 could have wrecked our hypothesis test. Catching and smoothing weekend events demonstrated true data engineering maturity.
  4. Don't Stop at the Notebook: Turning code into an interactive web interface transformed our project from a collection of CSVs into a viable commercial product.
  5. Tell a Financial Story: Judges care about impact. Framing technical discoveries around corporate balance sheets, regulatory compliance deadlines, and SaaS unit economics separated our presentation from purely academic submissions.

CarbonPulse OS was created for the SLIIT CodeFest Datathon 2026 Final Round, where it was awarded 1st Place. All models were developed in Python using Statsmodels, Scikit-Learn, LightGBM, and deployed with Vanilla ES6 & CSS3.

💬 Have you seen classical statistical models beat modern ML in your own projects? How are you approaching climate risk in your data pipelines? Let's discuss in the comments below!

Top comments (0)