A Cognitive Agentic AI Framework for Interactive Process Analysis and Optimization

Trung Ngoc Trinha, Roman Tschentscher, Trong Dong Nguyen, Trung Thanh Nguyen, Anna TrubetskayaarXiv 2026

TL;DR

Imagine having a tireless, brilliant assistant who has memorized every manual, database, and simulation flowsheet in your chemical plant. This paper introduces the Cognitive Agentic AI Framework (CAAF), a system that allows engineers to optimize complex industrial processes using natural language—essentially "talking" their way to a 10% increase in production efficiency while the AI handles the grueling math and software coordination in the background.

What Problem Does This Paper Address?

In the world of chemical engineering, "optimization" is often a polite word for a logistical nightmare. To make a plant run better, an engineer has to juggle rigorous process simulators (like COCO or Aspen), massive SQL databases, machine learning models, and a mountain of scientific literature.

Usually, these tools live in separate "silos." Moving data between them requires manual effort, custom coding, and a lot of time. If you want to know how increasing reactor temperature affects both your carbon yield and your electricity bill, you might spend weeks running thousands of simulations. This "friction" often prevents engineers from exploring the best possible designs, leaving them to settle for "good enough."

Methods

The authors built CAAF using a philosophy called "Harness Engineering." The idea is simple but powerful: don't ask a Large Language Model (LLM) to do math—it’s notoriously bad at it. Instead, use the LLM as a "Main Agent" (the brain) to handle logic, planning, and conversation, while delegating the heavy lifting to specialized "Functional Agents" (the hands).

Figure 1. Overall concept of CAAF for interactive process analysis and optimization. Four complementary engineering resources connect to the framework through interfaces. Engineers supply domain knowledge and objectives, review returned evidence, and guide subsequent requests. The process topology remains fixed while selected operating and equipment parameters may vary.

The framework coordinates four key "Partners":

  1. SQL Agent: Digs through historical data.
  2. Simulation Agent: Runs the actual virtual plant model (COCO).
  3. Optimization Agent: Uses Bayesian Optimization to hunt for the "sweet spot" in the data.
  4. RAG (Retrieval-Augmented Generation) Agent: Scans scientific papers to explain why a certain trend is happening.

The system uses Gemma 4-31B as its reasoning engine and LangGraph to manage the workflow, ensuring that the AI remembers the context of the conversation across multiple steps.

Datasets

To test the system, the researchers focused on a Methyl Acetate production process. They provided the AI with:

  • Dataset 1: ~3,900 simulation cases representing various "what-if" scenarios and plant fluctuations.
  • Dataset 2: ~2,700 "Design of Experiments" cases used to train fast-acting machine learning "surrogate" models.
  • Literature Base: 121 pages of technical documents and scientific publications regarding carbonylation and catalyst behavior.

Key Insights and Ideas

  • The "Surrogate" Shortcut: Running 4,000 rigorous simulations would take weeks. CAAF uses the ML agent to predict results in seconds, then uses the real simulator to verify only the top candidates. This is the "trust but verify" model of AI engineering.
  • Contextual Memory: Because the Main Agent maintains an "investigation context," an engineer can say, "Now refine the search within that high-yield region," and the AI knows exactly which region they are talking about without needing the coordinates repeated.
  • Failure Handling: If a simulation fails to converge (a common headache in engineering), CAAF doesn't crash. It logs the error, excludes the "bad" data, and keeps moving—just like a human engineer would.
Figure 2. Cognitive agent architecture showing the interplay between the Main Agent and functional modules.

Key Results

The framework was put to the test on a virtual methyl acetate plant, and the results were impressive:

  • Efficiency Boost: The AI found a configuration that achieved a 0.921 carbon conversion yield, a significant jump from the 0.81 maximum found in the initial human-generated dataset.
  • High Precision: The "surrogate" ML models were incredibly accurate, with a mean error of only 0.85% compared to the rigorous, slow-moving simulators.
  • Speed: A complex multi-objective optimization that would normally take days of manual work was completed in roughly 2 minutes for the search and 70 minutes for the final verification.

Limitations and Future Work

While CAAF is a major leap forward, the authors note a few hurdles:

  • Fixed Topology: Currently, the AI can change the settings of the plant (temperature, pressure), but it can't yet suggest changing the pipes (adding a new reactor or changing the flowsheet layout).
  • The "Expert" Requirement: You still need a human expert to set up the initial simulation and database. The AI makes the tools more accessible, but it doesn't replace the need for foundational engineering knowledge.
  • Security: For real-world industrial use, issues like data confidentiality and "hallucination" checks need even more robust safeguards.

In short, CAAF isn't an "autopilot" for chemical plants—it's a high-powered exoskeleton for the engineers who run them.

Summary updated

Abstract

Complex multivariable process analysis and optimization require coordinated access to simulation, structured data, machine learning (ML), optimization, and scientific literature, often across disconnected software tools. We present a Cognitive Agentic AI Framework (CAAF) that enables interactive, iterative process investigation through natural-language prompts within an established flowsheet. Following harness-engineering principles, CAAF assigns task interpretation, planning, knowledge synthesis, and context management to a large language model while delegating numerical calculations to specialized tools. Dedicated providers connect databases, scientific-document retrieval, ML-assisted Bayesian optimization (BO), and COCO process simulation. The framework is demonstrated on methyl acetate production. Guided by successive prompts, an engineer explored multivariable relationships, conducted 4,000 BO iterations to maximize carbon conversion yield (C-Yield) and minimize specific energy cost (C-SEC), refined operating bounds, and verified selected candidates through process simulation. Re-simulation of 16 candidates within the restricted domain showed close agreement with ML predictions, with a mean absolute C-Yield error of 0.0085 (0.85 percentage points). The highest BO-derived C-Yield, verified by COCO, was 0.921 versus approximately 0.81 in the initial dataset, an improvement of about 11 percentage points. CAAF also detects and reports non-converged simulations, excludes invalid outputs, and continues subsequent evaluations. The results demonstrate how human-guided agentic coordination can combine engineering tools for iterative analysis and optimization with rigorous simulation-based verification under a fixed process topology.
BibTeX
@misc{trinha2026cognitive,
  author = {Trung Ngoc Trinha and Roman Tschentscher and Trong Dong Nguyen and Trung Thanh Nguyen and Anna Trubetskaya},
  title = {{A Cognitive Agentic AI Framework for Interactive Process Analysis and Optimization}},
  year = {2026},
  eprint = {2611.27725},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27725},
}
Figure