Sensor Robustness in Plasma Diagnostic Models: Evaluation with TokaMark

We evaluated the robustness of ML models in plasma diagnostics with TokaMark. Sensor failures collapse LSTM, XGBoost remains. The plasma stream is

15 jul 2026 • 4 min read • Q2BSTUDIO Team

Sensor failure in tokamaks: impact on AI models

Plasma diagnostics in nuclear fusion reactors such as tokamaks represent one of the harshest environments for any AI-based monitoring system. When a machine operates at temperatures in the tens of millions of degrees and disruptions can damage critical components within milliseconds, the reliability of predictive models is not a luxury, but an absolute necessity. However, the operational reality is far from ideal laboratory conditions: sensors fail, signals are corrupted, and data outages are concentrated precisely at the most dangerous moments, just before a disruption. This problem, which for years has been underestimated by the scientific community, has been systematically addressed in a recent study that analyzes the robustness of plasma diagnostic models using the TokaMark dataset, composed of more than 11,500 shots of the MAST tokamak. The results not only reveal deep vulnerabilities in popular architectures like LSTM or Transformers, but offer valuable lessons for any industry that relies on real-time inference on imperfect sensor data.

The research compared four model families—XGBoost, LSTM, Transformer, and a reference CNN—under six physically plausible failure scenarios and three data imputation strategies. What they found is disturbing: when sensors fail in the last time windows before a disruption, sequential models such as LSTM suffer a 212% increase in normalized mean square error (NRMSE), while a statistical model based on XGBoost degrades by only 37%. Forward-fill imputation, which fills in missing values with the last valid observation, almost completely eliminates degradation caused by random failures in sequential models – LSTM goes from +57% to close to 0% – but is ineffective when corruption affects the end of the observation window. Even more surprising is the alarm-level assessment: under proximal failures, the LSTM collapses to a true positive rate (TPR) of 0.00, but the imputation with the mean recovers it to 1.00, completely reversing the pattern observed in the NRMSE. In addition, plasma current emerges as the most critical diagnosis: its removal degrades performance by 73% to 140% across architectures.

These findings have direct implications for custom software development in industries where the quality of sensor data is variable. It is not enough to train accurate models under ideal conditions; Systems need to be designed to maintain their performance when input data degrades. This is where the experience of companies like Q2BSTUDIO is essential. Specializing in artificial intelligence for enterprises, they offer solutions that integrate robust AI services capable of handling sensor uncertainty through adaptive imputation strategies, anomaly detection, and continuous retraining. In addition, these solutions are deployed on scalable cloud infrastructures, such as AWS and Azure cloud services, which allow large volumes of data to be processed in real time without compromising latency. Cybersecurity also plays a crucial role, as a compromised sensor could be the gateway to an attack that alters the model's predictions, putting the integrity of the reactor at risk. As such, Q2BSTUDIO integrates cybersecurity practices into every layer of the system, from data acquisition to inference.

Another relevant aspect is the ability of AI agents to autonomously manage the response to sensor failures. The study shows that imputation with the mean can recover alarms even when the sequential model collapses, suggesting that hybrid systems—which combine statistical and deep learning models—could offer superior robustness. In this sense, business intelligence tools such as Power BI allow the health status of sensors and the confidence of predictions to be visualized in real time, facilitating decision-making by operators. Q2BSTUDIO develops bespoke applications that integrate these dashboards with AI models, ensuring critical information gets to those who need it at the right time. Process automation also benefits from these advances: by detecting an impending failure, AI agents can activate safety protocols without human intervention, reducing the risk of catastrophic damage.

The path to commercially viable fusion reactors inevitably passes through robust diagnostic systems. The study with TokaMark shows that the scientific community still has a long way to go, but it also offers a roadmap: prioritise robustness over nominal accuracy, explore hybrid architectures and validate models under realistic fault conditions. For tech companies, this is an opportunity to apply these lessons to other critical domains, such as aerospace, energy, or advanced manufacturing. Q2BSTUDIO, with its expertise in custom application development, is ready to meet these challenges, combining nuclear fusion knowledge with best practices in software engineering and machine learning. Robustness is not a bonus; it is the foundation on which trust in the autonomous systems of the future is built.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.