Next Article in Journal
Permanent Fault Identification Scheme for Transmission Lines Based on Amplitude Difference for LCC Injection Signal
Previous Article in Journal
Lightweight Semantic Segmentation for AGV Navigation: An Enhanced ESPNet-C with Dual Attention Mechanisms
Previous Article in Special Issue
Multi-Agent Reinforcement Learning-Based Control Method for Pedestrian Guidance Using the Mojiko Fireworks Festival Dataset
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

SafeBladder: Development and Validation of a Non-Invasive Wearable Device for Neurogenic Bladder Volume Monitoring

1
INEGI—Institute of Science and Innovation in Mechanical and Industrial Engineering, 4200-465 Porto, Portugal
2
FEUP—Faculty of Engineering, University of Porto, 4200-465 Porto, Portugal
3
ESSPP—School of Health Sciences, Polytechnic of Porto, 4200-072 Porto, Portugal
4
ULS São João—Hospital São João, 4200-319 Porto, Portugal
*
Author to whom correspondence should be addressed.
Electronics 2025, 14(17), 3525; https://doi.org/10.3390/electronics14173525
Submission received: 30 July 2025 / Revised: 1 September 2025 / Accepted: 2 September 2025 / Published: 3 September 2025
(This article belongs to the Special Issue AI-Based Pervasive Application Services)

Abstract

Neurogenic bladder is a debilitating condition caused by neurological dysfunction that impairs urinary control, often requiring timed intermittent catheterisation. Although effective, intermittent catheterisation is invasive, uncomfortable, and associated with infection risks, reducing patients’ quality of life. SafeBladder is a low-cost wearable device developed to enable real-time, non-invasive bladder volume monitoring using near-infrared spectroscopy (NIRS) and machine learning algorithms. The prototype employs LEDs and photodetectors to measure light attenuation through abdominal tissues. Bladder filling was simulated through experimental tests using stepwise water additions to containers and tissue-mimicking phantoms, including silicone and porcine tissue. Machine learning models, including Linear Regression, Support Vector Regression, and Random Forest, were trained to predict volume from sensor data. The results showed the device is sensitive to volume changes, though ambient light interference affected accuracy, suggesting optimal use under clothing or in low-light conditions. The Random Forest model outperformed others, with a Mean Absolute Error (MAE) of 25 ± 4 mL and R 2 of 0.90 in phantom tests. These findings support SafeBladder as a promising, non-invasive solution for bladder monitoring, with clinical potential pending further calibration and validation in real-world settings.

1. Introduction

The urinary bladder’s normal function is to store and expel urine in a coordinated and controlled manner. This activity is regulated by both the central and peripheral nervous systems. Neurogenic bladder (NB) refers to bladder dysfunction resulting from neurological disorders or injuries—whether due to internal or external trauma, disease, or congenital conditions—leading to symptoms such as urinary incontinence, retention, and recurrent urinary tract infections (UTIs) [1]. Common underlying causes include spinal cord injury, multiple sclerosis, and spina bifida. The standard management approach, intermittent catheterisation (IC), is effective but invasive, often uncomfortable, and associated with an increased risk of UTIs, all of which can significantly impact patients’ quality of life [2].
The incidence of NB dysfunction varies depending on the underlying condition. Bladder disorders are reported in 40% to 90% of patients with multiple sclerosis, with 50% to 90% of cases involving detrusor overactivity and 20% to 30% involving detrusor areflexia [3]. In idiopathic Parkinson’s disease, studies have shown that urinary storage symptoms—such as frequency, urgency, and urinary incontinence—are present in 57% to 83% of patients, while voiding symptoms—such as weak urinary stream, hesitancy, and incomplete emptying—occur in 17% to 27%. Additionally, NB is observed in approximately 15% of patients following a stroke [3].
Treatment of NB aims to maintain continence, prevent high-pressure detrusor activity that could damage the upper urinary tract, minimise UTIs, and avoid bladder overdistension [4]. Additional complications may include renal deterioration, urolithiasis, and increased risk of urinary tract neoplasia. Management strategies vary with symptom type and include behavioural modifications, clean intermittent catheterisation (CIC), pharmacotherapy, intradetrusor injections, and, in refractory cases, surgical interventions.
CIC remains a cornerstone of care but is invasive and associated with UTIs, urethral trauma, and patient discomfort. Its scheduling is typically based on urodynamic studies, fluid intake, and estimated bladder volume. Accurate bladder monitoring is therefore essential to optimise catheterisation timing and reduce unnecessary interventions [5].
While hospital-based ultrasound devices enable bladder volume monitoring, they are impractical for continuous use in daily life. Near-infrared spectroscopy (NIRS) emerges as a promising non-invasive optical technology. NIRS allows for the estimation of changes in the concentration of tissue chromophores (such as water and haemoglobin) by analysing the absorption of light emitted between 700 and 1000 nm [6]. This technique, when applied to the suprapubic region, has the potential to monitor bladder filling continuously and discreetly.
Recent work underscores the challenges and opportunities of wearable optical sensing [7]. In particular, advanced designs have explored strategies to mitigate or even exploit ambient light, such as adaptive power-harvesting systems that dynamically adjust LED emissions and store light energy for continuous operation [8]. At the same time, multimodal approaches are gaining traction, with sensor fusion frameworks combining ambient light sensors, inertial units, or hybrid biophysical/biochemical modalities to enhance robustness and accuracy [9,10]. Bibliometric analyses further highlight multimodal sensor fusion as a rapidly emerging research priority in wearable health for elderly populations [11]. These developments frame the present work, which employs NIRS technology in a deliberately dark ambient—beneath clothing—to avoid light interference while exploring the use of machine-learning models for bladder volume estimation.
This article details the development of the SafeBladder project, from the prototype’s conception and its electronic components to its experimental validation and the development of artificial intelligence models for bladder volume estimation.

2. Materials and Methods

2.1. Prototype Development

The device was developed using an Arduino Uno microcontroller board. The optical system comprises multiple pairs of infrared light-emitting diodes (LEDs) with wavelengths of 850 nm and 940 nm, along with photodiode receivers. Infrared LEDs were chosen due to their compact size, low weight, and cost-effectiveness. While the water absorption peak is at 975 nm, suitable commercial LEDs at that wavelength are limited, so nearby wavelengths were used. Photodiodes with a large active area, wide viewing angle, and sensitivity to the selected wavelengths were chosen to optimise light detection from tissue. Photodiode currents were converted to voltage using TLV333 zero-drift op-amps configured as transimpedance amplifiers (one per channel), then digitised by an ADS1115 analogue-to-digital converter (ADC). Table 1 summarises the key specifications of the optical front-end.
The sensor housing was modelled in SolidWorks 2024 (Figure 1) and fabricated via 3D printing using polylactic acid (PLA). The design evolved to incorporate inclinations in the sensor slots, optimising the light emission and reception angle to maximise the interception of the signal reflected by the target volume.

2.2. Circuit Assembly and Channel Mapping

The final breadboard assembly (Figure 2) contains six infrared emitters and six photodiodes wired to the Arduino’s analogue inputs A0–A5.
  • Primary LEDs (850 nm) and primary photodiodes (A5, A4, A1) define one spectral channel.
  • Secondary LEDs (940 nm) and secondary photodiodes (A0, A2, A3) define a complementary channel; scattering decreases with wavelength (favouring deeper reach) while water absorption rises toward ∼970 nm, so the pair provides useful spectral contrast within the NIR window.
  • Photodiode currents are converted to voltage by TLV333 zero-drift op-amps in transimpedance configuration (one per photodiode) before digitisation.
All wiring is colour-coded (Figure 2) so that each sensor can be traced back to its corresponding data channel in the plots presented in Section 3. This explicit mapping enabled direct comparison between optical signals and volume labels during model training.

2.3. Optical Response During Filling

Figure 3 depicts the 4 × 4 matrix of emitters and detectors. Each row corresponds to an incremental water height of approximately 12 mm. As the liquid column rises (blue overlay and arrow) the optical path between each LED/photodiode pair changes in a predictable, layer-by-layer fashion:
  • Stage 0—empty (air).
    All sixteen channels register their baseline (highest) intensity because the optical path is almost loss-free.
  • Stage 1—first row submerged.
    Only the bottom emitters and detectors are covered.
  • Stage 2—two rows submerged.
    The middle--lower row now sits at the air–water interface.
  • Stage 3—three rows submerged.
    Only the top row remains in air; the gradient compresses as attenuation grows non-linearly with depth.
  • Stage 4—fully submerged.
    All channels plateau at their minimum.
Figure 3. Emitter—detector matrix and expected water-level progression. Red = primary LEDs; orange = secondary LEDs; purple = square primary photodiodes; blue = secondary photodiodes. Dashed lines mark the four discrete height thresholds used for calibration.
Figure 3. Emitter—detector matrix and expected water-level progression. Red = primary LEDs; orange = secondary LEDs; purple = square primary photodiodes; blue = secondary photodiodes. Dashed lines mark the four discrete height thresholds used for calibration.
Electronics 14 03525 g003
  • Channel map: A0, A1, A2, A3, A4, and A5 (total 6). Primary receivers: A5, A4, and A1. Secondary receivers: A0, A2, and A3.

2.4. Experimental Setup

To validate the prototype, tests were performed under controlled conditions, meaning that all in vitro trials were performed in a laboratory at 22 ± 1 °C and typical relative humidity of 45–60%. Two lighting regimes were used: “dark” (<2 lux; lights off, blackout curtains) and “light” (300–600 lux ambient). The sensor face was kept in full contact with the phantom/container (no gaps), and the belt tension was kept constant by using the same notch across steps. These controls isolate optical effects (absorption/scattering) from confounding factors such as stray NIR, placement drift, and temperature-dependent electronics. In vivo variability (e.g., tissue thickness, perfusion, hydration) is greater than in these phantoms; the aim in this study is to demonstrate feasibility and to characterise domain shifts that can inform per-user calibration in future clinical applications.
Bladder filling was simulated by incrementally adding water (in 50 mL to 200 mL intervals) to plastic and glass containers (Figure 4). To mimic the attenuation of near-infrared light by biological tissues, different materials were placed between the sensor and the container. A 1 cm thick silicone layer was used to simulate a homogeneous tissue structure (Figure 5a). In addition, a 2 cm thick piece of raw pork belly was employed to replicate the complexity and stratification of human abdominal tissues, including skin, subcutaneous fat, and muscle (Figure 5b). This thickness was selected based on anatomical data indicating that, for individuals with a normal Body Mass Index (BMI 18.5–24.9), the average distance from the skin surface to the interior of the bladder is approximately 2.4 cm in both men and women [12,13]. Tests were conducted in a dark environment to eliminate interference from ambient light. Data were acquired continuously via the Arduino IDE’s serial monitor. In the 850–940 nm range, water is the dominant absorber and was therefore selected as the fill liquid. Urine chromophores that impart colour absorb mainly in the visible band, while turbidity (e.g., cells) may nonetheless increase scattering. A follow-up bench test with a urine simulant (saline + urea) and low-concentration dye is planned to quantify any residual effects.
  • Signal transform and channel scaling
Raw ADC readings were transformed point-wise as y = scale · x α with α = 5 and scale = 0.0005 . To level channel magnitudes, a post-gain of 1.0 was applied to primary photodiodes (A5, A4, A1) and 0.5 to secondary photodiodes (A0, A2, A3), matching the acquisition sketch used for data collection.
  • Design rationale
A staged NIRS validation was implemented: (i) containers (plastic/glass) to isolate interface and refractive-index effects; (ii) homogeneous silicone (1 cm) to approximate a simple attenuating slab; and (iii) layered pork belly (∼2 cm) to introduce realistic heterogeneity. This progression is consistent with biomedical optics phantom practice and reduces risk for subsequent in vitro studies by quantifying domain shifts at each step [14].

2.5. Acquisition Protocol, Sampling, and Reproducibility

At each volume point, signals from all 6 analogue inputs (A0–A5) were sampled with a fixed inter-sample delay of 10 ms, yielding an effective sampling frequency of 100 Hz per channel. For each channel, 500 consecutive samples were collected, resulting in a 5 s acquisition window per volume point. The arithmetic mean of these 500 samples (serial output at 9600 bps) was used for subsequent modelling. This protocol was applied consistently across all container and phantom conditions described in Section 2.4. Total ADC throughput (≈600 samples/s across six channels) remained below the ADS1115’s 860 samples/s limit.
  • Repetitions and dataset size
For each condition (container and/or phantom), the acquisition protocol was performed once, with careful device repositioning between volume steps (NREPS = 1). The number of discrete volume points per condition was: plastic (dark), 9; glass (dark), 7; silicone (1 cm, plastic), 9; pork belly (2 cm, glass), 7; pork belly (2 cm, plastic), 9; baseline light and baseline dark sets, 3 each. At each volume point, the mean of 500 consecutive samples per channel was stored, yielding one value per channel per volume. Table 2 provides a complete acquisition summary, indicating the number of volume points and per-channel raw reads for each condition.

2.6. Modelling Pipeline and Hyperparameters

Channel means (A0–A5) were standardised using only the training-set mean ( μ ) and standard deviation ( σ ). The primary feature set consisted of the six standardised channel means. In a sensitivity analysis, engineered features, such as pairwise ratios between primary/secondary channels and first differences across volume steps, were evaluated, but they did not materially improve performance, so the simpler feature set was retained.
The models tested included Linear Regression, Support Vector Regression (SVR) with a radial basis function (RBF) kernel, and Random Forest Regressor (RF). SVR was intended to capture non-linear relationships while tolerating noise and outliers, whereas RF, as an ensemble of decision trees, offered robustness to non-linear patterns and reduced overfitting. Hyperparameters were optimised via grid search combined with five-fold cross-validation, stratified by phantom type, container, and volume step, using a random seed of 42. The SVR grid explored C { 1 , 10 , 100 } , ϵ { 0.1 , 1.0 } , and γ { scale , 0.1 , 0.01 } , while RF grid tested n _ estimators { 100 , 300 , 600 } , max _ depth { None , 5 , 10 } , and min _ samples _ leaf { 1 , 3 , 5 } .
Data were split at the window level into 70/15/15 for train/validation/test sets, stratified as above, with no subject data included. To assess domain shift, models were trained on non-tissue scenarios and tested on held-out tissue scenarios only. Final models were refit on the combined training and validation sets and evaluated on the held-out test set. Model performance was quantified using the Mean Absolute Error (MAE) and Coefficient of Determination ( R 2 ), reported as the mean ± standard deviation across cross-validation folds and for the independent test set.

2.7. Agreement Analysis and Error Metrics

Agreement between predicted and reference bladder volumes was visualised using two approaches: (i) Bland–Altman plots, with the error defined as e = y ^ y , plotted against the average y ^ + y 2 , showing the mean bias (solid line) and 95% limits of agreement (LoA; dashed lines), and (ii) empirical error distributions (histograms) with P5, P50, and P95 markers.
For the agreement figures in Section 3.4, prediction pairs ( y , y ^ ) were generated using a transparent baseline pipeline: channel signals (A0–A5) were standardised using training-set statistics and a multivariate least-squares model was trained on non-tissue conditions (dark/light baselines, plastic, glass, and silicone). Predictions were then generated on held-out tissue scenarios (plastic + pork belly and glass + pork belly). This approach avoids data leakage across scenarios and ensures that figure generation is fully reproducible from the recorded sensor tables. These agreement visualisations illustrate scenario-shift effects using the transparent least-squares baseline, while RF performance is summarised in Table 3.

3. Results

3.1. Effect of Light and Container Material

The initial results confirmed that ambient light introduces significant noise into the measurements, resulting in fluctuations that compromise precision (Figure 6a). Primary sensor A4 showed a sharp decrease in signal, dropping from 85.4 to 17.45 (a reduction of approximately 79.6%), while A5 fell from 68.23 to 17.22 (about 74.8%). Secondary sensors such as A2 and A3 also exhibited a noticeable decline; for example, A2 dropped from 25.55 to 10.6 (58.5% reduction). Tests conducted in the dark showed a clear and consistent relationship between the increase in water volume and the decrease in the signal read by the sensors (Figure 6b). The main sensors, A4 and A5, consistently recorded the highest signal values across all tested volumes, exhibiting a gradual decline as volume increased. Sensor A4 decreased from 130.41 to 34.75 (73.4% reduction), while A5 dropped from 123.05 to 29.69 (75.9% reduction). Secondary sensors, such as A1 and A2, also showed a steady decline. For instance, sensor A2 decreased from 18.38 to 5.55 (69.8% reduction). All sensor values in this section are reported in arbitrary units (a.u.) following the monotonic transform defined in Section 2.4.
The glass container (Figure 7a) yielded lower signal values than the plastic container (Figure 7b), likely due to a combination of a higher refractive index (more interface reflections), wall thickness, and surface finish—factors that together reduce the effective photon flux reaching the detectors. In the glass container setup, containing the secondary sensors, A3 recorded the highest values, ranging from 39.25 to 7.76 (80.2%), while A2 also showed a marked decrease from 21.77 to 8.21 (62.3%). Sensors A0 and A1 exhibited a declining trend up to 800 mL, followed by negligible residual values beyond 1000 mL. When using the plastic container, the main sensors, A4 and A5, recorded the highest signal values across all volumes, exhibiting a gradual decrease as the volume increased. Sensor A4 dropped from 192.8 to 61.66, representing a 68.0% reduction, while A5 decreased from 184.4 to 44.2, a 76.0% reduction. Secondary sensors also followed a consistent decreasing trend. Sensor A2 fell from 29.51 to 7.84 (73.4%), A3 showed a regular pattern ranging from 4.35 to 1.53 (64.8%), and A1 decreased from 7.85 to 2.25 (71.3%). Sensor A0 maintained very low and nearly constant values throughout, starting at 0.63 and ending at 0.18 (71.4%).

3.2. Tests with Tissue Phantoms

The results obtained using a silicone layer revealed a consistent downward trend in sensor values as the water volume increased (Figure 8a). The primary channels, A4 and A5, recorded the highest signals overall, with A5 decreasing from 72,884.46 to 55,074.56 (24.4%) and A4 from 70,092.89 to 51,995.76 (25.8%). Among the remaining channels, A2 dropped from 7727.89 to 4534.67 (41.3%), A1 from above 13,000 to 2098.56 (84.0%), and A3 from 2038.13 to 1154.88 (43.3%). A0 maintained the lowest readings (592.33 to 252.78; 57.3%). The progressive reduction across all channels reflects a stable and coherent sensor response to increasing volume.
In the configuration using pork belly applied to the plastic container (Figure 8b), A3 recorded the highest absolute readings, decreasing from 25,811.76 to 18,757.27 (27.3%) at 400 mL. Channel A2 exhibited a progressive decline from 20,259.45 to 13,983.17 (30.9%). Primary channels A4 and A5 varied between 6194.17 and 5358.67 (13.5%) and between 726.29 and 559.29 (23.0%), respectively. Among the secondary channels, A1 maintained values above 3000 up to 200 mL, with a gradual decrease to 2334.78, while A0 remained relatively stable (1244.06 to 1315.76).
In tests with phantoms, it was observed that both silicone and pork belly attenuated the signal, as expected. The pork belly, being a more complex and heterogeneous medium, introduced greater variations and more pronounced attenuation, representing a more realistic challenge for the detection system. Even under these conditions, the system was able to detect volume variations.

3.3. Performance of Machine Learning Models

The evaluation of the machine learning models on phantom data (in vitro tests) demonstrated the superiority of the Random Forest model. Table 3 summarises the models’ performance.
The Random Forest model was able to predict the volume with an average error of only 25 mL, explaining 90% of the variance in the data, which is a very promising result for this stage of development. On the held-out test set, the Random Forest achieved MAE = 25 ± 4 mL and R 2 = 0.90 .

3.4. Agreement and Error Distributions on Held-Out Tissue Scenarios

Consistency between predicted and reference volumes was evaluated using Bland–Altman analysis and error histograms under two tissue configurations: (i) a plastic container covered with a ∼2 cm pork belly layer, and (ii) a glass container covered with a ∼2 cm pork belly layer. Each Bland–Altman panel displays the mean bias and 95% limits of agreement (Figure 9a and Figure 10a), while the histograms show the error distributions with P5, P50, and P95 markers (Figure 9b and Figure 10b).

4. Discussion

The results demonstrate the feasibility and potential of the SafeBladder concept. The “under clothing” recommendation arises directly from the light versus dark comparison (Figure 6), as garments form a low-lux cavity over the sensor, suppressing stray NIR and stabilising the DC baseline. The system’s sensitivity to ambient light confirms that its optimal operation is achieved when worn under clothing, creating a darkened environment that significantly enhances measurement accuracy. This aligns with known challenges in NIRS, where ambient light—including NIR content from sunlight and indoor sources—can degrade signal quality [15]. Tests performed in both lighted and dark environments elucidated the significant impact of external light interference on signal quality. Under dark conditions, especially for the main sensors A4 and A5, signals were higher, more consistent, and followed a linear, predictable decrease with increasing water volume. This linear relationship was particularly evident within the 0–400 mL range, where signal intensity varied proportionally with filling. Conversely, ambient light exposure drastically reduced signal amplitude and increased noise and dispersion, thus compromising volume detection reliability. This phenomenon results from optical interference, as ambient visible light disrupts the path of emitted infrared beams, diminishing the radiation received by photodiodes [6,15]. The system’s wearable design inherently mitigates this limitation, as its placement beneath clothing provides a naturally low-light environment that ensures optimal performance without additional hardware. In the literature, alternative strategies have been proposed to actively address ambient light interference [7]. For example, Park et al. (2025) [8] developed a wearable system that dynamically compensates for external illumination using photovoltaic, photoluminescent, and photometric modules, while Ray et al. (2025) [9] demonstrated how ambient light sensors can be fused with inertial signals to enhance robustness in real-world scenarios. Similarly, Mahato et al. (2024) [10] reviewed hybrid multimodal wearable platforms that integrate diverse biosignals for comprehensive health monitoring. In contrast to these approaches, the dark-environment placement naturally shields the sensors, simplifying the sensing pathway while maintaining consistent signal quality.
Comparative tests using plastic and glass containers in dark conditions revealed a distinct difference in signal amplitude and consistency. Plastic containers produced higher and more reliable readings, with steeper slopes in the sensor response curves, while glass containers resulted in lower-intensity signals, especially in main sensors. These differences can be attributed to the optical properties of the materials: glass, having a higher refractive index, induces internal reflections and disperses infrared signals, thereby reducing the effective signal strength reaching the sensors [16]. Moreover, variations in thickness and transparency further affect light transmission through the container walls. These findings underscore the critical importance of material selection in device and container design. Materials with minimal optical interference, such as specific translucent plastics, enhance signal transmission and reception, significantly improving system sensitivity. The data confirms that even subtle differences in material properties can markedly influence device performance.
Experiments employing a 1 cm silicone layer to simulate human skin demonstrated the system’s capacity to maintain sensitive, coherent responses to volume changes, despite signal attenuation caused by silicone’s absorptive properties. The generated sensor response curves remained well-defined and proportional to volume changes. This agrees with prior research on tissue phantoms used in NIRS validation, which emphasise the importance of optical properties and tissue-mimicking materials in system calibration and testing [17].
Testing with pork belly tissue—approximately 2 cm thick and compositionally more complex—posed a more realistic challenge. Despite this, clear signal variations were observed, especially in sensors A2 and A3, which maintained high absolute values and consistent trends up to 800 mL. Interestingly, some tests exhibited atypical responses, where signals increased with volume rather than decreased. This counterintuitive behaviour likely stems from complex light–tissue interactions. Multilayered biological tissues possess heterogeneous absorption and scattering coefficients, and increasing fluid volume may enhance internal reflection toward the receiver [6,17]. Furthermore, changes in the refractive index at the interface between tissue and liquid can alter optical paths, boosting detected signals. Variations in sensor positioning and tissue thickness may also contribute to more favourable light paths for signal reception. Although unexpected, this phenomenon highlights the intricacies of optical interactions in biological tissues and emphasises the necessity for further testing with real tissues or advanced anatomical simulators.
The robustness of the device’s response in the presence of biological tissue strongly supports its applicability in clinical scenarios. Additionally, modifications to the original prototype—specifically, the angular adjustment of LEDs and photodiodes—were instrumental in improving light interception. This sensor inclination increased the capture of reflected beams, resulting in smoother sensor response curves and more stable values across volume variations.
The system’s demonstrated sensitivity through biological tissue validates the concept of a non-invasive, wearable bladder monitoring device. It operates effectively without direct bladder contact or invasive procedures, offering a promising tool for clinical use. The application of machine learning techniques, particularly the superior performance of the Random Forest model in capturing complex, nonlinear relationships between NIRS signals and bladder volume, further enhances the system’s accuracy and robustness [18]. This type of model is particularly effective at capturing intricate interactions between variables and is more robust to noise than simple linear models.
Bland–Altman plots for the tissue scenarios (Figure 9 and Figure 10) illustrate the error structure under realistic, multilayer optical paths. They highlight the expected domain shift from non-tissue to tissue conditions, reinforcing the need for per-user calibration, improved optical coupling, and model training that explicitly includes tissue data. These agreement views complement the phantom-stage accuracy reported earlier by revealing bias and dispersion across the working range, as recommended for volumetric monitoring tools.
The main limitations of this study were the use of phantoms instead of human participants in the model training phase and the controlled laboratory conditions. Inter-individual anatomical variability (e.g., thickness of the adipose tissue layer) will be a challenge to address in future iterations, as this is essential for clinical translation. Since only one run per condition was performed (NREPS = 1), future work will incorporate repeated trials with a randomised step order, controlled strap pressure, and small re-positioning jitters to quantify repeatability and robustness.
Prior NIRS studies in urology have largely focused on hemodynamic changes during filling/voiding and on diagnostic classification, with fewer works targeting absolute volume estimation. A notable exception is Molavi et al., who demonstrated the use of wireless suprapubic NIRS to track bladder filling to capacity [19]. Recent reviews also summarise wearable bladder-volume sensing devices, highlighting optical/NIRS as promising yet sensitive to coupling and ambient light [20]. SafeBladder differs by combining a low-cost, angled dual-wavelength (850/940 nm) array with supervised ensemble modelling, yielding phantom-stage MAE ≈ 25 mL and R 2 0.90 , and by explicitly quantifying ambient-light and container-material effects.

5. Conclusions and Future Work

This work demonstrated a proof-of-concept for SafeBladder, a wearable near-infrared spectroscopy device designed for non-invasive bladder volume monitoring. Under controlled laboratory conditions, the system reliably detected volume changes, and the application of machine learning algorithms, particularly Random Forest, enabled accurate volume estimation with promising phantom-stage results (MAE∼25 mL; R 2 0.90 ). These findings establish the feasibility of continuous, non-invasive monitoring and lay the groundwork for future clinical translation. Several engineering challenges remain to be addressed before deployment, including optimising power consumption through duty-cycling strategies and low-power modes, balancing wireless transmission trade-offs between BLE and Wi-Fi, ensuring real-time performance with efficient on-device feature extraction and inference, and improving ergonomics to guarantee robust skin–sensor coupling, belt comfort, and consistent placement. Addressing these factors will be critical for reliable operation in everyday environments. Looking ahead, SafeBladder holds significant potential for improving the autonomy and quality of life of patients with neurogenic bladder, while also having broader applications, such as monitoring urinary incontinence in the elderly, supporting postoperative recovery, guiding inpatient diuretic management, and enabling paediatric follow-up in conditions like spina bifida or cerebral palsy. The next phase of development will focus on ergonomic redesign, user-specific calibration, multi-centre clinical validation, and integration with the mobile application to provide real-time feedback to users and caregivers.

Author Contributions

Conceptualization, D.O. and R.P.; methodology, D.S., F.S. and L.R.; validation, D.S., R.P. and S.M.; formal analysis, D.O.; investigation, D.O. and D.S.; writing—original draft preparation, D.O. and D.S.; writing—review and editing, D.O. and R.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Portuguese Foundation of Science under the Junior Researcher Contract 10.54499/2020.01522.CEECIND/CP1612/CT0001, and Project UIDB/50022/2020.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

The authors gratefully acknowledge the support from Portuguese Foundation of Science under the Junior Researcher Contract 10.54499/2020.01522.CEECIND/CP1612/CT0001, and the funding of Project UIDB/50022/2020.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
NBNeurogenic Bladder
UTIsUrinary Tract Infections
ICIntermittent Catheterisation
CICClean Intermittent Catheterisation
NIRSNear-Infrared Spectroscopy
LEDsLight-Emitting Diodes
ADCAnalogue-to-Digital Converter
FWHMFull Width at Half Maximum
FOVField of View
DCDirect Current
SARSuccessive Approximation Register
SPSSamples per Second
ENOBEffective Number of Bits
PDPhotodiode Detector
PLAPolylactic Acid
BMIBody Mass Index
SVRSupport Vector Regression
RBFRadial Basis Function
RFRandom Forest
MAEMean Absolute Error
a.uarbitrary units

References

  1. Verpoorten, C.; Buyse, G.M. Neurogenic bladder: Medical treatment. Pediatr. Nephrol. 2008, 23, 717–725. [Google Scholar] [CrossRef] [PubMed]
  2. Kinnear, N.; Barnett, D.; O’Callaghan, M.; Horsell, K.; Gani, J.; Hennessey, D. The impact of catheter-based bladder drainage method on the risk of urinary tract infection in spinal cord injury and neurogenic bladder: A systematic review. Neurourol. Urodyn. 2020, 39, 854–862. [Google Scholar] [CrossRef] [PubMed]
  3. Ginsberg, D. The Epidemiology and Pathophysiology of Neurogenic Bladder. Am. J. Manag. Care 2013, 19, 6. [Google Scholar]
  4. Dorsher, P.T.; McIntosh, P.M. Neurogenic Bladder. Hindawi Publ. Corp. 2012, 2012, 816274. [Google Scholar] [CrossRef] [PubMed]
  5. Brouwer, T.A.; van den Boogaard, C.; van Roon, E.N.; Kalkman, C.J.; Veeger, N. Non-invasive bladder volume measurement for the prevention of postoperative urinary retention: Validation of two ultrasound devices in a clinical setting. J. Clin. Monit. Comput. 2018, 32, 1117–1126. [Google Scholar] [CrossRef] [PubMed]
  6. Matcher, S.J.; Cope, M.; Delpy, D.T. Use of water absorption spectra to quantify changes in the concentration of tissue chromophores in near infrared spectroscopy. Phys. Med. Biol. 1994, 39, 177–196. [Google Scholar] [CrossRef] [PubMed]
  7. Song, R.; Cho, S.; Khan, S.; Park, I.; Gao, W. Lighting the Path to Precision Healthcare: Advances and Applications of Wearable Photonic Sensors. Adv. Mater. 2025, 37, e2407429. [Google Scholar] [CrossRef] [PubMed]
  8. Park, C.; Park, D.Y.; Zhang, H.; Yang, D.S.; Redden, C.R.; Yoo, S.; Park, T.W.; Zhou, M.; Yoo, J.; Sim, Y.; et al. Adaptive electronics for photovoltaic, photoluminescent, and photometric methods in power harvesting for wireless wearable sensors. Nat. Commun. 2025, 16, 5808. [Google Scholar] [CrossRef] [PubMed]
  9. Ray, L.S.S.; Geißler, D.; Liu, M.; Zhou, B.; Suh, S.; Lukowicz, P. ALS-HAR: Harnessing wearable ambient light sensors to enhance IMU-based human activity recognition. In Pattern Recognition. Proceedings of the 26th International Conference on Pattern Recognition (ICPR) 2024; Lecture Notes in Computer Science; Antonacopoulos, A., Chaudhuri, S., Chellappa, R., Liu, C.L., Bhattacharya, S., Pal, U., Eds.; Springer: Cham, Switzerland, 2025; Volume 15329, pp. 133–147. [Google Scholar]
  10. Mahato, K.; Saha, T.; Ding, S.; Sandhu, S.S.; Chang, A.-Y.; Wang, J. Hybrid multimodal wearable sensors for comprehensive health monitoring. Nat. Electron. 2024, 7, 735–750. [Google Scholar] [CrossRef]
  11. Zhi, H.; Zolotova, M. Wearable devices & elderly: A bibliometric analysis of 2014–2024. Healthcare 2025, 13, 2066. [Google Scholar] [CrossRef] [PubMed]
  12. Akkus, O.; Kizilgul, M. Evaluation of skin and subcutaneous adipose tissue thickness for optimal insulin injection. J. Diabetes Metab. 2012, 3, 8. [Google Scholar] [CrossRef]
  13. Tahan, N.; Khademi, K.; Mohseni-Bandpei, M.; Mikaili, S.; Baghban, A.; Jaberzadeh, S. Measurement of superficial and deep abdominal muscle thickness: An ultrasonography study. J. Physiol. Anthropol. 2016, 35, 17. [Google Scholar] [CrossRef] [PubMed]
  14. Pogue, B.W.; Patterson, M.S. Review of tissue simulating phantoms for optical spectroscopy, imaging and dosimetry. J. Biomed. Opt. 2006, 11, 041102. [Google Scholar] [CrossRef] [PubMed]
  15. Ferrari, M.; Mottola, L.; Quaresima, V. Principles, techniques, and limitations of near-infrared spectroscopy. Can. J. Appl. Physiol. 2004, 29, 463–487. [Google Scholar] [CrossRef] [PubMed]
  16. Cerussi, A.E.; Berger, A.J.; Bevilacqua, F.; Shah, N.; Jakubowski, D.; Butler, J.; Holcombe, R.F.; Tromberg, B.J. Sources of absorption and scattering contrast for near-infrared optical mammography. Acad. Radiol. 2001, 8, 211–218. [Google Scholar] [CrossRef] [PubMed]
  17. Kwon, I.H.; Kim, H.-S.; Kim, D.Y.; Lee, H.-J.; Lee, S.-W. Utilizing Optical Phantoms for Biomedical-optics Technology: Recent Advances and Challenges. Curr. Opt. Photonics 2024, 8, 327–344. [Google Scholar]
  18. Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
  19. Molavi, B.; Shadgan, B.; Macnab, A.J.; Dumont, G.A. Noninvasive optical monitoring of bladder filling to capacity using a wireless near infrared spectroscopy device. IEEE Trans. Biomed. Circuits Syst. 2014, 8, 325–333. [Google Scholar] [CrossRef] [PubMed]
  20. Nasrabadi, M.Z.; Tabibi, H.; Salmani, M.; Torkashvand, M.; Zarepour, E. A comprehensive survey on non-invasive wearable bladder volume monitoring systems. Med. Biol. Eng. Comput. 2021, 59, 1373–1402. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Final 3D-printed prototype, illustrating the positioning of the transmitter and receiver housings. (a) Frontal view of the final prototype, showing the integrated housing for the transmitter (circles) and receiver (squares). (b) Cross-sectional view highlighting the inclination angle incorporated in the final prototype.
Figure 1. Final 3D-printed prototype, illustrating the positioning of the transmitter and receiver housings. (a) Frontal view of the final prototype, showing the integrated housing for the transmitter (circles) and receiver (squares). (b) Cross-sectional view highlighting the inclination angle incorporated in the final prototype.
Electronics 14 03525 g001
Figure 2. Breadboard layout of the optical acquisition system. Primary and secondary LEDs, primary (A5, A4, A1) and secondary (A0, A2, A3) photodiodes, the four-channel analogue amplifier module, and the Arduino Uno are highlighted for clarity.
Figure 2. Breadboard layout of the optical acquisition system. Primary and secondary LEDs, primary (A5, A4, A1) and secondary (A0, A2, A3) photodiodes, the four-channel analogue amplifier module, and the Arduino Uno are highlighted for clarity.
Electronics 14 03525 g002
Figure 4. In vitro experimental setup illustrating the prototype positioned against different container materials. (a) Plastic container. (b) Glass container.
Figure 4. In vitro experimental setup illustrating the prototype positioned against different container materials. (a) Plastic container. (b) Glass container.
Electronics 14 03525 g004
Figure 5. In vitro experimental setup showing the prototype tested with two tissue-mimicking layers. (a) Silicone layer to simulate a homogeneous tissue structure. (b) Raw pork belly to reproduce the complexity of human abdominal tissues.
Figure 5. In vitro experimental setup showing the prototype tested with two tissue-mimicking layers. (a) Silicone layer to simulate a homogeneous tissue structure. (b) Raw pork belly to reproduce the complexity of human abdominal tissues.
Electronics 14 03525 g005
Figure 6. Effect of ambient light on sensor reading. (a) Sensor reading depending on the amount of water in a lit environment. (b) Sensor reading depending on the amount of water in a dark environment.
Figure 6. Effect of ambient light on sensor reading. (a) Sensor reading depending on the amount of water in a lit environment. (b) Sensor reading depending on the amount of water in a dark environment.
Electronics 14 03525 g006
Figure 7. Effect of container material on sensor readings in a dark environment. (a) Sensor reading depending on the amount of water in a glass container. (b) Sensor reading depending on the amount of water in a plastic container.
Figure 7. Effect of container material on sensor readings in a dark environment. (a) Sensor reading depending on the amount of water in a glass container. (b) Sensor reading depending on the amount of water in a plastic container.
Electronics 14 03525 g007
Figure 8. Effect of phantom material on sensor readings in a dark environment using a plastic container. (a) Sensor reading depending on the amount of water using a silicone phantom. (b) Sensor reading depending on the amount of water using a pork belly phantom.
Figure 8. Effect of phantom material on sensor readings in a dark environment using a plastic container. (a) Sensor reading depending on the amount of water using a silicone phantom. (b) Sensor reading depending on the amount of water using a pork belly phantom.
Electronics 14 03525 g008
Figure 9. Agreement analysis and error distribution for the plastic + pork belly scenario. Solid line: mean bias; dashed lines: 95% limits of agreement. (a) Bland–Altman: plastic + pork belly (held-out test). (b) Error distribution: plastic + pork belly (held-out test).
Figure 9. Agreement analysis and error distribution for the plastic + pork belly scenario. Solid line: mean bias; dashed lines: 95% limits of agreement. (a) Bland–Altman: plastic + pork belly (held-out test). (b) Error distribution: plastic + pork belly (held-out test).
Electronics 14 03525 g009
Figure 10. Agreement analysis and error distribution for the glass + pork belly scenario. Solid line: mean bias; dashed lines: 95% limits of agreement. (a) Bland–Altman: glass + pork belly (held-out test). (b) Error distribution: glass + pork belly (held-out test).
Figure 10. Agreement analysis and error distribution for the glass + pork belly scenario. Solid line: mean bias; dashed lines: 95% limits of agreement. (a) Bland–Altman: glass + pork belly (held-out test). (b) Error distribution: glass + pork belly (held-out test).
Electronics 14 03525 g010
Table 1. Optical front-end and acquisition specifications.
Table 1. Optical front-end and acquisition specifications.
Component and Key Characteristics, Advantages, Limitations
Emitters (IR LEDs)Dual peaks at 850 nm and 940 nm (NIR window); moderate FWHM. Rationale: spectral contrast (water absorption rises toward ∼970 nm; scattering decreases with λ ). Advantages: compact, low-cost. Limitations: radiant intensity/beam pattern vendor-dependent; sensitive to tilt/skin coupling.
Detectors
(Si photodiodes)
Large-area, wide FOV; responsivity 700–1000 nm. Advantage: high responsivity. Limitation: susceptible to ambient NIR—needs shielding/clothing and synchronous sampling.
Transimpedance (TLV333)Zero-drift, rail-to-rail op-amp; stable DC gain for slow-varying signals. Advantage: low offset/drift. Limitation: bandwidth–gain trade-off (configured for 100 Hz
effective sampling).
ADC (ADS1115)16-bit SAR; programmable gain; max 860 SPS. Advantage: adequate ENOB for reflectance changes. Limitation: multiplexed channels’ cap aggregate rate.
Sampling protocol100 Hz per channel; 500 samples/channel/step (5 s window); mean used per channel. Advantage: averages sensor flicker and micro-motion. Limitation: 5 s latency per new estimate
in this prototype.
MechanicalAngled LED/PD seats to intercept back-scattered paths. Advantage: increased capture of useful photons. Limitation: requires consistent belt placement.
Table 2. Acquisition summary: one run per condition. At each volume point, the mean of 500 samples per channel was stored.
Table 2. Acquisition summary: one run per condition. At each volume point, the mean of 500 samples per channel was stored.
ConditionVolume PointsPer-Channel Raw Reads
Plastic (dark)9 9 × 500
Glass (dark)7 7 × 500
Silicone (1 cm, plastic)9 9 × 500
Pork belly (∼2 cm, glass)7 7 × 500
Pork belly (∼2 cm, plastic)9 9 × 500
Baseline light3 3 × 500
Baseline dark3 3 × 500
Table 3. Performance of Machine Learning models in predicting volume in phantom tests.
Table 3. Performance of Machine Learning models in predicting volume in phantom tests.
ModelMAE (mL)R2
Linear Regression42 ± 50.78
Random Forest25 ± 40.90
Support Vector Regression30 ± 50.85
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

Sousa, D.; Santos, F.; Rodrigues, L.; Prado, R.; Moreira, S.; Oliveira, D. SafeBladder: Development and Validation of a Non-Invasive Wearable Device for Neurogenic Bladder Volume Monitoring. Electronics 2025, 14, 3525. https://doi.org/10.3390/electronics14173525

AMA Style

Sousa D, Santos F, Rodrigues L, Prado R, Moreira S, Oliveira D. SafeBladder: Development and Validation of a Non-Invasive Wearable Device for Neurogenic Bladder Volume Monitoring. Electronics. 2025; 14(17):3525. https://doi.org/10.3390/electronics14173525

Chicago/Turabian Style

Sousa, Diogo, Filipa Santos, Luana Rodrigues, Rui Prado, Susana Moreira, and Dulce Oliveira. 2025. "SafeBladder: Development and Validation of a Non-Invasive Wearable Device for Neurogenic Bladder Volume Monitoring" Electronics 14, no. 17: 3525. https://doi.org/10.3390/electronics14173525

APA Style

Sousa, D., Santos, F., Rodrigues, L., Prado, R., Moreira, S., & Oliveira, D. (2025). SafeBladder: Development and Validation of a Non-Invasive Wearable Device for Neurogenic Bladder Volume Monitoring. Electronics, 14(17), 3525. https://doi.org/10.3390/electronics14173525

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