Kinetisys: Automated Quality Assurance for Robotics
Problem & Motivation
Threaded-fastener joints are everywhere in modern manufacturing — from electric vehicle motors to robotics assemblies — and a single faulty screw can mean rework, recall, or catastrophic field failure. Yet quality assurance today still leans heavily on manual inspection or simple torque thresholds that only check whether a joint "felt tight enough." These methods miss the subtle defects that matter most: mid-cycle anomalies in torque or angle that are invisible to the human eye but are captured clearly in the high-frequency sensor data the tightening system already records. The result is that defective joints pass inspection, travel downstream, and are only discovered later at far greater cost.
Kinetisys was built to close that gap. By applying machine learning directly to the raw sensor signals generated during every screw-driving operation, the system can instantly classify each joint as pass or fail and diagnose the likely root cause — turning data that factories already collect but rarely use into real-time, actionable quality insight.
Data Source & Data Science Approach
The project uses the PyScrew dataset, a comprehensive collection of industrial screw-driving operations published by researchers at TU Dortmund. It contains 5,000 screw-driving runs across 2,500 workpieces, captured on a Bosch Rexroth CS351S-D tightening system with an EC302 servo motor driving DELTA PT 40×12 self-tapping screws into EV motor control unit housings.
Each operation records three signals — torque (Nm), angle (degrees), and gradient (Nm/degree) — sampled at 833.33 Hz, yielding roughly 5,000–7,000 data points per screw. Every operation moves through four phases: Finding (locating the hole at low speed), Thread forming (cutting threads into the material), Pre-tightening (snugging the housing parts together), and Final tightening (a slow, controlled push to target torque). A joint is labeled OK only if it satisfies all four conditions: completing all four phases, landing torque within 1.2–1.6 Nm, staying under 2,000 degrees of rotation, and conforming to the expected gradient profile.
The dataset introduces 25 fault classes organized into five groups: screw quality, contact surface, component/thread, environmental, and process parameter faults. We engineered statistical and phase-based features from the raw signals and trained XGBoost gradient-boosted models for both a binary OK/NOK (Not Ok) classifier and a multiclass fault-type classifier. We were careful to address a leakage/circularity concern: features like final torque and gradient mean overlap with the label-defining criteria, so we isolated these to ensure honest evaluation. SHAP explanations were layered on top to surface which signal features drove each prediction, making the model's decisions interpretable for operators. The full system was deployed as a web application on AWS, including a guardrailed AI Q&A assistant to support triage decisions.
Evaluation
We built three classifiers in sequence, each answering a more specific question than the last.
Feature engineering and the circularity audit. Our initial feature set had 46 statistical and shape features, each extracted per tightening phase. During evaluation we found a critical leakage problem. Thirty-five of those features were reconstructing the label instead of learning fault physics, because they pulled information from later phases that overlap with the station's own OK/NOK decision. After the audit, only 12 non-circular features remained, all from the Finding and Thread-forming phases that complete before the station ever assigns a label. This was a defining moment for the project. The suspiciously perfect early metrics were an artifact of circularity, not a genuine result.
Binary classification (OK vs. faulty). The XGBoost binary classifier outputs two things: an anomaly score, which is its confidence that something is wrong, and a triage flag, the action triggered when that score crosses a threshold. Once we removed the 35 circular features, AUC dropped from a suspicious 1.0 to an honest 0.907. Calibration is realistic. When the model flags a joint as NOK, it is almost always right, but it only catches about half of the actual failures. We benchmarked against an always-OK model that gets 86% accuracy while catching zero faults, which is exactly why accuracy is the wrong metric here. An ablation confirmed the circularity: adding the flagged features back inflated AUC exactly as expected. The takeaway: conservative but trustworthy. When it raises an alarm, act on it.
Multiclass fault classification. Once a joint is flagged faulty, the next question is which fault. Direct 25-class classification is difficult. Sparse NOK samples per class and overlapping signal signatures gave us a macro-F1 of 0.31. Grouping the 25 conditions into 5 fault families brought that up to 0.42 with the same features. Both models run in production: the 5-group model tells operators the fault family, while the 25-class model attempts the specific fault. The 25-class model performs well above random chance, but when it's right it's only about half-confident, which tells you how similar these fault signatures look in the early phases. Among the five families, process-parameter faults are the easiest to catch because they have distinct early torque signatures. Contact-surface and component/thread faults are harder. The control group is nearly unclassifiable by design, since it's built to look normal. The gap between the strongest and weakest groups points to exactly where we need more data and richer features, which feeds directly into the roadmap.
Algorithm choice. We went with tree ensembles, XGBoost for binary and Random Forest for multiclass, for one main reason: native SHAP explainability. Every prediction in the dashboard shows which features drove it, which matters a lot for operator trust on the factory floor. We rejected deep learning because the dataset has too few samples and it sacrifices explainability. Logistic regression was off the table because the relationships between features and outcomes are nonlinear across the tightening phases.
Key Learnings & Impact
A few key insights came out of this work. Binary defect detection is solvable but not trivially so. The honest post-audit AUC of 0.907 shows the early-phase signals carry real discriminative power, but the model's conservative recall means it will miss failures that only show up later in the cycle. Fine-grained fault diagnosis is difficult. Many of the 25 fault types produce near-identical torque signatures in their early phases, and the gap between 25-class (0.31) and 5-group (0.42) macro-F1 reflects that ambiguity. And feature leakage turned out to be the central pitfall in manufacturing ML. Thirty-five of our 46 features were silently reconstructing the label, and only an explicit circularity audit revealed that the initial "perfect" results were an illusion. That lesson generalizes far beyond this project.
On impact, Kinetisys shows a path to replacing slow, manual quality checks with automated, real-time detection that catches defects the moment they occur. The conservative-but-trustworthy design means the system is designed for adoption and success. When it flags a joint, operators can act with confidence. The SHAP-based explanations and AI Q&A assistant make the system interpretable for factory-floor use. And the per-fault-family performance breakdown gives a clear roadmap for where richer data and features will unlock the biggest gains next.
Acknowledgements
This project was completed as part of the Master of Information and Data Science (MIDS) program at the UC Berkeley School of Information. Team members: Nedim Hodzic (team lead, narrative and project management), Karthik Bharathy (ML and data pipeline), Venkat Ramdass (backend and deployment), and Charles DeWilde(frontend and UX). We gratefully acknowledge the creators of the PyScrew dataset, Nikolai West and Jochen Deuse of TU Dortmund, for making their data openly available, and our faculty advisors, industry experts, and peers for their guidance throughout the project.
