Sequential Analytics, Quality 4.0 and Responsible GovernanceIntroductionSampling distributions traditionally describe the behaviour of statistics calculated from repeated samples. In contemporary quality management, however, observations often arrive continuously from sensors, enterprise systems, laboratory instruments and connected products. Decisions may therefore be made before a fixed sample is complete, and the sampling plan may change in response to what has already been observed. This creates a transition from fixed-sample inference to sequential, adaptive and streaming analytics. Quality 4.0 extends this transition through cyber-physical systems, industrial Internet of Things (IIoT) devices, cloud platforms, artificial intelligence (AI), digital twins and automated decision support. These technologies can detect deterioration earlier and reduce inspection costs, but they also create risks concerning data provenance, privacy, algorithmic bias, model drift, cybersecurity and unclear accountability. This chapter examines the statistical and governance foundations required to use real-time quality analytics responsibly. The central argument is that technological sophistication does not remove the need for statistical discipline. Rather, it makes assumptions, traceability and human judgement more important. Learning ObjectivesBy the end of this chapter, a learner should be able to: - Explain sequential, adaptive and streaming sampling.
- Distinguish fixed-sample inference from continuously updated inference.
- Apply sequential probability-ratio logic and control-chart concepts.
- Evaluate sensor analytics, digital twins and AI-assisted monitoring.
- Design safeguards for provenance, privacy, bias, transparency and validation.
- Assess federated and real-time methods in terms of statistical and managerial value.
- Assign human accountability for automated quality decisions.
1. From Fixed Samples to Sequential EvidenceIn classical sampling, a sample of predetermined size n is collected and a decision is made afterwards. If X1, X2, ..., Xn are observations from a stable process with mean μ and variance σ2, the sample mean is X̄ = (1/n) ∑i=1n Xi where X̄ has expectation E(X̄) = μ and, under independent observations with finite variance, variance Var(X̄) = σ2/n. The familiar sampling distribution supports confidence intervals, hypothesis tests and acceptance decisions. In a sequential design, observations are examined as they arrive. Sampling stops when evidence is sufficiently strong for a decision, or continues when evidence is inconclusive. The sample size is consequently a random variable rather than a fixed number. This can reduce expected inspection effort, but ordinary fixed-sample significance calculations cannot automatically be used after repeatedly examining the data. Repeated opportunities to stop increase the probability of a false signal unless the stopping rule is incorporated into the design. An adaptive design changes future sampling, measurement intensity or allocation according to current evidence. For example, a quality team may increase inspection around a machine whose vibration signal has become unstable, while reducing inspection in a demonstrably stable area. Adaptation must be specified and documented; otherwise, the resulting data may be difficult to interpret because the observation process itself has changed. Sequential probability-ratio testingSuppose a process may be in one of two states: an in-control state with density or probability model f0(x) and an out-of-control state with model f1(x). After t observations, the likelihood ratio is Λt = ∏i=1t [f1(Xi) / f0(Xi)] The observations are assumed to be appropriately modelled, and independence is required for the simple product form. A sequential probability-ratio test uses two thresholds, conventionally denoted A and B, where A > 1 and 0 < B < 1: - if Λt ≥ A, accept the evidence for the out-of-control state;
- if Λt ≤ B, accept the evidence for the in-control state;
- if B < Λt < A, continue sampling.
The thresholds are selected using the desired Type I error probability α and Type II error probability β. A common approximation is A ≈ (1-β)/α and B ≈ β/(1-α). These approximations assume a specified pair of competing models and should not be treated as universal guarantees, particularly when parameters are estimated or observations are dependent. For numerical stability, analysts usually work with the log-likelihood ratio: Lt = ∑i=1t ln[f1(Xi)/f0(Xi)] The stopping boundaries become ln(B) and ln(A). Sequential testing is useful when the cost of delay is high, but model misspecification, autocorrelation and changing operating conditions can produce misleading evidence. 2. Streaming Quality AnalyticsStreaming data are observations that arrive continuously or in rapid batches. Examples include temperature, pressure, torque, acoustic emission, image features, customer returns and maintenance events. A streaming system normally performs four functions: - acquire and timestamp data;
- clean, align and contextualise observations;
- update statistical or machine-learning models;
- generate alerts, recommendations or control actions.
Control charts in a streaming environmentFor measurements approximately normally distributed with known process mean μ0 and standard deviation σ, an individual observation can be standardised as Zt = (Xt - μ0)/σ A traditional two-sided three-sigma rule signals when |Zt| > 3. This rule is meaningful only when the baseline is stable, the measurement system is adequate and the observations are not strongly autocorrelated. If the process is autocorrelated, the nominal false-alarm rate differs from the independent-observation case. For a moving average of the most recent k independent observations, Mt = (1/k) ∑j=0k-1 Xt-j and, under constant variance σ2, Var(Mt) = σ2/k The variance reduction is real but the moving averages overlap, so successive Mt values are correlated. This must be considered when estimating alert frequency. A cumulative-sum (CUSUM) chart is effective for small persistent shifts. For a target mean μ0 and reference value K, one common two-sided formulation is Ct^+ = max[0, Ct-1^+ + Xt - (μ0 + K)] Ct^- = min[0, Ct-1^- + Xt - (μ0 - K)] with C0^+ = C0^- = 0. An alarm is generated when Ct^+ > H or Ct^- < -H, where H is the decision interval. The units of K and H must match those of the measured characteristic. Parameter selection depends on the shift size, false-alarm tolerance and operational cost; it is not a purely mechanical choice. Event-time and processing-time problemsA sensor reading may be recorded at the time it was generated (event time) but arrive later because of communication delay. A robust system therefore needs timestamps, sequence numbers, handling rules for late data and a clear distinction between missing, delayed and zero-valued observations. Replacing missing values without recording the replacement can corrupt both the sampling distribution and the audit trail. 3. Sensor Analytics and Measurement-System QualitySensor analytics does not begin with AI. It begins with measurement-system capability. Calibration, resolution, repeatability, reproducibility, drift, environmental sensitivity and data transmission reliability determine whether an apparent process change is real. Useful diagnostic features may include means, slopes, spectral energy, peak-to-peak amplitude and frequency-domain indicators. Feature extraction must preserve the relation between a feature and the physical mechanism it represents. A high vibration feature, for example, may reflect imbalance, looseness, a changed operating speed or a faulty sensor. Sensor fusion combines measurements from several sources. Fusion can improve detection when sensors provide complementary information, but it can also amplify common-mode errors. Time synchronisation, unit conversion, sensor identity and calibration status should be stored with every observation or traceable data segment. A practical measurement-data record should include: | Element | Purpose |
|---|
| Sensor and asset identifier | Establishes source and location | | Event timestamp and time zone | Supports temporal alignment | | Value and unit | Prevents unit ambiguity | | Calibration and firmware version | Identifies measurement conditions | | Data-quality flag | Distinguishes valid, estimated and missing values | | Processing history | Makes transformations reproducible | | Operator or system action | Supports accountability |
4. Digital Twins and AI-Assisted MonitoringA digital twin is a continuously updated digital representation of a physical asset, process or system. It is more than a static simulation: it links an identified physical object to data, models and state updates. A twin may combine first-principles equations, historical data, sensor observations and maintenance records. Digital twins support: - virtual commissioning and process optimisation;
- prediction of degradation and remaining useful life;
- what-if analysis;
- traceability of quality conditions;
- comparison between nominal and observed behaviour.
The twin is not automatically the truth. Its outputs depend on model validity, sensor coverage, boundary conditions and update frequency. A twin should expose uncertainty and the conditions under which its predictions are valid. AI-assisted quality monitoring commonly uses classification, anomaly detection, regression, computer vision or time-series forecasting. Supervised classification estimates a relationship between predictors X and a labelled outcome Y. A generic model is P(Y = 1 | X) = g(X; θ) where g is a model function and θ is a parameter vector estimated from data. The probability is not a guarantee that a unit is defective; it is a model-based estimate conditional on the data and assumptions. For imbalanced quality data, accuracy can be misleading. If only 1% of units are defective, a classifier that labels every unit as good has 99% accuracy but zero defect recall. Confusion matrices, precision, recall, specificity, calibration, expected cost and subgroup performance should therefore be examined together. Model validation must be temporal and operationally realistic. Randomly splitting highly related observations can place nearly identical units in both training and test sets, producing optimistic results. Better practice may involve time-based validation, asset-based holdouts, external validation and prospective pilot testing. 5. Governance of Data and AlgorithmsData provenance and lineageData provenance records where data originated, how they were transformed and who or what used them. Lineage should cover sensor acquisition, filtering, feature engineering, labels, model versions, thresholds, alerts and interventions. A reproducible quality decision should be answerable by questions such as: Which observations produced this alert? Which software version processed them? Which threshold was active? Who authorised the response? A hash, immutable log or controlled version register can help detect unauthorised alteration, but technical immutability does not prove that the original measurement was accurate. Provenance establishes traceability, not truth. Algorithmic bias and fairnessBias may enter through selective sampling, missing data, historical inspection practices, label definitions or unequal sensor quality. In quality operations, “groups” might be factories, suppliers, product families, shifts, geographic regions or customer segments. A model that performs well overall may systematically miss defects for a particular product family. Assessment should compare relevant measures across groups, including false-negative rate, false-positive rate, calibration and detection delay. Perfect equality across all measures is generally impossible when base rates differ, so the organisation must specify which error is most consequential and why. Remediation may involve improved sampling, relabelling, reweighting, separate thresholds, model redesign or human review. Privacy and securityIndustrial data can contain personal information through operator identifiers, location traces, biometric access records or productivity monitoring. Privacy principles include purpose limitation, data minimisation, access control, retention limits, encryption and appropriate de-identification. De-identification is not always irreversible, especially when datasets can be linked. Cybersecurity is a quality issue because manipulated sensor values can create false assurance or unnecessary shutdowns. Access privileges, network segmentation, secure updates, anomaly monitoring and incident response should be integrated with the quality management system. Transparency, explainability and contestabilityTransparency means communicating the model’s purpose, inputs, limitations, validation evidence and decision consequences. Explainability may use feature importance, local explanations, counterfactuals, physical constraints or interpretable models. An explanation should not be confused with proof of causality. Affected personnel should have a route to challenge an automated decision. A high-risk alert should be reviewable, and the organisation should record whether a human accepted, modified or rejected the recommendation. Validation and human accountabilityA responsible validation programme includes: - defining the intended use and unacceptable uses;
- verifying data quality and measurement capability;
- testing performance against a meaningful baseline;
- evaluating edge cases, subgroups and failure costs;
- conducting temporal and external validation;
- monitoring drift after deployment;
- defining escalation, override and shutdown procedures.
Automation changes tasks but does not eliminate responsibility. The process owner remains accountable for the quality decision, the data steward for appropriate data management, the model owner for performance monitoring, and senior management for governance and resources. These roles should be documented in a responsibility matrix. 6. Federated and Edge AnalyticsEdge analytics processes data near the machine or sensor. It can reduce latency, bandwidth use and exposure of raw data. It may be essential where a safety decision must occur even if cloud connectivity fails. Its limitations include constrained computing, software heterogeneity and difficult fleet-wide updates. Federated learning trains a shared model across sites without centrally pooling raw training data. In a simplified round, a central coordinator sends model parameters θt to participating sites. Site k performs local training and returns θt+1(k). A weighted aggregation is θt+1 = ∑k=1K (nk / ∑j=1K nj) θt+1(k) where nk is the number of local training observations and K is the number of participating sites. This expression assumes that weighted averaging is appropriate and that the parameter representations are compatible. It does not guarantee privacy: model updates can sometimes reveal information, and malicious participants can poison training. Federated systems require secure aggregation, participant authentication, update validation, privacy analysis and procedures for non-identically distributed data. A factory producing a different product mix may have a different local distribution, so a single global model can underperform locally. Personalisation or hierarchical models may be preferable. 7. Sequential Decision Quality and Statistical DisciplineReal-time alerts create a multiple-decision problem. If a chart is examined thousands of times, some extreme value will eventually appear even in a stable process. Organisations should define the operational meaning of an alert: immediate stop, confirmatory inspection, increased sampling or low-priority investigation. The decision threshold should reflect both statistical and economic consequences. Let CFA be the cost of a false alarm, CM the cost of a missed defect, CI the cost of inspection and CD the cost of delay. A simplified expected-cost framework is E(C) = CFA P(FA) + CM P(Miss) + CI P(Inspection) + CD P(Delay) The terms are expected costs over a specified decision horizon. This is not a universal optimisation formula because probabilities and costs may be uncertain, dependent and difficult to estimate. Its value is to make trade-offs explicit rather than allowing an algorithm to determine them invisibly. A mature system separates detection from disposition. The model may identify an unusual pattern, but release, rework, containment or shutdown should follow an authorised procedure supported by confirmatory evidence where feasible. 8. Illustrative Case: Federated Monitoring of a Multi-Plant Assembly ProcessBackgroundA manufacturer operates four plants producing the same safety-critical assembly. Each plant has torque, temperature and acoustic sensors. Defect labels are delayed because laboratory confirmation occurs several days after production. The company wants earlier detection without transferring raw production data between plants. ProblemThe existing fixed inspection plan detects defects late. A preliminary AI model shows high overall accuracy, but Plant C has a much higher false-negative rate because its sensor firmware and operating mix differ from the other plants. AnalysisA cross-functional team first performs a measurement-system review. It discovers that two plants use different torque units in legacy files and that acoustic timestamps are rounded to the nearest second. These issues are corrected before model comparison. The team then creates time-based validation sets and evaluates recall, precision, calibration and detection delay by plant. The team designs a hybrid system. Edge devices calculate basic features and apply a conservative local control rule. A federated model learns from plant-level features, while raw data remain local. Any high-severity alert requires a confirmatory torque inspection. Model updates are accepted only after automated integrity checks and review by the model owner. OutcomeThe pilot reduces average time to detection and avoids unnecessary transfer of raw data. However, it does not permit autonomous release decisions. Plant C receives additional sensor calibration and a locally adapted threshold. All alerts retain model version, source data references, operator action and disposition. Learning points- Data governance preceded model deployment.
- Overall accuracy concealed a plant-specific safety risk.
- Federated learning reduced data movement but did not remove security or validation requirements.
- Human review was retained for consequential decisions.
- The operating procedure defined what an alert meant, rather than treating every anomaly as a defect.
9. Implementation Framework and Best PracticesA practical implementation sequence is: - Define the decision: specify the quality characteristic, action, time horizon and acceptable risk.
- Characterise the process: establish baselines, sources of variation and measurement capability.
- Design the sampling rule: document stopping, adaptation, escalation and missing-data rules.
- Build provenance: maintain identifiers, timestamps, units, transformations and versions.
- Validate progressively: test offline, in shadow mode, in a controlled pilot and then under monitored production.
- Monitor the deployed system: track drift, alert rates, subgroup performance, overrides and delayed defects.
- Govern change: revalidate after sensor, process, software, product or threshold changes.
- Retain human control: provide authority, competence, time and information for review.
Important performance indicators include average run length, false-alarm rate, missed-defect rate, detection delay, inspection burden, model calibration, subgroup disparities, override frequency and cost per prevented defect. These should be interpreted jointly; improving one may worsen another. Challenges and LimitationsSequential analytics can produce stopping bias, dependence-related errors and unstable estimates when the process changes during observation. Adaptive sampling can make data non-representative if selection rules are ignored. Sensors fail, labels arrive late and digital twins may be accurate only within a narrow operating envelope. AI models can learn historical inspection bias and may degrade under concept drift. Federated learning introduces communication, security and statistical heterogeneity problems. Finally, dashboards and explanations can create false confidence if users lack the authority or expertise to challenge the system. Consequently, Quality 4.0 should be evaluated not only by predictive performance but also by reliability, interpretability, resilience, maintainability, fairness and organisational accountability. Contemporary DevelopmentsCurrent practice is moving toward uncertainty-aware AI, physics-informed machine learning, causal process diagnosis, privacy-enhancing computation, synthetic data for rare failures, foundation models for industrial time series and digital-thread integration across design, production and service. These developments are promising but immature in many applications. Their adoption should be evidence-led: benchmark against simpler methods, test under distribution shift and document the conditions under which performance fails. Chapter SummarySequential and adaptive sampling extend classical sampling distributions into settings where evidence is observed continuously and future sampling depends on current results. Sequential likelihood methods and streaming control charts can reduce delay, but their error properties depend on stopping rules, independence, baseline stability and model adequacy. Sensor analytics requires strong measurement-system management, while digital twins must be treated as model-based representations rather than unquestionable replicas of reality. AI-assisted monitoring can improve detection, but accuracy alone is insufficient. Validation must address temporal leakage, class imbalance, calibration, subgroup performance, drift and operational consequences. Responsible governance requires provenance, privacy protection, cybersecurity, bias assessment, transparency, contestability and explicit human accountability. Edge and federated methods can reduce latency and raw-data movement, yet they introduce their own security and statistical challenges. The most robust Quality 4.0 systems combine statistical evidence, engineering knowledge, controlled automation and accountable human judgement. Key TermsSequential sampling: Sampling in which observations are evaluated as they arrive and stopping depends on accumulated evidence. Adaptive sampling: A design in which later sampling decisions respond to earlier observations. Streaming data: Continuously or rapidly arriving observations. Sequential probability-ratio test: A test that compares cumulative likelihood evidence with decision boundaries. Likelihood ratio: The relative support provided by competing models for observed data. CUSUM: A cumulative-sum monitoring method for detecting persistent process shifts. Sensor fusion: Combining information from multiple sensors or sources. Measurement-system capability: The adequacy of a measurement process in terms of bias, precision, stability and resolution. Digital twin: A data-linked digital representation of a physical asset or process. Model drift: Degradation caused by changes in data distributions, relationships or operating conditions. Data provenance: Evidence of data origin, transformations and use. Data lineage: The traceable path followed by data through systems and processes. Algorithmic bias: Systematic performance disadvantage associated with data, design or deployment conditions. Calibration: Agreement between predicted probabilities and observed frequencies. Edge analytics: Processing performed near the data-generating equipment. Federated learning: Collaborative model training in which raw local data remain at participating sites. Human-in-the-loop: A design in which people review, approve or can override automated outputs. Concept drift: Change in the statistical relationship between inputs and outcomes. Responsible governance: Structures ensuring lawful, fair, transparent, secure and accountable use of analytics. Review QuestionsShort Answer Questions- What distinguishes sequential sampling from fixed-sample sampling?
- Why can repeated monitoring increase false-alarm risk?
- State two requirements for trustworthy sensor analytics.
- What is the purpose of data provenance?
- Distinguish edge analytics from federated learning.
Long Answer Questions- Explain the sequential probability-ratio test, including its hypotheses, boundaries and assumptions.
- Discuss how autocorrelation and overlapping windows affect streaming control charts.
- Evaluate the role and limitations of digital twins in quality management.
- Explain a responsible validation framework for AI-assisted quality monitoring.
- Discuss privacy, bias, transparency and human accountability as an integrated governance problem.
Analytical / Application Questions- A plant examines a sensor chart every minute and stops production whenever a three-sigma signal occurs. Analyse why the nominal false-alarm interpretation may be misleading and propose a better monitoring design.
- A federated model performs well overall but misses defects disproportionately at one factory. Design an investigation covering measurement systems, data distributions, subgroup metrics and remediation.
- Develop a decision framework for an AI alert on a safety-critical product. Specify the stopping rule, confirmatory inspection, human authority, provenance records and post-deployment monitoring.
Multiple Choice Questions with AnswersQuestion 1In sequential sampling, the sample size is typically: A. Always fixed before data collection B. Determined only by the population size C. Allowed to depend on accumulated evidence D. Equal to the number of process variables Correct Answer: C. Allowed to depend on accumulated evidence Question 2The likelihood-ratio product form assumes, in its simple formulation, that observations are: A. Independent under the specified models B. Always normally distributed C. Collected only from a census D. Free from measurement error Correct Answer: A. Independent under the specified models Question 3For a moving average of k independent observations with variance σ², the variance is: A. kσ² B. σ²/k C. σ² + k D. σ/k² Correct Answer: B. σ²/k Question 4A CUSUM chart is especially useful for detecting: A. Only missing observations B. Small persistent shifts C. Changes in data ownership D. Encryption failures Correct Answer: B. Small persistent shifts Question 5Which item is part of measurement-system quality? A. Calibration status B. Advertising expenditure C. Employee seniority alone D. Model colour scheme Correct Answer: A. Calibration status Question 6Why can accuracy be misleading for a highly imbalanced defect dataset? A. Accuracy cannot be calculated for classifiers B. A model can appear accurate while missing nearly all defects C. Accuracy always equals recall D. Imbalance guarantees overfitting Correct Answer: B. A model can appear accurate while missing nearly all defects Question 7Data provenance primarily supports: A. Traceability of origin and transformations B. Automatic elimination of all bias C. Guaranteed prediction accuracy D. Removal of the need for validation Correct Answer: A. Traceability of origin and transformations Question 8In federated learning, raw training data are generally: A. Published publicly B. Transferred to every participating site C. Kept at local sites while model information is exchanged D. Deleted before training Correct Answer: C. Kept at local sites while model information is exchanged Question 9Which is an appropriate response to a high-severity AI quality alert? A. Automatically release every affected unit B. Ignore the alert if overall accuracy is high C. Use authorised confirmatory inspection and escalation D. Change the label until the alert disappears Correct Answer: C. Use authorised confirmatory inspection and escalation Question 10A digital twin should be understood as: A. An infallible copy of the physical system B. A data-linked model-based representation with validity limits C. A replacement for all sensors D. A fixed spreadsheet unaffected by operations Correct Answer: B. A data-linked model-based representation with validity limits
|