Tocsin
See the vibration, inspect the change.
The problem Tocsin solves
Understand the warning before deciding what to inspect
A bearing can develop damage before a machine stops working, but a vibration recording does not explain itself. Someone must decide what changed, whether the measurement is trustworthy, and whether the evidence justifies a closer inspection.
That investigation often means moving between raw files, analysis scripts, charts and separate reports. A simple alarm may identify a change without explaining it. A complicated model may produce a score that is difficult to interpret. Missing readings and stopped machinery make the task harder: a quiet or unavailable signal does not necessarily mean a healthy machine.
TOCSIN brings vibration recordings, detector states, frequency evidence and evaluation results into one browser-based workspace. It helps people investigate a practical question: "What changed, when did the detector notice it, and what evidence supports the warning?"
What people can use it for
Explore real bearing recordings without writing analysis code.
Select a test run and bearing, replay the measurements, change playback speed and move to a specific reading. Trends and evidence panels help connect a change in the signal to the detector's response.
Investigate why an alert appeared.
Inspect measurements, timestamps, changes relative to a learned reference and frequency evidence. Rather than relying on an unexplained warning badge, users can examine what the method responded to.
Compare detection approaches.
TOCSIN displays its envelope-spectrum method alongside a conventional RMS alarm and an isolation forest. Users can inspect detection timing and alert burden on the same recordings, including cases where a simpler method performs better.
Explore difficult data conditions.
Labelled robustness scenarios show outputs from actual pipeline reruns with complications such as missing readings and corrupted samples. These scenarios help users investigate behaviour beyond a clean, selected example.
Analyze a compatible uploaded reading.
The Analyze page runs the processing pipeline on an uploaded vibration reading and presents measurements against a selected reference. This workflow currently supports the documented IMS setup: 20 kHz sampling and 2,000 RPM. It is not a general diagnostic service for arbitrary machinery.
Inspect the method and reproduce the experiment.
The evaluation and method pages explain the dataset, calibration, comparison methods, results and limitations. The public repository provides the implementation and reproduction instructions.
Who benefits
- Students and educators: explore vibration analysis and learn the difference between a detector alert and a confirmed fault.
- Researchers and developers: compare methods, inspect unsuccessful cases and investigate sensitivity to data quality.
- Engineers evaluating monitoring concepts: examine a documented prototype before investing in machine-specific validation or integration.
TOCSIN makes these tasks easier by connecting a reading to its measurements, explanation and experimental context. Users can investigate the evidence in one place instead of assembling it across notebooks and reports.
Making uncertainty visible
The interface includes learning and no-verdict states, baseline progress, and timestamps for retained measurements. These distinctions help prevent unavailable information from being mistaken for a current normal reading. Data-quality handling remains an active validation area.
The evaluation is also explicit about unsuccessful results. The current detector alerted on one of two labelled failures and four of six bearings not labelled as failed. The RMS alarm and isolation forest alerted on both failures; a simpler envelope-level variant also performed better on these recordings.
Those results do not establish that TOCSIN is the best detector. They demonstrate why an inspectable comparison is useful: users can see the miss, the unnecessary alerts and the trade-offs.
TOCSIN currently supports investigation and learning on a documented bearing-test setup. It does not predict an exact failure time, certify machinery as safe or replace professional maintenance inspection.
Challenges I ran into
1. The results challenged my original idea
I began with the hypothesis that a bearing-specific envelope-spectrum detector could warn earlier while producing fewer unnecessary alerts than simpler methods.
The evaluation did not support that headline. TOCSIN alerted on one of two labelled failures; the RMS alarm and isolation forest alerted on both. A simpler variant without fault-frequency bands also performed better.
I removed the "earlier and quieter" claim and published the comparisons, including the missed failure. The product became a workspace for inspecting evidence and trade-offs rather than a demonstration claiming that complexity guarantees better detection.
2. A narrow frequency window missed a real signal
In the missed test, the relevant outer-race tone appeared near 231 Hz, just outside the configured +/-2% window around the calculated 236.4 Hz frequency.
A wider window caught the signal but changed the alerts on other bearings. Since I investigated this after seeing the evaluation results, I kept the deployed detector configuration unchanged and labelled the wider-window experiment as post-hoc analysis.
This preserved the difference between explaining a failure and proving an improvement on untouched data.
3. Data handling created misleading evidence
One Test 3 file was out of chronological order, and machine-stopped, nearly flat readings were being scored as ordinary operating measurements. The initial run's apparent Test 2 detection came from those stopped-machine readings.
I corrected the ordering and stopped-machine handling, preserved the original outputs, and published the corrected processing as version 1.1. Both versions remain distinguishable.
Because those corrections followed inspection of the results, I did not present version 1.1 as a new untouched evaluation.
4. Making the baselines fair
An initial three-standard-deviation RMS setting spent approximately 96% of the tuning run in alert. Using that alone would have made the comparison misleading.
I applied the same calibration window, persistence requirement and threshold-selection rule to the comparison methods. I retained the untuned result as context and reported alert burden alongside failure detection and warning time.
That made the cost of unnecessary alerts visible instead of rewarding a detector simply for raising more alarms.
5. Keeping replay and evidence synchronized
The replay combines the selected run, bearing, complication, playback cursor, trend, spectrum and evidence panel.
At fast playback speeds, repeated cancellation could prevent spectrum requests from completing. Switching runs could also leave old information visible while the next dataset loaded.
I changed spectrum updates to use throttling, labelled the reading associated with the displayed spectrum, and tied loaded data to the selected run and condition. Loading states disable controls where necessary.
URL normalization and browser regression checks addressed additional navigation cases. Later auditing still found separate URL and guided-example edge cases, which remain follow-up work rather than evidence of complete coverage.
6. Distinguishing missing data from a normal reading
A missing reading cannot responsibly be presented as evidence that a machine is healthy.
I introduced explicit learning and no-verdict states, baseline progress, and age labels for retained measurements. Baseline-dependent comparisons are hidden while a bearing is learning its reference.
The robustness examples come from actual pipeline reruns under the stated complications. Additional upload-format edge cases identified during auditing remain part of the validation work.
7. Deploying a consistent frontend, API and artifact bundle
The frontend runs on Vercel and the Python API runs on Railway. Their application versions, detector configuration and replay artifacts must agree.
I distributed the large replay artifacts through a versioned GitHub Release, pinned the download metadata and checksums, and added build-time verification. Health and version endpoints expose configuration consistency and the running commit.
The split deployment also exposed cross-origin error handling and proxy-identification issues. Structured errors and deployed-service checks helped investigate those differences.
What I learned
I built checks across Python, frontend components and browser workflows, including malformed inputs and responsive layouts. Independent auditing still found cases those checks missed.
The main lesson was to keep the scientific claim, software behaviour and interface wording aligned. A useful prototype must make unsuccessful results inspectable and distinguish validated evidence from explanations that still need testing.