# PEA SubstationOps · HideoutLab

> AI that plans the teams, equipment and vehicles for substation maintenance, across provinces. Built for PEA Hackathon 2026. A real, live project from HideoutLab: what it does and how it was built.

Source: https://hideoutlab.dev/en/works/pea-substationops

[Back to Works](https://hideoutlab.dev/en/works)

## PEA SubstationOps

AI that plans the teams, equipment and vehicles for substation maintenance, across provinces. Built for PEA Hackathon 2026.

Category

AIWeb appHackathonWeb platformLLMMachine learning

Developers

Anupun Khumthong+1 more

![PEA SubstationOps](https://hideoutlab.dev/works/pea-substationops.webp)

PEA SubstationOps is a proof of concept built by AGICAFET for PEA Hackathon 2026, for the Provincial Electricity Authority (PEA). It helps supervisors staff substation testing and maintenance jobs: for each job it recommends a team, equipment and a vehicle, can borrow them from another region, and weighs the travel cost against who is actually free that day.

### The AI

-   Every recommendation comes with the reasons behind it, and a Google Gemini assistant explains in chat why a team was picked
-   Plans are ranked by how many of the team are free on the day, whether they are in the same region, and the cost of travelling there
-   A world model (a JEPA-inspired neural network in PyTorch) predicts a plan's time, cost, chance of success and risk from 15 features; in training it reached R² 0.951 to 0.996 on all four
-   An AI Monitor page tracks the model: prediction error, calibration, drift and serving health

### The system

-   Staff report a job with its type (protection relays, circuit breakers and switchgear, transformers and AVR), priority, PEA branch and date
-   A dashboard of issues by status and priority, and a map of open jobs and free teams across Thailand
-   Every team's calendar for the month: free, on a job, on leave or off
-   An operator view where teams accept and work through their jobs
-   A data pipeline that reads PEA's own Excel rosters, where each day's status is the cell's color

### Built with

-   Next.js, React, Tailwind CSS and shadcn/ui
-   Leaflet and Recharts
-   Python, pandas and openpyxl for the data pipeline
-   PyTorch for the world model
-   Supabase
-   Google Gemini
-   Vercel, deployed by GitHub Actions

### Screenshots

#### In the app

Every team's month at a glance: free, on a job, on leave or off (names blurred)

AI Monitor: how well the world model predicts, and when it starts to drift

Serving health, drift and regression tests (simulated data in the proof of concept)

From training: R² 0.951 to 0.996 on all four predictions, and the loss curve

Reporting a job: its type, priority, PEA branch and date

Sign-in, built for PEA Hackathon 2026

[View project](https://pea-substationops.vercel.app/login)

## Discover more of our work

-   ![AI Course Agent](https://hideoutlab.dev/works/ai-course-agent.webp)
    
    ### [AI Course Agent](https://hideoutlab.dev/en/works/ai-course-agent)
    
    RAG chatbot in production for an IT training institute: it recommends courses on the website and in LINE, with an admin dashboard for human handoff.
    
-   ![SkyOps](https://hideoutlab.dev/works/skyops.webp)
    
    ### [SkyOps](https://hideoutlab.dev/en/works/skyops)
    
    AI drone mission assistant: a large language model turns plain-language commands into flight plans.
    
-   ![Coding for Metaverse](https://hideoutlab.dev/works/coding-for-metaverse.webp)
    
    ### [Coding for Metaverse](https://hideoutlab.dev/en/works/coding-for-metaverse)
    
    Online coding courses for students, by Bangkok University and depa.
    

[See all work](https://hideoutlab.dev/en/works)

Chat with us

## Have a project in mind?

Message us on Facebook or send us a message here, and tell us what you'd like to build.

[Contact us](https://www.facebook.com/hideoutlab.team)
