Next Article in Journal
Semantic-Guided Multi-Level Collaborative Fusion Network for Visible and Infrared Images
Next Article in Special Issue
Unsupervised Acoustic Anomaly Detection for Rotating Machinery Under Submarine-like Environments: Considering Data Scarcity and Background Noise via Proxy Data Generation
Previous Article in Journal
Physiological Impact of Chromatic-Weight Illusions in Augmented Reality: A Comparative sEMG Analysis of Muscle Fatigue and Stability
Previous Article in Special Issue
UAV-Based Oil Leakage Spot Detection Under Complex Illumination via a Collaborative Low-Light Enhancement and Detection Framework
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine-Learning-Based Color Sensing Using Wearable SENSIPATCH Spectrometer Module: An Experimental Study

1
Department of Electrical and Information Engineering, University of Cassino and Southern Lazio, 03043 Cassino, Italy
2
Sensichips s.r.l., Via delle Valli 46, 04011 Aprilia, Italy
3
Department of Science, Roma Tre University, 00146 Rome, Italy
4
Department of Information Engineering, University of Pisa, 56100 Pisa, Italy
5
School of Computer Science and Technology, Zhejiang Normal University, Jinhua 321004, China
6
Zhejiang Institute of Photoelectronics, Jinhua 321004, China
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(9), 2576; https://doi.org/10.3390/s26092576
Submission received: 9 March 2026 / Revised: 13 April 2026 / Accepted: 17 April 2026 / Published: 22 April 2026
(This article belongs to the Special Issue AI-Enabled Smart Sensors for Industry Monitoring and Fault Diagnosis)

Abstract

Accurate color classification plays a critical role across diverse fields, from textile manufacturing and environmental monitoring to biomedical diagnostics. This study introduces a machine-learning-driven approach to spectral color sensing using SENSIPATCH, a compact, wearable sensor system; while SENSIPATCH integrates multiple sensing modalities, including bioimpedance, electrochemical, thermal, humidity, and vibrational sensors, this work specifically utilizes its spectrometer module, which comprises multi-wavelength LEDs and photodiodes. Targeting the classification of 100 standardized PANTONE colors, the proposed framework is evaluated under controlled lighting conditions to ensure repeatable spectral acquisition. The experimental design includes both firm and loose contact scenarios to emulate variability in wearable placement. A structured data-preprocessing pipeline involving baseline correction, bootstrapping, and Z-score normalization was employed to enhance signal quality and improve model generalization. Five machine learning models were evaluated: Random Forest, SVM, MLP, CNN, and LSTM. The MLP demonstrated the strongest classification performance. Notably, the MLP achieved consistent accuracy across both contact conditions, indicating robustness against sensor placement variations. These results highlight the feasibility of compact LED-based wearable spectroscopy for reliable color classification under controlled measurement conditions, providing a baseline for future extensions to more diverse lighting conditions.

1. Introduction

Color classification is a fundamental challenge in numerous domains, including art [1], product design [2], agriculture [3], environmental monitoring [4], and biomedical diagnostics [5]. Across these industries, precise and consistent color identification underpins quality control, regulatory compliance, and functional effectiveness. For instance, in the textile and design sectors, accurate reproduction of standard color palettes is vital for customer satisfaction [6,7], while in biomedicine [8] and agrifood industries [9,10,11], color signatures often serve as proxies for health or ripeness assessment. Traditional techniques for color classification, such as visual inspection and handheld colorimeters, suffer from subjectivity, limited spectral resolution, and poor repeatability across varying lighting conditions. Spectrometry-based approaches [12,13], though significantly more accurate, are constrained by high costs, bulkiness, and the need for controlled laboratory environments. Consequently, there is a growing demand for miniaturized, portable, and cost-effective solutions capable of delivering high-fidelity spectral measurements in real-time, in real contexts. In parallel, recent advances in compact multichannel optical filtering structures have demonstrated highly selective wavelength separation across the visible to near-infrared range, further highlighting the potential of miniaturized optical platforms for sensing applications [14]. Emerging innovations in discrete LED-based spectroscopy offer an appealing alternative. Unlike traditional spectrometers, LED-based systems utilize fixed-wavelength light sources to achieve spectral measurements with reduced complexity, making them ideal for wearable and embedded systems. Among such systems, the SENSIPATCH [15,16] as shown in Figure 1, developed by Sensichips [17], represents a cutting-edge solution for wearable spectral sensing. This 18 cm × 18 cm patch integrates a scattering-based spectrometer and the SENSIPLUS [18] single-chip versatile sensor interface, enabling real-time spectral analysis across visible and near-infrared ranges. As shown in Figure 2, the SENSIPATCH is worn directly on the arm, offering an ergonomic and portable form factor suitable for continuous use.
The system spectrometer module operates using four discrete LEDs (Blue: 468 nm, Green: 523 nm, Yellow: 593 nm, Red: 645 nm) and two NIR photodiodes (850 nm and 950 nm), supported by a central photodiode for light intensity capture. To compensate for the limited number of LEDs while still covering a broad portion of the visible and near-infrared spectrum (Figure 3), the acquired current signals were analyzed using machine learning models. This approach allows the classification framework to exploit the combined information from all spectral channels for discrimination among the different PANTONE classes considered in this study.
This configuration provides broad spectral coverage while maintaining low power consumption and form-factor efficiency. Additionally, the device incorporates a 16-electrode bioimpedance matrix supporting spectroscopy from 10 Hz to 1.5 MHz, enabling the monitoring of body composition, hydration levels, respiration, and cardiovascular activity. Environmental parameters are captured using Al2O3-based gas sensors for sweat and vapor detection, as well as integrated relative humidity and temperature sensors. Electrochemical capabilities are provided via an embedded potentiostat/galvanostat for voltammetry, while an audio frequency response sensor (7 Hz–1 kHz) supports mechanical and vibrational signal capture.
The core of the proposed system is represented by SENSIPLUS. It is a fully programmable, single-chip integrated sensor interface that operates at low voltage and is fabricated using the UMC 0.18 μm CMOS process. Detailed information about its features can be found in [19], while here we recall the main ones. A simplified block diagram of the SENSIPLUS interface is shown in Figure 4. The system includes a programmable analog front end (AFE) for both stimulating the sensor and reading its response. A Digital Sub Unit oversees system operation and facilitates communication with an external host via the Communication Line, using standard protocols such as SPI, I2C, or I3C, or alternatively through a proprietary single-wire protocol called SENSIBUS. The SENSIPLUS is capable of acquiring signals from either external sensors connected to its analog terminals (P0–P3) or from its integrated sensors (S0–S15). Additional External Power Pads (Pp0–Pp3) can be used to stimulate devices that require currents in the order of tens of mA. As in the presented works, LEDs are connected to these pads. The acquisition of LEDs responses is performed relying on a single photodiode, whose response is converted in the digital domain by means of the embedded 20-bit analog-to-digital converter. Building upon prior applications of the SENSIPLUS microsensor in ECG monitoring [20], optical spectroscopy [21], and water pollutant detection [22,23], this work extends its utility to the domain of color science.
In this study, we specifically utilize the SENSIPATCH’s spectrometer module to collect color spectral data from standardized PANTONE [24] color card samples. The aim is to exploit the platform’s multispectral sensing capabilities for accurate color classification, with data subsequently analyzed using machine learning techniques to develop a robust, wearable-compatible color recognition approach. The PANTONE color cards were used as physical reference samples, placed directly on the sensor surface to ensure consistent and standardized data collection across a broad spectrum of colors. As a globally recognized and standardized color system used across textiles, printing, plastics, and digital media, PANTONE [25,26] offers a controlled and reproducible palette, making it ideal for benchmarking color classification systems. Its discrete, industry-standard definitions ensure that spectral variations can be accurately linked to specific hues, enabling a rigorous and repeatable evaluation of the sensor’s performance. Moreover, the wide diversity of shades in the PANTONE library allows us to test the classifier’s sensitivity to subtle color differences, including pastel tones, deep pigments, and near-neutral grays. The primary objectives of this study are:
  • To evaluate the accuracy and robustness of the SENSIPATCH spectrometer module for classifying 100 PANTONE color samples under controlled lighting conditions, with the aim of enabling future extensions to unconstrained or variable lighting scenarios.
  • To develop a robust end-to-end machine learning solution capable of operating on wearable-acquired spectral data.
  • To investigate the impact of physical contact variation (firm vs. loose contact) on classification accuracy, simulating real-world wearable deployment scenarios.
  • To explore the feasibility of using compact, LED-based spectroscopy for scalable deployment in applications beyond color classification, such as biomedical diagnostics, quality control, and environmental monitoring.
Building on earlier preliminary investigations [16] on PANTONE color classification with the SENSIPATCH system, this work considers a larger standardized dataset, includes two contact conditions, adopts a more detailed preprocessing procedure, and provides a broader comparative evaluation of machine learning models.
The rest of the paper is structured as follows: Section 2 reviews recent literature on LED-based spectral sensing and color classification. Section 3 describes the experimental protocol and data processing methods. Results and model evaluations are presented in Section 4, followed by conclusions and future directions in Section 5.

2. Related Work

Recent years have witnessed significant developments in the integration of LED-based spectroscopic sensing and machine learning for applications ranging from environmental monitoring and biomedical diagnostics to food quality assessment and industrial automation.

2.1. LED-Based Optical Sensing and Spectrophotometry

Low-cost LED-based optical systems have gained traction as alternatives to bulky spectrometers. Marsan et al. [27,28] demonstrated reliable spectrophotometric measurements using geometrical optics and real-time processing. Rosa et al. [29] advanced this by developing an optofluidic micro device that integrates RGB LEDs with multispectral detection for automated spectrophotometric analysis. Similarly, Rocha et al. [30] proposed a visible-light-based LED system to measure multiphase liquid levels, using ML to identify fluid interfaces in industrial contexts. Fragner et al. [31] proposed an indoor positioning system using LEDs as both emitters and sensors, coupled with machine learning for enhanced localization, demonstrating the versatility of LED-based optical systems beyond illumination.

2.2. Wearable and Non-Invasive Sensing Systems

Wearable and portable LED-based systems have found promising applications in biomedical domains. Hina et al. [32] developed a single-LED photoplethysmography system for non-invasive glucose monitoring, while Manurung et al. [33] integrated NIR sensors with IoT and ML for smart, portable blood glucose tracking. Crafa et al. [34] evaluated the trade-offs between digital and analog embedded neural networks for color recognition in wearable systems, focusing on power and latency optimization. Tobar et al. [35] introduced Skinly, a handheld IoT spectrophotometric device for analyzing skin properties using ML. Similarly, Hsu et al. [36] designed a mobile solution to measure human skin spectra via low-cost sensors and deep neural networks. Khan et al. [37] developed an IoT-enabled diabetes management system using non-invasive glucose monitoring via near-infrared and bio-impedance spectroscopy, combined with ML algorithms.

2.3. Food Quality, Botanical, and Environmental Applications

Machine learning combined with NIR and LED sensors has proven effective in food classification and botanical studies. Zeb et al. [38] used NIR LED wavelengths (770–960 nm) for fruit type determination via ML. Sulistyo et al. [39] developed a portable LED spectrometer for detecting coconut sugar adulteration. Hanopol et al. [40] applied LED-ML frameworks to detect rice tungro disease, confirming the relevance of light-absorption profiles in agricultural health. Ueno et al. [41] proposed a supervised learning calibration method for color-sensitive sensors in botanical settings. Greco et al. [42] used terahertz imaging for non-invasive measurement of plant water content, showcasing high-resolution optical sensing in agriculture. Tamayo-Monsalve et al. [43] utilized convolutional neural networks and transfer learning to classify coffee fruit maturity stages using multispectral images, demonstrating the effectiveness of deep learning in agrifood spectral analysis. Greco M. et al. [44] made THz measurements to distinguish healthy and rotten hazelnut samples.

2.4. Colorimetric and Chemical Sensing

Numerous efforts have focused on ML-based LED systems for chemical and color detection. Goyal et al. [45] created a colorimetric sensor for chlorine and pH detection using LED-LDR configurations and ML regressors. Batinic et al. [46] proposed spectrum estimation improvements via neural networks applied to reflected colorimetric signals. Lee et al. [47] introduced an ultra-low-power micro-LED-based gas sensor integrated with deep learning for real-time VOC detection in an e-nose configuration.

2.5. Vision-Based and Hyperspectral Imaging Techniques

Advanced imaging techniques have also contributed to color and spectral classification. Zhu et al. [48] employed hyperspectral imaging and ML for automatic facial skin color classification, accounting for lighting variability. Li et al. [49] developed a random forest-based method to classify garment colors from online fashion images, demonstrating improved robustness over traditional methods. Garcia et al. [50] proposed an LED-based colorimetry system for identifying graffiti on urban surfaces, applying spectral analysis to public safety and forensic tasks.

2.6. Light Modeling and Night Vision Applications

Fan et al. [51] proposed a model for predicting spectral power distribution (SPD) of full-spectrum white LEDs using neural networks and genetic algorithms. Niu et al. [52] introduced a VIS-NIR LED-based spectral illumination framework optimized for low-light vision applications, enabling enhanced object visibility while preserving human compatibility in dark conditions. Tang et al. [53] further extended LED-based imaging with a hyperspectral solution tailored for object recognition in low-light environments.
Although several earlier studies have shown the promise of LED-based optical sensing and machine learning, their scope differs from that of our study. For example, Marsan et al. [27,28] and Rosa et al. [29] developed LED-based spectrophotometric systems, but did not examine wearable color classification on a standardized large-scale color dataset. Crafa et al. [34] explored color recognition in wearable systems, mainly from the perspective of embedded neural network implementation and efficiency trade-offs. Likewise, Batinic et al. [46], and Garcia et al. [50] addressed reflected colorimetric and LED-based color sensing in task-specific settings. In contrast, our study focuses on wearable multispectral classification of 100 standardized PANTONE classes, explicitly analyzes the effect of contact variability, and combines this with a structured preprocessing pipeline and a comparative evaluation of multiple machine learning models.

3. Methodology

Our proposed methodology consists of four key phases: establishing a controlled experimental environment, collecting spectral data, preprocessing the acquired data, and applying machine learning algorithms for accurate color classification. Figure 5 presents the methodology pipeline used for this study.

3.1. Experimental Setup

To ensure precise and reproducible spectral data collection, we designed an experimental setup that minimizes ambient light interference and maintains consistent sensor contact. This setup consists of a custom-built black-box enclosure lined with black paper to create a controlled lighting environment, eliminating external light variations. Controlled lighting conditions are essential in spectral analysis, as variations in ambient illumination can introduce inconsistencies in sensor readings [54]. The SENSIPATCH wearable system was placed inside this enclosure to simulate real-world close-contact configurations, where the sensors interact directly with the color sample. This setup aimed to replicate practical deployment scenarios where wearable optical sensors operate in skin-contact environments, ensuring high signal fidelity and reducing external interference.

3.1.1. Experimental Setup Under Varying Contact Conditions

To evaluate the impact of sensor contact pressure on spectral measurements, data collection was conducted under two different conditions:
  • Firm Contact Condition (FCCW)—With Weight: A small circular weight with a hollow center (resembling a ring) with a mass of approximately 100 g, corresponding to a force of about 0.981 N and a nominal contact pressure of approximately 9.81 kPa over an effective contact area of 1.0 cm2, was placed on the PANTONE color card to ensure uniform and consistent pressure between the sensor and the card. The hollow center design ensures that the weight does not obstruct the light emitted by the sensors, allowing unobstructed spectral readings. This condition simulates close-contact scenarios found in wearable sensors, where firm contact enhances spectral signal stability by minimizing air gaps.
  • Loose Contact Condition (LCCW)—Without Weight: The PANTONE color card was placed on the sensor without additional pressure. This scenario simulates potential variations in real-world use, where wearable sensors might experience slight detachment from the surface due to movement or external disturbances.
These two conditions were introduced to assess the impact of contact pressure on spectral measurement accuracy, as variations in sensor alignment and surface proximity can influence spectral reflectance readings.
Figure 6 represents the experimental setup used for this study. Figure 7 presents the schematic representation of the experimental setup used for this study.

3.1.2. Measurement Procedure

A structured measurement sequence was implemented to ensure consistency in data acquisition. The following steps were performed for each experimental condition:
  • Positioning the SENSIPATCH: The SENSIPATCH was placed inside the enclosure, and the lid was closed to eliminate ambient light interference.
  • Baseline Measurement Collection: The sensors initially operated without any external material for the first 21 measurements, capturing baseline spectral readings under controlled conditions. These baseline measurements were subsequently used as an offset to stabilize the remaining measurements during preprocessing step.
  • Placement of PANTONE Color Card: After the 21st measurement, a PANTONE color card was carefully placed on the sensor surface under the predefined contact condition (either with or without weight). The lid was closed again to maintain a controlled environment.
  • Spectral Data Acquisition: Measurements resumed from the 22nd to the 121st reading to capture the spectral response of the color card under controlled conditions.
  • Repetition Across Multiple Color Cards: The process was repeated for 100 different PANTONE color cards, ensuring statistical robustness in the collected dataset.
This controlled approach ensures that spectral variations can be attributed solely to the interaction between the sensor and the PANTONE color card, rather than external environmental factors. The black-box enclosure and close-contact design enhance the reproducibility of measurements, reducing errors associated with stray light or sensor misalignment.

3.2. Data Collection

To build a robust dataset for PANTONE color classification using the SENSIPATCH wearable system, spectral data were collected from 100 distinct PANTONE color cards and a plain white paper sample. In addition, a baseline class was recorded with the sensor exposed to ambient conditions without any object placed on it, resulting in a total of 102 classes. The complete list of PANTONE color codes included in the dataset is presented in Table 1. The data acquisition process was carefully designed to ensure measurement consistency and reliability across all samples. Each color card was subjected to five independent trials, each consisting of 121 individual sensor readings, yielding a comprehensive dataset of spectral responses for each class. To ensure accurate measurements and eliminate distance-related variability, each PANTONE card was placed in direct contact with the sensor surface, maintaining a consistent zero-gap configuration.
For each measurement sequence, the sensors were initially exposed to ambient conditions, without any PANTONE color card, in order to establish a baseline response. Following this baseline acquisition, a color card was positioned on the sensors, and data collection continued for 121 readings. This protocol was designed to capture potential sensor drift over time, thereby enhancing the accuracy and reliability of the dataset used for machine learning-based classification. In total, measurements were recorded for 100 distinct PANTONE color cards, a white paper reference, and a baseline condition representing the absence of any material on the sensors. Under two experimental conditions, with five repeated trials per card and 121 readings per trial, the final dataset comprised 123,420 samples (61,170 per condition; 102 × 5 × 121 × 2). The data acquisition rate was optimized to ensure efficiency without compromising accuracy. Each photodiode response was recorded approximately every 265 milliseconds, with all six sensors being sequentially acquired, leading to an overall sampling rate of approximately 1.6 s per complete sensor cycle.
The SENSIPATCH wearable system’s spectrometer operates with a lock-in amplifier. Optically, the six LEDs emit light in the VIS-NIR spectrum with a 120° emission angle. The emitted light strikes the colored surface of the PANTONE sample, which reflects it according to the spectral characteristics of the corresponding PANTONE code. The reflected light is then captured by the central photodiode, which converts it into a current signal acquired using the SLM-Studio software (version 1.2.5). The currents generated by the photodiode in response to the light reflected from the PANTONE surface under illumination by the six LEDs are the input for the machine learning models. In fact, as can be observed in Figure 8 for the PANTONE 108 (Yellow) and PANTONE 1797 (Red), the currents associated with the two NIR signals (OUTPORT_AUX and OUTPORT_SHA) vary, and so they have a diagnostic value for the purposes of PANTONE color classification by the machine learning models used in the paper. So in this case, the AUX and SHA values have small variations between the two PANTONEs on the order of hundreds of micro-Amperes.
In particular, the active LED is excited by modulating its bias current with a sinusoidal waveform. The IN-PHASE component of the photodiode current is precisely detected, ensuring that artifacts from light sources other than the active LED are rejected. Each measurement corresponds to a specific LED configuration, with different wavelengths being stimulated to enhance the spectral differentiation of the PANTONE colors. The detailed LED configurations and corresponding wavelengths used in data acquisition are outlined in Table 2. This carefully controlled data collection process ensures that the dataset is well-suited for the application of machine learning algorithms in PANTONE color classification, laying the foundation for accurate and scalable color identification using wearable sensor technology. Figure 9 and Figure 10 provide visual representations of the spectral data collected under FCCW and LCCW, respectively. Under the firm contact condition, signal traces for each of the six channels are smooth, stable, and well-separated, reflecting the benefits of consistent sensor-surface proximity. In contrast, the loose contact condition introduces higher variability, likely caused by inconsistent pressure and air gaps; while the fundamental spectral characteristics are still present, signal fluctuations and overlap between channels are more prominent under LCCW. These figures clearly demonstrate the influence of mechanical contact stability on spectral signal quality and underscore the importance of a robust experimental setup. A summary of the full-scale data acquisition parameters is provided in Table 3.

3.3. Data Preprocessing

To ensure the quality, consistency, and suitability of the raw spectral data for machine learning classification, a structured preprocessing pipeline was implemented. The SENSIPATCH spectrometer module provides six raw input features per sample, corresponding to the in-phase current responses of the photodiode to sequential LED activations—four in the visible range and two in the near-infrared (NIR), as detailed earlier. These raw signals, while informative, are susceptible to baseline drift, environmental fluctuations, and amplitude variations across spectral channels. Therefore, preprocessing was essential to correct for sensor offsets, standardize the data scale, and enhance robustness for subsequent model training. The specific preprocessing steps applied baseline correction, bootstrapping for dataset expansion, and Z-score normalization, are described in the following subsections.

3.3.1. Baseline Correction

Before processing the measurements, baseline correction was applied to remove the sensor’s inherent response when no external material was present. The first 21 measurements, recorded with no PANTONE color card placed on the sensor, were used to establish the natural baseline response of the sensor. These readings captured any systematic variations due to environmental conditions and sensor behavior in the absence of external stimuli. As shown in Figure 9 and Figure 10, there is a sudden spike in the measurements when we put the PANTONE color card on the sensor. To correct for this baseline effect, the mean of the first 21 readings was computed, and this value was subtracted from each of the subsequent 100 spectral measurements collected with the PANTONE color card in place.
Mathematically, baseline correction was applied as:
X corrected , i = X raw , i X baseline _ mean , i { 22 , 23 , , 121 }
where:
  • X raw , i is the original sensor measurement for the ith data point,
  • X baseline _ mean is the mean of the first 21 baseline measurements (when no card was present).
  • X corrected , i is the baseline-corrected spectral response for the ith data point.
This step ensured that all color-specific spectral data were measured relative to a common baseline, improving reliability and consistency across all measurements.
The effects of this baseline correction procedure are graphically illustrated in Figure 11 and Figure 12, which shows baseline-adjusted signal curves for several representative color samples. The transformation from raw to corrected signals demonstrates enhanced alignment and reduced inter-channel variability. Notably, baseline-corrected data reveals clearer separation among channels and improved spectral stability, which is crucial for downstream machine learning tasks.

3.3.2. Bootstrapping for Dataset Expansion

To enhance dataset robustness and mitigate overfitting, bootstrapping was employed as a data resampling technique. Each file, containing 100 data points after baseline correction, was resampled to generate 2000 data points. Bootstrapping was performed by randomly drawing spectral readings with replacement from the corrected dataset, ensuring a diverse and expanded dataset for analysis.
This resampling process maintained the same statistical distribution as the original data while ensuring sufficient variability for training the machine learning models. By generating an expanded dataset, the system became less sensitive to minor variations in spectral readings caused by sensor noise, ambient fluctuations, or experimental conditions. The increased dataset size also improved the model’s generalization ability and robustness against overfitting. Bootstrapping was applied only to the training set within each cross-validation fold, after the measurement-level train/test split, while the test set was kept unchanged. Its purpose was not to generate new physical information, but to provide a more robust resampled training distribution from the limited number of post-baseline-correction samples available for each measurement.

3.3.3. Normalization Using Z-Score Standardization

After bootstrapping, Z-score normalization was applied to standardize spectral readings across different wavelengths and sensors. This transformation ensured that all spectral features had a mean of zero and unit variance, allowing for consistent feature scaling before applying machine learning models.
The Z-score normalization was computed using:
X normalized = X bootstrapped μ σ
where:
  • X bootstrapped is the spectral value after bootstrapping and baseline correction;
  • μ is the mean of the resampled dataset;
  • σ is the standard deviation of the resampled dataset.
  • For each cross-validation fold, the parameters required for Z-score normalization, namely the mean and standard deviation, were computed exclusively from the training data and then applied unchanged to the corresponding test data, thereby preventing data leakage. Since the six LED photodiode sensors operated at different wavelengths, this normalization helped mitigate variations in intensity levels across the different spectral bands, enabling the model to focus on spectral shape variations rather than absolute intensity differences.

3.4. Feature Importance Analysis of Multispectral Channels

In addition to normalization, we analyzed the contribution of each spectral channel using the built-in feature importance scores of the Random Forest classifier. Feature importance was computed for each cross-validation fold and averaged to obtain a stable ranking of the six wavelengths.
As shown in Table 4, the visible channels (468–645 nm) contribute most strongly to classification performance, with the red (645 nm) and yellow (593 nm) wavelengths exhibiting the highest importance. This is consistent with the physical basis of color discrimination, as the PANTONE classes are defined primarily in the visible spectrum. The near-infrared channels (850 nm and 950 nm) show lower but non-negligible importance, indicating that they provide complementary information related to material- and pigment-dependent reflectance properties.

3.5. Color Classification with Machine Learning

After data preprocessing, the next step in our methodology is the application of machine learning algorithms for the classification of PANTONE colors based on the spectral data acquired using the SENSIPATCH wearable system. The goal is to develop a robust model that accurately distinguishes between different colors while ensuring generalization across varying experimental conditions. As described in the previous subsection, each input sample to the machine learning models consists of a six-dimensional feature vector. The input features are used directly for training after the preprocessing. The classification task is defined as a supervised multi-class problem with 102 output classes. These include 100 standardized PANTONE color cards, one plain white paper sample, and one baseline class representing measurements without any object on the sensor.

Selection of Machine Learning Models

To ensure optimal classification of spectral responses corresponding to different PANTONE colors, we employed a range of machine learning models, each chosen based on its suitability for handling high-dimensional spectral data and its classification efficiency:
  • Random Forest (RF): Selected for its robustness in handling high-dimensional sensor data and its interpretability via feature importance analysis. Its ensemble structure mitigates overfitting and enhances generalization capabilities [55,56].
  • Support Vector Machine (SVM): Chosen due to its ability to construct complex decision boundaries, which is particularly advantageous for sensor-derived datasets where non-linear relationships may exist among features [57,58].
  • Multilayer Perceptron (MLP): Selected as a classical neural network architecture capable of capturing non-linear relationships in numerical sensor data. Its fully connected structure enables the extraction of discriminative features from multivariate time series input, making it suitable for classification tasks involving wearable sensor measurements [59].
  • Convolutional Neural Network (CNN): Employed due to its effectiveness in pattern recognition, especially when localized temporal or spatial features are relevant; while originally developed for image analysis, CNNs have shown strong performance on one-dimensional time-series data, such as those generated by sequential sensor readings, by leveraging convolutional filters to extract local structures [60].
  • Long Short-Term Memory (LSTM): Utilized for its strength in modeling sequential dependencies, which is particularly beneficial when analyzing time-series sensor data where the order of readings conveys important contextual information. LSTM networks, a type of recurrent neural network (RNN), are designed to capture long-range dependencies and overcome vanishing gradient issues, making them suitable for tasks requiring temporal context modeling [61].
Among the evaluated models, the MLP demonstrated the most consistent generalization performance across both experimental conditions. Its flexibility in tuning and suitability for deployment in embedded systems further support its selection as the primary model in this study, while the Support Vector Machine (SVM) achieved the highest accuracy under firm contact conditions, and Random Forest performed competitively on the combined dataset, these models exhibited more limited adaptability across conditions. Table 5 summarizes the architectural configurations and training hyperparameters used for all models considered. These parameters were selected through empirical experimentation, where initial values were chosen based on standard practice and prior work in similar domains. To improve transparency, hyperparameter tuning was conducted iteratively using validation-based performance feedback, with the goal of maximizing classification accuracy while maintaining generalization across contact conditions. Specifically, practical ranges of learning rate, number of neurons, regularization strength, and training epochs were explored. Final configurations were selected based on convergence stability and consistent validation performance across folds; while no exhaustive hyperparameter search was conducted, the selected settings provided a reliable balance between model accuracy, computational efficiency, and robustness across varying contact scenarios.

4. Machine Learning Experiments and Results

To assess the performance of the proposed machine learning models, we conducted classification experiments under three experimental scenarios: FCCW, LCCW, and a combined condition (FCCW + LCCW). These scenarios reflect both ideal and real-world sensor placement configurations and allow evaluation of model robustness against variations in contact pressure. To ensure robust and unbiased performance evaluation, we adopted 5-fold cross-validation for both the FCCW and LCCW scenarios, as shown in Figure 13, and 10-fold cross-validation for the Combined condition. These fold counts were directly aligned with the number of available measurements per class: five measurements in FCCW and LCCW individually, and ten in the Combined condition (i.e., five from each contact type). In each fold, one measurement per class was held out for testing while the remaining were used for training, ensuring measurement-level independence and preventing data leakage. This fold-wise approach helped mitigate overfitting and allowed each model to be evaluated on all measurement sequences in a rotation-based manner.
For each of the 102 classes (comprising 100 PANTONE color cards, one white paper reference, and one baseline), five independent measurements were recorded under each contact condition. Each measurement initially consisted of 121 sensor readings, of which 100 were retained after baseline correction. To increase dataset size and improve model robustness, bootstrapping was applied to each corrected measurement, resulting in 2000 samples per measurement. This produced a total of 1,020,000 samples per condition (102 classes × 5 measurements × 2000 samples). In both FCCW and LCCW experiments, four out of the five measurements per class were used for training, and the remaining one was used for testing. Therefore, each condition included 8000 training samples per class (4 measurements × 2000 samples) and 2000 test samples per class (1 measurement × 2000 samples), leading to a total of 816,000 training samples and 204,000 test samples per condition.
In the Combined condition, all ten measurements per class (five from FCCW and five from LCCW) were utilized as shown in Figure 14. The training set comprised eight measurements per class, four from each contact condition, while the test set included the remaining two measurements (one from each condition). This resulted in 1,632,000 training samples (102 × 8 × 2000) and 408,000 test samples (102 × 2 × 2000). By incorporating both contact configurations in the training and evaluation phases, this setup enabled a more comprehensive and realistic assessment of model generalization under variable physical deployment scenarios.Table 6 summarizes the measurement structure, number of samples, and the corresponding cross-validation folds used for each experimental condition.

4.1. Classification Performance Under FCCW

This subsection evaluates model performance under the Firm Contact Condition With Weight (FCCW), representing a stable and ideal sensor–card interface. In this setup, a circular weight with a hollow center was used to apply uniform pressure on the PANTONE color card, minimizing air gaps and enhancing signal stability.
Among all models, SVM achieved the highest average accuracy, 97.29%, with Random Forest 97.17% and MLP 97.04% following closely. CNN also performed competitively, whereas LSTM showed significantly lower accuracy, indicating limited effectiveness in this static setup. Table 7 summarizes the five-fold cross-validation results.
To further analyze model behavior, Table 8 presents the mean precision, recall, and F1 score for each classifier.

4.2. Classification Performance Under LCCW

This subsection evaluates model performance under the Loose Contact Condition Without Weight (LCCW), which simulates real-world wearable usage scenarios involving potential card misalignment and movement. In this setup, no weight was applied to the PANTONE color card, leading to reduced contact stability and increased signal variability.
Despite these challenges, most models maintained high classification accuracy, as shown in Table 9. SVM achieved the highest mean accuracy of 97.14%, outperforming all other models under LCCW. MLP followed with a mean accuracy of 95.86%, while CNN and RF recorded 93.26% and 91.84%, respectively. LSTM again showed the weakest performance, with a mean accuracy of 76.33%, indicating limited robustness to contact variation.
To further assess model performance, Table 10 reports the average precision, recall, and F1 scores. SVM continued to lead with an F1 score of 96.83%, reflecting strong generalization in the presence of contact inconsistency. MLP also performed well with an F1 score of 95.05%, reinforcing its robustness. CNN and RF followed, while LSTM remained the least effective model across all metrics.
These results suggest that while reduced contact stability does introduce classification variability, well-regularized models like SVM and MLP can maintain high performance. This reinforces the need for models that can tolerate minor sensor–card misalignment in real-world deployments.

4.3. Performance Under Combined Conditions (FCCW + LCCW)

To evaluate model robustness under realistic and variable sensor contact conditions, datasets from both FCCW and LCCW scenarios were merged to form a comprehensive dataset. This setup simulates practical deployment scenarios where contact pressure and alignment may vary. Classification performance was evaluated using 10-fold cross-validation, with results summarized in Table 11.
Among the models, the MLP achieved the highest mean accuracy 96.08%, followed by Random Forest 94.96%. In contrast, SVM performance dropped notably to 88.40%, highlighting its sensitivity to contact variation. CNN and LSTM recorded lower average accuracies of 84.18% and 70.21%, respectively, with LSTM once again demonstrating the weakest performance across folds.
Table 12 presents the average precision, recall, and F1 score for each model under the combined condition. MLP maintained its leading position with the highest F1 score 95.37%, indicating strong generalization to varying contact dynamics. RF also performed well with an F1 score of 93.85%. Meanwhile, SVM’s decline in recall suggests reduced robustness under mixed-contact conditions. CNN showed moderate performance, and LSTM remained consistently the least effective.
These results confirm that training on combined datasets enables better generalization across heterogeneous contact conditions. MLP’s superior performance highlights its adaptability and makes it a strong candidate for deployment in real-world, variable-pressure environments. The drop in SVM’s performance further supports the need for models that can accommodate signal inconsistencies introduced by imperfect sensor placement.

4.4. Discussion and Comparative Insights

The experimental results reveal that machine learning models can effectively classify spectral responses from the SENSIPATCH wearable system across varying contact scenarios. Figure 15 presents the performance of the machine learning models under FCCW, LCCW, and combined contact conditions. Among all models, the MLP consistently demonstrated strong and stable performance across all evaluation settings, particularly excelling in the combined setup with a mean accuracy of 96.08%. SVM also achieved competitive results, slightly outperforming MLP under the LCCW, while RF delivered strong baseline performance, particularly in stable environments. CNN exhibited reasonable generalization and handled noisy data better than LSTM, although its overall performance was marginally lower than that of MLP and SVM. LSTM networks, while suited to sequential data modeling, proved less effective in this context. This may be due to the relatively short sequence length and the absence of strong temporal dependencies in the spectral signal, which limits the advantage of recurrent architectures. Contact pressure was found to play a significant role in classification stability. The FCCW produced more consistent and well-separated spectral signatures, reflected in higher model performance across the board. However, the performance drop under LCCW was relatively modest, indicating that the system maintains resilience to moderate physical misalignment. This reinforces the importance of designing sensor systems and corresponding algorithms that tolerate real-world variability in deployment.
Furthermore, fold-to-fold variability observed in the LCCW and combined datasets underscores the value of training on diverse conditions. By incorporating both contact scenarios into a single dataset, models were better able to generalize across different sensor placements, which is critical for wearable applications. This combined training approach simulates realistic deployment conditions and prepares the model for variations in skin contact pressure and user motion. Among the evaluated models, the MLP was selected as the primary classifier for deployment due to its strong balance between classification accuracy, generalization capability, and architectural flexibility, while SVM demonstrated slightly higher accuracy under stable contact conditions, and RF performed competitively on the combined dataset, MLP consistently exhibited robust performance across both firm and loose contact scenarios. Moreover, MLPs are well-suited for iterative fine-tuning, scalable learning with larger datasets, and efficient integration into embedded systems through techniques such as pruning and quantization. This behavior can be attributed to the nature of the distortions introduced by contact variability in the sensing process. Changes in contact pressure do not result in uniform scaling of the signal but instead produce uneven variations across the six spectral channels, altering their relative relationships. In this context, the MLP is able to exploit these inter-channel patterns by learning combinations of spectral responses rather than relying on individual feature magnitudes. In contrast, models such as SVM operate on a fixed representation of the input space and are more sensitive to such non-uniform shifts, particularly when the relative structure of the features changes between training and testing conditions. This makes the MLP more suitable for handling the type of variability introduced by loose-contact measurements in the proposed system. These practical advantages, combined with their adaptability to real-world sensor variability, support the choice of MLP as the preferred model in this study.
To gain a deeper understanding of the classification behavior at the class level, we analyzed the model’s performance using both subset confusion matrices and a detailed class-wise accuracy table. Given the large number of classes (102), presenting the full confusion matrix was impractical. Instead, two targeted confusion matrices were generated: one highlighting classes with the highest accuracies (Figure 16) and another focusing on classes with the lowest accuracies (Figure 17).
The confusion matrix for the lower-performing classes revealed that certain colors, such as PANTONE166, PANTONE7720, and PANTONE17-1456, exhibited greater misclassification rates. These misclassifications were predominantly observed between spectrally similar tones, notably between PANTONE166 and PANTONE152, or between PANTONE7720 and PANTONE635. Such overlaps are not unexpected, given the subtle differences in their reflectance spectra, particularly within muted red and dark green regions. Interestingly, some confusion was also noted between dark-toned samples and the NO_PANTONE baseline class, suggesting that very low reflectance levels can sometimes blur the model’s decision boundaries. Nevertheless, even among these more challenging classes, the MLP model maintained respectable classification performance, with accuracies consistently above 75%. To further clarify this behavior, Figure 18 shows representative spectral comparisons for selected challenging PANTONE pairs. In particular, the spectra of PANTONE152 and PANTONE166 exhibit very similar trends across the measured wavelength range, with only limited separation. Because the current SENSIPATCH spectrometer module relies on a small number of discrete optical channels, such subtle spectral differences are not always captured with sufficient resolution at the sensor level. Consequently, these classes may generate overlapping multispectral responses, which reduces the discriminative information available to the classifier and increases the likelihood of misclassification. The same figure also shows the spectral comparison between PANTONE7720 and PANTONE635, indicating that the observed difficulty is mainly associated with high spectral similarity between specific color pairs, while low overall reflectance may further reduce separability in some darker tones.
In contrast, the subset confusion matrix of high-performing classes showcased exemplary classification results. Twenty representative colors, including vivid tones such as PANTONE1797, PANTONE345, and PANTONE535 were classified with 100% accuracy, without any observable misclassifications. These results demonstrate the model’s strong ability to distinguish between spectrally distinct colors, a feature that holds substantial promise for real-world wearable applications. It is worth noting that although only 20 classes are shown in the figure for clarity, a much larger number of classes actually achieved perfect classification. To complement the confusion matrices, Table 13 provides a comprehensive view of the class-wise classification accuracies for all PANTONE color classes. The table reveals that an overwhelming majority of classes achieved exceptionally high accuracy, with 65 classes classified at 99% or above. Highly saturated and spectrally well-separated colors, such as PANTONE100, PANTONE1797, PANTONE3278, and WHITE_PAPER, were reliably distinguished by the MLP model. Conversely, a smaller group of colors particularly PANTONE7720, PANTONE166, PANTONE152, and PANTONE635 achieved lower, though still reasonable, accuracies between 77% and 85%. These findings align well with observations from the confusion matrix analysis, where muted or spectrally overlapping colors posed greater challenges.
Taken together, the insights from the subset confusion matrices and the class-wise accuracy table illustrate a consistent trend: when colors exhibit distinct and strong spectral features, classification is highly reliable. In cases where spectral differences are more nuanced, performance declines modestly but remains robust. Overall, the SENSIPATCH system, combined with a well-designed machine learning pipeline, demonstrates excellent potential for scalable, reliable, and real-world colorimetric sensing applications.

5. Conclusions and Future Works

This study presented a machine-learning-driven framework for accurate color classification using the SENSIPATCH, a compact, wearable spectral sensing system based on multi-wavelength LED–photodiode configurations. Through a structured experimental protocol involving firm and loose contact scenarios, we demonstrated the SENSIPATCH’s capability to capture stable and distinctive spectral signatures across 100 PANTONE color classes. Among the five machine learning models evaluated, the multilayer perceptron (MLP) consistently delivered the strongest generalization performance across both contact conditions, achieving a mean accuracy of 96.08% under combined scenarios. These results underscore the potential of integrating compact spectroscopic sensing with machine learning for practical, real-time color recognition in wearable applications. Graphical analyses of baseline-corrected and raw spectral data confirmed the importance of contact pressure and validated the effectiveness of the preprocessing pipeline. However, several limitations remain. The current system was evaluated in a controlled, enclosed environment designed to minimize ambient interference and ensure repeatability; while effective for benchmarking, this setting does not fully replicate real-world deployment conditions, where ambient lighting, motion artifacts, and sensor alignment variability can influence spectral readings. Preliminary evaluations from our previous work [16] indicated stable performance under ambient lighting conditions, but further studies are needed to assess robustness under dynamic, uncontrolled environments. As part of future work, we plan to conduct additional experiments in open settings to evaluate performance across varying illumination, motion, and environmental conditions, as well as to investigate device-to-device consistency among multiple SENSIPATCH units. Another important consideration is surface geometry and compliance. The current study utilized flat, matte PANTONE color cards to ensure standardized and repeatable measurements. However, many real-world materials, such as skin, textiles, plastics, and food items, exhibit curvature, texture, gloss, or mechanical compliance. The system’s use of multiple directional LEDs and normalization techniques inherently provides some tolerance to such geometric and structural variations. Nonetheless, the current study is limited to flat, matte samples, and future work will include dedicated experiments on non-planar, textured, and compliant surfaces to extend the system’s applicability to more realistic materials and practical use cases.
Model-wise, while the MLP performed effectively in this study, further optimization is necessary to ensure compatibility with ultra-low-power microcontroller platforms suitable for embedded wearable applications. We also acknowledge that the current hyperparameter tuning relied on empirical experimentation. Future iterations will incorporate systematic optimization strategies, such as grid search, random search, or Bayesian optimization, to improve reproducibility and performance. Additionally, enhancing model interpretability will be an important step, particularly for applications in biomedical or safety-critical domains. Finally, Table 14 compares the main technical characteristics of our system with the latest generation of commercial devices. It should be noted that SENSIPATCH is larger than the other products used for comparison, but this is due to the fact that some biomedical applications require large areas of investigation. Although scanning times are comparable, the present prototype is lighter, less expensive, and multi-purpose. Finally, thanks to the LEDs chosen, the range of wavelengths covered is wider.

Author Contributions

Conceptualization, H.M., M.M., L.F., A.R., F.L. and H.T.M.; Methodology, H.M., F.F., M.M., L.F., A.R., P.B., S.C. and F.L.; Software, H.M., M.M. and L.F.; Validation, H.M., F.F., M.M., A.R., F.L. and H.T.M.; Formal analysis, H.M., M.M. and S.C.; Investigation, H.M. and M.M.; Data curation, H.M., F.F., M.M., L.F. and F.L.; Writing—original draft preparation, H.M., F.F., M.M., L.F., A.R. and F.L.; Writing—review and editing, H.M., F.F., M.M., L.F., A.R., P.B., S.C., F.L. and H.T.M.; Visualization, H.M. and H.T.M.; Supervision, M.M., L.F., A.R., P.B. and F.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was co-funded by the European Union Horizon Europe program with the project TARA (GA 101057524).

Data Availability Statement

Data will be available upon request.

Acknowledgments

This work was co-funded by the European Union Horizon Europe program with the project TARA (GA 101057524).

Conflicts of Interest

Authors Hamza Mustafa and Simone Contardi were employed by the company Sensichips s.r.l. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Griffin, L.D. Optimality of the basic colour categories for classification. J. R. Soc. Interface 2006, 3, 71–85. [Google Scholar] [CrossRef] [Scilit]
  2. Rossi, M. Colour and Colorimetry Multidisciplinary Contributions; Maggioli Editore: Rimini, Italy, 2013; Volume IX. [Google Scholar]
  3. Zhang, M.; Ludas, L.I.; Morgan, M.T.; Krutz, G.W.; Precetti, C.J. Applications of color machine vision in the agricultural and food industries. In Proceedings of the Precision Agriculture and Biological Quality; Meyer, G.E., DeShazer, J.A., Eds.; International Society for Optics and Photonics, SPIE: Bellingham, WA, USA, 1999; Volume 3543, pp. 208–219. [Google Scholar] [CrossRef] [Scilit]
  4. Cheng, M.F.; Mukundan, A.; Karmakar, R.; Valappil, M.A.E.; Jouhar, J.; Wang, H.C. Modern Trends and Recent Applications of Hyperspectral Imaging: A Review. Technologies 2025, 13, 170. [Google Scholar] [CrossRef] [Scilit]
  5. Zhou, J.; Liu, Y.; Du, X.; Gui, Y.; He, J.; Xie, F.; Cai, J. Recent Advances in Design and Application of Nanomaterials-Based Colorimetric Biosensors for Agri-food Safety Analysis. ACS Omega 2023, 8, 46346–46361. [Google Scholar] [CrossRef] [Scilit]
  6. Cabral, I.; Schuch, A.; Steffens, F. Color Biomimetics in Textile Design: Reproduction of Natural Plant Colors through Instrumental Colorant Formulation. J. Imaging 2024, 10, 150. [Google Scholar] [CrossRef] [Scilit]
  7. Moon, S.; Chae, Y. Quantitative analysis of the color accuracy and reproducibility in digital textile printing: Discrepancies within color reproduction media. Text. Res. J. 2025, 95, 1053–1069. [Google Scholar] [CrossRef] [Scilit]
  8. Norton, J.J.; DiRisio, G.F.; Carp, J.S.; Norton, A.E.; Kochan, N.S.; Wolpaw, J.R. Brain-computer interface-based assessment of color vision. J. Neural Eng. 2021, 18, 066024. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Rizzo, M.; Marcuzzo, M.; Zangari, A.; Gasparetto, A.; Albarelli, A. Fruit ripeness classification: A survey. Artif. Intell. Agric. 2023, 7, 44–57. [Google Scholar] [CrossRef] [Scilit]
  10. Li, B.; Lecourt, J.; Bishop, G. Advances in Non-Destructive Early Assessment of Fruit Ripeness towards Defining Optimal Time of Harvest and Yield Prediction—A Review. Plants 2018, 7, 3. [Google Scholar] [CrossRef] [Scilit]
  11. Leccisi, M.; Greco, M.; Spagnolo, G.S.; De Francesco, E.; Leccese, F. Low Cost Multispectral Sensor for Monitoring Vine Leaf Density. In Proceedings of the 2024 IEEE International Workshop on Metrology for Agriculture and Forestry (MetroAgriFor); IEEE: New York, NY, USA, 2024; pp. 86–91. [Google Scholar] [CrossRef] [Scilit]
  12. Yu, Z.; Meng, R.; Deng, S.; Jia, L. An open-source handheld spectrometer for colorimetric and fluorescence analyses. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2023, 287, 122072. [Google Scholar] [CrossRef] [Scilit]
  13. Li, A.; Yao, C.; Xia, J.; Wang, H.; Cheng, Q.; Penty, R.; Fainman, Y.; Pan, S. Advances in cost-effective integrated spectrometers. Light. Sci. Appl. 2022, 11, 174. [Google Scholar] [CrossRef] [Scilit]
  14. Chou Chau, Y.F. Enhancing imaging capabilities with a high-sensitivity multichannel optical filter. Micro Nanostructures 2024, 186, 207732. [Google Scholar] [CrossRef] [Scilit]
  15. SENSIPATCH. 2025. Available online: https://sensichips.com/design-kit/wearables-kit/ (accessed on 13 April 2025).
  16. Mustafa, H.; Vitelli, M.; Milano, F.; Molinara, M.; Ferrigno, L.; Ria, A.; Fina, F.; Leccese, F. Preliminary Evaluation of Machine Learning Approaches for PANTONE Color Classification with the SENSIPATCH wearable system. In Proceedings of the 2025 IEEE International Instrumentation and Measurement Technology Conference (I2MTC); IEEE: New York, NY, USA, 2025; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  17. Sensichips. 2025. Available online: https://sensichips.com/ (accessed on 13 April 2025).
  18. Cerro, G.; Ferdinandi, M.; Ferrigno, L.; Laracca, M.; Molinara, M. SENSIPLUS: An Innovative Platform for Health and Safety Applications in Smart Cities. GAS 2018, 4, 4–8. [Google Scholar]
  19. Ria, A.; Cicalini, M.; Manfredini, G.; Catania, A.; Piotto, M.; Bruschi, P. The SENSIPLUS: A single-chip fully programmable sensor interface. In Proceedings of the International Conference on Applications in Electronics Pervading Industry, Environment and Society; Springer: Cham, Switzerland, 2021; pp. 256–261. [Google Scholar]
  20. Ria, A.; Contardi, S.; Piotto, M.; Bruschi, P. A miniaturized ECG system based on a versatile single chip sensor interface. In Proceedings of the 2024 9th International Conference on Smart and Sustainable Technologies (SpliTech); IEEE: New York, NY, USA, 2024; pp. 1–4. [Google Scholar]
  21. Ria, A.; Motroni, A.; Gagliardi, F.; Piotto, M.; Bruschi, P. An IoT sensor platform for LED-based optical spectroscopy. In Proceedings of the 2023 8th International Conference on Smart and Sustainable Technologies (SpliTech); IEEE: New York, NY, USA, 2023; pp. 1–4. [Google Scholar]
  22. Mustafa, H.; Molinara, M.; Ferrigno, L.; Vitelli, M. A deep learning system for water pollutant detection based on the SENSIPLUS microsensor. In Proceedings of the International Conference on Pattern Recognition; Springer: Cham, Switzerland, 2024; pp. 192–203. [Google Scholar]
  23. Gerevini, L.; Cerro, G.; Bria, A.; Marrocco, C.; Ferrigno, L.; Vitelli, M.; Ria, A.; Molinara, M. An end-to-end real-time pollutants spilling recognition in wastewater based on the IoT-ready SENSIPLUS platform. J. King Saud Univ. Comput. Inf. Sci. 2023, 35, 499–513. [Google Scholar] [CrossRef] [Scilit]
  24. Pantone. 2025. Available online: https://www.pantone.com/ (accessed on 13 April 2025).
  25. Schultz Santos, R. PANTONE: Identity Formation Through Colours. 2014. Available online: https://openresearch.ocadu.ca/id/eprint/185 (accessed on 13 April 2025).
  26. Altay, B.N.; Husovska, V.; Pekarovicova, A.; Fleming, P.D. Formulating Pantone colors by unused base inks, formulation software, and a spectrophotometer. Color Res. Appl. 2019, 44, 910–916. [Google Scholar] [CrossRef] [Scilit]
  27. Marsan, M.; Lucidi, M.; Cincotti, G. LED-Based Spectrophotometry. In Proceedings of the 2018 Conference on Lasers and Electro-Optics Pacific Rim (CLEO-PR); IEEE: New York, NY, USA, 2018; pp. 1–2. [Google Scholar]
  28. Marsan, M.; Lucidi, M.; Cincotti, G. Geometrical-Optics Based Spectrophotometry. In Proceedings of the 2018 20th International Conference on Transparent Optical Networks (ICTON); IEEE: New York, NY, USA, 2018; p. 1. [Google Scholar] [CrossRef] [Scilit]
  29. Rosa, C.; Elizabeth, H.; Enrique, L.; Luis, C.J.; Juana, C.; Antonio, R.J.; Jorge, F. Optomicrofluidic system for spectrophotometric analysis: Automated process and wireless. In Proceedings of the 2018 IEEE 2nd Colombian Conference on Robotics and Automation (CCRA); IEEE: New York, NY, USA, 2018; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  30. Rocha, H.R.O.; Natale, R.; Estevão, A.C.; Louzada, D.M.; Leal-Junior, A.G.; Abou Dargham, S.; Wörtche, H.; Silva, J.A.L. Machine Learning Method and Visible Light-Based Sensors for Multiinterface Level Measurement. IEEE Sens. J. 2023, 23, 16393–16401. [Google Scholar] [CrossRef] [Scilit]
  31. Fragner, C.; Krutzler, C.; Weiss, A.P.; Leitgeb, E. LEDPOS: Indoor Visible Light Positioning Based on LED as Sensor and Machine Learning. IEEE Access 2024, 12, 46444–46461. [Google Scholar] [CrossRef] [Scilit]
  32. Hina, A.; Nadeem, H.; Saadeh, W. A Single LED Photoplethysmography-Based Noninvasive Glucose Monitoring Prototype System. In Proceedings of the 2019 IEEE International Symposium on Circuits and Systems (ISCAS); IEEE: New York, NY, USA, 2019; pp. 1–5. [Google Scholar] [CrossRef] [Scilit]
  33. Manurung, B.E.; Munggaran, H.R.; Ramadhan, G.F.; Koesoema, A.P. Non-Invasive Blood Glucose Monitoring using Near-Infrared Spectroscopy based on Internet of Things using Machine Learning. In Proceedings of the 2019 IEEE R10 Humanitarian Technology Conference (R10-HTC); IEEE: New York, NY, USA, 2019; pp. 5–11. [Google Scholar] [CrossRef] [Scilit]
  34. Crafa, D.M.; Giacomo, S.D.; Fiorini, C.; Carminati, M. Neural networks embedded in wearable devices: A preliminary digital vs. analog comparison. In Proceedings of the 2023 IEEE International Conference on Metrology for Extended Reality, Artificial Intelligence and Neural Engineering (MetroXRAINE); IEEE: New York, NY, USA, 2023; pp. 587–592. [Google Scholar]
  35. Tobar, M.D.P.B.; Clemann, S.; Hagens, R.; Pagel-Wolff, S.; Hoppe, S.; Behm, P.; Engelhard, F.; Langhals, M.; Gallinat, S.; Zhavoronkov, A.; et al. Skinly: A novel handheld iot device for validating biophysical skin characteristics. Skin Res. Technol. 2024, 30, e13613. [Google Scholar] [CrossRef] [Scilit]
  36. Hsu, L.C.; Hsu, S.; Tan, T.H.; Cheng, C.H.; Chang, C.C. Developing low-cost mobile device and apps for accurate skin spectrum measurement via low-cost spectrum sensors and deep neural network technology. Sensors 2022, 22, 8844. [Google Scholar] [CrossRef] [Scilit]
  37. Khan, M.A.; Nauman, Z.; Farooq, M.; Zafar, S. Internet of Things and Machine Learning–based Diabetes Management System. In Proceedings of the 2023 International Conference on IT and Industrial Technologies (ICIT); IEEE: New York, NY, USA, 2023; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  38. Zeb, A.; Qureshi, W.S.; Ghafoor, A.; Sullivan, D.O. Learning Fruit Class from Short Wave Near Infrared Spectral Features, an AI Approach Towards Determining Fruit Type. In Proceedings of the 2022 8th International Conference on Mechatronics and Robotics Engineering (ICMRE); IEEE: New York, NY, USA, 2022; pp. 193–196. [Google Scholar] [CrossRef] [Scilit]
  39. Sulistyo, S.B.; Sudarmaji, A.; Haryanti, P.; Kuncoro, P.H. A novel approach for detection of granulated coconut sugar adulteration using LED-based spectrometer and machine learning. Inf. Process. Agric. 2024, 12, 300–311. [Google Scholar] [CrossRef] [Scilit]
  40. Hanopol, G.L.; Cruz, J.C.D. Rice Tungro Disease Detection Based on Light Absorption Assessment Using Machine Learning. In Proceedings of the 2022 IEEE 13th Control and System Graduate Research Colloquium (ICSGRC); IEEE: New York, NY, USA, 2022; pp. 145–150. [Google Scholar] [CrossRef] [Scilit]
  41. Ueno, S.; Sakai, O. Data driven calibration of color-sensitive optical sensor by supervised learning for botanical application. IEEE Sens. J. 2022, 22, 11915–11922. [Google Scholar] [CrossRef] [Scilit]
  42. Greco, M.; Giovenale, E.; Leccese, F.; Doria, A.; Francesco, E.D.; Gallerano, G.P. A THz Imaging Scanner to Monitor Leaf Water Content. In 2021 IEEE International Workshop on Metrology for Agriculture and Forestry (MetroAgriFor); IEEE: New York, NY, USA, 2021; pp. 7–11. [Google Scholar] [CrossRef] [Scilit]
  43. Tamayo-Monsalve, M.A.; Fragner, C.; Krutzler, C.; Leitgeb, E. Coffee Maturity Classification Using Convolutional Neural Networks and Transfer Learning. IEEE Access 2022, 10, 42971–42982. [Google Scholar] [CrossRef] [Scilit]
  44. Greco, M.; Giarnetti, S.; Giovenale, E.; Taschin, A.; Leccese, F.; Doria, A.; Senni, L. THz Data Analysis and Self-Organizing Map (SOM) for the Quality Assessment of Hazelnuts. Appl. Sci. 2024, 14, 1555. [Google Scholar] [CrossRef] [Scilit]
  45. Goyal, C.; Malkurthi, S.; Yellakonda, K.V.R.; Hussain, A.M. Machine Learning-Based Low-Cost Colorimetric Sensor for pH and Free-Chlorine Measurement. IEEE Sens. Lett. 2024, 8, 4503904. [Google Scholar] [CrossRef] [Scilit]
  46. Batinic, B.D.; Arbanas, M.S.; Bajić, J.S.; Dedijer, S.R.; Rajs, V.M.; Laković, N.M.; Kulundžić, N.R. Using Machine Learning for Improvement of Reflected Spectrum Estimations of Colorimetric Probe. IEEE Trans. Instrum. Meas. 2021, 70, 2500807. [Google Scholar] [CrossRef] [Scilit]
  47. Lee, K.; Cho, I.; Park, I. E-Nose System Based on Ultra-Low Power Single Micro-LED Gas Sensor and Deep Learning. In Proceedings of the 2023 IEEE SENSORS; IEEE: New York, NY, USA, 2023; pp. 1–4. [Google Scholar] [CrossRef] [Scilit]
  48. Zhu, W.; Sang, P.; He, Y. Facial skin colour classification using machine learning and hyperspectral imaging data. IET Image Process. 2022, 16, 509–520. [Google Scholar] [CrossRef] [Scilit]
  49. Li, Z.; Golwala, G.; Sundaram, S.; Allebach, J. A data-driven approach for garment color classification in on-line fashion images. Electron. Imaging 2019, 31, 1–5. [Google Scholar] [CrossRef] [Scilit]
  50. Garcia Garcia, M.; González Arrieta, M.A.; Rodriguez Gonzalez, S.; Márquez Sánchez, S.; Da Silva Ramos, C.F. Graffiti identification system using low-cost sensors. Int. J. Interact. Multimed. Artif. Intell. 2024, 8, 51–60. [Google Scholar] [CrossRef] [Scilit]
  51. Fan, J.; Li, Y.; Fryc, I.; Qian, C.; Fan, X.; Zhang, G. Machine-Learning Assisted Prediction of Spectral Power Distribution for Full-Spectrum White Light-Emitting Diode. IEEE Photonics J. 2020, 12, 8200218. [Google Scholar] [CrossRef] [Scilit]
  52. Niu, M.; Li, Z.; Zhong, Z.; Zheng, Y. Visibility Constrained Wide-Band Illumination Spectrum Design for Seeing-in-the-Dark. In Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2023; pp. 13976–13985. [Google Scholar] [CrossRef] [Scilit]
  53. Tang, Y.; Song, S.; Gui, S.; Chao, W.; Cheng, C.; Qin, R. Active and low-cost hyperspectral imaging for the spectral analysis of a low-light environment. Sensors 2023, 23, 1437. [Google Scholar] [CrossRef] [Scilit]
  54. Hirai, K.; Tanimoto, T.; Yamamoto, K.; Horiuchi, T.; Tominaga, S. An LED-Based Spectral Imaging System for Surface Reflectance and Normal Estimation. In Proceedings of the 2013 International Conference on Signal-Image Technology & Internet-Based Systems; IEEE: New York, NY, USA, 2013; pp. 441–447. [Google Scholar] [CrossRef] [Scilit]
  55. Hussain, I.; Qureshi, M.; Ismail, M.; Iftikhar, H.; Zywiołek, J.; López-Gonzales, J.L. Optimal features selection in the high dimensional data based on robust technique: Application to different health database. Heliyon 2024, 10, e37241. [Google Scholar] [CrossRef] [Scilit]
  56. Mustafa, H.; Ali, S.F.; Bilal, M.; Hanif, M.S. Multi-Stream Deep Neural Network for Diabetic Retinopathy Severity Classification Under a Boosting Framework. IEEE Access 2022, 10, 113172–113183. [Google Scholar] [CrossRef] [Scilit]
  57. Gualtieri, J.A.; Cromp, R.F. Support vector machines for hyperspectral remote sensing classification. In Proceedings of the 27th AIPR Workshop: Advances in Computer-Assisted Recognition; Mericsko, R.J., Ed.; International Society for Optics and Photonics, SPIE: Bellingham, WA, USA, 1999; Volume 3584, pp. 221–232. [Google Scholar] [CrossRef] [Scilit]
  58. Brown, M.; Gunn, S.R.; Lewis, H.G. Support vector machines for optimal classification and spectral unmixing. Ecol. Model. 1999, 120, 167–179. [Google Scholar] [CrossRef] [Scilit]
  59. Gao, H.; Guo, Q.; Zhang, Z.; Li, Y. An integrated feature extraction framework of linear multi-layer perceptron to reduce computation complexity for remaining useful life prediction. Eng. Appl. Artif. Intell. 2025, 141, 109846. [Google Scholar] [CrossRef] [Scilit]
  60. Semenoglou, A.A.; Spiliotis, E.; Assimakopoulos, V. Image-based time series forecasting: A deep convolutional neural network approach. Neural Netw. 2023, 157, 39–53. [Google Scholar] [CrossRef] [Scilit]
  61. Song, W.; Gao, C.; Zhao, Y.; Zhao, Y. A Time Series Data Filling Method Based on LSTM—Taking the Stem Moisture as an Example. Sensors 2020, 20, 5045. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  62. Nix Sensor Ltd. Nix Mini 3 Color Sensor. Available online: https://www.nixsensor.com/mini-3-color-sensor/ (accessed on 28 October 2025).
  63. Variable, Inc. ColorMuse 3 Portable Colorimeter. Available online: https://variableinc.com/product/color-muse-3/# (accessed on 13 April 2025).
Figure 1. SENSIPATCH wearable device.
Figure 1. SENSIPATCH wearable device.
Sensors 26 02576 g001
Figure 2. Illustration of the SENSIPATCH wearable patch placed on the arm.
Figure 2. Illustration of the SENSIPATCH wearable patch placed on the arm.
Sensors 26 02576 g002
Figure 3. Normalized emission spectra of the six LEDs used in the SENSIPATCH spectrometer module.
Figure 3. Normalized emission spectra of the six LEDs used in the SENSIPATCH spectrometer module.
Sensors 26 02576 g003
Figure 4. Simplified block diagram of the SENSIPLUS versatile sensor interface.
Figure 4. Simplified block diagram of the SENSIPLUS versatile sensor interface.
Sensors 26 02576 g004
Figure 5. Methodology pipeline for PANTONE color sensing using data collected from the SENSIPATCH wearable system and analyzed with an MLP-based classification approach.
Figure 5. Methodology pipeline for PANTONE color sensing using data collected from the SENSIPATCH wearable system and analyzed with an MLP-based classification approach.
Sensors 26 02576 g005
Figure 6. Experimental Setup used for Data Acquisition.
Figure 6. Experimental Setup used for Data Acquisition.
Sensors 26 02576 g006
Figure 7. Schematic representation of the experimental setup.
Figure 7. Schematic representation of the experimental setup.
Sensors 26 02576 g007
Figure 8. Pantone 1797 and Pantone 108 Sensipatch measurement.
Figure 8. Pantone 1797 and Pantone 108 Sensipatch measurement.
Sensors 26 02576 g008
Figure 9. Graphical representation of the data collected for six PANTONE color cards with FCCW.
Figure 9. Graphical representation of the data collected for six PANTONE color cards with FCCW.
Sensors 26 02576 g009
Figure 10. Graphical representation of the data collected for six PANTONE color cards with LCCW.
Figure 10. Graphical representation of the data collected for six PANTONE color cards with LCCW.
Sensors 26 02576 g010
Figure 11. Graphical representation of the baseline-corrected data with firm contact condition for six PANTONE color cards.
Figure 11. Graphical representation of the baseline-corrected data with firm contact condition for six PANTONE color cards.
Sensors 26 02576 g011
Figure 12. Graphical representation of the baseline-corrected data with loose contact condition for six PANTONE color cards.
Figure 12. Graphical representation of the baseline-corrected data with loose contact condition for six PANTONE color cards.
Sensors 26 02576 g012
Figure 13. Stratified 5-fold cross-validation across 102 classes adopted for LCCW and FCCW data. Each row represents the fold, and each column represents the measurement. In each fold, one measurement per class is used for testing, and the remaining four are used for training.
Figure 13. Stratified 5-fold cross-validation across 102 classes adopted for LCCW and FCCW data. Each row represents the fold, and each column represents the measurement. In each fold, one measurement per class is used for testing, and the remaining four are used for training.
Sensors 26 02576 g013
Figure 14. Stratified 10-fold cross-validation across 102 classes adopted for combined data. Each row represents the fold, and each column represents the measurement. In each fold, two measurements per class are used for testing from FCCW and LCCW, and the remaining eight are used for training.
Figure 14. Stratified 10-fold cross-validation across 102 classes adopted for combined data. Each row represents the fold, and each column represents the measurement. In each fold, two measurements per class are used for testing from FCCW and LCCW, and the remaining eight are used for training.
Sensors 26 02576 g014
Figure 15. Classification performance of machine learning models under Firm Contact Condition With Weight (FCCW), Loose Contact Condition Without Weight (LCCW), and combined conditions.
Figure 15. Classification performance of machine learning models under Firm Contact Condition With Weight (FCCW), Loose Contact Condition Without Weight (LCCW), and combined conditions.
Sensors 26 02576 g015
Figure 16. Subset confusion matrix of the MLP model trained on combined condition data, illustrating selected PANTONE color classes with high classification accuracies.
Figure 16. Subset confusion matrix of the MLP model trained on combined condition data, illustrating selected PANTONE color classes with high classification accuracies.
Sensors 26 02576 g016
Figure 17. Subset confusion matrix for the MLP model trained on combined condition data, focusing on misclassification among PANTONE color classes with the lowest accuracy.
Figure 17. Subset confusion matrix for the MLP model trained on combined condition data, focusing on misclassification among PANTONE color classes with the lowest accuracy.
Sensors 26 02576 g017
Figure 18. Normalized spectra of selected challenging PANTONE pairs. Left: PANTONE152 and PANTONE166. Right: PANTONE7720 and PANTONE635. In both cases, the spectra show limited separability across the measured wavelength range, helping to explain the observed misclassifications.
Figure 18. Normalized spectra of selected challenging PANTONE pairs. Left: PANTONE152 and PANTONE166. Right: PANTONE7720 and PANTONE635. In both cases, the spectra show limited separability across the measured wavelength range, helping to explain the observed misclassifications.
Sensors 26 02576 g018
Table 1. List of PANTONE Color Codes Used in the Study. * NO_PANTONE corresponds to baseline sensor measurements without a card. WHITE_PAPER refers to plain white paper used as a reference sample.
Table 1. List of PANTONE Color Codes Used in the Study. * NO_PANTONE corresponds to baseline sensor measurements without a card. WHITE_PAPER refers to plain white paper used as a reference sample.
No.PANTONE CodeNo.PANTONE CodeNo.PANTONE CodeNo.PANTONE Code
1NO_PANTONE *2PANTONE1003PANTONE1084PANTONE11-4804
5PANTONE12-03136PANTONE12-05247PANTONE12-07278PANTONE12-5204
9PANTONE13-064510PANTONE13-085011PANTONE13-110712PANTONE13-5304
13PANTONE14-084814PANTONE14-085215PANTONE14-111916PANTONE14-1419
17PANTONE14-151318PANTONE14-191119PANTONE14-361220PANTONE14-4516
21PANTONE14222PANTONE15-054323PANTONE15-094224PANTONE15-1247
25PANTONE15-181626PANTONE15-270627PANTONE15-521028PANTONE15-6437
29PANTONE15230PANTONE16-125531PANTONE16-132932PANTONE16-1432
33PANTONE16-143934PANTONE16635PANTONE17-121036PANTONE17-1436
37PANTONE17-145638PANTONE17-156439PANTONE17-402140PANTONE17-4524
41PANTONE17-572242PANTONE179743PANTONE18-011944PANTONE18-1248
45PANTONE18-232646PANTONE18-302547PANTONE18-433048PANTONE18-4525
49PANTONE18-453050PANTONE18-562151PANTONE19-125052PANTONE19-2025
53PANTONE19-343854PANTONE19-392155PANTONE19-393556PANTONE19-4305
57PANTONE19-611058PANTONE19959PANTONE21460PANTONE277
61PANTONE29162PANTONE327863PANTONE34564PANTONE350
65PANTONE38366PANTONE39467PANTONE398568PANTONE414
69PANTONE454570PANTONE46671PANTONE468572PANTONE476
73PANTONE48574PANTONE49375PANTONE512576PANTONE535
77PANTONE540578PANTONE555579PANTONE58380PANTONE600
81PANTONE60582PANTONE63583PANTONE65684PANTONE677
85PANTONE69186PANTONE73287PANTONE741588PANTONE7493
89PANTONE754890PANTONE759091PANTONE765492PANTONE7720
93PANTONE772694PANTONE773795PANTONE904196PANTONE9044
97PANTONE918098PANTONE924199PANTONE9320100PANTONECoolGray7
101PANTONEWarmGray2102WHITE_PAPER *
Table 2. LED features and measurement configurations. The columns represent feature name, LED color (LC), and wavelength (WL) in nanometers.
Table 2. LED features and measurement configurations. The columns represent feature name, LED color (LC), and wavelength (WL) in nanometers.
Feature NameLCWL
OUTPORT PORT SDO DCBIASP 80 IN-PHASEYellow593
OUTPORT PORT INT DCBIASP 25 IN-PHASERed645
OUTPORT AUX DCBIASP 6 IN-PHASEInfrared950
OUTPORT SHA DCBIASP 10 IN-PHASEInfrared850
OUTPORT PORT RDY DCBIASP 6 IN-PHASEGreen523
OUTPORT PORT CS DCBIASP 6 IN-PHASEBlue468
Table 3. Summary of data collection for 100 PANTONE color dataset.
Table 3. Summary of data collection for 100 PANTONE color dataset.
ParameterValue/Description
Number of PANTONE Colors100
Additional SamplePlain White Paper
Trials per Color5
Sensor Readings per Trial121
Baseline Samples per Trial21
Experimental Conditions2 (Firm Contact—FCCW,
Loose Contact—LCCW)
Total Samples123,420 (102 × 5 × 121 × 2)
Photodiode Read Time per Light Source265 ms
Light Sources Used6 (4 LEDs + 2 NIR)
Time per Full Acquisition Cycle1.6 s
Sampling Rate0.62 full cycles/s
Sensor Output ComponentsIn-Phase (used),
Quadrature (available)
LED ConfigurationSee Table 2
Contact ConditionsFCCW (firm), LCCW (loose)
Table 4. Random Forest feature importance of the six multispectral channels under the combined condition. Values are reported as mean ± standard deviation across cross-validation folds.
Table 4. Random Forest feature importance of the six multispectral channels under the combined condition. Values are reported as mean ± standard deviation across cross-validation folds.
ChannelWavelengthMean ImportanceStd
Red645 nm0.26990.0035
Yellow593 nm0.24710.0064
Blue468 nm0.16050.0022
NIR850 nm0.13320.0021
Green523 nm0.12130.0021
NIR950 nm0.06800.0029
Table 5. Architectural configurations and training hyperparameters of models used.
Table 5. Architectural configurations and training hyperparameters of models used.
ParameterMLPRandom ForestSVM2D CNNLSTM
Key LayersDense (100, 50)Conv2D (16, 32), Dense (64)LSTM (32, 32), Dense (32)
Activation FunctionReLUReLUReLU (Dense)
OptimizerAdamAdamAdam
Learning Rate0.0010.001
Regularization α = 0.001
Loss FunctionCategorical Cross-EntropySparse Categorical Cross-EntropySparse Categorical Cross-Entropy
Batch Size643216
Epochs502020
Window Size55
Additional NotesMaxIter = 500200 EstimatorsLinear Kernel, Prob = TrueDropout (0.5), BatchNormDropout (0.5), BatchNorm
Table 6. Bootstrapped dataset structure, sample distribution, and cross-validation setup.
Table 6. Bootstrapped dataset structure, sample distribution, and cross-validation setup.
AttributeFCCWLCCWCombined
Measurements per Class5510 (5 + 5)
Samples per Measurement (after bootstrapping)200020002000
Training Samples816,000 (102 × 4 × 2000)816,000 (102 × 4 × 2000)1,632,000 (102 × 8 × 2000)
Test Samples204,000 (102 × 1 × 2000)204,000 (102 × 1 × 2000)408,000 (102 × 2 × 2000)
Cross-Validation Folds5510
Table 7. Classification accuracy under FCCW (%).
Table 7. Classification accuracy under FCCW (%).
ModelFold-1Fold-2Fold-3Fold-4Fold-5Mean
RF98.0996.9998.7096.3495.7597.17
SVM96.5897.6298.6496.1297.4997.29
MLP96.8596.5398.6196.1797.0597.04
LSTM76.7179.3879.3677.4372.2977.16
CNN92.9498.9098.6398.2092.1996.17
Table 8. Mean performance metrics for ML models under FCCW.
Table 8. Mean performance metrics for ML models under FCCW.
ModelPrecisionRecallF1 Score
RF97.5397.1796.91
MLP97.3197.0496.74
SVM97.4897.2997.09
CNN94.8396.1795.11
LSTM68.8777.1671.21
Table 9. Classification accuracy under LCCW (%).
Table 9. Classification accuracy under LCCW (%).
ModelFold-1Fold-2Fold-3Fold-4Fold-5Mean
RF89.1996.9394.7791.8986.4391.84
SVM96.0598.8099.0097.8094.0597.14
MLP94.0498.9097.9995.9292.4995.86
LSTM74.7379.2978.6077.7771.2776.33
CNN91.7792.0194.6192.8195.1393.26
Table 10. Mean performance metrics for ML models under LCCW.
Table 10. Mean performance metrics for ML models under LCCW.
ModelPrecisionRecallF1 Score
RF90.4891.8090.10
MLP95.5895.8495.05
SVM97.4197.1396.83
CNN93.1294.8393.39
LSTM69.3976.3370.97
Table 11. Classification accuracy for combined conditions (%).
Table 11. Classification accuracy for combined conditions (%).
FoldRFSVMMLPLSTMCNN
198.9085.9397.9665.5185.27
297.7287.1997.6364.3879.43
397.8287.0597.7462.6684.57
493.1985.6595.5267.5980.61
593.1984.1194.2971.8177.86
688.8785.8689.2771.0584.24
798.4392.5697.2676.2185.91
897.4093.7299.3074.7488.69
993.3493.7597.4674.3891.33
1089.4788.1488.1473.8483.89
Mean94.9688.4096.0870.2184.18
Table 12. Mean performance metrics for ML models for combined conditions (%).
Table 12. Mean performance metrics for ML models for combined conditions (%).
ModelPrecisionRecallF1 Score
Random Forest94.4494.9693.85
SVM86.4688.4085.74
MLP96.0496.0895.37
CNN82.6584.1880.77
LSTM61.7770.2162.81
Table 13. MLP model class-wise accuracy across PANTONE color classes for combined conditions.
Table 13. MLP model class-wise accuracy across PANTONE color classes for combined conditions.
ClassAccuracy (%)ClassAccuracy (%)ClassAccuracy (%)
NO_PANTONE99.55PANTONE100100.0PANTONE108100.0
PANTONE11-480499.73PANTONE12-0313100.0PANTONE12-052499.82
PANTONE12-0727100.0PANTONE12-520483.0PANTONE13-0645100.0
PANTONE13-085099.82PANTONE13-110795.82PANTONE13-530499.91
PANTONE14-0848100.0PANTONE14-085289.55PANTONE14-1119100.0
PANTONE14-141999.91PANTONE14-151387.91PANTONE14-1911100.0
PANTONE14-361296.36PANTONE14-451699.91PANTONE14299.82
PANTONE15-0543100.0PANTONE15-094290.0PANTONE15-1247100.0
PANTONE15-181699.09PANTONE15-270699.91PANTONE15-521089.91
PANTONE15-6437100.0PANTONE15277.18PANTONE16-1255100.0
PANTONE16-132999.73PANTONE16-143299.91PANTONE16-143989.73
PANTONE16684.82PANTONE17-121099.09PANTONE17-1436100.0
PANTONE17-145682.18PANTONE17-156497.36PANTONE17-402199.82
PANTONE17-452499.91PANTONE17-5722100.0PANTONE1797100.0
PANTONE18-011986.18PANTONE18-1248100.0PANTONE18-232699.91
PANTONE18-302597.91PANTONE18-433080.0PANTONE18-452599.18
PANTONE18-453099.82PANTONE18-5621100.0PANTONE19-125098.36
PANTONE19-2025100.0PANTONE19-3438100.0PANTONE19-392193.0
PANTONE19-393598.36PANTONE19-430591.91PANTONE19-611097.0
PANTONE19997.18PANTONE214100.0PANTONE277100.0
PANTONE291100.0PANTONE3278100.0PANTONE345100.0
PANTONE35080.0PANTONE38390.0PANTONE394100.0
PANTONE398599.82PANTONE41496.36PANTONE454580.0
PANTONE46689.91PANTONE468591.36PANTONE47687.36
PANTONE48598.64PANTONE49399.73PANTONE5125100.0
PANTONE535100.0PANTONE540595.27PANTONE555596.73
PANTONE58383.73PANTONE600100.0PANTONE605100.0
PANTONE63580.0PANTONE656100.0PANTONE67799.82
PANTONE69199.91PANTONE73298.82PANTONE741599.18
PANTONE7493100.0PANTONE754878.36PANTONE7590100.0
PANTONE765491.36PANTONE772077.73PANTONE7726100.0
PANTONE7737100.0PANTONE9041100.0PANTONE904499.0
PANTONE918099.91PANTONE924190.36PANTONE932099.82
PANTONECoolGray799.18PANTONEWarmGray299.91WHITE_PAPER100.0
Table 14. Comparative overview of SENSIPATCH versus commercial portable colorimeters.
Table 14. Comparative overview of SENSIPATCH versus commercial portable colorimeters.
DeviceSpectral RangeAcquisition TimeSize/Form FactorWeightApprox. Cost (EUR)Additional Features
SENSIPATCH (this work)468–950 nm (6 LED channels)2 s per full cycle18 × 18 cm patch30 g<50 (component-level)Wearable, multi-sensor (bio-impedance, thermal, humidity)
highlightingNix Mini 3 [62]400–700 nm3 s per scanØ 40 mm × 40 mm70 g100–130Bluetooth handheld, single-purpose
ColorMuse 3 [63]400–700 nm3.8 s per scanØ 43 mm × 45 mm65 g110–130Bluetooth handheld, single-purpose
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.

Share and Cite

MDPI and ACS Style

Mustafa, H.; Fina, F.; Molinara, M.; Ferrigno, L.; Ria, A.; Bruschi, P.; Contardi, S.; Leccese, F.; Mustafa, H.T. Machine-Learning-Based Color Sensing Using Wearable SENSIPATCH Spectrometer Module: An Experimental Study. Sensors 2026, 26, 2576. https://doi.org/10.3390/s26092576

AMA Style

Mustafa H, Fina F, Molinara M, Ferrigno L, Ria A, Bruschi P, Contardi S, Leccese F, Mustafa HT. Machine-Learning-Based Color Sensing Using Wearable SENSIPATCH Spectrometer Module: An Experimental Study. Sensors. 2026; 26(9):2576. https://doi.org/10.3390/s26092576

Chicago/Turabian Style

Mustafa, Hamza, Federico Fina, Mario Molinara, Luigi Ferrigno, Andrea Ria, Paolo Bruschi, Simone Contardi, Fabio Leccese, and Hafiz Tayyab Mustafa. 2026. "Machine-Learning-Based Color Sensing Using Wearable SENSIPATCH Spectrometer Module: An Experimental Study" Sensors 26, no. 9: 2576. https://doi.org/10.3390/s26092576

APA Style

Mustafa, H., Fina, F., Molinara, M., Ferrigno, L., Ria, A., Bruschi, P., Contardi, S., Leccese, F., & Mustafa, H. T. (2026). Machine-Learning-Based Color Sensing Using Wearable SENSIPATCH Spectrometer Module: An Experimental Study. Sensors, 26(9), 2576. https://doi.org/10.3390/s26092576

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop