← Latest papers
💻 computer science

STMutants: A Mutation Testing Dataset for Structured Text Programs in Industrial Automation

This paper introduces STMutants, the first publicly available mutation testing dataset for IEC 61131-3 Structured Text programs in industrial automation, which contains 108 screened mutants to enable reproducible research on test-suite effectiveness and AI-assisted quality assurance for safety-critical PLC software.

Original authors: Md Humaun Kabir, Md Rakibul Islam, Helen H. Lou

Published 2026-06-05
📖 4 min read☕ Coffee break read

Original authors: Md Humaun Kabir, Md Rakibul Islam, Helen H. Lou

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a quality inspector at a factory. The machines on the assembly line are controlled by special computers called PLCs (Programmable Logic Controllers). These machines run on a specific coding language called Structured Text (ST). If the code has a tiny mistake, the whole factory could stop, or worse, a machine could break and hurt someone.

For a long time, researchers had a great way to test if their safety checks were good enough for regular computer programs (like apps on your phone), but they didn't have a standard "practice test" for these industrial factory machines. It was like trying to teach a student to drive a semi-truck without ever letting them sit in one.

This paper introduces STMutants, a new "practice test" designed specifically for these factory machines. Here is how it works, explained simply:

1. The "Fake Mistake" Game (Mutation Testing)

To see if a safety test is good, you don't just look at the code; you try to break it.

  • The Analogy: Imagine a teacher gives a student a math test. To see if the student really knows the answers, the teacher secretly changes one number in the problem (e.g., changing a "5" to a "6") and sees if the student still gets the answer right.
  • In the Paper: The researchers took 11 real-world factory programs and created 110 "fake mistakes" (called mutants). They changed tiny things, like flipping a switch from "On" to "Off," changing a "greater than" sign to a "less than" sign, or swapping a plus sign for a minus sign.
  • The Result: They cleaned up the list to 108 real, tricky mistakes that a computer could actually run. This is the STMutants dataset. It's the first time anyone has made a public, standardized list of these specific "fake mistakes" for factory code.

2. The "AI Student" Exam

Once they had the list of fake mistakes, the researchers wanted to see if modern Artificial Intelligence (AI) could act as a safety inspector. They asked three different AI models (think of them as three very smart students: GPT-5.2, Gemini 2.5, and Claude Sonnet 4.5) to do two things:

  1. Write a Test: Create a checklist of inputs to see if the code works.
  2. Find the Mistakes: Use that checklist to see if they could spot the 108 fake mistakes they planted earlier.

3. The Results: Who Passed?

The AI models did surprisingly well, but they weren't perfect.

  • The Winner: Gemini 2.5 was the best student, catching 94.4% of the fake mistakes.
  • The Runners-Up: GPT-5.2 and Claude Sonnet 4.5 tied, catching 86.1% of the mistakes.
  • The Easy vs. Hard Stuff:
    • Easy: The AI was great at spotting simple math errors or wrong numbers (like changing a "5" to a "6").
    • Hard: The AI struggled with time-based puzzles. One specific program, called SEQUENCE 8, was like a complex dance routine where the steps depend on what happened in the previous step. The AI got confused because it couldn't "remember" the sequence of events over time. It missed a lot of mistakes in this specific program.

4. Why This Matters

Before this paper, researchers had no standard way to compare different tools for testing factory code. It was like everyone using their own different ruler to measure a table.

  • STMutants is now the standard ruler.
  • It proves that AI can help write safety checks for factory machines, but it also shows that AI still needs help with complex, time-sensitive tasks.
  • The paper doesn't claim AI is ready to replace human engineers yet, but it provides the first solid "scorecard" to help researchers build better, safer tools for the future.

In a nutshell: The authors built a "practice exam" of fake errors for industrial machine code and used it to test three AIs. The AIs were good at finding simple errors but got tripped up by complex, time-based logic. This dataset is now available for anyone to use to build better safety tools for factories.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →