Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Andrea Farabbi has a total of 27 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    A gated artifact management pipeline for low-density eyewear EEG

    by Andrea Costanzo Palmisciano, Andrea Farabbi, Francesco Latino, Matteo Rossi, Niccoló Antonello, Pietro Cerveri, Luca Mainardi

    Objective . To develop an artifact-management method suitable for low-density, dry-electrode electroencephalogram (EEG) recorded from a wearable eyewear platform, enabling artifact detection, classification, and correction while avoiding unnecessary processing of clean neural activity. Approach . A gated two-stage pipeline is proposed in which a lightweight gate classifier first identifies artifact-contaminated EEG windows and selectively triggers further processing only when needed. The complete pipeline combines: (i) a time-domain feature-based detector, (ii) a convolutional–recurrent network for three-class artifact discrimination (eye blinks, horizontal eye movements, facial movements), and (iii) a U-Net-based denoising autoencoder. Main results . Evaluated on the eyewear EEG dataset (29 subjects) using a leave-one-subject-out scheme, the gate classifier achieved a balanced accuracy of 0.89. The artifact classifier reached a balanced accuracy of 0.84 with a median macro-F1 of 0.83. The denoiser achieved a median normalized RMSE lower than 0.20 and a spectral cosine similarity above 0.84. In the end-to-end evaluation, the pipeline achieved a median normalized RMSE of 0.19 and a spectral cosine similarity of 0.89. Evaluation on an independent external benchmark showed that the proposed pipeline maintained a slightly lower gate detection performance (balanced accuracy 0.82) and achieved higher two-class classification performance. The denoising performance was comparable to that obtained on the dataset collected for this study, with absolute median differences not exceeding 0.04 for both normalized RMSE and spectral cosine similarity. Significance . These results support the effectiveness of the proposed approach for artifact management in wearable eyewear EEG, while maintaining a design compatible with resource-constrained wearable implementations.

  • Open Access

    Turning glasses into sensors: capacitive facial expression recognition under frame geometry constraints

    by Francesco Latino, Matteo Rossi, Andrea Costanzo Palmisciano, Andrea Farabbi, Athul Krishnan, Niccolò Antonello, Luca Mainardi, Pietro Cerveri

    Objective. Wearable facial expression recognition requires sensing modalities that are unobtrusive, illumination-independent, and compatible with everyday eyewear form factors. Existing optical and electromyographic approaches are limited by line-of-sight requirements, skin contact, or restricted action unit (AU) coverage. This work investigates the feasibility of non-contact capacitive sensing for facial muscle activity monitoring within the strict geometric constraints of standard eyewear. Approach. We developed FERGlasses, integrating eight loading-mode capacitive channels via a custom flexible PCB and active shielding to detect skin-to-frame displacement. A validation study with 40 participants was conducted to elicit seven facial action coding system-defined AUs. Signal fidelity was assessed using independent Random Forest regressors and benchmarked against commercial optical-proximity (OCOsense) and computer-vision (Py-Feat) standards. Main results. The system demonstrated high agreement for upper-face activity, achieving median cosine similarities of 0.97 for the Outer Brow Raiser (AU02) and 0.87 for the Nose Wrinkler (AU09), while lower-face actions such as the Chin Raiser (AU17) yielded a median of 0.33, consistent with mechanical signal attenuation along the frame. Channel-ablation analysis quantified the specific anatomical contributions of each electrode group, identifying eyebrow and rhinion sensors as primary signal drivers for upper-face and perinasal actions, respectively, and temple sensors as critical for cheek raiser detection. Significance. This study provides the first metrological validation of multi-channel capacitive sensing for AU-level recognition in eyewear. The results establish the modality as a robust, privacy-preserving, and illumination-independent alternative to optical methods for longitudinal physiological monitoring, with the current prototype serving as a wired research platform and full consumer-grade integration identified as a future engineering objective.

  • Open Access

    Form factor meets function: anatomy-dependent electrode-skin coupling and signal content in consumer eyewear EEG systems

    by A C Palmisciano, A Farabbi, M Rossi, N Antonello, D Trojaniello, P Cerveri, L Mainardi

    Objective . To evaluate the influence of head morphology on the performance of a wearable setup that incorporates the constraints of an eyewear-electroencephalography (EEG) device suitable for consumer-level applications. Specifically, the study aimed to characterize the electrode-skin impedance of two dry-electrode types mounted on eyeglass frames, assess the system’s ability to capture alpha-rhythm modulation during eyes-open and eyes-closed (EOEC) states in the temporal region, and its capability to detect auditory event-related potentials (P300). Approach . A prototype was built by embedding four EEG electrodes, two gold-plated retractile pins (GPR) and two conductive elastomer (CoE), into a commercial eyeglass frame, with reference and bias on the nose pads. Signals were acquired using an OpenBCI Cyton board (ADS1299 analog front end, sampling at 256 Hz). Twenty young healthy adults underwent three experimental protocols, namely electrode-skin contact assessment, EOEC tasks (two cycles of 2 min each) to examine alpha-band (8–12 Hz) power changes and compute an alpha-to-broadband power ratio, and an auditory oddball paradigm (80% standard, 20% odd stimuli, 50 odd trials) to elicit and analyze P300 components. Main results . GPR electrodes exhibited moderately higher median impedance but slightly narrower confidence intervals compared to CoE electrodes. Head breadth significantly affected GPR impedance ( ≈ 11.7 % decrease per mm increase), but had no significant effect on CoE impedance. Alpha-band power increased significantly during eyes-closed periods across subjects and electrode types. P300 responses (positive deflection at 300 ms) were reliably detected, with GPR electrodes yielding tighter latency distributions. Significance . These findings emphasize the importance of careful design considerations in wearable-EEG to account for inter-subject head anatomy variability and demonstrate that eyeglass-integrated EEG, can reliably capture both evoked and spontaneous neural responses.


  • A Novel Imagined Speech Paradigm: Word Classification from Neurophysiological Signals

    by Francesco Iacomi, Andrea Farabbi, Maximiliano Mollura, Edoardo Maria Polo, Riccardo Barbieri, Luca Mainardi

  • Open Access

    Capacitive sensing for facial expression recognition and beyond: Materials, architectures, and wearable applications

    by Athul Krishnan, Matteo Rossi, Francesco Latino, Andrea Costanzo Palmisciano, Andrea Farabbi, Filippo Melloni, Diana Trojaniello, Luca Mainardi, Pietro Cerveri


  • Open Access

    Eyewear-Based ECG Recording: A Novel Head-Electrode Approach for Reliable Cardiac Signal Acquisition

    by Andrea Costanzo Palmisciano, Matteo Rossi, Andrea Farabbi, Niccolò Antonello, Diana Trojaniello, Tommaso Ongarello, Pietro Cerveri, Luca Mainardi

    Recent advances in wearable technology have enabled the recording of electrocardiogram (ECG) signals from unconventional body locations, including the head. Particularly on this last location, ECG recording is challenging due to the low signal-to-noise ratio (SNR), making fundamental the selection of relevant positions on the head to gather high-quality signals. In addition, traditional wet electrodes are unsuitable, necessitating the use of dry electrodes. In this work, we investigated the feasibility of recording the ECG using a novel eyewear-based setup, enabling a single-lead high-quality ECG acquisition. The prototype featured three dry electrodes, strategically placed on an eyewear prototype, one in the nose pad (reference electrode), the second electrode (-) in contact with the ear pad skin and the third electrode (+) exposed on the external surface of the frame to be touched by the fingertip. Among various materials, we identified conductive elastomers featuring the most favorable impedance characteristics through measurements performed on gelatin compounds and human skin. The prototype was systematically tested against standard chest ECG in 25 participants to verify the quality of the ECG signal and the derived heart-rate variability (HRV) indexes. The recorded ECG signals were classified as Excellent, Barely Acceptable, and Unacceptable in 72, 28 and 0% of the overall cases. HRV indices obtained from both the prototype and standard ECG showcased a strong correlation (R >0.9). This study highlighted the feasibility of high-quality ECG recording based on eyewear setups.


  • Open Access

    Assessing the impact of stimulation environment and error probability on ErrP EEG response, detection and subject attention: an explorative study

    by Andrea Farabbi, Luca Mainardi

    Objective: This study aims to investigate the impact of stimulus environments (Virtual Theatre vs Monitor) and error probabilities (20% vs 50%) on attentional states, Error Potentials (ErrP), and machine learning classification performance.Approach: EEG signals were recorded using different protocols, and features were extracted for subsequent analysis from single-trial response and attention level was computed from the second preceding error processing stimulation.Results: The results indicate significant differences across conditions: the Monitor environment consistently elicited higher and faster ErrP responses and elevated attentional states compared to Virtual Theatre. Additionally, classification performance in the Monitor environment outperformed Virtual Theatre consistently. Further analysis revealed that the 20% error probability protocol yielded increased ErrP responses, heightened attentional states, and superior classification performance compared to the 50% protocol. Classification performance under the 20% error probability condition consistently exceeded 75% validation and test sets. Moreover, a significant correlation between attention-related features and ErrP characteristics was observed, highlighting the intricate relationship between error processing and attentional engagement.Relevance: These findings underscore the importance of considering stimulus environments and error probabilities in cognitive neuroscience research and machine learning applications. Understanding these factors can inform experimental design and model development, ultimately advancing our comprehension of cognitive processes and enhancing real-world applications of machine learning algorithms.


  • Open Access

    Are Error Potential response and detection affected by environments?

    by Andrea Farabbi, Luca Mainardi

    This study explores the influence of environmental factors on Error Potential (ErrP) responses through experiments in Monitor and Virtual Theatre settings. EEG data analysis revealed distinct ErrP features in each environment, leading to the application of machine learning for classification. The results demonstrated significant differences in ErrP responses between the two environments, with the Monitor environment displaying more pronounced ErrP characteristics. These findings emphasize the importance of environmental considerations in cognitive research and suggest implications for designing AR/VR-based interventions targeting cognitive processes. Future research should further investigate ErrP responses in diverse environments to enhance our understanding of cognitive processing and optimize intervention strategies.

  • Open Access

    Domain-Specific Processing Stage for Estimating Single-Trail Evoked Potential Improves CNN Performance in Detecting Error Potential

    by Andrea Farabbi, Luca Mainardi

    We present a novel architecture designed to enhance the detection of Error Potential (ErrP) signals during ErrP stimulation tasks. In the context of predicting ErrP presence, conventional Convolutional Neural Networks (CNNs) typically accept a raw EEG signal as input, encompassing both the information associated with the evoked potential and the background activity, which can potentially diminish predictive accuracy. Our approach involves advanced Single-Trial (ST) ErrP enhancement techniques for processing raw EEG signals in the initial stage, followed by CNNs for discerning between ErrP and NonErrP segments in the second stage. We tested different combinations of methods and CNNs. As far as ST ErrP estimation is concerned, we examined various methods encompassing subspace regularization techniques, Continuous Wavelet Transform, and ARX models. For the classification stage, we evaluated the performance of EEGNet, CNN, and a Siamese Neural Network. A comparative analysis against the method of directly applying CNNs to raw EEG signals revealed the advantages of our architecture. Leveraging subspace regularization yielded the best improvement in classification metrics, at up to 14% in balanced accuracy and 13.4% in F1-score.