Abstract
Legacy computer numerical control (CNC) machines often lack controller connectivity or sensing suites, making it difficult to monitor utilization and energy demand or deploy data-driven maintenance without mechanically invasive modifications. This study develops a black-box method that links net input current signatures to CNC operating states. Four current-sensor channels recorded 70,000 samples per second each, generating approximately 504 million samples across 44 repetitions of an unloaded Haas Mini Mill cycle containing dwell periods and bidirectional motion of the spindle and each linear axis. Cycle-to-cycle variability supported semiautomated, sequence-guided transition detection, while frequency-domain signatures were evaluated across similarity measures, baseline compensation, window functions, overlap, multicycle aggregation, and multichannel Bayesian analysis. The active cycle was distinguishable from a powered-idle baseline, and the reconstructed sequence represented 39.99 s of the measured 40.94 s cycle. Cross-correlation produced stronger intra-dataset screening results than Pearson correlation under the magnitude-based procedure; baseline compensation increased the Bayesian screening score from 36.1% to 81.0%. With a rectangular window and positive-match evidence across all four channels, the conservative minimum estimated confidence reached 95% across the eight states. This value describes segmented-signature distinguishability within the dataset, not independently tested classification accuracy. The results provide proof-of-concept evidence for controller-independent monitoring under one fixed unloaded program and a basis for broader experimental validation.
1. Introduction
Manufacturing is becoming increasingly connected, automated, and data-driven, creating demand for continuous information about machine utilization, operating states, energy consumption, and equipment health. Such information supports productivity improvement, energy efficiency assessment, fault diagnosis, and more sustainable manufacturing decisions [1,2,3]. However, monitoring systems often depend on accessible CNC data, extensive systems integration, or machine-specific communication infrastructure that may be unavailable or unsupported on legacy equipment. Low-cost and non-intrusive retrofit monitoring has emerged as an important pathway for extending smart-manufacturing capabilities to existing production assets [4,5,6]. Recent studies demonstrate that externally measured current, vibration, and acoustic signals can reveal production cycles, machine operating states, micro-stops, and other operational losses without requiring direct access to the machine controller [4,5,6].
Conventional machining process monitoring typically uses measures of cutting force, vibration, acoustic emission, sound, temperature, or displacement. These signals can provide information about cutting conditions, tool wear, breakage, chatter, and product quality [7,8]. However, sensors may be required close to the tool, workpiece, spindle, or machine structure, and their performance can be influenced by sensor position, signal attenuation, and machining conditions [7,8]. Ragai et al. combined current, vibration, and acoustic measurements in CNC turning and showed that the electrical response was sensitive to variations in feed rate and cutting conditions [9].
Recent studies emphasize that meaningful evaluation of machine tool energy performance requires component partitioning, operating-state recognition, and state- or component-based modeling rather than reliance on aggregate consumption alone [10,11]. CNC production cycles may include startup, standby, spindle acceleration, unloaded motion, cutting, tool changing, axis positioning, and shutdown, with each state activating different combinations of subsystems and producing a different electrical response [11,12]. Identifying these states provides the operational context necessary to distinguish productive energy consumption from idle and auxiliary demands, locate energy-intensive activities, and determine when and why energy is consumed [2,10]. This state-resolved information can support equipment utilization analysis, cycle-time monitoring, process optimization, and targeted energy reduction strategies. It can also provide the empirical foundation for emerging energy-aware digital twins and predictive monitoring systems [3].
Electrical signature analysis extends monitoring beyond aggregate energy measurement by correlating variations in current, voltage, or power with machine operations and condition. Mechanical actions modify motor load and electromagnetic behavior, leading to detectable changes in signal magnitude, temporal structure, variability, and frequency content [9,13,14]. Tristo et al. [13] characterized the energy behavior of single stages in micro-EDM milling using high-resolution electrical monitoring, while Cocca et al. [14] combined electrical signature analysis and machine learning for operating-condition identification and anomaly detection in a CNC mill. Selvaraj et al. used a one-dimensional convolutional neural network to identify active CNC components and axis feed-rate classes from energy data, reporting 95.7% and 91.4% accuracies, respectively [15]. Saha et al. applied repeatable current-consumption patterns for productivity and cycle-time monitoring [4]. Huang et al. used semantic segmentation on power data to relate machine states to energy consumption and carbon emissions [16]. These studies primarily emphasize energy quantification or trained-model performance. Less attention has been given to determining whether net input electrical signatures are intrinsically repeatable across cycles, where transitions occur in the measured signal, and how processing choices affect the distinguishability of individual spindle and axis operations before classifier training.
Another line of research has developed model-based and controller-informed methods to predict CNC energy consumption. Pantazis et al. [12] combined G-code, simulated cutting geometry, and experimentally derived energy models to predict the electrical consumption of end-milling processes. Schmitt et al. predicted the energy demand of basic CNC commands directly from G-code [17]. Zhang et al. developed a spatial energy-consumption field model relating CNC programming, motion-position errors, machining accuracy, and electrical demand [18]. These approaches support process planning but require program information, known parameters, or calibrated machine models. A measurement-driven approach is therefore complementary: instead of predicting electrical demand from known instructions, it seeks to infer operating behavior directly from the electrical response observed at the machine input.
Despite these advances, identifying individual operating states from measurements acquired at the input of an entire CNC machine remains challenging. Net input signals combine the electrical responses of the controller, spindle drive, servo-driven axes, power supplies, and auxiliary systems. Operation-specific characteristics may therefore be superimposed, attenuated, or obscured by the baseline. A useful state signature must consequently remain sufficiently consistent across repetitions while preserving measurable differences from other operations and baseline behavior. Separation is also affected by cycle partitioning, baseline treatment, similarity measures, and reference construction. Recent reviews confirm that CNC monitoring performance depends strongly on input data, preprocessing, feature representation, and model parameters [19]. In frequency-domain analysis, window function and overlap selection affect spectral leakage, resolution, amplitude representation, and dependence between observations [20,21]. To the authors’ knowledge, these factors have not been jointly and systematically evaluated for the CNC net input signatures investigated here.
The need for this assessment is reinforced by the authors’ previous investigation using the same Haas Mini Mill platform [14]. That study combined electrical signature analysis with multidimensional dynamic time warping, dimensionality reduction, supervised classification, and anomaly detection. Its principal objective was evaluating classification and anomaly detection performance. It did not systematically investigate complete-cycle repeatability, transitions between individual operations, or the combined effects of preprocessing and reference construction. The present study therefore extends the earlier work from model-centered classification toward a signal-centered examination of the observability, repeatability, and separability of net input electrical signatures.
Accordingly, this study investigates whether electrical measurements collected non-intrusively at the input of an entire CNC machine contain repeatable and distinguishable signatures of its individual operating states. A four-channel monitoring system was developed and installed on a Haas Mini Mill without accessing the CNC controller or instrumenting individual machine components. Signals were acquired at a nominal sampling frequency of 70 kHz per channel during an unloaded cycle comprising bidirectional spindle operation, bidirectional motion along each linear axis, and intervening dwell periods. A separate baseline dataset of equal duration characterized the powered machine’s background electrical behavior. The selected analytical configuration was then applied to the complete electrical recording as an offline proof of concept. The study evaluates this fixed sequence and does not establish robustness across operating conditions.
The novelty of this study lies in shifting the focus from final classifier accuracy to the underlying signal conditions that support controller-independent state identification. The principal contributions are fourfold. First, the study presents a non-intrusive, four-channel architecture for acquiring net input electrical measurements. Second, it examines repeatability and observability across 44 complete CNC cycles and introduces a variability-based, sequence-guided procedure for locating state transitions. Third, it systematically evaluates how cycle aggregation, similarity measures, baseline compensation, window functions, overlap, and multichannel evidence affect operation distinguishability. Fourth, it applies the selected configuration to the complete recording as a proof-of-concept demonstration of controller-independent state identification. These findings provide an interpretable basis for further development and validation under broader machining conditions.
2. Materials and Methods
The experimental methodology comprised monitoring-system development and functional testing, data acquisition, and multichannel signal analysis. This section describes the CNC platform, programmed cycle, monitoring architecture, acquisition software, experimental procedure, and datasets. Signal processing and operation-distinguishability methods are presented in Section 3.
2.1. CNC Machine and Experimental Context
Experiments were conducted in the University of North Florida machine shop using a 2013 Haas Mini Mill vertical machining center. The machine operated from a 208–240 V three-phase electrical supply and had a maximum spindle power of 7.5 hp. Its working travel was approximately 406 mm along the X axis, 305 mm along the Y axis, and 254 mm along the Z axis. Current sensors were installed at the machine-level electrical input; therefore, the recorded signals represented the combined electrical behavior of the controller, spindle drive, vector drive, servo-driven axes, power electronics, and auxiliary systems rather than that of an individually instrumented component.
The experiments were conducted without a cutting tool engaging a workpiece. This controlled configuration removed variability associated with workpiece material, depth of cut, cutting forces, chip formation, and tool wear, allowing the electrical responses of the commanded spindle and axis operations to be examined independently. The resulting dataset was therefore designed to establish the observability, repeatability, and distinguishability of unloaded CNC operating states. It should not be interpreted as validation under material removal conditions.
The specifications of the experimental CNC machine are summarized in Table 1.
Table 1.
Principal specifications of the experimental CNC machine.
2.2. Programmed Operating Cycle
A G-code sequence was developed to generate a repeatable series of spindle and linear-axis operations. The sequence contained eight active states: clockwise and counterclockwise spindle rotation and bidirectional movement along each linear axis. Successive operations were separated by dwell periods to reduce signal overlap and support variability-based transition detection.
Each cycle started with a commanded clockwise spindle rotation using S7000 M03, followed by a 5 s dwell, a spindle stop, and a further 5 s dwell. The machine then moved in the positive X, Y, and Z directions in order, with a 2 s dwell following each move. Counterclockwise rotation was commanded using S7000 M04, followed by the same dwell–stop–dwell sequence. Finally, the machine moved in the negative X, Y, and Z directions, with 2 s dwell periods after each move before the cycle repeated. Linear movements used incremental positioning (G91) in inch mode (G20). The recorded program specifies a travel of 10 in (254 mm) for each move and a modal feed-rate command of F300, corresponding to 300 in/min (7.62 m/min). The programmed sequence is summarized in Table 2.
Table 2.
Programmed CNC operating sequence. Linear moves use incremental positioning (G91), inch units (G20), and F300. Each axis command specifies 10 in (254 mm) of travel in the indicated direction. S7000 denotes the programmed request; 6000 rpm is the machine’s listed maximum.
The S7000 commands were intended to request the maximum available spindle speed on the test machine, whose listed maximum was 6000 rpm. The same programmed spindle-speed setting was used in both rotation directions throughout all 44 cycles, supporting signature comparison under a common programmed condition.
A separate baseline recording was acquired while the CNC controller, power electronics, and auxiliary systems remained energized but without commanded spindle rotation or axis movement. This recording characterized the powered machine’s background electrical behavior and supported the observability comparison and spectral baseline compensation. Figure 1 presents the experimental platform, installed acquisition system, and signal path. Figure 2 schematically illustrates the programmed cycle and its eight active states.
Figure 1.
Experimental platform and electrical monitoring arrangement: (a) Haas Mini Mill used in the experiments; (b) installed acquisition enclosure adjacent to the machine; (c) split-core current sensors on the monitored conductors; (d) acquisition-enclosure components; and (e) measurement and analysis chain. Panels (a–d) are separate photographs of the apparatus; panel (e) is schematic.
Figure 2.
Programmed CNC operating cycle comprising clockwise and counterclockwise spindle commands (S7000), bidirectional X-, Y-, and Z-axis movements, and dwell periods. Numbered boxes denote the eight active states; spindle stops and dwell intervals are unnumbered. S7000 denotes the programmed request and 6000 rpm the machine’s listed spindle-speed limit. The schematic is not drawn to scale.
2.3. Non-Intrusive Electrical Monitoring System
A dedicated, controller-independent monitoring system was developed to acquire net input electrical signatures without accessing the CNC controller or instrumenting individual mechanical components. The system comprised four split-core current transformers, four signal-conditioning subcomponents, a power supply, a multifunction data-acquisition unit, a Raspberry Pi controller, and removable storage. The components were integrated into an aluminum enclosure to provide a portable monitoring platform.
Four SCT013-100 split-core current transformers (YHDC, Qinhuangdao, Hebei, China) were installed around the three phase conductors and the protective ground conductor at the machine-level electrical input. The split-core configuration enabled installation without disconnecting the conductors or modifying the CNC controller. The three phase-current channels captured the machine’s aggregate electrical response. The protective-ground channel was retained as an exploratory empirical measurement channel. Published measurements of the YHDC SCT013 response from 10 Hz to 3 MHz [22] motivated exploratory use beyond its listed 50–1000 Hz range; they do not establish the bandwidth of the assembled monitoring system.
The current sensors were connected to four independent transresistance-amplifier daughterboards that converted their low-current inputs into voltage signals suitable for digitization. A fifth daughterboard supplied power. Removable connectors facilitated installation and maintenance.
The 35 kHz upper spectral limit follows from the nominal sampling rate and is not a validated analog bandwidth. Capacitive coupling was included in the conditioning circuit, but its anti-alias cutoff and attenuation were not characterized. No measured anti-alias rejection is available for the assembled chain, so aliasing from content above the Nyquist frequency cannot be excluded.
The conditioned signals were digitized using a 16-bit Measurement Computing USB-1608GX data-acquisition unit (Measurement Computing Corporation, Norton, MA, USA). The four channels were sampled sequentially using the unit’s multiplexed acquisition architecture. A nominal sampling frequency of 70 kHz per channel was used, corresponding to an aggregate sampling rate of 280 kS/s. A Raspberry Pi 4B (Raspberry Pi Ltd, Cambridge, UK) controlled acquisition and transferred the recorded data to a removable USB 3.0 storage device in CSV format.
Measurements were read as raw unsigned 16-bit digital counts. Channel gain and offset were checked during bench testing, but absolute current calibration was not applied in the normalized signature analysis. Table 3 summarizes the principal system components and acquisition parameters.
Table 3.
Principal components and acquisition parameters of the electrical monitoring system.
2.4. Acquisition Software and Data Storage
Custom acquisition software was implemented in C++ and executed locally on the Raspberry Pi’s Raspbian operating system. Continuous acquisition was supported using a double-buffer architecture to ensure the integrity of the written data. Each buffer accommodated approximately 0.5 s of multichannel data. While one buffer received measurements from the data-acquisition unit, the contents of the other were written to removable storage.
The USB-1608GX returned raw unsigned 16-bit values from the four sequentially sampled channels. Each four-channel scan was encoded as a row of 16 hexadecimal characters, with four characters allocated to each channel. This representation increased storage requirements relative to binary encoding but accommodated the required recording duration. Successive scans were separated by line breaks, with no delimiters between channel values. Files were stored on a removable USB 3.0 device and subsequently transferred to a workstation for decoding and analysis in MATLAB R2025a.
During post-acquisition decoding, each hexadecimal row was separated into its four channel values and converted to unsigned 16-bit integers. Any subsequent offset removal, normalization, segmentation, or signal transformation was performed during data processing, as described in Section 3.
2.5. Experimental Procedure and Datasets
Before installation on the CNC machine, the monitoring system underwent component inspection, channel-continuity testing, and functional signal-response testing. A residential electrical load confirmed that the assembled sensor and acquisition chains responded to electrical loading; this was a functional pass/fail check. Bench checks with a calibrated reference source were used to assess conditioning-channel gain and offset. These checks did not constitute an end-to-end current or frequency-response calibration of the installed sensor–conditioning–acquisition chain. Sensor placement, acquisition communication, and data storage were also verified.
Following functional testing, two datasets were acquired: a baseline dataset and an active-cycle dataset. During baseline recording, the CNC controller, power electronics, and auxiliary systems remained energized, but no spindle rotation or axis movement was commanded. This dataset characterized the background electrical behavior of the energized machine.
For active-cycle acquisition, the machine was energized and allowed to complete its initialization procedures. The programmed G-code sequence was then started, and at least one complete cycle was executed before recording began to reduce the influence of startup transients in the machine or acquisition system. Electrical data were acquired continuously for approximately 30 min while the operating sequence repeated automatically until the storage file-size limit was reached. After exclusion of an incomplete final cycle, 44 complete cycles were retained for analysis. The resulting active-cycle dataset was used for the repeatability, segmentation, spectral compensation, and operation-distinguishability analyses described in the following sections.
3. Signal Processing and Analysis
3.1. Analysis Framework
The analysis evaluated whether net input electrical measurements contained repeatable and distinguishable signatures of the programmed CNC operating states. The workflow comprised seven stages: (1) the four recorded channels were decoded and reconstructed; (2) the repeated operating cycles were partitioned; (3) baseline behavior and cycle-to-cycle variability were characterized; (4) the eight active operating states were segmented using transition detection; (5) frequency-domain magnitude signatures were extracted, both with and without baseline compensation; (6) signature similarity was quantified, accumulated reference signatures were constructed, and operation distinguishability was assessed; and (7) the selected analytical configuration was applied to the complete recording as a proof-of-concept operating-state identification procedure.
The four measurement channels were processed independently during signature extraction and similarity evaluation. Channel-level evidence was combined only during the Bayesian multichannel distinguishability and identification assessments, allowing the individual measurement paths to be evaluated separately.
3.2. Signal Reconstruction and Cycle Partitioning
Each recorded row was decoded into four unsigned 16-bit values corresponding to the three phase-current channels and the protective-ground channel. Values belonging to the same channel were concatenated in acquisition order to reconstruct four continuous digital-count signals. The nominal sampling frequency of each reconstructed channel was 70 kHz.
The cycle duration was estimated from the spacing between equivalent spindle-transition peaks in successive repetitions. Because each programmed cycle contained clockwise and counterclockwise spindle starts, differences between every second spindle-transition peak were used to compare equivalent locations in consecutive cycles. Averaging these intervals and refining the candidate cycle length produced a cycle duration of 2,865,750 samples per channel, corresponding to approximately 40.94 s at the nominal sampling frequency. The recording contained 44 complete cycles.
3.3. Baseline Characterization
The baseline recording characterized the energized CNC machine without spindle rotation or linear-axis movement, including the contributions of the controller, power electronics, servo drives, and auxiliary systems. It supported the whole-cycle detectability comparison and the spectral-compensation procedure.
The separate baseline recording was partitioned into 44 intervals matching the active-cycle duration. At each within-interval sample position, the intracyclic mean and standard deviation were calculated across the baseline intervals. The same statistics were calculated across the 44 active-cycle repetitions using a rectangular window.
To provide an exploratory measure of detectability, envelopes were constructed around the reference signal using a selected multiplier δ, as defined below:
Equation (1) defines a comparison band around reference A using the selected multiplier δ. The band was evaluated from both the A and B perspectives. The three multipliers were 0.49, 1.68, and 2.9966, producing progressively more conservative visual bands. These exploratory bands supported qualitative whole-cycle comparison and were not interpreted as formal confidence intervals.
The active intracycle mean was compared graphically with the corresponding baseline mean and variability to determine whether execution of the programmed sequence produced observable electrical changes beyond baseline fluctuations. Detectability graphs were created to graphically depict the space of pointwise hypothesis testing between the baseline and active data. Because the baseline and active data were acquired in separate recordings, any offset between them could include baseline drift as well as operation-related response. This comparison assessed whole-cycle observability; it was not used to classify individual operating states. The baseline frequency-domain data were also used separately to construct baseline signatures for the spectral-compensation procedure described in Section 3.7.
3.4. Cycle Repeatability and Transition Detection
The 44 extracted cycles were treated as repeated observations of the same programmed sequence. At each within-cycle position, the mean and sample standard deviation were calculated across repetitions and grouped into 819 buckets, each spanning approximately 0.05 s. Local changes in variability were then used to identify candidate state transitions.
The standard-deviation sequence was normalized to the range from zero to one, inclusive:
An 11-term FIR kernel emphasized localized changes relative to the five neighboring buckets on either side:
The corresponding coefficient vector was
Local extrema of the weighted contrast response were retained as candidate transition locations and superimposed on the intracycle mean response. The heuristic operator was fixed across channels and cycles and was not independently optimized. A candidate was retained when it coincided with an observable electrical change and was consistent with the known operation order. Spindle transients required manual interpretation; the resulting procedure was therefore semiautomated and sequence guided.
3.5. Operation Segmentation and Signature Extraction
The selected transition locations were used to divide each cycle into operation-specific and inactive intervals. The eight active segments represented bidirectional spindle rotation and bidirectional linear-axis motion. Spindle-transient intervals were treated as inactive in the subsequent segmented comparisons.
Because each active operation included transition regions, subsamples were taken from the available steady-state portion of each. Each signature contained 20 consecutive sample buckets, corresponding to one second; the number of samples in each signature depended on the selected overlap. For spindle rotation and the Y- and Z-axis movements, the one-second interval was positioned ten buckets (0.50 s) into the stable interior relative to the assigned operation start. For the positive and negative X-axis movements, whose initial response was obscured by the preceding spindle-stop transient, the interval was instead positioned 30 buckets (1.50 s) before the assigned segment end. These positions were fixed once from the segmented mean response and then applied consistently across all 44 cycles and four measurement channels.
The extracted signatures supported two complementary comparisons. Within-operation comparisons evaluated the similarity of the same operating state across different cycle repetitions and therefore characterized signature repeatability. Between-operation comparisons evaluated the similarity of one operating state to the other seven active states and therefore characterized operation distinguishability. A useful operating-state signature was expected to exhibit consistently high within-operation similarity and lower similarity to signatures from different operations.
3.6. Frequency-Domain Processing
The one-second operation segments were analyzed in the frequency domain to capture operation-dependent spectral characteristics. Window functions and overlap were varied while keeping bucket starting positions fixed and adjusting bucket endpoints. The complex coefficient for operation o, channel c, cycle r, static address j, static offset H, window function w[n], bucket length L, and frequency bin m was calculated as
After optional compensation, spectra were normalized by the bucket length and converted to a one-sided representation. The full retained spectrum up to the 35 kHz digital Nyquist limit was used for signature comparison; no separate frequency-band selection or band-specific contribution analysis was performed. Sensor transfer-function compensation based on the published response model [22] was also evaluated in the original analysis, as reported in Section 4.5. This model-based comparison does not validate the physical measurement bandwidth. Finite-duration extraction can introduce spectral leakage when interval endpoints are discontinuous. Nine window functions were evaluated: rectangular, Hann, Hamming, Nuttall, Blackman, Blackman–Nuttall, Blackman–Harris, flat-top, and Dolph–Chebyshev. These functions provide different tradeoffs among main-lobe width, amplitude representation, and sidelobe suppression.
Window overlap was evaluated from 0% to 50% in increments of five percentage points. Increasing overlap produced additional spectral observations, but it also increased computational requirements. Window function and overlap were therefore treated as experimental processing variables rather than fixed preprocessing choices. The Dolph–Chebyshev window had two dimensionless parameters, Ω, which controlled the function order, and α, which controlled the main lobe/sidelobe tradeoff. While Ω was held constant at MATLAB’s default, α was evaluated using values of 1, 2, 4, 8, 10, 12, 14, 16, 20, 25, and 30.
3.7. Baseline Compensation
Net input measurements contain persistent electrical contributions from the energized controller, power electronics, servo drives, and auxiliary systems. Baseline intervals were processed using the same window, overlap, FFT length, and frequency bins as the active-operation data. The complex baseline FFT coefficients were averaged across baseline intervals and J buckets to form one characteristic spectrum, where is the complex baseline FFT:
The compensated magnitude spectrum was formed by subtracting the magnitude of the characteristic baseline spectrum from the active-operation magnitude spectrum and setting negative differences to zero. The characteristic baseline spectrum was replicated across the corresponding operation and cycle dimensions using the array of ones J:
This comparison tested whether baseline compensation improved operation-specific signature separation. Negative differences were set to zero before subsequent feature comparison.
3.8. Feature Identification Measures
Pearson correlation and cross-correlation were evaluated as signature-similarity measures. Their effectiveness was assessed by the separation between similarities for repeated instances of the same operation and those for different operations.
Before similarity evaluation, signatures were standardized to zero mean and unit standard deviation:
For two standardized signatures a and b, Pearson’s correlation coefficient was calculated as the expected value of their products:
Values approaching one indicate strong positive linear similarity, values approaching negative one indicate an inverse relationship, and values near zero indicate limited linear association. Pearson’s correlation coefficient is insensitive to constant offsets and uniform scaling. It is therefore useful when signature shape is more important than absolute magnitude. The Pearson correlation coefficient can be sensitive to influential observations, and robust estimators have been proposed to reduce this sensitivity [23].
Cross-correlation was evaluated to accommodate relative displacement between signatures. The discrete cross-correlation is commonly defined as
where ℓ is the relative lag and the superscript ∗ denotes complex conjugation. The implementation used the equivalent Fourier-domain form:
where and −1 denote the Fourier transform and its inverse, respectively; ⊙ denotes the Hadamard product; and * denotes complex conjugation. is the smallest power of two greater than or equal to 2N − 1, providing sufficient zero-padding for linear cross-correlation.
The maximum cross-correlation value over the computed lag range was retained as the similarity measure. Cross-correlation was implemented through custom MATLAB functions, where a and b were the signatures being compared:
Zero-padding to this transform length prevented circular wraparound while permitting efficient FFT computation. Retaining only the maximum correlation reduced the stored output. Cross-correlation accommodated relative displacement but could also produce high similarities for different operations with shared periodic components.
For both measures, intra-operation similarity distributions were compared with inter-operation similarity distributions. Greater separation between these distributions indicated stronger operation distinguishability.
3.9. Incremental Signature Aggregation
Operation signatures were accumulated across increasing numbers of cycle repetitions to assess how reference length affected distinguishability. For each evaluated cycle, reference signatures were constructed by elementwise summation of consecutive spectral signatures for the same operation and channel, excluding the evaluated cycle. In Equation (13), M0 denotes the original signature matrix, Pn−1 circularly permutes its cycle dimension, n indexes the evaluated cycle, and i indexes the aggregation dimension:
The first entry along the aggregation dimension retained the evaluated signature. Entries i = 2–44 summed the subsequent i − 1 signatures in the circularly permuted array, giving references of 1–43 cycles. Each reference excluded the evaluated cycle and was standardized using Equation (8) before similarity evaluation.
At each aggregation level, the standardized signature from the excluded cycle was compared with the standardized accumulated reference signatures for the same operation and the other seven candidate operations. This produced intra- and inter-operation similarity values without auto-comparison. Excluding the evaluated cycle prevented artificially high similarity caused by including the test signature in its own reference.
The procedure was repeated for all 44 evaluated cycles, eight active operations, four measurement channels, and analytical configurations. Changes with aggregation level were used to assess how reference length affected distinguishability within the recorded dataset.
3.10. Configuration and Bayesian Feature Extraction
Each analytical configuration was defined by the signal representation, measurement channel, window function, overlap percentage, compensation technique, similarity measure, and number of cycles accumulated in the reference signature. For every configuration, similarity values were separated into intra-operation comparisons, involving the same operating state, and inter-operation comparisons, involving different operating states.
An empirical comparison mask was used rather than a single global scalar threshold. For each candidate operation, measurement channel, evaluated cycle, and aggregation level, the corresponding known intra-operation comparison supplied the mask criterion. Remaining intra- and inter-operation similarity scores were labeled positive when they met or exceeded that criterion and negative otherwise. The effective criterion therefore varied with operation, channel, cycle, and aggregation level and was not tuned or validated on an independent dataset. Intra-operation comparisons were categorized as true positives or false negatives, whereas comparisons with the other seven active operations were categorized as false positives or true negatives, as summarized in Table 4.
Table 4.
Confusion-matrix definitions used for each candidate operation and measurement channel.
Sensitivity and specificity were calculated as
where A denotes the candidate operation and j denotes the measurement channel. Sensitivity represented the proportion of repetitions of operation A that produced a positive match. Specificity represented the proportion of other operations that were correctly rejected. The channel-specific false-positive rate was calculated as
Channel-level evidence was subsequently combined using the Bayesian estimator below, following the general use of combined evidence in data-fusion methods [24]. For candidate operation A, the estimated confidence associated with a set of positively matching channels was calculated as
where is the prior probability assigned to operation A, is its reconstructed duration, and t is the reconstructed cycle duration:
The product spans the four measurement channels, and mj = 1 when channel j produces a positive match and mj = 0 otherwise. Each operation prior was calculated as the reconstructed duration of that operation divided by the reconstructed cycle duration. The combination treats channel evidence as conditionally independent given the candidate operation; this assumption was not evaluated using independent data.
Only positively matching channels contributed likelihood-ratio evidence in Equation (17). When , the corresponding channel contributed a multiplicative factor of one rather than an explicit negative-match likelihood. The resulting values are therefore described as estimated Bayesian identification confidence rather than a complete probabilistic classifier output.
For a specified number of positive channels, confidence values were averaged across the corresponding channel combinations: four combinations for one positive channel, six for two, four for three, and one for all four channels. For the conservative state-level summary used in the window and multichannel analyses, the minimum across the eight active operations was retained at each positive-channel count and then averaged over aggregation levels 33–43 due to the relative stability of sums over that interval. A broader Bayesian screening score was also calculated for preliminary similarity measure and baseline-compensation down-selection. The compensation screening results are summarized in Table 5. Because this screening score pooled a different set of configuration outputs, its values are reported separately and are not directly comparable with the conservative minima in Tables 6 and 7.
These confidence estimates characterized distinguishability under the segmented signature procedure, operation-specific thresholds, assumed conditional independence of channel evidence, and reuse of the available dataset. They were not meant to be equivalent to classification accuracy measured using an independent test dataset.
3.11. Proof-of-Concept Operating-State Identification
The proof-of-concept algorithm applied the segmented-analysis processing sequence to the complete recording and counted the positively matching channels for each candidate operation. Each analyzed window underwent the same normalization, windowing, spectral compensation, and similarity processing used in the segmented assessment. The response maps used the one-term empirical comparison-mask criterion and an 11-cycle accumulated reference selected during preliminary screening.
For candidate operation A, channel j, and bucket position t, a channel-level match was recorded when the similarity value met or exceeded the corresponding operation- and channel-specific threshold:
where is the similarity between the analyzed window and the reference signature and is the decision threshold derived during the segmented analysis.
The multichannel detection response was calculated as
where ranged from zero, indicating that no channel matched candidate operation A, to four, indicating that all measurement channels produced positive matches. This calculation was repeated independently for each of the eight active operations.
The continuous recording analysis did not use the Bayesian confidence values as direct classifier outputs. Multiple candidate operations could produce responses at the same location, while intervals with no positive channel matches remained undetected. The responses were displayed separately for each candidate operation as multichannel detection maps. For visualization, an image of the net cycle with the appropriate operation highlighted was superimposed over the output graph, which was arranged by cycle repetition as the vertical axis and within-cycle position as the horizontal axis, allowing localized responses to be compared with the expected order and approximate locations of the programmed operations.
This analysis assessed whether signatures extracted from pre-segmented operations produced localized responses when searched across the complete recording. It was a qualitative offline proof of concept for the investigated machine and sequence.
4. Results
4.1. Monitoring-System Performance
The developed monitoring system acquired four current channels without accessing the CNC controller or modifying its control system. The split-core sensors were installed without disconnecting or altering the monitored conductors. Continuous acquisition at a nominal sampling frequency of 70 kHz per channel, corresponding to an aggregate rate of 280 kS/s, produced the baseline and active-cycle datasets used in the subsequent analyses.
Functional testing with a residential electrical load confirmed that all four sensor and acquisition chains responded to changes in electrical loading. During bench testing, the measured peak-to-peak response of each conditioning channel was approximately 85% below the ideal simulated span, while mean offsets were approximately 11% for channels 1–3 and 7% for channel 4. The subsequent analysis used normalized digital-count signatures rather than absolute current, power, or energy. Standardization removes uniform scale and offset differences but does not correct frequency-dependent response or aliasing.
The reported prototype hardware cost at the time of construction was USD 942.36. The USB-1608GX data-acquisition unit accounted for USD 660.00, or approximately 70% of the total cost. The remaining USD 282.36 was for the current sensors, Raspberry Pi controller, storage devices, enclosure, power supply, connectors, and associated hardware. These values represent prototype component costs and do not include labor.
Electrical responses associated with spindle operation, spindle stopping, linear-axis movement, and dwell periods were observable in the recorded signals. Although their amplitudes differed among channels, all four channels contained operation-related information and were retained for the normalized signature and multichannel distinguishability analyses.
4.2. Baseline and Active-Cycle Characteristics
The baseline and active recordings were divided into 3500-sample units and organized into 44 equal-length intervals and cycle repetitions, respectively. For each measurement channel and unit position, the mean and standard deviation were calculated across the 44 observations. The baseline measurements exhibited relatively limited variation, indicating stable background electrical behavior while the CNC controller, power electronics, and auxiliary systems remained energized.
Execution of the programmed operating cycle produced electrical changes that exceeded the variation observed during baseline. As shown in Figure 3a, the displayed baseline channel responses remained within comparatively narrow ranges. Figure 3b compares the baseline with the active-cycle responses with an envelope of one standard deviation. Spindle-related portions of the sequence produced the largest departures from baseline, whereas linear-axis movements generated smaller but observable responses. Dwell intervals generally approached the baseline response but did not reproduce it exactly.
Figure 3.
Baseline and active-cycle electrical characteristics: (a) bucketwise baseline measurements; (b) comparison of baseline and active-cycle responses; (c) active-cycle response relative to baseline-derived detectability bands; and (d) baseline response relative to active-cycle-derived detectability bands. Each bucket contained 3500 samples, corresponding to 0.05 s at the nominal 70 kHz channel sampling rate. In (a), orange denotes the baseline mean, while blue and yellow indicate its upper and lower one-standard-deviation limits, respectively. In (b), blue denotes the baseline mean, with orange and yellow indicating its upper and lower one-standard-deviation limits; purple denotes the active-cycle mean, with green and cyan indicating its corresponding upper and lower limits. In (c,d), the black curve shows the active-cycle mean in (c) and the baseline mean in (d). Red, magenta, and purple indicate detectability bands corresponding to δ = 0.49, 1.68, and 2.9966, respectively; blue indicates values outside the largest band.
Figure 3c compares the active-cycle response with baseline-derived detectability bands using the three multipliers described in Section 3.3: 0.49 (red), 1.68 (magenta), and 2.9966 (purple), with values outside the largest band shown in blue. Figure 3d makes the reciprocal comparison using active-cycle-derived bands. These panels show whole-cycle separation relative to the recorded baseline. Because the recordings were acquired separately, this comparison does not isolate operation-related response from possible baseline drift.
The measured cycle length was 2,865,750 samples per channel. At the nominal sampling frequency of 70 kHz, this corresponded to approximately 40.94 s. The measured duration was approximately 7.7% longer than the initial estimate of 2,660,000 samples, or 38.0 s. The discrepancy was concentrated primarily in the spindle acceleration and deceleration intervals, whose durations were not explicitly controlled by the G-code.
Despite this difference, the principal electrical characteristics remained consistent across the 44 repetitions. The intracycle mean preserved the major responses associated with the programmed sequence, while the standard deviation remained comparatively low during stable operating intervals and increased locally near transitions.
4.3. Transition Detection and Operation Segmentation
The binned intracycle standard deviation exhibited pronounced changes near programmed state transitions. Small cycle-to-cycle differences in timing and transient amplitude produced localized variability, which the 11-term FIR kernel emphasized as extrema (Figure 4a). Candidate extrema were overlaid on the mean electrical response and interpreted using the known G-code order. The kernel and manual interpretation were selected heuristically; no independent timing labels were available for error-rate evaluation.
Figure 4.
Variability-based transition detection and semiautomated operation segmentation: (a) normalized standard deviation across 44 cycles; and (b) mean electrical response with the overlaid output of the 11-term weighted contrast operator, with each point corresponding to 0.05 s.
Figure 4b presents the selected transition boundaries and resulting segmentation. The reconstructed sequence covered approximately 39.99 s of the measured mean cycle duration of 40.94 s, a difference of 0.95 s (2.32%). Both durations were derived from the electrical recording, so this difference describes cycle-reconstruction consistency rather than independently measured boundary error. The 0.05 s bucket duration defines nominal temporal granularity, not a bound on timing accuracy.
The extracted stable response intervals were approximately 3.55 s for clockwise spindle operation and 3.50 s for counterclockwise spindle operation. The detected linear-motion intervals were approximately 2.05 s for positive Y-axis motion, 1.95 s for positive Z-axis motion, 1.95 s for negative Y-axis motion, and 1.80 s for negative Z-axis motion. For the positive and negative X-axis intervals, a duration of 2.00 s was assigned from the programmed sequence because their boundaries were not resolved independently with the same confidence. The remaining portions of the reconstructed cycle represented spindle stopping, dwell periods, and transition regions.
The increased variability was concentrated around state transitions, supporting extraction of representative signatures from the more stable interior intervals.
4.4. Similarity Measures and Signature Aggregation
Pearson correlation and cross-correlation produced substantially different levels of operating-state distinguishability. Across the 11 rectangular-window overlap settings in the preliminary screening, the worst-case cross-correlation-based Bayesian screening score averaged 36.1%, compared with 20.1% for Pearson correlation. Cross-correlation therefore provided the stronger screening result and was retained for subsequent configuration analysis.
The estimated Bayesian identification confidence generally increased as signatures from additional cycles were accumulated. As shown in Figure 5, the improvement was initially rapid for each level of positive multichannel evidence and subsequently approached a stable region. Limited additional improvement occurred after approximately 33 accumulated cycles. The results obtained using 33–43 accumulated cycles were therefore averaged when comparing the investigated processing configurations. Periodic decreases in confidence were also observed; their cause was not established.
Figure 5.
Effect of incremental signature aggregation on estimated Bayesian identification confidence with one, two, three, and four positively matching current channels. Confidence generally approached a stable region after approximately 33 accumulated cycles.
Accumulating and re-standardizing repeated signatures reinforced repeatable structure rather than simply increasing aggregate magnitude. The stabilization near 33 cycles was specific to this dataset.
4.5. Effect of Baseline Compensation
Baseline compensation produced the largest improvement in the compensation screening analysis. Across rectangular-window overlap settings from 0% to 50%, the mean Bayesian screening score increased from 36.1% without baseline compensation to 81.0% with baseline compensation.
The baseline compensation screening scores were nearly invariant to overlap, ranging from 80.9% to 81.1%, whereas uncompensated scores ranged from 27.0% to 40.1%. Baseline compensation therefore had a substantially larger effect than overlap within this screening comparison.
Transfer-function compensation based on the published sensor-response model produced a mean screening score of 32.3% alone and 80.9% when combined with baseline subtraction, compared with 81.0% for baseline subtraction alone (Table 5). The near-equality of the latter scores supported retaining baseline subtraction without transfer-function compensation; it does not establish a flat frequency response or absence of aliasing.
Table 5.
Effect of baseline and transfer-function compensation on the mean Bayesian screening score across 11 rectangular-window overlap settings. Transfer-function compensation used the published sensor-response model [22]. The scores describe processing sensitivity, not experimental bandwidth validation.
Table 5 summarizes the compensation screening results averaged across the 11 overlap settings. These model-derived scores were used for processing-configuration selection; they are not independently validated classification accuracies and are not directly comparable with the conservative per-operation minima reported in Table 6 and Table 7.
Table 6.
Conservative minimum operation-level estimated Bayesian identification confidence for each window function and number of positively matching current channels.
Table 7.
Operation-specific estimated Bayesian confidence: rectangular window with zero overlap.
4.6. Effects of Window Function and Overlap
Window selection affected the estimated distinguishability of the segmented operating-state signatures. The rectangular window produced the highest average estimated Bayesian identification confidence among the investigated window functions, with an average of 67.3% across the four conservative minimum operation-level conditions representing one to four positively matching channels. The corresponding averages were 65.5% for the Hamming window, 64.0% for the Dolph–Chebyshev window with α = 2, 63.5% for the Hann window, and 61.5% for the Blackman window.
The Nuttall, Blackman–Nuttall, and Blackman–Harris windows produced average confidence estimates between 58.3% and 58.8%. The flat-top window produced the lowest average among the conventional windows, with an estimated confidence of 42.5%.
The differences among window functions became more apparent when all four current channels provided positive-match evidence. Under this condition, the rectangular window produced a conservative minimum operation-level estimated confidence of 95%. The corresponding minimum estimates were 94% for the Hamming window; 93% for the Hann and Dolph–Chebyshev windows, with α = 2 for the latter; 92% for the Blackman window; 89% for the Nuttall, Blackman–Nuttall, and Blackman–Harris windows; and 72% for the flat-top window. Table 6 summarizes the results for each number of positively matching channels. At the reported integer precision, the estimates for two and three positive channels were identical under each window configuration.
The detailed Dolph–Chebyshev evaluation showed the same trend. As shown in Figure 6, increasing the dimensionless α parameter progressively reduced the estimated Bayesian identification confidence. The average estimate decreased from 67.0% at α = 1 to 53.3% at α = 10, 34.0% at α = 20, and 24.5% at α = 30.
Figure 6.
Effect of the Dolph–Chebyshev α parameter on the estimated Bayesian identification confidence. Confidence decreased progressively as α increased; under this processing procedure, stronger sidelobe suppression was associated with reduced operating-state distinguishability.
Window overlap produced a smaller and less consistent effect. No overlap level provided a systematic advantage across states and channels. For the rectangular-window conservative minima, zero overlap produced 28%, 73%, 73%, and 95% for one through four positively matching channels, respectively, compared with 27%, 72%, 72%, and 94% at 50% overlap. Zero overlap was therefore selected for the segmented analysis because it required fewer calculations and produced a slightly higher four-channel minimum. Overlap remained an exploratory variable in the complete recording analysis.
4.7. Multichannel Operating-State Distinguishability
Combining positive-match evidence across channels increased the estimated Bayesian confidence. For the rectangular window with zero overlap, the conservative minimum reached 95% when all four channels matched; positive Y-axis motion governed this minimum (Table 7).
Under the segmented-signature comparison procedure, the combined measurement pattern provided greater estimated distinguishability than individual-channel evidence. This result is subject to the estimator’s conditional-independence assumption.
The initial analytical configuration therefore combined cross-correlation, spectral baseline compensation, a rectangular window with zero overlap, and multichannel evidence aggregation.
4.8. Proof-of-Concept Identification Within the Complete Recording
For each candidate operating state, the complete-recording analysis produced a response map of the number of positively matching channels, ranging from zero to four. Multiple candidate states could respond at the same location.
The maps are arranged by cycle repetition and within-cycle position, allowing responses to be compared across the 44 repetitions.
The rectangular window with zero overlap produced recognizable operation-specific regions, but responses varied across the 44 cycles. Some detections were concentrated within particular repetitions, suggesting that the accumulated references retained cycle-specific characteristics.
Figure 7 shows responses to spindle motion but limited separation of the two rotation directions. Responses also overlapped among linear-axis states, and the negative Z-axis map responded during idle periods. These intermittent and overlapping responses motivated comparison with the Dolph–Chebyshev configuration.
Figure 7.
Complete-recording response maps using cross-correlation, baseline compensation, and a rectangular window with zero overlap. Panels (a–h) identify the candidate states. Lighter shades indicate fewer and darker shades indicate more positively matching channels (0–4). The uniform gray vertical band marks the sequence-guided reference interval for each candidate state, while the black curve shows the mean electrical response. Each bucket represents 0.05 s.
Among the alternative Dolph–Chebyshev configurations, α = 2 with 15% overlap produced the most interpretable response maps (Figure 8). Spindle-operation responses were generally the most clearly localized. Several linear-axis regions were also detected, although X- and Y-axis responses overlapped, some positive Z-axis responses coincided with candidate X- or Y-axis detections, and negative Z-axis responses remained sensitive to inactive intervals.
Figure 8.
Complete-recording response maps using cross-correlation, baseline compensation, and a Dolph–Chebyshev window with α = 2 and 15% overlap. Panels (a–h) identify the candidate states. Lighter shades indicate fewer and darker shades indicate more positively matching channels (0–4). The uniform gray vertical band marks the sequence-guided reference interval for each candidate state, while the black curve shows the mean electrical response. Each bucket represents 0.05 s.
Although several programmed operations produced distinguishable localized responses, intermittent detections and responses from multiple candidate states remained. None of the investigated configurations recovered the complete programmed sequence consistently across all cycles. The complete-recording analysis should therefore be interpreted as proof-of-concept detection rather than validation of a real-time or machine-independent classifier.
5. Discussion
5.1. Observability and Repeatability of Net Input Current Signatures
The results demonstrate that aggregate electrical measurements contain information about CNC operating behavior despite combining contributions from the controller, power supplies, drives, and auxiliary systems. Spindle transients produced the largest responses, while smaller axis-motion responses remained observable after cycle partitioning and aggregation.
These findings complement studies using energy data for component recognition [15] and repeatable current patterns for productivity monitoring [4]. The present analysis examines the underlying signatures before classifier training and shows that transition timing and processing choices affect their apparent separation.
5.2. Transition Detection Through Cycle-to-Cycle Variability
Cycle-to-cycle variability was informative because small differences in transition timing and amplitude produced localized increases in standard deviation. The weighted contrast operator used this structure to propose boundaries.
Segmentation remained sequence guided: candidate boundaries were interpreted against the mean electrical response and known operation order, and the X-axis intervals were assigned because their boundaries were obscured by spindle-stop transients. The cycle-duration agreement reported in Section 4.3 therefore describes reconstruction consistency, not independently measured boundary accuracy.
This procedure is most applicable to repeated, controlled cycles. Highly variable or one-off machining would require adaptive reference construction or transition detection that does not depend on cross-cycle comparison. Independent timing measurements are needed to evaluate boundary errors.
5.3. Influence of Signal-Processing Choices
Cross-correlation and repeated-cycle aggregation improved separation under the implemented magnitude-based procedure. Re-standardization after accumulation indicates that the improvement was not simply due to increased aggregate magnitude. However, the apparent stabilization near 33 cycles was dataset specific, and periodic decreases in the aggregation results remain unexplained. Robust correlation estimators [23] and independently constructed references merit evaluation.
The improvement from baseline compensation suggests that persistent electrical content can obscure operation-specific structure. This does not establish a unique physical source for the removed components or the superiority of the procedure on other datasets.
This result has practical implications for deployment. A monitoring system should acquire a representative baseline following installation and update it periodically as the machine or its electrical environment changes. A baseline collected under one condition may become less representative following maintenance, component replacement, sensor repositioning, temperature changes, or variations in the electrical supply or grid loading.
5.4. Window Selection and Preservation of Discriminatory Information
The rectangular window gave the strongest segmented-signature result (Table 6), although it provides limited suppression of spectral leakage. This may reflect the objective of comparing finite-duration signatures rather than estimating the spectral power of stationary sinusoids.
Repeatable boundary discontinuities and spectral spreading may contribute to signature similarity. Attenuating interval boundaries could therefore remove useful information, while changes in main-lobe width and sidelobe suppression could also affect the comparisons. The decreasing confidence with increasing Dolph–Chebyshev α is consistent with this interpretation but does not identify a causal mechanism or a discriminatory frequency band.
These results should not be interpreted as evidence that the rectangular window is universally superior for electrical-signature analysis. Instead, they demonstrate that window selection should depend on the analytical objective and characteristics of the measured signals. A window appropriate for accurate spectral amplitude estimation may not be optimal for operating-state differentiation. Performance may also vary with sampling frequency, machine type, electrical architecture, and operating conditions.
Overlap had no consistent advantage in the segmented analysis, whereas an overlapping Dolph–Chebyshev configuration produced more interpretable complete-recording maps. This difference reinforces the need to evaluate processing choices on the intended detection task.
5.5. Value of Multichannel Electrical Measurements
Combining channel-level matches increased the model-derived confidence (Table 7). The channel with the largest amplitude change was not necessarily the most informative for each state; normalized patterns across several conductors may be useful for distinguishing the smaller axis-motion responses.
The estimator nevertheless assumes conditional independence, although phase-conductor measurements and their acquisition paths may be statistically dependent. Multichannel confidence may therefore be optimistic and requires independent calibration.
A single current sensor may suffice for cycle counting or prominent spindle events [4], while finer state differentiation may benefit from multiple channels. The present results support evaluating that possibility but do not establish independent performance gains.
5.6. Implications for Machine-Level Energy Monitoring
State identification could provide context for interpreting aggregate electrical demand, including the contribution of drive transients to realized cycle duration. Quantitative state-resolved power and energy assessment would additionally require calibrated, synchronized voltage and current measurements and suitable treatment of phase relationships.
This measurement-based approach could complement program-based energy models such as the virtual machining toolkit of Pantazis et al. [12]. Its potential value is deriving operating information externally where detailed controller or process data are unavailable.
5.7. Performance in the Complete Recording
The complete-recording maps exposed limitations that were less apparent in pre-segmented comparisons: intermittent detections, overlap among candidate states, and responses during inactive intervals. The best qualitative map used a different configuration from the strongest segmented-confidence result. These outputs establish localized electrical responses but do not constitute independently validated state predictions.
5.8. Practical Implications for Legacy CNC Equipment
The monitoring architecture avoids proprietary controller interfaces and sensors within the machining zone. Split-core sensors can be installed without permanently altering monitored conductors, although work inside the electrical enclosure requires qualified personnel and appropriate isolation procedures.
Because the laboratory-grade data-acquisition unit accounted for approximately 70% of the USD 942.36 prototype cost, the present system should be regarded as a laboratory retrofit demonstrator rather than an inherently low-cost platform. A purpose-designed embedded acquisition board could reduce the overall cost, provided that it maintained the required channel count, sampling performance, electrical isolation, and multichannel synchronization.
The exploratory configuration search was computationally demanding. A future implementation could restrict computation to selected transforms, references, and decision rules once these had been validated for the target machine. Potential applications include cycle counting, utilization monitoring, and detection of departures from learned signatures; these were not established as production-ready capabilities here.
5.9. Limitations and Future Research
The study used one Haas Mini Mill and one fixed unloaded program. The 44 repetitions characterize repeatability within that program; they do not establish robustness to spindle speed, feed rate, operation order, cutting load, or machine type. Isolating operations and separating them with dwells supported the present feasibility objective by reducing overlap among subsystem responses.
The sequence did not include material removal, coolant variation, or coordinated multi-axis motion. These conditions may change electrical loading, transient behavior, and overlap among signatures. The next experimental step is to vary spindle speed, feed rate, and operation order systematically, followed by overlapping operations and representative cutting conditions, using separately collected evaluation data.
All 44 cycles were acquired during one campaign. Long-term effects of temperature, maintenance, tool replacement, sensor repositioning, supply variation, and component aging were not evaluated. Future tests should include an independent spindle-speed reference to document attained speed. Repeated tests under these conditions are needed to assess signature and baseline stability.
The same dataset supported reference construction, processing-configuration selection, and complete-recording assessment, which may produce optimistic estimates. Future evaluation should separate reference construction, parameter selection, and final testing on unseen cycles and operating conditions.
The Bayesian estimator assumes conditional independence of channel-level matches and uses only positive-match likelihood ratios. Independent data are needed to assess dependence, calibrate the resulting confidence estimates, and compare them with multivariate classifiers.
Future tests and research should also synchronize the electrical recording with an independent state reference, report boundary-error distributions and per-state confusion matrices, and evaluate idle and transient false alarms explicitly. The detection method should also handle unknown states and simultaneous candidate responses without prior sequence information.
The sensor–conditioning–acquisition chain requires end-to-end frequency-response and anti-alias characterization. Frequency-band comparisons are also needed to determine which measured spectral components support state separation. These steps are necessary before assigning physical meaning to high-frequency components or transferring the present processing settings to another system.
6. Conclusions
This study investigated whether non-intrusive electrical measurements acquired at the input of a CNC machine contain repeatable and distinguishable signatures of its operating states. A four-channel prototype monitoring system based on split-core current sensors and commercial data-acquisition hardware was evaluated on a Haas Mini Mill. Measurements were acquired at a nominal rate of 70 kHz per channel over 44 repetitions of an unloaded programmed cycle containing bidirectional spindle rotation, bidirectional linear-axis movements, and intervening dwell periods. The method required neither access to the CNC controller nor sensors within the machining zone.
The active-cycle response was distinguishable from the baseline and sufficiently repeatable to support variability-based, sequence-guided segmentation. The reconstructed sequence covered 39.99 s of the electrically measured 40.94 s cycle. This agreement supports internal reconstruction consistency; individual boundary accuracy was not independently measured.
Signal processing choices materially affected segmented operation distinguishability. Cross-correlation produced stronger preliminary screening results than Pearson correlation, while baseline compensation increased the mean Bayesian screening score from 36.1% to 81.0%. Among the investigated window functions, the rectangular window produced the strongest conservative summary, including a minimum operation-level estimate of 95% when all four measurement channels provided positive evidence. These values characterize model-derived distinguishability under controlled segmentation and are not independently validated classification accuracies.
Application of the signatures to the complete recording produced localized responses for several spindle and axis operations but did not consistently recover every state across all cycles. The results therefore establish a controlled feasibility case for controller-independent monitoring. Independent timing references, measurement-bandwidth characterization, separated evaluation datasets, and tests across operating conditions are needed to establish a deployable classifier. Calibrated voltage and current measurements would additionally be required for state-resolved power and energy analysis.
Author Contributions
Conceptualization, G.M.; methodology, M.C. and G.M.; software, M.C.; validation, M.C. and G.M.; formal analysis, M.C.; investigation, M.C.; resources, G.M.; data curation, M.C.; writing—original draft preparation, M.C. and G.M.; writing—review and editing, M.C. and G.M.; visualization, M.C. and G.M.; supervision, G.M.; project administration, G.M. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The findings are reported in this article. Further inquiries about the study data can be directed to the corresponding author.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Pimenov, D.; Der, O.; Patel, G.; Giasin, K.; Ercetin, A. State-of-the-art review of energy consumption in machining operations: Challenges and trends. Renew. Sustain. Energy Rev. 2025, 224, 116073. [Google Scholar] [CrossRef] [Scilit]
- Lee, J.; Lee, D. Development of energy consumption monitoring system for machine tools in accordance with ISO 14955. Manuf. Lett. 2025, 44, 18–23. [Google Scholar] [CrossRef] [Scilit]
- Zeynivand, M.; Esmaili, P.; Cristaldi, L.; Gruosso, G. A novel approach to digital twin-based energy efficiency monitoring and failure analysis in industrial applications. J. Manuf. Syst. 2025, 83, 612–625. [Google Scholar] [CrossRef] [Scilit]
- Saha, A.; Airehenbuwa, B.; Jahangir, J.; Ndoye, M.; Akasheh, F.; Kim, E.; Fiock, T.; Van Meter, Z.; Alam, M.; Shakouri, A. Part fingerprinting-based productivity monitoring of CNC machines with low-cost current sensors. Int. J. Adv. Manuf. Technol. 2025, 137, 5913–5926. [Google Scholar] [CrossRef] [Scilit]
- Peças, P.; de Oliveira, L.C.; Febra, R.; Duarte, S.; Cruz-Machado, V.; Mira, T. Non-intrusive edge-based micro-stop detection using hybrid learning in manufacturing system. Int. J. Adv. Manuf. Technol. 2026, 145, 2309–2327. [Google Scholar] [CrossRef] [Scilit]
- Kim, E.; Mun, D.; Jun, M.; Yun, H. Operation and productivity monitoring from sound signal of legacy pipe bending machine via convolutional neural network (CNN). Int. J. Precis. Eng. Manuf. 2024, 25, 1437–1456. [Google Scholar] [CrossRef] [Scilit]
- de Leon, M.L.; Kolarik, J.; Byrtus, R.; Koziorek, J.; Zmij, P.; Martinek, R. Tool condition monitoring methods applicable in the metalworking process. Arch. Comput. Methods Eng. 2024, 31, 221–242. [Google Scholar] [CrossRef] [Scilit]
- Bai, L.; Zhang, J.; Budak, E.; Tang, Y.; Zhao, W. Vibration energy-based indicators for multi-target condition monitoring in milling operations. J. Manuf. Syst. 2024, 77, 284–300. [Google Scholar] [CrossRef] [Scilit]
- Ragai, I.; Abdalla, A.; Abdeltawab, H.; Qian, F.; Ma, J. Toward smart manufacturing: Analysis and classification of cutting parameters and energy consumption patterns in turning processes. J. Manuf. Syst. 2022, 64, 626–635. [Google Scholar] [CrossRef] [Scilit]
- Hu, X.; Tian, Y.; Wang, J.; Wang, S.; Han, J.; Liu, Y. Energy index for evaluating machine tool energy performance: Classification, model and application. J. Clean. Prod. 2024, 447, 141356. [Google Scholar] [CrossRef] [Scilit]
- Wang, L.; Wei, P.; Li, W.; Du, L. Modelling and optimization method for energy saving of computer numerical control machine tools under operating condition. Energy 2024, 306, 132556. [Google Scholar] [CrossRef] [Scilit]
- Pantazis, D.; Goodall, P.; Pease, S.; Conway, P.; West, A. Predicting electrical power consumption of end milling using a virtual machining energy toolkit (V_MET). Comput. Ind. 2023, 150, 103943. [Google Scholar] [CrossRef] [Scilit]
- Tristo, G.; Bissacco, G.; Lebar, A.; Valentinčič, J. Real-time power consumption monitoring for energy efficiency analysis in micro-EDM milling. Int. J. Adv. Manuf. Technol. 2015, 78, 1511–1521. [Google Scholar] [CrossRef] [Scilit]
- Cocca, P.; May, G.; Pesenti, V.; Stefana, E.; Bortolani, R.; Romagnoli, D. Anomaly detection using electrical signature analysis and machine learning: Application to a CNC mill. IFAC-PapersOnLine 2024, 58, 139–144. [Google Scholar] [CrossRef] [Scilit]
- Selvaraj, V.; Xu, Z.; Min, S. Intelligent operation monitoring of an ultra-precision CNC machine tool using energy data. Int. J. Precis. Eng. Manuf.-Green Technol. 2023, 10, 59–69. [Google Scholar] [CrossRef] [Scilit]
- Huang, B.; Jiang, G.; Yan, W.; Jiang, Z.; Zhang, M. A carbon emission modeling and low carbon optimization method for machining based on power data state identification. J. Clean. Prod. 2025, 512, 145652. [Google Scholar] [CrossRef] [Scilit]
- Schmitt, A.-M.; Miller, E.; Engelmann, B.; Batres, R.; Schmitt, J. G-code evaluation in CNC milling to predict energy consumption through machine learning. Adv. Ind. Manuf. Eng. 2024, 8, 100140. [Google Scholar] [CrossRef] [Scilit]
- Zhang, L.; Jiang, Z.; Zhu, S.; Yang, Z.; Zhang, H.; Chen, G.; Zhang, M. An energy consumption field model considering motion position errors for energy efficient machining on CNC machines: CNC programming perspective. Appl. Energy 2024, 374, 124023. [Google Scholar] [CrossRef] [Scilit]
- Pasandidehpoor, M.; Nogueira, A.; Mendes-Moreira, J.; Sousa, R. Survey on machine learning applied to CNC milling processes. Adv. Manuf. 2025, 13, 847–885. [Google Scholar] [CrossRef] [Scilit]
- Harris, F. On the use of windows for harmonic analysis with the discrete Fourier transform. Proc. IEEE 1978, 66, 51–83. [Google Scholar] [CrossRef] [Scilit]
- Welch, P. The use of fast Fourier transform for the estimation of power spectra: A method based on time averaging over short, modified periodograms. IEEE Trans. Audio Electroacoust. 1967, 15, 70–73. [Google Scholar] [CrossRef] [Scilit]
- Leszczyński, P.; Daszczyński, T.; Szewczyk, M. Implementability in the RLC classes of the peripheral current transformer model based on the measurements of its frequency characteristics. Przegląd Elektrotech. 2025, 101, 236–241. [Google Scholar] [CrossRef] [Scilit]
- Devlin, S.; Gnanadesikan, R.; Kettenring, J. Robust Estimation and Outlier Detection with Correlation Coefficients. Biometrika 1975, 62, 531–545. [Google Scholar] [CrossRef] [Scilit]
- Sun, I.-C.; Cheng, R.-C.; Chen, K.-S. Evaluation of Transducer Signature Selections on Machine Learning Performance in Cutting Tool Wear Prognosis. Int. J. Adv. Manuf. Technol. 2022, 119, 6451–6468. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.









