Lab 2 · Agentic AI: Can One Station Measure the Train Speed?

IMAGE 2026 · ~2 hours

You will not write code by hand. You instruct an AI coding agent (opencode), and it analyzes 24,000 seismic records of high-speed trains and builds a neural network that predicts train speed from one station's waveform.

The 6 steps

  1. Lab 1 · Your first agent task (warm-up)
  2. Mini-LLM Lab · build a tiny transformer
  3. Install opencode & configure the agent
  4. Say hello to your agent
  5. Get the dataset
  6. Analyze the data with AI
  7. AI + Deep Learning: single-station speed fitting
  8. Think: AutoEncoders & clustering

What you need

ItemGiven?
A laptop with internetyours
DeepSeek API key (one per student)yes — in Step 1
Dataset hsr_waveform_velocity.npz (118 MB)yes — in Step 3
examples/ pack (figures + scripts)yes — sent with the tutorial
Golden rule: the agent writes code, you own the result. Read what it produces, and question it.

Lab 2 — part of the short course Theory and Practice of Large Language Models for the Geoscientist, IMAGE 2026 (Houston).

Course instructor: Gerard Schuster (University of Utah).

Lab design & data: Yongxiang (lucky) Shi (Institute of Geology and Geophysics, Chinese Academy of Sciences).

Built with the opencode agent + DeepSeek — the same tools this lab teaches.