Quality Magazine logo
search
cart
facebook twitter linkedin youtube
  • Sign In
  • Create Account
  • Sign Out
  • My Account
Quality Magazine logo
  • NEWS
  • PRODUCTS
    • FEATURED PRODUCTS
    • SUBMIT YOUR PRODUCT
  • CHANNELS
    • AUTOMATION
    • MANAGEMENT
    • MEASUREMENT
    • NDT
    • QUALITY 101
    • SOFTWARE
    • TEST & INSPECTION
    • VISION & SENSORS
  • MARKETS
    • AEROSPACE
    • AUTOMOTIVE
    • ENERGY
    • GREEN MANUFACTURING
    • MEDICAL
  • MEDIA
    • A WORD ON QUALITY PUZZLE
    • EBOOK
    • PODCASTS
    • VIDEOS
    • WEBINARS
  • EVENTS
    • EVENT CALENDAR
    • IMTS
  • DIRECTORIES
    • BUYERS GUIDE >
      • Supplier Insights
    • NDT SOURCEBOOK
    • VISION & SENSORS
    • TAKE A TOUR
  • INFOCENTERS
    • Digital Quality Management Systems
    • NEXT GENERATION SPC & QUALITY ANALYTICS
  • AWARDS
    • ROOKIE OF THE YEAR
    • PLANT OF THE YEAR
    • PROFESSIONAL OF THE YEAR
  • MORE
    • Expert Columns
    • NEWSLETTERS
    • QUALITY STORE
    • INDUSTRY LINKS
    • SPONSOR INSIGHTS
  • EMAG
    • eMAGAZINE
    • ARCHIVES
    • CONTACT
    • ADVERTISE
  • SIGN UP!
Software

Software & Analysis

Quality 4.0: Learning quality control, the evolution of statistical quality control

Learning quality control (LQC) is a process monitoring system based on machine learning and deep learning.

By Carlos A. Escobar, Ruben Morales, Jose A. Cantoral
01 QM 1223 Software Feature Quality 4.0 feature image woman in lab with laptop

Image Source: Sean Anthony Eddy/E+ via Getty Images

November 22, 2023

✕
Image in modal.
Q-cast logo

The Quality Show Preview: Quality 4.0 and the Zero Defects Vision

Deb IafrateDr. Carlos Escobar, a research scientist at the Quality 4.0 Institute, shares his ideas combining machine learning and quality. In this talk, he introduces a new concept, learning quality control (LQC), which is the evolution of statistical quality control (SQC). This new approach allows us to solve a whole new range of engineering intractable problems.

Your browser does not support the audio element.

Listen to more Quality podcasts.

Quality 4.0 is the next natural step in the evolution of quality. It is based on a new paradigm that enables smart decisions through empirical learning, empirical knowledge discovery, and real-time data generation, collection, and analysis [0]. As Quality 4.0 matures and different initiatives unfold across manufacturing companies, intractable engineering problems will be solved using the new technologies. Advancing the frontiers of manufacturing science, enabling manufacturing processes to move to the next sigma level, and achieving new levels of productivity is possible. Quality 4.0 is still in a definition phase where different authors have different perspectives on how to apply the new technologies. In this article we present learning quality control, our vision.

Learning quality control (LQC) is a process monitoring system based on machine learning and deep learning; for a full description, theory, implementation strategy, and examples refer to [1]. LQC focuses on real-time defect prediction or detection. The task is formulated as a binary classification problem, where historical samples (X, l) are used to train the algorithms to automatically detect patterns of concern associated to defects (e.g., anomalies, deviations, non-conformances). The historical samples include process measurements such as features (structured data), images (unstructured), or signals (unstructured) denoted by X and their associated binary quality label denoted by l ε {good defective}. Following binary classification notation, a positive label refers to a defective item, and a negative label refers to a good quality, equation 1.

QM 1223 Software Quality 4.0 feature equation 1

The historical samples become the learning data set used by the machine learning algorithms to train a model; learn the coefficients θ of the general form ŷ = f(X;θ) = p(l = defective), where ŷ refers to the predictive probability of the positive class (defective). Each predicted probability is compared to a classification threshold (CT) to perform the classification, equation 2.

QM 1223 Software Quality 4.0 feature equation 2

The is defined based on the business goals considering the costs or implications of the misclassifications (errors). Figure 1 illustrates the classification process using a pretrained feed-forward neural network; depending on the problem, different machine learning algorithms are trained and tested. The performance of a classifier is summarized based on four concepts described in the confusion matrix, Table 1.

02 QM 1223 Software Feature Quality 4.0 Figure 1  Example of a general classification process.
Figure 1. Example of a general classification process. Image created at https://alexlenail.me/NN-SVG/ Image Source: Quality 4.0 Institute
  • True Negative: it refers to a good item, correctly predicted by the classifier.
  • True Positive: it refers to defective item, correctly predicted by the classifier.
  • False Positive: it refers to a good item incorrectly predicted to be defective. From a statistical perspective, the α error (type I) quantifies the FPs.
  • False Negative: It refers to defective item incorrectly predicted to be good. The β error (type II) quantifies the FNs.

Figure 2 graphically illustrates the four concepts with respect to a . Color and geometric conventions are used to illustrate them; a red circle refers to a defective and green triangle good quality.

03 QM 1223 Software Feature Quality 4.0 Figure 2. Confusion matrix concepts based on a CT = 0.5
Figure 2. Confusion matrix concepts based on a CT = 0.5 Image Source: Quality 4.0 Institute

Binary classification of quality data sets tend to be highly imbalanced; they contain many good quality items and a few defects. Detecting or preventing those few defects is the main challenge posed by the Quality 4.0 era. Figure 3-5 graphically describe the main concepts of LQC.

04 QM 1223 Software Feature Quality 4.0 Figure 3. LQC monitoring system for defect prediction.
Figure 3. LQC monitoring system for defect prediction. Image Source: Quality 4.0 Institute

Two important concepts of LQC are explained first: (1) offline learning, historical data with the patterns of concern is used to train the machine learning algorithms to develop the classifier, this activity can last weeks or even months, (2) online deployment, the classifier is deployed into production to automatically and in real-time detect the patterns of concern associated to quality defects. Figure 3 shows an LQC monitoring system for defect prediction. Here, data from early in the process is collected to predict downstream quality issues. The positive results alert the process like a control chart, then the engineering team troubleshoots the process and generates a corrective action. Since prediction is performed under uncertainty, the FPs errors result in no corrective action but waste engineering team time and resources. The FNs or failing to detect a pattern of concern results in downstream quality issues.

05 QM 1223 Software Feature Quality 4.0 Figure 4. LQC monitoring system for defect detection.
Figure 4. LQC monitoring system for defect detection. Image Source: Quality 4.0 Institute

Figure 4 graphically illustrates a general manufacturing process that generates only a few defects per million opportunities. The main objective of LQC here is to detect those defective items in real-time. For example, during a welding process a signal is generated, the signal runs through a classifier to automatically detect if the weld is good or defective. All the positive results or the flagged items are sent to an inspection, the TPs are scrapped and the FP after a second inspection they may continue in the value adding process. The FNs are the main concern, as these defective items not detected would continue in the value-adding process and potentially become a warranty event or a customer complaint. In this context, whereas the FPs generate the hidden factory effect (i.e., inefficiencies), the FNs generate more serious situations. Therefore, minimizing the FNs is more important. Figure 5 shows the classification process of the LQC monitoring system in production (i.e., online deployment).

06 QM 1223 Software Feature Quality 4.0 Figure 5. LQC monitoring system from probability to classification.
Figure 5. LQC monitoring system from probability to classification Image Source: Quality 4.0 Institute

Figure 5 shows a sequence of 10 manufacturing items and their associated predicted probability of being a defect. The sixth item has a predicted probability greater than the , therefore is classified positive. Since the Binary classification of quality data sets tend to be highly imbalanced, the value is usually smaller than 0.50.

One the most promising research focus areas of Quality 4.0 is the replacement of visual or manual monitoring systems by deep learning applications. Although this leading-edge technology is already mature, surpassing human visual capabilities, in manufacturing human vision is still widely used for quality control. Deep learning allows us to reduce or eliminate monotonous and repetitive visual monitoring systems. Enabling significant improvements, especially if it is considered that due to the inherent operator biases and monotony of the task, visual or manual monitoring approaches are historically 80% accurate, Figure 6.

07 QM 1223 Software Feature Quality 4.0 Figure 6. Replacement of visual monitoring by deep learning.
Figure 6. Replacement of visual monitoring by deep learning Image Source: Quality 4.0 Institute

LQC is the evolution of statistical process control (SPC). Whereas the latter is founded on statistical methods, the former is founded on statistical methods and boosted with machine learning and deep learning algorithms, enabling the solution of a whole new range of engineering intractable problems. These algorithms have the capacity to effectively learn non-linear patterns that exist in hyper-dimensional space, surpassing traditional statistical SPC methods such as control charts. Moreover, deep learning allows us to replace human-based monitoring systems. This application was engineering intractable even a decade ago. The following section illustrates the LQC concept with a virtual case study.

Case Studies

Two virtual case studies are presented to illustrate the LQC monitoring systems. The first one is based on structured data. It demonstrates how sometimes typical control charts cannot detect patterns that exist in high dimensional spaces. In this case study, a 3D pattern is developed, thus the pattern can be seen and understood. The second case study is based on unstructured data; it illustrates how deep learning, specifically convolutional neural networks, are applied to replace visual monitoring systems.

Structured Data

A virtual case study based on structured data is presented to illustrate the LQC monitoring system, full case study presented in [2]. A pattern that exists in a 3D space that completely separates the classes is developed. The virtual data set with 10 observed values (samples) and three features is described in Table 2 and graphically visualized in Figure 7.


08 QM 1223 Software Feature Quality 4.0 Figure 7. 3D quality pattern with a complete separation of classes.
Figure 7. 3D quality pattern with a complete separation of classes Image Source: Quality 4.0 Institute

Figure 7 shows clear separation of classes in 3D, but they do not separate in 1D. As shown in the univariate analysis of Figure 8, the positive classes have high values. However, the highest value is generated by a good quality item in all the three features and the observed values between 90 and 100 of feature 1 and feature 2 have both outcomes. A univariate analysis using I-MR control chart is performed on the three features. As shown in Figure 9, no points out of control are observed.

09 QM 1223 Software Feature Quality 4.0 Figure 8. 1-D pattern analysis.
Figure 8. 1-D pattern analysis Image Source: Quality 4.0 Institute
10 QM 1223 Software Feature Quality 4.0 Figure 9. I-MR Chart of Feature 1
11 QM 1223 Software Feature Quality 4.0 Figure 9 I-MR Chart Feature 2
12 QM 1223 Software Feature Quality 4.0 Figure 9 I-MR Chart Feature 3
Figure 9. I-MR univariate control charts for Features 1-3. Images Source: Quality 4.0 Institute

The classes do not separate in 2D. As shown in Figure 10, when the items are projected in a 2D space using feature 1 and feature 2, the defective items concentrate on the upper right; however, two good quality items exhibit the same pattern. If feature 1 is combined with feature 3, and feature 2 is combined with feature 3, the classes do not separate. But the classes show a complete separation in the 3D space. In such a case, an optimal separating hyperplane can be learned by a machine learning algorithm such as SVM. Figure 11 shows the separating hyperplane learned by the SVM using a linear kernel, for the code refer to https://github.com/Quality40/case-study-0-structured-data-. However, other algorithms such as logistic regression or neural networks can easily separate the classes in this problem.

13 QM 1223 Software Feature Quality 4.0 Figure 10. 2D pattern analysis (feature 1 and feature 2).
Figure 10. 2D pattern analysis (feature 1 and feature 2) Image Source: Quality 4.0 Institute
14 QM 1223 Software Feature Quality 4.0 Figure 11. Linear separation scheme based on the SVM, separating hyperplane in blue.
Figure 11. Linear separation scheme based on the SVM, separating hyperplane in blue. Image Source: Quality 4.0 Institute

This virtual case study is based on a simple pattern 3D pattern. However, oftentimes patterns exist in the hyper-dimensional space (e.g., 4D or higher) following non-linear relationships. In these situations, machine learning algorithms have superior capacity to learn them. For a comprehensive theory about how to train machine learning algorithms refer to the books [3,4].

Unstructured Data

To illustrate how LQC is applied to replace visual-based monitoring systems, a virtual case study with images is presented. The task here is to train a convolutional neural networks model to automatically monitor the process to detect defects, i.e., significant deviations in the car body. Only 49 pictures were taken from a toy car replica. Figure 12 shows the good quality (i.e., negative label) and Figure 13 shows cars with significant deviations (i.e., positive labels).

15 QM 1223 Software Feature Quality 4.0 Figure 12. Car body with no significant deviations, good quality samples.
Figure 12. Car body with no significant deviations, good quality samples Image Source: Quality 4.0 Institute
16 QM 1223 Software Feature Quality 4.0 Figure 13. Car bodies with significant deviations, defective samples.
Figure 13. Car bodies with significant deviations, defective samples Image Source: Quality 4.0 Institute

The model contains 3 convolutional layers, each with convolution kernels of size 3x3, stride 1, and padding 1, batch normalization and ReLU as activation function. The number of filters is 64, 128 and 128 for the first, second, and third convolutional layers respectively. Finally, the last convolutional activation volume is flattened and passed through a final fully connected layer with two neurons (alternatively we could only use one neuron and consider binary cross entropy as cost function). The model was trained using a constant learning rate of 0.00008 for 15 epochs, with mini batches of 2 images. The learning rate was found using random exploration, and the model was trained using the Adam optimizer. For full code implementation, refer to https://github.com/Quality40/case-study-2-unstructured-data-. Figure 14 shows the confusion matrix of the training, validation, and test sets. The model completely separates the classes.

17 QM 1223 Software Feature Quality 4.0 Figure 14 Confusion matrix training set
18 QM 1223 Software Feature Quality 4.0 Figure 14 Confusion matrix validation set
19 QM 1223 Software Feature Quality 4.0 Figure 14 Confusion matrix training set
Figure 14. Confusion matrixes of training, validation, and test sets Image Source: Quality 4.0 Institute

This case study demonstrates the application of a LQC for the replacement of a visual monitoring system. The technology is ready; therefore, it is our challenge to find the applications and develop innovative solutions. The economic benefit has been widely studied, moreover, eliminating these monotonous tasks allows management to use the brainpower of the team to solve other tasks that require higher cognitive levels.

Concluding Remarks

In today’s manufacturing world, innovation is driven by Quality 4.0. However, Quality 4.0 does not replace Six Sigma. Instead, it boosts the quality movement and sets a higher knowledge bar for quality engineers. In this context, it is important to understand the nature of the problem at hand and the capabilities of each philosophy to find the most suitable approach and avoid over-complexity. The two concepts should work together cohesively, passing insights and wisdom back and forth, allowing quality professionals to drive breakthrough innovations.

Citations:

  1. [0] Carlos A Escobar, Megan E McGovern, and Ruben Morales-Menendez. Quality 4.0: a review of big data challenges in manufacturing. Journal of Intelligent Manufacturing, 32:2319–2334, 2021
  2. [1] Escobar, C. A., & Morales-Menendez, R. (2023). Machine Learning in Manufacturing: Quality 4.0 and the Zero Defects Vision. To appear in Elsevier (2024).
  3. [2] Carlos A. Escobar, Daniela Macias-Arregoyta & Ruben Morales-Menendez (2023). The decay of Six Sigma and the rise of Quality 4.0 in manufacturing innovation, Quality Engineering, DOI: 10.1080/08982112.2023.2206679
  4. [3] James, G., Witten, D., Hastie, T., Tibshirani, R., James, G., Witten, D., ... & Tibshirani, R. (2021). Statistical learning. An introduction to statistical learning: with applications in R, 15-57.
  5. [4] Murphy, K. P. (2012). Machine learning: a probabilistic perspective. MIT press.
  6. [5] Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep learning. MIT press.
KEYWORDS: manufacturing metrology Quality 4.0 quality control

Share This Story

Looking for a reprint of this article?
From high-res PDFs to custom plaques, order your copy today!

Carlos A. Escobar of Tecnológico de Monterrey, Monterrey, NL, Mexico.

Ruben Morales of Tecnológico de Monterrey, Monterrey, NL, Mexico.

Jose A. Cantoral of Tecnológico de Monterrey, Monterrey, NL, Mexico.

Recommended Content

JOIN TODAY
to unlock your recommendations.

Already have an account? Sign In

  • 2024 Quality Rookie of the Year Justin Wise 1440x750px banner with "Quality Rookie of the Year" logo inset

    Meet the 2024 Quality Rookie of the Year: Justin Wise

    Justin Wise is an exceptional individual who has been...
    Aerospace
    By: Michelle Bangert
  • Man with umbrella and coat stands outside while it rains at night looking at a building.

    Nondestructive Testing: Is there an ethics problem?

    I was a whistleblower who exposed fraudulent activities...
    NDT
    By: Dale Norwood
  • Unraveling Deflategate: Football stadium with closeup of football on field

    Unraveling the Tom Brady Deflategate

    The Deflategate scandal erupted following the 2014 AFC...
    Measurement
    By: Greg Cenker and Henry Zumbrun
Manage My Account
  • eMagazine Subscriptions
  • Newsletters
  • Online Registration
  • Subscription Customer Service
  • Manage My Preferences

More Videos

Sponsored Content

Sponsored Content is a special paid section where industry companies provide high quality, objective, non-commercial content around topics of interest to the Quality audience. All Sponsored Content is supplied by the advertising company and any opinions expressed in this article are those of the author and not necessarily reflect the views of Quality or its parent company, BNP Media. Interested in participating in our Sponsored Content section? Contact your local rep!

close
  • Key Takeaways for Quality Leaders
    Sponsored byComplianceQuest

    Key Takeaways for Quality Leaders from the 2026 Gartner Magic Quadrant™ for QMS

  • This image shows a person seated next to a Bobcat T66 compact track loader.
    Sponsored byPolyWorks by InnovMetric

    Supercharging Digital Gauging at Bobcat North America

  • Dorsey Calibration Lab photo by Tom LaBarbera Picture this Studios
    Sponsored byDorsey Metrology International

    Ensuring Product Quality in a Competitive Manufacturing Landscape

Popular Stories

This image shows a person seated next to a Bobcat T66 compact track loader.

Supercharging Digital Gauging at Bobcat North America

Dorsey Calibration Lab photo by Tom LaBarbera Picture this Studios

Ensuring Product Quality in a Competitive Manufacturing Landscape

a professional in the aviation field performing maintenance, repair, and overhaul (MRO) work

Manufacturing Retention: Strategies for Improving Company Culture, Engagement and Skill Development

2026 Quality Professional of the Year!

Events

June 22, 2026

Automate 2026

Automate is North America's largest robotics and automation event — and the best place to take your ideas from insight to impact.
 
Our show floor features the world’s leading automation solutions, from AI and robotics to motion control, vision systems, and more. Plus, our educational conference is second to none, led by the brightest minds in automation today.
 
Ready to transform the way you work? Take the next step at Automate.
July 14, 2026

Quality Leaders Forum: Better Communication, Better Quality Data

The Quality Leaders Forum is a quarterly, editor-moderated fireside chat series hosted by Quality Magazine, featuring candid conversations with senior manufacturing and operations executives shaping enterprise-level quality.

View All Submit An Event

Products

Lean Manufacturing and Service Fundamentals, Applications, and Case Studies

Lean Manufacturing and Service Fundamentals, Applications, and Case Studies

See More Products
Quality Podcast Channel Custom Content

Related Articles

  • Airplane ready for maintenance

    The Evolution of Quality Standards: From ISO 9001 to the 9100 for Aerospace

    See More
  • The Evolution of the NDT Quality Inspector

    See More
  • QTY July 2021 Software Feature photo. Source: gorodenkoff / Creatas Video+ / Getty Images Plus via Getty Images

    The Evolution of Quality Management Systems Software

    See More

Related Products

See More Products
  • certified.jpg

    The Certified Manager of Quality / Organizational Excellence Handbook, 4th Edition

See More Products
×

Stay in the know with Quality’s comprehensive coverage of
the manufacturing and metrology industries.

Newsletters | Website | eMagazine

JOIN TODAY!
  • RESOURCES
    • Advertise
    • Contact Us
    • Directories
    • Manufacturing Division
    • Store
    • Want More
  • SIGN UP TODAY
    • Create Account
    • eMagazine
    • Newsletters
    • Customer Service
    • Manage Preferences
  • SERVICES
    • Marketing Services
    • Market Research
    • Reprints
    • List Rental
    • Survey/Respondent Access
  • STAY CONNECTED
    • LinkedIn
    • Facebook
    • YouTube
    • X (Twitter)
  • PRIVACY
    • PRIVACY POLICY
    • TERMS & CONDITIONS
    • DO NOT SELL MY PERSONAL INFORMATION
    • PRIVACY REQUEST
    • ACCESSIBILITY

Copyright ©2026. All Rights Reserved BNP Media, Inc. and BNP Media II, LLC.

Design, CMS, Hosting & Web Development :: ePublishing