
How I built an offline analyzer for synthetic IMU, pose, and actuator logs
A portfolio, synthetic-data-only walkthrough of field-telemetry-analyzer: an offline analyzer for synthetic IMU, pose, and actuator logs, with explainable anomaly flags scored against injected ground truth. How to build it, run the tests, and what the GitHub Pages sample report actually shows, including the honest gaps.
This is a simulation only
This is a portfolio demo, not production field-test software and not a certified FDIR system. Every fixture is generated in-repo by a seeded simulator with documented, injected faults. These are not real robot, customer, or lab-field logs. The analyzer does not use MQTT, a time-series database, or Grafana, and it is not a live telemetry dashboard. It is not a ROS or MCAP bag evaluation bench, and it is not an ML detector. I built an offline analyzer that parses CSV or a ROS-bag-like JSONL file, plots the streams, raises simple explainable anomaly flags, scores those flags against injected ground truth, and writes a run report. I did not invent the residual, windowed-statistic, or change-detection methods it uses.
Try the live demo
The fastest way to see it working is the sample report on GitHub Pages: https://applycoding.github.io/field-telemetry-analyzer/
The page title is "Field telemetry analyzer (synthetic data only)," and a banner repeats "These are not real field logs." The page is a static HTML report from the standard scenario at seed 20261110, generated in CI, not an interactive analyzer running in the browser. You get the event-attribution table, the flag table, and six charts: imu, pose_path, pose_time, actuator, clock_offset, and flags.

Image: docs/demo.png from the repository, a 1280 by 720 capture of the sample report. Synthetic data only. applycoding.com.
What the project is
field-telemetry-analyzer (repo: applycoding/field-telemetry-analyzer, commit 47441b9) is an offline analyzer for synthetic IMU, pose, and actuator logs. The stack is:
| Layer | Role |
|---|---|
field_telemetry_analyzer.generate |
Seeded planar 60 s run, standard or clean. |
field_telemetry_analyzer.parse |
CSV directory (imu.csv, pose.csv, actuator.csv) or a ROS-bag-like JSONL file with topics /imu/data, /pose, and /actuator. Not a ROS runtime and not MCAP. |
field_telemetry_analyzer.detect |
Eight deterministic, numpy-only detectors. No learned metrics. |
field_telemetry_analyzer.score |
Event-attribution scoring against a sidecar ground_truth.json. |
field_telemetry_analyzer.report and the fta CLI |
HTML, Markdown, a flags CSV, and the six matplotlib charts. |
This is an original implementation, inspired by well-known residual, windowed-statistic, and change-detection methods, and by the idea references credited in REFERENCES.md and NOTICE: ROS sensor_msgs/Imu field naming, REP 103 units and body-frame conventions, matplotlib for ordinary plots, the general idea of windowed change detection (Basseville and Nikiforov, idea only, not a CUSUM library), classical one-dimensional lag-grid delay estimation, and the idea of a human-readable diagnostic report (ros/diagnostics). I did not copy those sources, and this repo does not depend on ROS.
IMU samples run at 100 Hz (dt is 0.01 s). Pose and actuator rows are the even IMU samples (50 Hz, dt is 0.02 s). Kinematics are piecewise and planar. The standard scenario at seed 20261110 injects eight faults of known time and magnitude. A clean scenario uses the same trajectory and the same noise draws with no injections.
Detectors and scoring
The eight detectors, and the injected faults they are scored against on that standard seed, are:
| Id | Detector | What it looks for | Injected fault |
|---|---|---|---|
| F1 | imu_bias |
Adjacent 0.20 s blocks of ax (20 samples), flag when the trailing-minus-leading mean has absolute value at least 0.25. |
Accel bias step of 0.40 m/s^2 from 12.0 s to 60.0 s. |
| F2 | gyro_dropout |
The first non-finite gyro sample, or a gyro timestamp gap above 2.5 times 0.01 s. | 50 NaN gyro samples from 22.0 s to 22.50 s. |
| F3 | stuck_sensor |
A 0.30 s window of finite gz with population variance below 2.5e-7 and max == min, plus motion (mean of max(|left_meas|, |right_meas|) above 0.05). |
A noiseless frozen gyro from 36.0 s to 37.50 s. |
| F4 | timestamp_gap |
A pose interval above 0.10 s with a sequence gap of at least 2. | A 0.42 s pose gap starting at 18.0 s. |
| F5 | timestamp_jump |
A pose interval of dt <= 0. |
A backward pose timestamp jump of -0.25 s at 45.0 s. |
| F6 | actuator_sat |
A 10-sample dwell with measured speed at the rail (U_MAX is 1.00) and command above that rail. |
Left command 1.20 m/s and measurement 1.00 m/s from 26.0 s to 27.0 s. |
| F7 | pose_jump |
A pose step whose distance exceeds 0.80 * dt + 0.05 m. |
A +0.80 m jump in x from 42.0 s to 42.20 s. |
| F8 | clock_drift |
An offline 1-D lag grid between smoothed IMU gz and a two-point pose yaw-rate, flagged when the identifiable lag has absolute value at least 0.08 s. |
IMU clock scale error rho = 0.02 from 48.0 s to 60.0 s. |
Scoring is event_attribution_v1. A flag is absorbed by a fault when the detector matches and t_host sits in [t_start, t_end + dt], where dt is 0.01 s for IMU and 0.02 s for pose and actuator. Precision and recall here mean that documented event-attribution count, not an ML metric. Multiple flags for one event still count as one true positive: F7 raises two pose_jump flags and is scored as one TP with n_flags 2. Latency is t_host of the first absorbed flag minus t_start, stored as integer microseconds (round(latency_s * 1e6)).
Build and run locally
CI pins Python 3.12.16 on ubuntu-24.04, and the Playwright job also pins Node.js 24.22.2. Locally:
# Python 3.12.16 recommended (CI pin)
pip install --require-hashes -r requirements-dev.lock.txt
pip install -e .
fta generate --scenario standard --seed 20261110 --out /tmp/fta-standard
fta detect --log /tmp/fta-standard --out /tmp/fta-detect
fta score --log /tmp/fta-standard --truth /tmp/fta-standard/ground_truth.json \
--flags /tmp/fta-detect/flags.csv --out /tmp/fta-detect/score.json --gate
fta report --log /tmp/fta-standard --flags /tmp/fta-detect/flags.csv \
--score /tmp/fta-detect/score.json --out /tmp/fta-site \
--truth /tmp/fta-standard/ground_truth.json
fta score --gate exits 1 when the event-attribution counts are not a perfect standard result, or when a clean or empty-truth run has any flag. Output directories must be empty. You can pass --disable to turn off a named detector, and --format jsonl when the log is the JSONL form.
The test job also runs python tool/notice_check.py and python tool/spdx_check.py. Lint is ruff check.
Results from the tests
On commit 47441b9, GitHub Actions run 42941346688 completed every job in ci.yml. The lint job printed All checks passed!. The test job reported 38 passed (pytest 9.2.0 on Python 3.12.16), then ran the NOTICE and SPDX checks. The mutants job printed mutants ok after the eight source mutants each failed their own latency test and the unmodified latency plus precision/recall tests then passed (9 passed). The report job generated the sample site from standard / seed 20261110. The e2e job reported 1 Playwright test passed, checking the title, the banner, the six chart images, and a 1280 by 720 screenshot.
On that standard run, scoring is 8 true positives, 0 false positives, 0 false negatives, precision 1.0, recall 1.0, with 9 flags raised. The clean scenario must produce 0 flags. The asserted detection latencies, in microseconds, are F1 200000, F2 0, F3 300000, F4 400000, F5 0, F6 200000, F7 0 (2 flags), and F8 7000000. The F1 imu_bias flag at seq 1220 has delta 0.392092. The F8 clock_drift flag is at seq 5500, t 55.14, t_host 55.0, and delta 0.09.
The committed golden hashes cover flags.csv and score.json on that seed, not the plot PNG bytes.
Pages deploy 42941746125 on this SHA returned HTTP 200 for the live demo, whose title is "Field telemetry analyzer (synthetic data only)."
License and references
Apache-2.0. Copyright 2026 Arpan Bom. See LICENSE and NOTICE.
NOTICE lists the pinned dependencies with licenses, including numpy 2.5.4, matplotlib 3.11.2, Jinja2 3.1.6, MarkupSafe 3.0.4, pytest 9.2.0, ruff 0.17.4, Python 3.12.16, Node.js 24.22.2, and @playwright/test 1.65.0, plus the GitHub Actions pins in .github/workflow-pins.md, and it points at REFERENCES.md for idea-only references and their licences. No third-party detector source is vendored.
How this was verified
I ran the standard portfolio-tutorial checks against commit 47441b914aa313908906f8acff454bb3c532333c on main.
- The GitHub repo is not a fork.
gh api repos/applycoding/field-telemetry-analyzerreports"fork": false. - The single commit on
mainhas author and committer Arpan Bom (applycoding@gmail.com).git log --format=%B mainhas noCo-authored-bytrailers. The only remote branch at this SHA ismain. - A search of the tree found no
third_party,vendor, orexternaldirectories, and no "ported from", "adapted from", or "copied from" markers in the authored source. - This is an original implementation of well-known residual, windowed-statistic, and change-detection methods, inspired by the projects and references credited above. I did not invent those methods, and I did not copy those sources.
- At
47441b9,NOTICEnames the direct pip, npm, toolchain, and Actions pins with licenses, and it points atREFERENCES.mdfor idea-only references. The repo license is Apache-2.0. TheLICENSEfile is byte-identical to the official Apache-2.0 text from apache.org. - Commands, paths, APIs, and the numbers in this tutorial were checked against the repo at
47441b9and against the live sample report. The 38 pytest passes, the ruff line, the NOTICE and SPDX checks,mutants ok, and the Playwright pass are from GitHub Actions run 42941346688 on that commit. Pages deploy 42941746125 on this SHA returned HTTP 200 for the live demo. The live report shows precision 1.0, recall 1.0, TP 8, FP 0, FN 0, 9 flags raised, the latency table above, F1 delta 0.392092, and the clock-drift flag at seq 5500,t55.14,t_host55.0, delta 0.09. Both runs haveactorandtriggering_actorapplycoding. - Independent checks at this SHA: the eight source mutants in
tool/mutants.sheach fail their owntest_latency_*test (raisedIMU_BIAS_DELTA, NaN gyro replaced with zero,STUCK_VARforced negative, raisedGAP_TH, disabledtimestamp_jump, raisedSAT_DWELL_SAMPLES, raisedPOSE_V_MAX, and raisedDRIFT_ABS), and the mutants job requires that they are killed before the unmodified latency and precision/recall tests pass; the clean scenario must produce zero flags;fta score --gateis a hard fail when those counts are not perfect; and authorship as above. - This project is synthetic data only. These are not real field logs. It is not a certified FDIR system.
Limits
This is synthetic data only. These are not real field logs, not production field-test software, and not a certified FDIR system. The Pages demo is a static report from the standard seed, not an analyzer running in the browser. The IMU bias detector is evaluated only on 0.20 s block edges; a step that splits a block unfavorably can be missed, and the demo fixture is aligned on an edge on purpose. The stuck-gyro detector looks for an exact digital freeze (max == min) plus motion, not a soft, noisy stall. Clock-drift lag is a coarse 1-D grid on a 60 s file with an exaggerated scale error rho = 0.02. It is an offline windowed estimate, not a Kalman clock model, and not t - seq * dt. The flag time is the window's right edge, a scheduled offline latency, not an online causal time. Kinematics are piecewise and planar; velocity steps do not include impulsive accelerations. Plot PNG bytes can change with the renderer; tests hash flags and score.json, not images. Precision and recall are event-attribution counts, not ML metrics. F5's recovery interval (44.75 s to 45.02 s) is neither a timestamp gap nor a second jump.