All case studies

Public sector

Connecting partners' AI models to identify unknown substances

For a German federal authority, we are building the platform that brings measured lab spectra together with AI models from specialist chemistry software companies to identify unknown substances.

Client
A German federal authority
Industry
Public sector
Period
since August 2026
Status
Ongoing

How it works

  1. Measured lab spectra (IR, NMR, MS)
  2. sourcecast Orchestration
  3. Partners' AI models propose structures
  4. sourcecast Comparison, ranking, dashboard and report

The starting point

When a forensic lab finds a substance that no reference library contains, it has to work out the structure itself. The starting point is measured spectra from mass spectrometry and, where available, IR and NMR spectroscopy. Several chemistry software companies offer specialised AI models for this. Each has its own interface, data format and runtime, and some calculations take minutes.

The steps depend on each other. First the models propose candidate structures, then their spectra are predicted and compared with the measured ones. What was needed was a neutral party that connects these models into one workflow that keeps going even when a service is slow or briefly unreachable.

What we are building

We are building the orchestration in between for a German federal authority. Lab experts upload their measured spectra, and the platform sends them step by step to the partners' models, including NXT Spectra and IQM. The models propose candidate structures and predict their spectra. The platform compares these predictions with the measured spectra and ranks the candidates.

After the first step the workflow pauses so the experts can decide which candidates are worth the slower IR and NMR predictions. In the dashboard they see measured and predicted spectra side by side, and at the end the platform generates a PDF report. The AI models belong to the partners. Our job is to make them work together reliably and to always show what is happening and what went wrong.

Where it stands

We started at the end of August 2026. After the first week a test environment, automated tests and error monitoring were running, and we then connected one partner after another. The partner services are now connected and tested, and routine operation with the partners is starting. We keep extending the platform together with the authority and its partners.

Technical details
  • Every analysis step has its own explicit state. Steps with nothing to do are marked as skipped, so the chain never stalls.
  • Celery background jobs submit work to the partners, poll for progress and hand the result to the next step.
  • A shared exchange format and one adapter per partner keep a change on one partner's side away from the rest of the chain.
  • Redis locks make sure the same step is never processed twice.
  • Timeouts are treated as temporary and retried. All other errors show up in the dashboard with a readable message.
  • Parsers for the scientific formats JCAMP-DX and NIST MSP, interactive spectra charts with Plotly and around 250 automated tests, many of them using real sample files.
work with us
get in touch