Our earlier notes described the parts one at a time: making GC–MS data computable, predicting retention, formulation models trained on trial history and compliance written as rules. Mafer SuperIntelligence puts them behind one conversational interface. A language model plans the work and calls the modules; the modules do the chemistry and the rules. This note describes the architecture and walks through the example in the film.
Architecture
Agent loop. The interface sends the conversation together with what the scientist has on screen, such as a sample, a formula or a run. The model calls the tools of the modules the company uses and streams the answer. Each result comes back as a card that opens the underlying object, so the scientist can check it.
Tools. Each module exposes its capabilities as tools. A tool is only offered when the company’s data can support it, so the model cannot call a capability that has no data behind it. The model never executes an action that cannot be undone: the scientist confirms it first.
Modules. A module does one part of the lab’s work. Modules exchange data only through defined interfaces, so each one can be tested and versioned on its own.
Data. Each company’s data is isolated from the data of every other company. The results that the modules produce, such as confirmed identifications and formula versions, are stored with that company’s data, so they are available to the next question.
Worked example: from a chromatogram to a compliant formula
A sample arrives at the lab: an eau de parfum, code EDP-0412. The team needs to know what is in it, rebuild it as a formula and check that it can be sold in Europe. Usually that work goes from the GC lab to the perfumers and then to the regulatory team, with emails and spreadsheets in between. In the film, a scientist does it in one conversation of four steps.
1. Read the run. “Which compound is the most abundant in EDP-0412?” The model calls the GC–MS engine. The engine reads the raw instrument files, corrects the baseline, detects and deconvolves the peaks and integrates their areas. The model reads the ranked peak table and answers: linalool, at 9.84 min. The extracted-ion traces it checked are on the card.
2. Identify the profile. Each deconvolved spectrum is searched against reference libraries, and the retention index is used to confirm or reject the hits. Where an FID trace is available, it is used for quantification. The analyst confirms or corrects each candidate. Every confirmation is stored as a labeled example for later runs.
3. Rebuild the formula. “All reviewed. Can you rebuild it as a formula?” The formulation module maps the identified constituents to the raw materials in the company’s own catalogue, using each material’s known composition. It then fits the proportions so that the predicted constituent profile matches the measured one. In the film, eight raw materials reproduce the sample with a 94% fit, and the card lists each material’s fitted percentage.
4. Check and fix. “Would this pass as an eau de parfum in the EU?” The regulatory module evaluates each ingredient against deterministic rules encoded from the regulation, here Regulation (EC) No 1223/2009. No language model is involved in that decision. Butylphenyl methylpropional (Lilial) has been listed in Annex II, prohibited substances, since 1 March 2022, so the formula fails. The model then calls the odor map, which places molecules in a learned odor embedding (a graph neural network, after the Principal Odor Map of Lee et al., 2023). It retrieves the nearest neighbors of Lilial and proposes Florhydral. The candidate goes through the same regulatory check before it is shown.
Design choices
- Calculations in code, planning in the model. Peak areas, match scores, fitted proportions and legal limits come from deterministic functions that we can test. The model chooses the order of the calls and writes the explanation.
- Capabilities follow data. A company only sees the tools that its data can support.
- Scientist confirmation as training data. Identifications and formula decisions are confirmed by a person. These confirmations are the labels that improve identification and fitting over time.
- Evaluations per company. Each deployment has its own set of evaluation questions, which we use to check every change.
Availability
We are deploying SuperIntelligence now with flavor, fragrance and food companies. Our forward-deployed team connects each lab’s own data and workflows. To see it on your data, book a demo.
References
Lee, B. K. et al. (2023). A principal odor map unifies diverse tasks in olfactory perception. Science, 381(6661), 999–1006. DOI: 10.1126/science.ade4401.
Commission Regulation (EU) 2021/1902 of 29 October 2021 amending Annexes II, III and V to Regulation (EC) No 1223/2009 as regards the use in cosmetic products of certain substances classified as carcinogenic, mutagenic or toxic for reproduction.