Skip to content

About

Real-time sensor signal analysis with pattern recognition, anomaly detection, a live dashboard and AI-generated PDF reports.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SignalSense

Understand what your sensor is telling you.
Live signal analysis, a plain-language dashboard and an AI-written report for production sensor data.
Built for the Micro-Epsilon Hackathon 2026 (Hochschule Landshut).

Data is not the same as insight

A sensor produces thousands of measurements, but the signal alone doesn't tell the team which patterns matter or what needs attention.

Raw sensor signal over 60 seconds with several irregularities

SignalSense turns that stream into labelled patterns, highlights unusual behaviour and brings it together in one dashboard, with AI-generated reports to support the next check.

It started with a vision

Turn raw sensor signals into a clear picture of what's happening on the production line, and help the team decide what to check next.

Whiteboard sketch of the SignalSense idea

Workflow

SignalSense architecture: sensor input, signal analysis, live dashboard and AI report

What it does

SignalSense uses STUMPY, an open-source library for time-series pattern discovery and anomaly detection, alongside rules that label recognised signal patterns.

Our development included a review of public sensor datasets and experiments with clustering and anomaly detection on open temperature recordings. This research helped us explore how recurring patterns and unusual behaviour can be made easier to interpret.

  1. Signal analysis. A one-second window of the measurement is checked by rules for known patterns (vibration, spike, drift, offset, noise, coating defect) and by a STUMPY matrix-profile novelty score. Something odd that matches no rule is shown as "Unknown".
  2. Live dashboard. FastAPI and a browser view (also as a desktop window): live signal with marked sections, a timeline and events, a rhythm clock, and views for technician and area manager.
  3. AI report. A one-page PDF. All numbers are calculated in code. Groq only writes the explanations from those facts, and simple checks filter suspect numbers or equipment claims. AI text still needs review.

Live dashboard

SignalSense live view with a simulated vibration fault

Dashboard shown with generated simulation data illustrating a vibration event. Environmental values and historical patterns are simulated for demonstration. Live sensor integration has not yet been hardware-tested.

Run it

python -m venv .venv
.venv\Scripts\activate        # Windows; on macOS/Linux: source .venv/bin/activate
python -m pip install -r requirements.txt
uvicorn main:app

Open http://127.0.0.1:8000. The simulator is on by default (USE_MOCK=1). python desktop_app.py opens the same app in a desktop window.

For the AI report, set GROQ_API_KEY in the environment of the machine that runs the app. The key is never stored in the repository. Without it, the report shows "nicht verfügbar" where the AI text would be.

Sensor reader (MSC7401, RS485)

Hardware

Demo case: induSENSOR controller MSC7401, an inductive DTA sensor (the case contents list says DTA-3G8; check the label), power supply PS2401 and the IF7001 USB/RS485 converter.

Read measurements

src/read_measurements.py polls the controller over RS485 and writes a CSV. It sends only the documented "Get Measuring Value" request and never changes controller settings. The protocol is described in the MSC7xxx operating instructions, appendix A4: https://www.micro-epsilon.com/fileadmin/download/manuals/man--induSENSOR-MSC7xxx--en.pdf

  1. Install the IF7001 driver (https://www.micro-epsilon.de/fileadmin/download/software/IF7001driver.zip, run DriverInstaller.exe as administrator). The IF7001 sheet lists Windows only.

  2. Connect the controller, power supply and IF7001, and find the COM port in Device Manager.

  3. Set up the controller once with Micro-Epsilon sensorTOOL (sensor type, output, address): https://www.micro-epsilon.com/service/software-sensorintegration/sensortool/

  4. Create a virtual environment and install the requirement (Windows PowerShell shown):

    python -m venv .venv
    .venv\Scripts\activate
    python -m pip install -r requirements.txt
    
  5. Run it with the controller address from sensorTOOL:

    python src/read_measurements.py COM5 --address 3 --seconds 10
    

    COM5 and address 3 are placeholders. The address is required; there is no default.

The CSV has the unscaled value (volts) and the scaled value. The manual says a scaled value of 0 can mean the controller has not been set up. A real reading of 0 is also possible.

Configuration

Configuring the controller from code is not implemented. Use sensorTOOL for settings (sensor type, scaling, zero point, address). The manual's digital interface documents only identification, address change, reset and reading a value.

Tests

python -m unittest discover -s tests -v

They cover the request bytes, the manual's example reply, checksum errors, wrong addresses and partial replies, using a fake serial port. They do not test the hardware.

Layout

  • src/msc7401.py: request and reply handling.
  • src/read_measurements.py: command line reader.
  • tests/test_msc7401.py: unit tests.
  • src/dresden_clustering.py, tests/test_dresden_clustering.py, docs/dresden-experiment.md: held-out clustering check on public TU Dresden temperature recordings (Baumer sensors, not Micro-Epsilon). Exploratory, see the document for limits.
  • src/dresden_novelty.py, tests/test_dresden_novelty.py, docs/dresden-novelty.md: leave-one-temperature-level-out check on the same recording. Exploratory, see the document for limits.
  • src/dresden_timeline.py, viewer/timeline_template.html, tests/test_dresden_timeline.py: standalone timeline of a Dresden recording with the exploratory cluster assignments (python src/dresden_timeline.py <data_dir>, then open results/timeline/timeline.html). Baumer sensors, not Micro-Epsilon.
  • Pattern review in the timeline viewer: select a window, name its pattern, notes kept in the browser (see docs/dresden-timeline.md).

About

Real-time sensor signal analysis with pattern recognition, anomaly detection, a live dashboard and AI-generated PDF reports.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages