Abstract
Diagnosing motor faults on battery-powered microcontrollers requires energy-efficient inference while maintaining classification performance. We optimized a principal component analysis and XGBoost pipeline on the RP2350 at 150 MHz, comparing Arm, RISC-V and mixed-core configurations. Arithmetic, memory access and workload partitioning optimizations were evaluated individually and in combination. Identical cores provide symmetric processing resources, but projection approximation can introduce workload asymmetry. We balanced workloads by redistributing retained projection computations between cores. Board-supply energy measurements covered the complete numerical pipeline with inputs already in random-access memory. Using labeled training data, we selected 40 of 70 component–channel blocks for omission, retaining ten projection outputs and the unchanged XGBoost ensemble without retraining. The fastest and lowest-energy tested configuration combined standardization and projection, hardware floating-point arithmetic on two Arm cores, workload balancing and input reuse. It required 242 s and 12.14 J per prediction, compared with 10.55 ms and 297.68 J for the reference implementation. Inference time and prediction energy decreased by 97.71% and 95.92%, respectively, with a macro-F1 decrease of 0.47 percentage points. An idealized 800 mAh, 3.7 V battery model using measured 200 ms benchmark cycle energy predicts a runtime increase from 53.8 to 99.0 h (1.84-fold), excluding live data acquisition.
1. Introduction
Battery-powered edge devices used for machinery monitoring perform signal acquisition, preprocessing and classification under energy and memory constraints. Local inference reduces the need to transmit raw measurements by executing the diagnostic pipeline on the device [1,2]. Each acquired data frame then requires signal transformation and classifier evaluation, so the prediction energy depends on the implementation of both stages [3]. This study investigates reductions in prediction energy and their effects on classification performance.
Our earlier study [4] demonstrated rotating machine fault diagnosis using principal component analysis (PCA) [5] and XGBoost [6] within RP2040 microcontroller (MCU) memory constraints. This study uses that pipeline as an experimental test case. The RP2040 lacks a hardware floating-point unit (FPU) and relies on software floating-point routines, increasing computational overhead. We selected the RP2350 because its Cortex-M33 cores provide a single-precision FPU and digital signal processing (DSP) instructions, while its Hazard3 RISC-V cores have no hardware floating-point extension. It also permits the two active cores to be configured as an Arm pair, a RISC-V pair or a mixed pair [7].
Combining standardization with PCA projection can avoid storing and rereading an intermediate standardized data frame. PCA projection is linear in the centered variables [8]. With the projection matrix, scaling factors and centering parameters held fixed, the combined mapping from the original inputs is affine and can be evaluated using precomputed coefficients and offsets. Reductions in intermediate memory transfers have also been demonstrated through neural-network layer fusion on Cortex-M processors [9]. Within the projection itself, reusing each input across several output accumulations can reduce repeated memory loads [10]. Register capacity limits such reuse: larger microkernel blocks can cause register spilling, while the benefit of storing coefficients in RAM depends on the processor’s memory architecture [10]. Distributing these computations across cores introduces a related problem of balancing arithmetic work and coefficient reads. Mahmood et al. [11] investigated task allocation on power-asymmetric multicore processors, while Gale et al. [12] addressed load imbalance in sparse GPU kernels by reordering matrix rows according to their nonzero counts. Even with symmetric processing resources, omitting different numbers of PCA blocks from the assigned rows can produce asymmetric arithmetic and coefficient-read workloads. However, it remains unclear whether redistributing projection rows between identical microcontroller cores, while keeping the omission mask and classifier fixed, reduces whole-pipeline inference time and prediction energy.
Processor-specific floating-point routines and parallel execution have reduced energy consumption in non-neural machine-learning workloads [13]. Fixed-point compilation provides another route to efficient inference on devices without an FPU [14]. For RISC-V systems, such optimizations depend on the implemented instruction set extensions and the associated software support [15]. Vector processing with register-resident operands can reduce data movement [16]. Dedicated multiply–accumulate hardware also supports mixed-precision integer arithmetic [17]. These findings motivate examining operand reuse and arithmetic support, but do not establish the energy benefit attainable on MCUs without those specialized execution units.
Sparse PCA can estimate sparse projection coefficients through regularized regression [18], while structured sparse PCA constrains the patterns of nonzero coefficients [19]. Supervised PCA estimates projection directions that maximize dependence on the response variable [20]. Bonsai and ProtoNN jointly learn sparse projections and classifiers for resource-constrained devices [21,22]. These approaches do not directly determine which blocks of an existing projection can be omitted while limiting the performance loss of a fixed downstream classifier, or whether the resulting implementation reduces prediction energy.
Tree-ensemble compression can replace a tree ensemble with a smaller decision function [23,24], and input-dependent stopping can reduce the number of evaluated trees [25]. Joint optimization of tree ensembles and dedicated accelerators has also been investigated for edge inference [26]. Tree-inference kernels have also been optimized for MCU memory architectures [27,28]. In a PCA–XGBoost pipeline, reducing tree evaluation alone does not reduce the preceding projection. To reduce projection work, we investigate an approximation that sets selected blocks of PCA coefficients to zero. Zero-valued coefficients reduce the executed operation count only when the corresponding arithmetic is omitted. Sparse kernels can introduce indexing, control-flow and irregular-memory-access overhead that offsets arithmetic savings, while block structure can reduce this overhead [29].
Fused multiply–add (FMA) performs multiplication and addition with a single final rounding and can therefore differ from separately rounded operations [30]. Quantization, accumulation order and omitted projection terms can also change the projected values used in comparisons with split thresholds. Prediction energy depends on inference time and mean supply power, both of which can change with the execution mode or duration of continuous operation [31,32]. Measured energy, classification performance and memory requirements have been evaluated jointly in hardware-in-the-loop MCU optimization [33,34], while phase-specific benchmarking distinguishes inference from preparation and subsequent processing [35].
This study quantifies the reductions in inference time and energy per prediction achieved on the RP2350 through implementation optimization and projection approximation. It also evaluates how projection approximation affects macro-F1 when all ten PCA outputs and the trained XGBoost ensemble are retained. The approximation reduces projection work by skipping selected input channel contributions, with the set of skipped channels varying across principal components.
The work makes three contributions:
- A comparison of implementations of the same trained PCA–XGBoost pipeline on one RP2350 platform, covering Arm, RISC-V and mixed-core configurations. Arithmetic, memory access and workload partitioning are evaluated through measurements of the complete numerical pipeline under a common measurement protocol.
- A projection approximation that uses training class labels to select component–channel coefficient blocks for omission. The approximation retains the ten projection outputs and the trained XGBoost ensemble, without retraining the trees.
- Controlled comparisons that distinguish the effect of projection approximation from the optimization of its execution. With the projection mask held fixed, dense evaluation with zeroed blocks is compared with operation skipping, inter-core workload balancing and input reuse.
2. Materials and Methods
This section describes the data and reference pipeline, experimental platform, implementation changes and projection approximations, followed by the measurement and evaluation protocol.
2.1. Data and Reference Pipeline
The trained PCA–XGBoost pipeline, denoted BASE, provides the reference for comparisons of prediction energy, inference time and macro-F1. It executes standardization and the full PCA projection as separate stages before evaluating the complete trained tree ensemble (Figure 1). The BASE inputs comprise vibration and supply-current recordings from a brushless direct-current (BLDC) motor test bench. The acquisition test bench is fully documented in the OpenBLDCData repository (https://github.com/Atikas/OpenBLDCData) (accessed on 10 November 2026). Two identical ADXL355 accelerometers (Analog Devices, Inc., Wilmington, MA, USA) measure vibration at the front and rear bearing rings. An INA226 (Texas Instruments Inc., Dallas, TX, USA) monitor measures the DC supply current upstream of the motor driver. The diagnostic classes are defined in Table 1. Data were recorded from three physical motors. The resulting frames were randomly split into an 80% training subset and a 20% evaluation subset. Both subsets contained frames from each of the three motors. We used the 14,488 frames in the 20% subset first to select the reference model’s hyperparameters and later to compare the classification performance of BASE and the optimized variant.
Figure 1.
BASE inference pipeline.
Table 1.
Diagnostic classes.
Each input vector contains 200 samples from seven channels. Its elements are indexed by , where is the sample index and is the channel index. Standardization and PCA projection are computed as:
Here, is an input value, is its standardized value and is the projection value for PCA component k. The standardized and projection vectors are denoted by and , respectively, and the projection matrix is . The parameters and are the standardization mean and scale, and is the PCA centering parameter for standardized inputs. These parameters were fitted on the training partition. Class labels were used later to select the projection approximation, rather than to fit the original PCA transformation.
The reference XGBoost classifier comprises 188 trees, with 47 trees per class and a maximum tree depth of 4.
2.2. Experimental Setup
The experimental platform comprised a Waveshare RP2350-Plus board (Waveshare International Limited, Shenzhen, China) with an RP2350A MCU (Raspberry Pi Ltd, Cambridge, UK) and 16 MB of flash memory (Figure 2b). The MCU provides selectable Arm Cortex-M33 and Hazard3 RISC-V cores. The board’s USB power connection was disconnected during measurement. A Nordic Power Profiler Kit II (PPK II) (Nordic Semiconductor ASA, Trondheim, Norway) (Figure 2a) supplied the VSYS input in Source Meter mode at a 3.7 V setting. The nominal current sampling rate was 100 kHz. A Raspberry Pi Debug Probe (Raspberry Pi Ltd, Cambridge, UK) (Figure 2c) was connected to the board for firmware programming over serial wire debug (SWD) and record collection through a universal asynchronous receiver/transmitter (UART).
Figure 2.
Measurement equipment. (a) Nordic PPK II, (b) Waveshare RP2350-Plus, and (c) Raspberry Pi Debug Probe, redrawn from manufacturer photographs. Devices are not shown to scale.
The power, measurement and debug connections are shown in Figure 3. The probe’s UART receive and transmit lines were connected to GP0 and GP1, respectively. The SWD interface connected SWDIO and SWCLK between the probe and the board. General-purpose input/output (GPIO) pin GP2 was connected to the PPK II digital input D0, and the PPK II logic reference was connected to the board’s 3.3 V output. The board, probe, and PPK II shared a common ground. Arm firmware was compiled using Arm GNU Toolchain 14.2.Rel1.
Figure 3.
Measurement connections.
2.3. Pipeline Implementation and Optimization
The study focused on reducing the inference time and prediction energy of BASE, without repeating model training or tuning the training hyperparameters.
The following subsections describe compiler settings, arithmetic and memory optimizations, tree evaluation, parallel execution and projection approximation.
2.3.1. Reference Implementation and Compiler Settings
BASE runs sequentially on a single Cortex-M33 core. Standardized inputs are stored in an intermediate array, and the projection values are computed one at a time by traversing the standardized input in order. The classifier implements the decision trees as nested if–else statements, preserving the original split thresholds and leaf scores. The BASE application was compiled at optimization level 2 (-O2). Automatic fusion of floating-point multiplication and addition into a single FMA operation was disabled (-ffp-contract=off). Optimizations that relax floating-point arithmetic rules, including regrouping additions in ways that can change rounding, were also disabled (-fno-fast-math). Optimization across separately compiled source files during final linking of the executable (link-time optimization, LTO) was not used.
Compiler experiments compared optimization levels 2 and 3, with and without LTO, while keeping the floating-point settings fixed. Arm builds used Arm GNU Toolchain 14.2.Rel1, and Hazard3 builds used GNU Compiler Collection (GCC) 15.2.0. RISC-V controls also restricted the application C++ instruction set or disabled compiler shrink wrapping. The emitted machine code was inspected to verify the instruction-set settings.
2.3.2. Floating-Point Projection
For fixed preprocessing and projection parameters with , standardization and PCA projection can be combined by distributivity in real arithmetic. Equation (1) can be rearranged as:
The coefficients and offsets were computed once in double precision (binary64) and stored as float32. Their stored binary32 values are denoted by and . Let denote rounding to binary32 using round to nearest with ties to even. The centered input used by the implementation is denoted by , whereas in Equation (2) denotes its exact real-arithmetic value. Each is computed once and reused by all projection rows. This removes the per-input divisions and repeated PCA-centering operations. The implementation retains a buffer of centered inputs and eliminates the intermediate standardized input vector.
For each PCA output k, the Cortex-M33 kernel distributes the 1400 products among four accumulators. Accumulator r processes input indices , giving 350 updates per accumulator. With n denoting the number of completed updates, the computation is
Here, computes with a single binary32 rounding after the combined multiplication and addition. Thus, each update adds one input–coefficient product to its assigned partial sum. Let denote the completed partial sum. The computed projection value is obtained by adding these sums in the order and then subtracting , with binary32 rounding after each addition and the final subtraction. The comparisons also included a single accumulator and input reuse across two or five projection rows.
Rounding affects both the operands and their accumulation. Following the standard rounding-error model [36], let be the binary32 unit roundoff and define for . Under round-to-nearest arithmetic without overflow or subnormal intermediate results, each accumulator differs from the exact sum of its 350 products of stored operands by at most . Combining the four partial sums adds an error of at most .
The operand errors are for a stored coefficient and for a computed centered input. Their effect on the projection sum is bounded by
Both sums on the left are evaluated in exact real arithmetic to isolate the effect of operand rounding. The three terms on the right account for input rounding, coefficient rounding and their interaction, respectively. Equation (4) does not include accumulation rounding. A bound for the complete projection must also include the accumulation bounds above, the offset error and the final-subtraction rounding error. Comparison with the actual BASE output additionally requires a bound for rounding in the BASE computation.
Input reuse preserves the outputs of the corresponding four-accumulator implementation if each accumulator starts from the same bits and receives the same operands in the same order, using the same FMA mode. Each update in Equation (3) then produces the same bits, as do the unchanged final additions and offset subtraction. Hazard3 floating-point controls use software arithmetic, with fused and separately rounded multiplication and addition evaluated as distinct implementations.
2.3.3. Memory Placement
The memory-placement experiments varied the storage location of model data and computation code. The combined SRAM variant copied projection coefficients, centering parameters and tree tables from flash into SRAM during initialization and executed the computation kernels from SRAM. Integer-projection controls also tested SRAM placement of the quantization-calibration tables. The model data were copied once at startup, before warm-up. Inference time, prediction energy, and 200 ms cycle energy were measured after initialization. The dual-Arm scratch-SRAM comparison used two builds with the same worker-stack location. In the control build, only the stack was relocated. The second build additionally placed the second core’s projection and tree-evaluation kernels in scratch SRAM.
2.3.4. Tree Representation and Evaluation
The exported tree branches were converted first to compact node tables and then to an 8-byte representation in depth-first preorder. A node stores a binary32 value, a signed 16-bit feature index and an unsigned 16-bit right-child offset. During conversion, the generator verified that the left child of node i is and the right child is , with a positive offset that fits the stored field. A negative feature index denotes a leaf.
For an original finite threshold , the stored threshold was , where denotes the binary32 values, including infinities and excluding not-a-number (NaN) values. For a binary32 projection value , implies because belongs to the defining set. The converse follows from . A NaN projection value makes both comparisons false. Identical node comparisons select corresponding children, so induction along the tree path preserves the reached leaf. Tree roots were grouped by class, retaining the original order of the 47 leaf-score additions within each class. Selecting the smallest maximizing class index preserves the tie rule. Changing double-precision leaf-score literals to binary32 is treated separately as a numerical approximation.
Let denote the reached leaf score for class c in boosting round r. If an original leaf-score literal is replaced by , the ordered binary32 class sum has the conservative bound [36]
This bound assumes identical reached leaves and the arithmetic assumptions of Section 2.3.2. It is relative to the real-valued sum of leaf scores. The original BASE accumulation has its own rounding errors.
2.3.5. Tree Truncation and Early Termination
The tree-truncation variants evaluated the first 40 or 36 boosting rounds. A separate early-termination implementation used the complete ensemble with binary32 leaf scores. After every eight trees, it checked whether the predicted class could be determined from the accumulated scores and bounds on the remaining leaf contributions. Before inference, the generator precomputes the bounds for each early-termination check and class c. It sums the minimum and maximum leaf scores of the remaining trees using exact rational arithmetic and rounds the endpoints outward to binary32, obtaining and .
Let be the remaining number of leaf scores and . The generator computed B by summing the maximum absolute binary32 leaf score of every tree and set . For this ensemble, and . Since , all rounded partial class scores remain within under the rounding assumptions of Section 2.3.2. Each remaining addition therefore incurs absolute rounding error at most .
The implemented allowance covers the remaining accumulation error and endpoint calculations. With actual partial score , the calculated class-score interval endpoints are and . The resulting interval contains the score obtained by evaluating all remaining trees. Stopping for candidate c requires its lower endpoint to exceed every upper endpoint for classes with smaller index, and to equal or exceed every upper endpoint for classes with larger index. This preserves the smallest-index tie rule. If the condition fails, evaluation continues. This guarantee applies to early termination of the complete floating-point ensemble with unchanged leaf scores and accumulation order.
2.3.6. Dual-Core and Mixed-Core Execution
In the full dual-Arm implementation, the main core centers the input and computes projection values for PCA components 0–4, while the second core computes projection values for components 5–9 from the shared input buffer. Tree evaluation begins after both projection tasks have completed. Each core then evaluates the trees for two classes. The main core selects the predicted class after both score groups are available. Shared buffers have one writer per output. Commands and completion notifications pass through the first-in, first-out (FIFO) interface, with memory barriers delimiting both phases. Projection rows and class sums retain their internal arithmetic order. For preparation time S, projection tasks , tree-evaluation tasks and synchronization cost H, the workload model is:
Architecture profiles that also changed input preparation, tree-evaluation ownership or cooperative waiting were compared as complete configurations.
The mixed-core implementations assign different tasks to one Cortex-M33 core and one Hazard3 core. Projection-split controls divide projection rows between the cores. Other configurations compute the full projection on Arm and assign evaluation of either the full tree ensemble or the trees for two classes to Hazard3. Integer-dot-product controls keep preparation and rescaling on Arm and compare 5/5 and 7/3 projection-row partitions. For row costs a on Arm and r on Hazard3, the idealized balance condition gives Arm rows. A reverse configuration uses Hazard3 as controller and an Arm worker. Shared-buffer synchronization follows the same FIFO and barrier protocol, with conversions and communication inside the prediction interval.
2.3.7. Quantization and Integer Inference
The integer-arithmetic experiments compared dynamic input quantization, fixed input quantization and a fully integer projection–tree pipeline. Signed 16-bit storage was used for inputs and coefficients in both scalar and Arm packed DSP kernels. All configurations used 10-bit coefficients with component–channel steps and encoded values . Here, R rounds to the nearest integer with ties away from zero. Zero coefficient blocks used .
The dynamic-input reference set each channel’s input step to its largest absolute centered value in the current frame divided by 2047. All-zero channels were encoded as zero. This 12-bit input and 10-bit coefficient combination satisfies the conservative full-row bound . Channel sums were reconstructed with floating-point scales and added in channel order.
The fixed-input configuration replaced per-frame scale estimation with channel steps and used the range . For each channel, calibration set to the maximum of over all sample indices and all training frames, using the rounded centered inputs defined in Section 2.3.2. Let and , where bounds the raw input magnitude in the calibration frames. The exponent was selected by
The first term reserves 1% headroom and rounding margin. The other terms constrain the scaled raw input and mean before integer subtraction. The resulting exponents were for channels . The implemented quantizer was
Power-of-two steps allowed quantization through binary32 exponent and significand operations, with rounded means prepared in advance. Rounded raw inputs were saturated to before mean subtraction. A further control moved the channel exponent and invariant input pointer outside the sample loop. The 15-bit input limit was selected to keep each channel sum within signed 32 bits according to
The fully integer configuration additionally replaced floating-point channel reconstruction and tree evaluation. Projection values used unit and were computed as
Here, saturates to signed 32 bits. The precomputed parameters satisfy , with and . Products, rescaled channel contributions and offset subtraction used 64-bit intermediates. Integer tree thresholds were stored as , using the binary32 threshold f defined in Section 2.3.4. The identity preserves comparisons for the fixed-point projection. Leaf scores were stored as . Class scores used signed 32-bit accumulation. The generated parameters were checked for overflow in projection rescaling and score accumulation. Projection rescaling and integer tree evaluation were tested together.
A separate control retained floating-point projections and evaluated tree thresholds through unsigned integer keys. Let denote the unsigned binary32 bit pattern of a floating-point value y after canonicalizing both zeros to positive zero. The mapping was for and otherwise, where ∼ is the 32-bit bitwise complement and ⊕ is bitwise exclusive OR. For non-NaN operands, , where denotes unsigned 32-bit comparison. NaN comparisons were rejected explicitly.
2.3.8. Coefficient Precision and Adaptive Refinement
Coefficient-precision controls reduced the encoded 10-bit coefficients of the integer projection in Section 2.3.7 without removing projection terms. Starting from an encoded coefficient v, the lower-precision value is and its reconstruction is . The 8-bit version uses and the 4-bit version uses . Mixed precision assigns 8 bits to the 20 component–channel blocks with the largest normalized coefficient-error norms and 4 bits to the remaining 50. The ranking uses coefficient values without class labels. Packed implementations compare C bit extraction, Hazard3 bit-extraction instructions, shared four-coefficient words and one-time unpacking before prediction.
For blocks stored with 16, 8 or 4 bits per coefficient and , the coefficient payload is
The payload excludes scales, offsets, index tables and expanded copies. Packed coefficients occupy aligned fields within 32-bit words. All extraction implementations use the same signed coefficient representation.
Adaptive refinement first computes a coarse projection and bounds the corresponding integer-reference value. For each block, let be the reconstructed lower-precision coefficient, with set to the shift selected for that block. Define the residual , its bound and the reconstructed dot product . For the same quantized inputs,
Each rescaling is monotone and rounds by at most half an output unit. Hence
Summing the seven channel bounds gives in fixed-point output units. Let denote the coarse fixed-point projection. Saturation is monotone and 1-Lipschitz, so the integer-reference projection value lies in
Interval arithmetic is performed in 64 bits. For a node test , proves the true branch and proves the false branch. Otherwise the projection value is recomputed from the original encoded coefficients and cached for the rest of the prediction. The resulting traversal preserves the encoded integer reference’s leaves, score accumulation and tie rule, and therefore its predicted class.
2.3.9. Structured Projection Approximation
Structured PCA approximation omits component–channel blocks, each containing 200 coefficients. For a mask with elements , the floating-point operator in real arithmetic is
The projection offset and output dimensionality are retained. The integer implementation applies the mask to rescaled channel contributions before final saturation. In the fully integer implementation, omitting a zero block is exact because its dot product and rescaled contribution are zero.
The block-selection procedure is shown in Figure 4. The mask search used the integer-reference projection and a balanced subset of 4096 frames, with 1024 randomly sampled frames per class. Starting with all blocks active, each step tested the omission of every remaining block and retained the candidate with the highest subset macro-F1. Ties were resolved by the smaller block index . The search stopped before accepting a subset score more than 0.8 percentage points below the BASE subset macro-F1, or after 45 accepted steps. We set the tolerance to 0.8 percentage points as a fixed stopping threshold for the greedy search. After every fifth accepted omission and at the end of the search, the masks were evaluated on all 57,950 training frames. Selected masks were fixed before testing on the evaluation data and applied unchanged to the original floating-point coefficients. Mask selection did not change the trained tree ensemble. To assess the sensitivity of block selection, we repeated the greedy search on ten balanced random subsets of the training data, each containing 1024 frames per class. We used the same subsets at eleven macro-F1 tolerances from 0.3 to 1.3 percentage points in steps of 0.1.
Figure 4.
Activity diagram of PCA block selection using training data and a fixed classifier.
For each mask, dense-zero, block-skipping, balanced and input-reuse implementations were compared separately. For finite floating-point operands and accumulator states that remain normal or zero, skipping zero-coefficient FMAs preserves numerical accumulator values. The sign of a zero result can differ without changing the tree comparisons. Retained terms keep their original accumulator indices and arithmetic order from Equation (3). Row reassignment preserves that order and the completion barriers required by the equivalence argument in Section 2.3.2.
Let be the active block count of row k, giving retained products. For row groups partitioning the projection rows between the two cores, workload balancing minimizes under equal block costs. Equal retained-block counts give a symmetric distribution of projection products and modeled coefficient reads between identical cores, since each block contains 200 coefficients. The general objective does not fix the group sizes. The evaluated search constrained each group to five rows so that the same assignment could be used in the balanced and five-row input-reuse implementations. All such assignments were evaluated. For active blocks, any partition has a larger group containing at least blocks.
For input reuse, define the active channel set of row k as . Loading each required channel once per core gives the modeled input-read count
Each active coefficient is read once, so the modeled operand-read count is .
2.4. Measurement and Evaluation Protocol
All confirmation measurements used the replay workload and settings in Table 2. The fixed replay set contained eight development frames per class and was shared by all variants. Live sensor acquisition was excluded.
Table 2.
Common settings for the confirmation measurements.
During the initial measurements, the voltage regulator was configured in automatic mode. Separate controls set the clock to 75, 100 or 125 MHz, selected automatic or forced pulse-width modulation (PWM) regulator operation, and enabled cooperative waiting between predictions. Before waiting, UART transmission was completed and the second core acknowledged that it had no outstanding task. The wake timer remained enabled and clock masks were restored before the next prediction. Repeated measurements for each comparison were organized into five blocks, with one run of every variant in randomized order per block. The board was power-cycled between runs. The initial comparison included six variants, giving 30 runs. The architecture and projection-approximation comparisons each included five configurations and 25 runs. Reference configurations were measured again in each comparison. Each preliminary comparison used one run of a reference implementation and one run of its modified version, with the board power-cycled before each run.
Inference time was measured with the MCU microsecond timer. The GP2 pulse marked the complete numerical pipeline for current integration, including class selection and inter-core conversion or synchronization. Input data were already in RAM, while UART communication and waiting occurred outside the pulse. Gross board-supply energy during each prediction pulse was estimated as:
where is the sampled supply current and and index the rising and falling edges. This integral includes board background consumption and power-conversion effects without subtracting idle current. Cycle energy was integrated between consecutive rising edges and included the operations outside the prediction pulse. The final pulse of each run had no subsequent rising edge and therefore did not define a complete cycle.
Recordings were checked for PPK II sample-counter discontinuities, missing or extra GPIO pulses, pulse-width differences from the MCU timer, drift between the MCU and PPK II time bases and missing UART sequence numbers. Sensitivity to sampled integration boundaries was assessed using , where the currents are the two edge samples. Each measured MCU prediction was compared with the corresponding host C++ output. Additional 256-frame development sets checked predicted classes and projection-output bit patterns for 13 architecture implementations and seven approximation implementations. For adaptive refinement, projection diagnostics described the coarse projection and the final class was checked after refinement. The floating-point host reference used native FMA instructions.
Scores were also computed from integer confusion counts using exact rational arithmetic. Reported inference time is the median of five run medians, and prediction energy is the arithmetic mean of five run means. Paired bootstrap resampling was used to calculate 95% percentile confidence intervals for time and energy ratios. In the initial and architecture comparisons, ratios of means were calculated by resampling matched power-cycle blocks and data-frame groups, preserving within-frame repetitions. The final approximation comparison resampled matched blocks and compared means of run medians for time and means of run means for energy. These intervals describe measurement repeatability for this board and workload, excluding voltage-calibration and sampling-boundary uncertainty. Measurements from separate comparisons were not pooled.
An implementation qualified only if paired bootstrap intervals supported reductions in both inference time and prediction energy relative to the full Arm reference. Eligible implementations were compared by the product of prediction energy and inference time, averaged across measurement blocks. When this comparison did not resolve a difference, the implementation with the higher macro-F1 was preferred.
Temperature was monitored to examine the hypothesized dependence of prediction energy on MCU temperature. Readings from the internal sensor averaged 64 conversions by the analog-to-digital converter (ADC), and changes were recorded relative to the initial reading of each run. Separate observations of approximately 319 s comprised four initial-stage runs, five architecture runs and three approximation runs. For the architecture and approximation observations, comparisons used the initial and final 30 s of the same run. An ADC/VSYS-ratio reading was retained alongside the internal-sensor reading to assess sensitivity to ADC-reference variation, assuming stable VSYS and divider gain. Long runs were excluded from confirmation averages.
3. Results
3.1. Pipeline Optimization
Memory placement produced the largest reductions in the preliminary full-pipeline comparisons (Table 3). Some changes shortened inference time but increased prediction energy, so time alone did not determine the preferred implementation.
Table 3.
Preliminary comparisons of implementation changes in the full Arm pipeline.
Input reuse reduced the modeled operand loads without reducing the number of FMA operations and preserved projection-output bit patterns in the 768-frame check. Four accumulators were retained in the later parallel implementations despite their higher initial single-core inference time.
The optimized full Arm pipeline preserved BASE predictions on the evaluation data (Table 4). Higher compiler optimization and tree truncation did not establish an additional energy benefit. Truncation to 36 rounds reduced macro-F1 from 95.2815% to 94.0159%. Certified early termination reduced the number of evaluated trees but increased MCU inference time. The subsequent full-model reference therefore retained the complete ensemble.
Table 4.
Five-block confirmation of the full Arm implementation and tree truncation.
3.2. Arm, RISC-V and Mixed-Core Comparison
The same arithmetic change could improve both metrics on RISC-V and worsen them on Arm (Table 5). The paired two-core configurations also changed task ownership or waiting, so their effects apply to the complete configurations.
Table 5.
Effects of arithmetic implementation, memory access and core use in preliminary comparisons.
Integer score accumulation and task redistribution improved the mixed-core implementation. Its confirmed inference time and prediction energy were 598 s and 34.488 J, compared with 351 s and 16.503 J for the full dual-Arm reference in the same campaign. Compiler and instruction-set controls did not consistently improve both metrics.
3.3. Projection Approximation
Reducing coefficient precision lowered storage requirements, although packed implementations ran slower than their unpacked controls due to decoding overhead. Unpacking before inference recovered execution speed at the cost of retaining both packed and expanded coefficient arrays. The 8-bit and mixed 4/8-bit variants achieved macro-F1 scores of 95.2443% and 95.2068%, respectively. The uniform 4-bit variant scored 73.1049% and was excluded from energy measurements. Adaptive refinement recovered the integer reference’s predicted classes on the training and evaluation data, with higher inference time and prediction energy due to recomputation and refinement overhead. To reduce projection work, we also tested the omission of entire component–channel blocks. The block-selection search accepted 41 omissions. The mask used for the fixed-mask hardware comparisons corresponds to the first 40 accepted omissions of that search. With the mask held fixed, we compared the effects of skipping zero blocks, balancing workloads and reusing inputs (Table 6).
Table 6.
Implementation controls using the same mask of 40 omitted projection blocks.
Zeroing coefficients without skipping their operations provided little speed benefit in the integer controls. The effect of skipping depended on the arithmetic implementation, while balancing and input reuse improved the subsequent variants. The Arm floating-point comparisons preserved projection-output bit patterns and predicted classes on all training frames. Figure 5 shows the trade-off between omitting more projection blocks and retaining classification performance. At selection tolerances of 0.3 and 1.3 percentage points, the median numbers of omitted blocks were 39 and 42.5, respectively. The corresponding median decreases in macro-F1 on the evaluation set were 0.49 and 1.42 percentage points. At a tolerance of 0.8 percentage points, the ten training subsets yielded ten distinct masks, each omitting 40–42 blocks. The same 35 blocks were omitted in every mask. The median macro-F1 decrease on the evaluation set was 1.06 percentage points, with seven of the ten masks showing a decrease greater than 0.8 percentage points.
Figure 5.
(a) Number of omitted blocks. (b) Macro-F1 decrease relative to BASE on the evaluation set. The vertical dashed lines mark the 0.8 percentage-point macro-F1 tolerance used for block selection on the training subset.
In the preliminary Arm floating-point comparison, measured energy per prediction was 0.044 J (0.32%) lower with workload balancing and a further 2.019 J (14.60%) lower when input reuse was added to the balanced implementation. To assess sensitivity to integration boundary placement, we recomputed the energy differences after shifting the start and end of each integration interval by up to one sample (10 s) in either direction. Applying the same pair of start and end offsets to both runs in each comparison gave estimated reductions of to 0.121 J for workload balancing and 1.953 to 2.205 J for input reuse. Allowing the offsets to vary between runs gave ranges of to 2.347 J and to 4.233 J, respectively.
3.4. Numerical Verification and Resource Use
All 13 architecture implementations matched host projection-output bit patterns and predicted classes on the 256-frame MCU verification set. The seven approximation implementations produced 1792 MCU predictions without class disagreements. Adaptive projection diagnostics refer to the coarse projection. Across all frames, including training data, the full floating-point implementation predicted a different class from BASE on three frames, so agreement on the evaluation data does not imply universal equivalence.
Linker-reserved SRAM was 24,512 B for BASE, 118,364 B for the initial full Arm implementation, and 118,224 B for the selected dual-Arm implementation. The SRAM totals include reserved stacks and heap. The flash image extent decreased from 515,176 to 296,680 B in the initial full Arm implementation, with benchmark frames included. The masked floating-point implementation retained the complete coefficient array in both flash and RAM, so fewer projection products did not produce a corresponding coefficient-storage reduction. In the selected implementation, the coefficient array and tree tables occupied 56,000 and 29,672 B of SRAM, respectively.
Cooperative waiting reduced cycle energy while changing prediction energy only slightly. Lower clock settings and forced regulator PWM increased prediction energy in the tested controls. Cycle-energy rankings differed from prediction-energy rankings because replay cycles also included waiting and communication. Cycle measurements were not used to select the prediction-energy implementation. For an ideal 800 mAh, 3.7 V battery, dividing nominal battery energy by mean power over the 200 ms replay cycle gives 53.8 h for BASE and 99.0 h for the selected Arm implementation (Table 7). This illustration excludes live acquisition and battery and supply losses outside the measured board input.
Table 7.
Benchmark-cycle energy and idealized battery runtime.
3.5. Final Evaluation and Implementation Selection
The dual-Arm implementation omitting 40 projection blocks with input reuse achieved the lowest confirmed inference time and prediction energy among the tested configurations: 242 s and 12.136 J per prediction (Table 8). It combined fused standardization and projection, hardware floating-point arithmetic, balanced workloads and input reuse, while retaining ten projection outputs and all 188 trained trees. These computational gains came at a classification-performance cost: macro-F1 decreased from 95.2815% for BASE to 94.8143%, a loss of 0.47 percentage points. The final benchmark compares five implementations measured in the same campaign, using the optimized Arm implementation with the full PCA projection as the reference (Figure 6).
Table 8.
Final five-block comparison of full projections and structured approximations on two cores at 150 MHz.
Figure 6.
Inference time and prediction energy for five RP2350 implementations.
Relative to the full Arm reference measured in the same campaign, the selected implementation reduced inference time by 31.00% (95% paired bootstrap interval: 30.88–31.05%) and prediction energy by 26.48% (23.54–29.33%). Within-campaign time reductions are calculated from ratios of the arithmetic means of the five run medians. These confirmation measurements supersede the preliminary energy estimate. The corresponding RISC-V approximation reduced time by 23.07% and energy by 22.52% relative to its full integer reference. The 41-block Arm candidate used a different execution strategy, so its comparison with the selected candidate does not isolate the effect of one additional omitted block. Relative to BASE measured in the initial campaign, the selected implementation reduced time by 97.71% and prediction energy by 95.92%; these are comparisons across campaigns.
The macro-F1 decrease was accompanied by unequal changes across classes (Table 9). Front-bearing fault recall fell from 93.4493% to 90.5625%, a loss of 2.89 percentage points and the largest class-specific decrease. Grouping all faults against normal operation, fault frames classified as normal increased from 113 to 193, while normal frames classified as faults decreased from 16 to 8. Thus, the selected approximation produced fewer false fault indications but more missed fault frames in this evaluation set. Figure 7 shows the direction and magnitude of the recall change for each diagnostic class.
Table 9.
Classification performance of BASE and the selected Arm approximation.
Figure 7.
Recall by diagnostic class for BASE and the selected Arm approximation, with changes in percentage points (pp).
4. Discussion
Implementation optimization reduced prediction energy while preserving BASE predictions on the evaluation data. Projection approximation provided further savings at the cost of classification performance. Keeping all ten projection outputs and 188 trees did not preserve the original decision function because altered projection values could change tree paths and predicted classes.
The full dual-Arm implementation combined hardware FMA with projection execution on both cores. Hazard3 required software floating-point arithmetic or an integer reformulation. Integer arithmetic improved RISC-V performance, but the confirmed implementation remained slower and consumed more prediction energy than the full dual-Arm reference. In the confirmed mixed-core configuration, one Arm core computed the entire projection, so this stage no longer benefited from two-core execution. Tabanelli et al. [13] also found that floating-point support and parallel execution reduced energy consumption in non-neural machine-learning workloads, although their platforms and workloads differ from ours. Our comparisons did not isolate the contribution of each factor and do not establish a general ranking of Arm and RISC-V architectures.
The benefit of parallel projection execution also depended on how the retained computations were distributed between the two Arm cores. With the projection mask held fixed, row reassignment restored symmetry in the distribution of retained projection blocks between the two identical cores. For the mask with 40 omitted blocks, the allocation changed from 12/18 to 15/15 active blocks, balancing both projection products and modeled coefficient reads. In the preliminary Arm floating-point comparison, inference time decreased from 284 to 263 s (7.4%) (Table 6). The preliminary comparison did not establish an energy saving from workload balancing alone. The measured saving from input reuse persisted when the same boundary shifts were applied to both runs, but the range included zero when the shifts could differ between runs. Workload balancing reduced the largest projection workload assigned to either core, while input reuse reduced repeated input loads. Hoefler et al. [29] discussed the same need to adapt execution to sparsity in neural networks. Prediction energy depends on both inference time and mean supply power, so the energy benefit of operation skipping, workload balancing and input reuse requires complete-pipeline measurements. In a preliminary comparison of the Arm integer implementations, skipping zero blocks increased inference time while reducing prediction energy. The final implementation combined workload balancing and input reuse with block omission, arithmetic optimization and memory placement, achieving the lowest confirmed inference time and prediction energy among the tested configurations. Separate long-run observations outside the five-block confirmation protocol showed no consistent relationship between temperature changes and cycle energy under the tested conditions.
Faster execution required more RAM. Moving code and frequently accessed data into SRAM increased linker-reserved RAM in the full Arm implementation. The masked floating-point implementation retained the complete coefficient array in flash and RAM, so fewer projection products did not reduce coefficient storage. Porting this implementation to a device with less RAM would require reassessing code and data placement. Beyond memory constraints, evaluation on independent motor recordings and measurement with live acquisition are needed to assess diagnostic performance and battery runtime in operation.
The 0.47-percentage-point macro-F1 decrease does not capture the larger recall decrease for individual fault classes. The selected approximation produced more missed fault frames and fewer false fault indications, with the largest recall decrease occurring for front-bearing faults (Table 9). These errors may carry different costs [37]. The effect on continuous monitoring remains unresolved because frame-level errors do not establish whether an entire fault event would be missed or how long detection would be delayed.
Comparison with Published Studies
Table 10 compares approaches to reducing inference cost. Daghero et al. [25] reduced the number of trees evaluated for each input, while Gao et al. [38] pruned a quantized neural network for bearing fault diagnosis. Our approach omitted selected operations in the PCA projection while retaining all ten projection outputs and the trained XGBoost ensemble. The projection values could still change, leading to a 0.47-percentage-point decrease in macro-F1.
Table 10.
Inference optimization in published studies and the present work.
El Boughardini et al. compared classifiers on one microcontroller, whereas we kept the classifier fixed to evaluate implementation changes. Manca et al. showed the benefit of adding dedicated hardware for mixed-precision inference. Our processor comparison instead used the Arm and RISC-V cores available on the same RP2350. The reported changes refer to the reference evaluated in each study and reflect different workloads, devices and measurement scopes. Our previous RP2040 study compared input representations and distilled XGBoost models for resource-constrained deployment [4]. The present study extends that work by measuring inference time and energy when optimizing an already trained PCA–XGBoost pipeline on the RP2350.
5. Limitations and Future Work
The experimental setup limits how broadly the measured gains in inference time and energy can be generalized.
- The experiments used one RP2350 board and one trained PCA–XGBoost pipeline. The measured time and energy gains apply to the tested configurations for that workload.
- The macro-F1 comparison between BASE and the optimized variant used frames from the same three motors represented in the training subset. Whether the optimization has a similar effect on macro-F1 for previously unseen motors remains to be evaluated.
- The mask used for the hardware comparisons was derived from one balanced subset of the training data at a macro-F1 tolerance of 0.8 percentage points. The sensitivity analysis assessed block-selection stability across resamples of the same training data.
- The fastest Arm implementation uses hardware floating-point arithmetic. The full Arm implementation increased linker-reserved RAM from 24 512 to 118 364 B, including the input buffer and reserved stacks. Porting the optimizations to another microcontroller requires checking which arithmetic operations it supports in hardware and deciding where to store the code and model data.
- The paired bootstrap intervals describe repeatability for the final comparison. In the workload-balancing comparison, the observed energy difference of 0.044 J was smaller than the mean energy associated with the first and last PPK II samples combined (1.07–1.16 J across the two runs). Given this sensitivity to the integration boundaries, the energy saving from workload balancing alone remains uncertain.
- The RP2350’s internal sensor tracked relative temperature changes during separate long runs. Quantifying the effect of temperature on energy would require an independent temperature reference and controlled thermal conditions.
6. Conclusions
The trained PCA–XGBoost pipeline was made more efficient on the RP2350 without retraining the XGBoost model or reducing its tree ensemble. Among the tested Arm, RISC-V and mixed-core configurations, the dual-Arm implementation combining projection approximation, workload balancing and input reuse achieved the lowest confirmed inference time and prediction energy. It required 242 s and 12.14 J per prediction with input data already in RAM. Relative to BASE measured in the initial comparison, inference time decreased by 97.71% and prediction energy by 95.92%. Against the optimized full Arm reference measured in the final five-block comparison, the combined changes reduced inference time by 31% and prediction energy by 26.48%. This additional saving of approximately one quarter of prediction energy shows the value of optimizing projection processing even after the full pipeline has been optimized for the processor. The additional gains came from the combined changes rather than block omission alone. We estimated the theoretical battery runtime from the measured energy per 200 ms replay cycle and the nominal energy of an 800 mAh, 3.7 V battery. The calculation gives 53.8 h for BASE and 99.0 h for the selected implementation, a 1.84-fold increase. The replay cycle includes waiting and communication and excludes live signal acquisition.
The implementation choices allow developers of embedded diagnostic systems to match computational cost to fault-detection requirements. The optimized full Arm implementation preserved BASE predictions on the evaluation data. The approximated implementation reduced prediction energy further, with a 0.47-percentage-point decrease in macro-F1 and a 2.89-percentage-point decrease in front-bearing fault recall. It offers a lower-energy option where this loss of sensitivity is acceptable. Selecting between the two requires attention to individual fault classes as well as aggregate macro-F1.
On other multicore microcontrollers, the benefits of these optimizations will depend on hardware support for arithmetic, memory architecture, and the cost of synchronizing the cores. An independent evaluation should measure inference time and energy on the new platform, report energy measurement uncertainty, and verify whether the observed changes in fault recall persist on new recordings.
Author Contributions
Conceptualization, R.Ū.; methodology, R.Ū. and R.P.; software, R.Ū.; formal analysis, R.Ū.; investigation, R.Ū.; writing—original draft preparation, R.Ū.; writing—review and editing, A.S. and R.P.; visualization, R.Ū.; supervision, A.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The motor vibration and current recordings used in this study are available in the OpenBLDCData repository at https://github.com/Atikas/OpenBLDCData (accessed on 10 November 2026).
Acknowledgments
During the preparation of this manuscript, the authors used the image generation feature in OpenAI’s ChatGPT, with GPT-6.1 selected in the chat, to prepare the equipment illustration. The authors also used GPT-6.1 for English language assistance, including checking grammar, correcting typographical errors and improving clarity. The authors reviewed and edited the outputs and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Alharthi, S.; Rashid, M.; Aljabri, M. TinyML in Industrial IoT: A Systematic Review of Applications, System Components, and Methodologies. Sensors 2026, 26, 2550. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Garay, C.E.; Miranda Bonomi, F.A.; Mansilla, G.N.; Fagre, M.; Guzmán, S.G.; Ritorto, P.A.; Perez, F.I.; Katz, M. A Multimodal TinyML-Based Predictive Maintenance Architecture for Industrial IoT in the 6G Era. Sensors 2026, 26, 4536. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tabanelli, E.; Brunelli, D.; Acquaviva, A.; Benini, L. Trimming Feature Extraction and Inference for MCU-Based Edge NILM: A Systematic Approach. IEEE Trans. Ind. Inform. 2022, 18, 943–952. [Google Scholar] [CrossRef] [Scilit]
- Ūselis, R.; Serackis, A.; Pomarnacki, R. Signal Processing Optimization in Resource-Limited IoT for Fault Prediction in Rotating Machinery. Electronics 2025, 14, 3670. [Google Scholar] [CrossRef] [Scilit]
- Pearson, K.L., III. On lines and planes of closest fit to systems of points in space. Lond. Edinb. Dublin Philos. Mag. J. Sci. 1901, 2, 559–572. [Google Scholar] [CrossRef] [Scilit]
- Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA; ACM: New York, NY, USA, 2016; pp. 785–794. [Google Scholar] [CrossRef] [Scilit]
- Ravi, A.; S., S.; Kailash, B.; Sarada, V. Comparative energy awareness and performance analysis of ARM and RISC-V SHA-256 hardware acceleration on the RP2350. Discov. Electron. 2026, 3, 106. [Google Scholar] [CrossRef] [Scilit]
- Jolliffe, I.T.; Cadima, J. Principal component analysis: A review and recent developments. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci. 2016, 374, 20150202. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mestre, J.I.; Barrachina, S.; Quezada, D.; Dolz, M.F. Deep learning inference optimisation for IoT: Conv2D-ReLU-BN layer fusion and quantisation. J. Supercomput. 2025, 81, 621. [Google Scholar] [CrossRef] [Scilit]
- Maciá-Lillo, A.; Barrachina, S.; Fabregat, G.; Dolz, M.F. Optimizing Convolutions for Deep Learning Inference on ARM Cortex-M Processors. IEEE Internet Things J. 2024, 11, 26203–26219. [Google Scholar] [CrossRef] [Scilit]
- Mahmood, B.; Ahmad, N.; Khan, M.I.; Akhunzada, A. Dynamic Priority Real-Time Scheduling on Power Asymmetric Multicore Processors. Symmetry 2021, 13, 1488. [Google Scholar] [CrossRef] [Scilit]
- Gale, T.; Zaharia, M.; Young, C.; Elsen, E. Sparse GPU Kernels for Deep Learning. In Proceedings of the SC20: International Conference for High Performance Computing, Networking, Storage and Analysis, Atlanta, GA, USA; IEEE: Piscataway, NJ, USA, 2020; pp. 1–14. [Google Scholar] [CrossRef] [Scilit]
- Tabanelli, E.; Tagliavini, G.; Benini, L. DNN Is Not All You Need: Parallelizing Non-neural ML Algorithms on Ultra-low-power IoT Processors. ACM Trans. Embed. Comput. Syst. 2023, 22, 1–33. [Google Scholar] [CrossRef] [Scilit]
- Gopinath, S.; Ghanathe, N.; Seshadri, V.; Sharma, R. Compiling KB-Sized Machine Learning Models to Tiny IoT Devices. In Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation; ACM: New York, NY, USA, 2019; pp. 79–95. [Google Scholar] [CrossRef] [Scilit]
- Agosta, G.; Galimberti, A.; Zoni, D. Deep Learning on RISC-V Platforms at the Edge: A Perspective on the Hardware and Software Support. ACM Comput. Surv. 2026, 58, 1–37. [Google Scholar] [CrossRef] [Scilit]
- Perotti, M.; Riedel, S.; Cavalcante, M.; Benini, L. Spatz: Clustering Compact RISC-V-Based Vector Units to Maximize Computing Efficiency. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2025, 44, 2488–2502. [Google Scholar] [CrossRef] [Scilit]
- Manca, E.; Urbinati, L.; Casu, M.R. Accelerating Mixed-Precision QNN Inference on RISC-V MCUs with the STAR-MAC Unit. IEEE Access 2025, 13, 208533–208548. [Google Scholar] [CrossRef] [Scilit]
- Zou, H.; Hastie, T.; Tibshirani, R. Sparse Principal Component Analysis. J. Comput. Graph. Stat. 2006, 15, 265–286. [Google Scholar] [CrossRef] [Scilit]
- Jenatton, R.; Obozinski, G.; Bach, F. Structured Sparse Principal Component Analysis. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, Chia Laguna Resort, Sardinia, Italy; Teh, Y.W., Titterington, M., Eds.; PMLR: Cambridge, MA, USA, 2010; Volume 9, pp. 366–373. Available online: https://proceedings.mlr.press/v9/jenatton10a.html (accessed on 3 November 2026).
- Barshan, E.; Ghodsi, A.; Azimifar, Z.; Zolghadri Jahromi, M. Supervised principal component analysis: Visualization, classification and regression on subspaces and submanifolds. Pattern Recognit. 2011, 44, 1357–1371. [Google Scholar] [CrossRef] [Scilit]
- Kumar, A.; Goyal, S.; Varma, M. Resource-efficient Machine Learning in 2 KB RAM for the Internet of Things. In Proceedings of the 34th International Conference on Machine Learning; PMLR: Cambridge, MA, USA, 2017; Volume 70, pp. 1935–1944. [Google Scholar]
- Gupta, C.; Suggala, A.S.; Goyal, A.; Simhadri, H.V.; Paranjape, B.; Kumar, A.; Goyal, S.; Udupa, R.; Varma, M.; Jain, P. ProtoNN: Compressed and Accurate kNN for Resource-scarce Devices. In Proceedings of the 34th International Conference on Machine Learning; PMLR: Cambridge, MA, USA, 2017; Volume 70, pp. 1331–1340. [Google Scholar]
- Alkhoury, F.; Buschjäger, S.; Welke, P. Splitting stump forests: Tree ensemble compression for edge devices (extended version). Mach. Learn. 2025, 114, 219. [Google Scholar] [CrossRef] [Scilit]
- Emine, Y.; Forel, A.; Malek, I.; Vidal, T. Free Lunch in the Forest: Functionally-Identical Pruning of Boosted Tree Ensembles. Proc. AAAI Conf. Artif. Intell. 2025, 39, 16488–16495. [Google Scholar] [CrossRef] [Scilit]
- Daghero, F.; Burrello, A.; Macii, E.; Montuschi, P.; Poncino, M.; Jahier Pagliari, D. Dynamic Decision Tree Ensembles for Energy-Efficient Inference on IoT Edge Nodes. IEEE Internet Things J. 2024, 11, 742–757. [Google Scholar] [CrossRef] [Scilit]
- Olmos, R.; Vázquez, D.; Hernandez, S.; Lobo, P.; Casanueva, E.; Otero, A. Hardware-aware decision tree ensembles for radar data processing on the edge with online learning support. Microprocess. Microsyst. 2026, 123, 105307. [Google Scholar] [CrossRef] [Scilit]
- Tabanelli, E.; Tagliavini, G.; Benini, L. Optimizing Random Forest-Based Inference on RISC-V MCUs at the Extreme Edge. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2022, 41, 4516–4526. [Google Scholar] [CrossRef] [Scilit]
- Abate, L.; Barbareschi, M.; Emmanuele, A. On the Design of Decision Tree Visiting Kernels at the Edge. IEEE Internet Things J. 2026, 13, 45247–45261. [Google Scholar] [CrossRef] [Scilit]
- Hoefler, T.; Alistarh, D.; Ben-Nun, T.; Dryden, N.; Peste, A. Sparsity in Deep Learning: Pruning and growth for efficient inference and training in neural networks. J. Mach. Learn. Res. 2021, 22, 1–124. [Google Scholar]
- Ozaki, K.; Koizumi, T. Fast and accurate algorithms for matrix multiplication using fused multiply-add and their rounding error analysis. Jpn. J. Ind. Appl. Math. 2026, 43, 59. [Google Scholar] [CrossRef] [Scilit]
- Giedra, H.; Matuzevičius, D.; Sledevič, T.; Shubitidze, G.; Serackis, A. Benchmarking Large Language Model Inference on Limited-Resource Edge Systems. Electronics 2026, 15, 2451. [Google Scholar] [CrossRef] [Scilit]
- Vdoviak, G.; Sledevič, T.; Matuzevičius, D. Accelerator-Free Thermal Pose Estimation: Accuracy–Efficiency Trade-Offs on the Raspberry Pi 5. Sensors 2026, 26, 5188. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Groh, R.; Dendorfer, S.; Ávila Pava, M.; Egle, F.; Zimmermann, S.; Kist, A.M. EdgeVolution: Democratizing multi-objective neural architecture search and end-to-end deployment on microcontrollers. Commun. Eng. 2026, 5, 113. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Saha, S.S.; Sandha, S.S.; Aggarwal, M.; Wang, B.; Han, L.; de Gortari Briseno, J.; Srivastava, M. TinyNS: Platform-aware Neurosymbolic Auto Tiny Machine Learning. ACM Trans. Embed. Comput. Syst. 2024, 23, 1–48. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bartoli, P.; Veronesi, C.; Giudici, A.; Siorpaes, D.; Trojaniello, D.; Zappa, F. Benchmarking Energy and Latency in TinyML: A Novel Method for Resource-Constrained AI. In Proceedings of the 2025 International Joint Conference on Neural Networks (IJCNN), Rome, Italy; IEEE: Piscataway, NJ, USA, 2025; pp. 1–8. [Google Scholar] [CrossRef] [Scilit]
- Higham, N.J. The Mathematics of Floating-Point Arithmetic. LMS Newsletter, 13 March 2021; pp. 35–41, Issue 493.
- Elkan, C. The Foundations of Cost-Sensitive Learning. In Proceedings of the Seventeenth International Joint Conference on Artificial Intelligence, Seattle, WA, USA, 4–10 August 2001; pp. 973–977. [Google Scholar]
- Gao, Z.; Jiang, Z.; Dong, Z.; Fu, X.; Chen, Y.; Zhang, C. An Edge-Deployable TinyML Approach Enhanced by Transfer Learning for Efficient Bearing Fault Diagnosis. Sci. China Technol. Sci. 2025, 68, 2220401. [Google Scholar] [CrossRef] [Scilit]
- El Boughardini, I.; Jebari, H.; Rekiek, S.; Reklaoui, K. Effective Classification of Bearing Vibration Signals Using Supervised Machine Learning for Predictive Maintenance: A Lightweight 1D CNN for Embedded Deployment. J. Eur. Syst. Autom. 2026, 59, 1141–1160. [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.






