Energy Systems • EVs • Microgrids • Optimization & ML

Welcome! I am a PhD candidate at Stanford University in the Stanford Sustainable Systems Lab (S3L) , passionate about leveraging artificial intelligence and engineering to drive research that contributes to a better world 🌎👨‍💻💡

Mateus G. de Castro Ribeiro

Research focus

AI for sustainable energy systems (EVs & microgrids), with a focus on resilience and flexibility.

Electric Vehicle

Electric bus fleets; PV, batteries & carbon-free charging; Vehicle-to-grid (V2G); Optimization & RL-based methods

Microgrids

Co-optimize energy cost & resilience; Thermal generators, batteries, solar PV; Load flexibility & prioritization; Inter‑zonal coordination (centralized & distributed)

Featured projects

24/7 CFE project

24/7 Carbon-Free Campus-Fleet

Stanford has completed the transition to 100 percent renewable electricity in March 2022, with on- and off-campus renewable electricity generation exceeding campus consumption on an annual basis. However, the campus is still plugged into the grid which carries carbon-based electricity. To completely eliminate emissions, Stanford’s next challenge is to match its electricity consumption with carbon-free resources at all hours of the year. To begin, this project will demonstrate a 24/7 Carbon-Free Electrified Stanford Campus Fleet by developing a scalable platform that intelligently coordinates solar, storage, electric bus route assignments, and bus charging. Additionally, the platform also optimizes for minimizing energy costs, providing system resiliency, and uniformly distributing vehicle utilization. This platform also serves as the first transferable model for bus fleets in school districts, corporate campuses, and municipalities to become 24/7 carbon-free.

HMARS project

Hierarchical microgrid for advanced power system resilience and reliability

Military bases face a critical need for energy resilience, ensuring the capability to independently power essential loads for 30 days or more during natural disasters, wartime attacks, or other grid outage events. We are developing a software-driven, zonal, modular microgrid solution that delivers resilient power to military bases while achieving economic benefits through demand reduction, load prioritization, and operational flexibility

Publications

CV & Experience

Download

Latest CV (PDF) hosted in the repository.

Open CV
  1. Stanford
    Sep-2022 — present
    Research Assistant — Stanford Sustainable Systems Lab (S3L)
    24/7 Carbon-Free Electrified Campus Bus Fleet / Hierarchical microgrid for advanced power system resilience and reliability
  2. ORISE
    Jul-2025 — Sep-2025
    ORISE/NPS Internship
    ORISE Scholar hosted at the Naval Postgraduate School (NPS) through the Oak Ridge Institute for Science and Education (a U.S. Department of Energy asset managed by ORAU); led design and planning of zonal microgrids for military bases.
  3. Stanford
    Spring 2024 and Spring 2025
    Teaching Assistant — CEE 272R Engineering Future Electricity Systems
    • Led weekly sections; held office hours; designed and graded assignments.
    • Mentored team projects on renewable integration, microgrids/V2G, and grid optimization (DC-OPF, battery dispatch).
    • Developed example notebooks and evaluation rubrics to support consistent, rigorous learning.
  4. BSV
    Oct 2023 — Oct 2025
    Operations Leader (2025) / Member (2024) - Brazil at Silicon Valley
    Student-led nonprofit connecting Brazilian leaders with Silicon Valley; organized a 500+ attendee annual conference, where I led all logistics and operations.
  5. Google X
    Jul-2024 — Sep-2024
    AI/Optimization Resident - X, the moonshot factory - Tapestry
    AI/Optimization Resident at X (formely Google X) working on Tapestry - a moonshot for decarbonizing the electrical grid.
  6. Stanford
    Sep-2022 — Present
    Fulbright/CAPES Scholarship award
    Awarded the prestigious Fulbright–CAPES Scholarship for Brazilian students to pursue a full PhD in the U.S.; selected as one of 15 recipients nationwide.
  7. PUC-Rio
    Aug-2019 — Jul-2022
    R&D Engineer — LSFO (PUC-Rio)
    Developed ML/data pipelines and ran lab/field experiments; results in papers, patents, and technical reports.
  8. More experience & details
    See teaching, awards, industry roles, and full history in my CV.
    See full CV

Contact