YOLOv8 Screw Detection Performance variation with the Composition of Real and Synthetic Training Data
This study investigates the impact of varying ratios of real and synthetic training data on YOLOv8 screw detection performance, revealing that while synthetic data can enhance accuracy when combined with sufficient real data, it fails to replace real data entirely, and a subsequent hybrid FCM-ANFIS classifier improved classification metrics without achieving statistically significant gains over the baseline.
Original paper licensed under CC BY 4.0 (https://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
In the quiet hum of a modern factory, a robot arm reaches for a tiny metal screw, but it cannot simply grab and go. It must first know exactly which screw it is holding. Is it the short one, or the long one? If the robot grabs the wrong size, the assembly fails, the machine jams, and the production line stops. For decades, humans have done this inspection with their eyes, but as factories grow faster and more automated, the need for a machine that can see and decide has become urgent. This is where computer vision steps in, using cameras and artificial intelligence to act as the robot's eyes. The most powerful tools for this job are deep learning systems, which learn to recognize objects by studying thousands of examples. However, there is a catch: these systems are hungry for data. They need vast libraries of labeled photographs to learn what a screw looks like from every angle, under every light, and against every background. Gathering these real-world photos is slow, expensive, and often impossible to do in sufficient quantities. This has led engineers to a tempting alternative: creating the images inside a computer. These synthetic images are perfect, generated by software that renders a screw in a virtual world, allowing researchers to create millions of examples in minutes. But a question has lingered in the minds of engineers: can a machine learn to see the real world just by looking at a fake one? Or does it still need to see the real thing to truly understand it?
A team of researchers at the Technical University of Freiberg in Germany set out to answer this question with a specific, practical goal. They wanted to build a system that could automatically identify two very similar types of screws, known as M3 × 8 and M3 × 12, which differ only in length. To do this, they trained a sophisticated detection model, a type of artificial intelligence called YOLOv8, using a mix of real photographs and computer-generated images. They did not simply guess at the right mix; instead, they treated the problem like a scientific experiment, systematically testing different combinations. They created a grid of scenarios, training the model with anywhere from zero to fifty percent real photos, and from zero to one hundred percent synthetic images. In total, they ran sixteen different training sessions, carefully controlling the variables to see exactly how the balance of data changed the result. They kept the test set—the set of real photos the model had never seen before—exactly the same for every run, ensuring that any change in performance was due to the training data, not the test conditions.
The results revealed a clear and somewhat surprising truth about how these machines learn. When the researchers trained the model using only computer-generated images, with no real photographs at all, the system performed poorly. It struggled to recognize the screws in the real world, achieving a detection score of less than twenty percent. This confirmed that a purely synthetic diet was not enough; the gap between the perfect, clean virtual world and the messy, complex real world was too wide for the model to bridge on its own. However, the story changed as soon as real data was introduced. When the team added just twenty percent real images to the mix, the performance jumped significantly, more than doubling the score. The model began to understand the nuances of light, shadow, and texture that only a real camera captures. The best performance came when the model was trained with a combination of fifty percent real images and one hundred percent synthetic images, reaching a score of nearly eighty-four percent. This suggests that while synthetic data is incredibly useful for filling in the gaps and providing variety, it cannot replace the grounding that real-world examples provide.
The researchers also discovered that adding more synthetic data does not always help; in fact, it can sometimes hurt. When they had a small amount of real data—specifically twenty percent of their real photo collection—adding more synthetic images actually made the model worse. The score dropped as the synthetic portion grew larger. This indicates that without enough real-world examples to anchor the learning, the model gets confused by the sheer volume of fake images, which may not represent the real world accurately enough. It is as if the model is trying to learn a language by listening to a thousand hours of a slightly wrong accent, while only hearing the correct accent for a few minutes; the wrong accent eventually drowns out the truth. The study showed that the ideal ratio of real to synthetic data is not a fixed number that works for every situation. Instead, it depends heavily on how much real data is available and how different the synthetic images are from the real ones.
In a second phase of their work, the researchers asked if they could improve the model's final decision-making process. Even when the model successfully found a screw, it sometimes guessed the wrong length. To fix this, they took the information the model had already gathered—such as the size of the screw in the image, its shape, and how confident the model was in its own guess—and fed it into a secondary system. This system used a method called fuzzy logic, which allows for shades of gray in decision-making rather than strict yes-or-no answers. They trained this secondary system to act as a referee, reviewing the model's initial guess and correcting it if the evidence suggested a different answer. This hybrid approach did improve the accuracy slightly, raising the correct classification rate from about eighty percent to just over eighty-two percent. However, the researchers were careful to note that this improvement was small and not statistically significant enough to claim it was a major breakthrough. It was a refinement, a small polish on the edge of a tool that was already working well, rather than a transformation of the tool itself.
The study concludes that the path to reliable industrial vision is not about choosing between real and synthetic data, but about understanding how they work together. Synthetic images are a powerful resource that can accelerate training and provide variety, but they cannot stand alone. They need the anchor of real-world photographs to teach the system what the actual world looks like. The researchers found that the more real data available, the more beneficial the synthetic data became, acting as a helpful supplement rather than a replacement. For industries looking to automate inspection, the lesson is clear: do not rely solely on computer-generated perfection. Gather as many real examples as possible, and use synthetic images to fill in the gaps, but always remember that the machine must eventually see the real thing to truly learn. The work also highlights the limits of current methods; even with advanced techniques to refine the results, the gains are often marginal, suggesting that the fundamental challenge of bridging the gap between simulation and reality remains a complex hurdle to overcome.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.