Kanchanaburi GeoGuard
Published:
Kanchanaburi GeoGuard (ระบบเฝ้าระวังภัยธรณีพิบัติและรายงานภัยจากชุมชนด้วย AI สำหรับจังหวัดกาญจนบุรี) is a live geohazard map for Kanchanaburi province, with community hazard reports over LINE and AI triage of photos. I built it for the Mahidol AI Community 2026: AI Adoption Challenge with Kiro, AI Development Challenge (Track A).
GeoGuard is a research and awareness tool, not an official warning. For official announcements, follow the Thai Meteorological Department (TMD) and the Department of Disaster Prevention and Mitigation (hotline 1784).
The problem
Kanchanaburi faces several geohazards in one province: earthquakes on the active Sri Sawat and Three Pagodas fault zones near two large dams, landslides and flash floods in Sai Yok, Thong Pha Phum and Sangkhla Buri, sinkholes in limestone, and seasonal floods and droughts. The data already exist, but they are spread across TMD, USGS, EGAT, ThaiWater, DMR, NASA and GISTDA, and rural areas have few instruments to show what is happening on the ground after an event.
What it does
- One live map of earthquakes (TMD + USGS), dam levels (Srinagarind, Vajiralongkorn), 26 river gauges and 101 rain stations, landslide watch (NASA LHASA), fire hotspots (FIRMS), satellite floods (GISTDA) and DMR hazard layers. Every layer shows its source and data time.
- Community reports over LINE: consent → photo → location → short note → a report number within seconds.
- AI triage with Claude on Amazon Bedrock: hazard type, severity (1–4) and a short Thai summary returned as validated JSON; anything that fails validation goes to a person for review.
- “Did you feel it?” survey after an earthquake, mapped per ~5 km cell. Damage photos become observed MMI values that adjust a physics-based shaking model (BSSA14 with the Worden et al. 2012 GMICE).
- Phone as a shaking sensor: live 3-axis acceleration, with GPS-located shaking reports sent to the map and to staff.
- Alerts to village heads by LINE, Telegram or SMS, with contacts encrypted on the back end (PDPA by design).
- A CAP 1.2 feed for provincial agencies, map export to QGIS/PyGMT, playback of 16,810 past earthquakes since 2007, a “feel the shaking” teaching page and offline operation.
How it was built
GeoGuard was developed with spec-driven development in Kiro: 6 steering files (product, PDPA, tech, structure, data sources, UI), 37 specs each with requirements (EARS format), design and tasks, and a hook that runs the relevant tests on save. The prototype has about 270 commits from one week of development and more than 1,000 automated tests (pytest and web). The infrastructure is written in AWS CDK (Lambda, DynamoDB, S3, KMS, Bedrock, CloudFront) and the whole system also runs on one laptop without AWS or a LINE account.
Who it is for
Geoscience staff and students at Mahidol University Kanchanaburi Campus, field teams checking rain and landslide risk before going out, villagers and local administrations in Sai Yok, Thong Pha Phum and Si Sawat, and provincial disaster agencies.
Interactive slides with videos (12 MB; opens in your browser, use the arrow keys) · Presentation slides (PDF) · Try the live demo
