Next Article in Journal
A Microfluidic Device Integrating a Glucose Sensor and Calibration Function for Cell-Based Assays
Previous Article in Journal
Gait Phase Recognition in Multi-Task Scenarios Based on sEMG Signals
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improving the Accuracy of a Wearable Uroflowmeter for Incontinence Monitoring Under Dynamic Conditions: Leveraging Machine Learning Methods

by
Faezeh Shanehsazzadeh
1,*,
John O. L. DeLancey
2 and
James A. Ashton-Miller
1
1
Department of Mechanical Engineering, University of Michigan, Ann Arbor, MI 48109, USA
2
Department of Obstetrics & Gynecology, University of Michigan, Ann Arbor, MI 48109, USA
*
Author to whom correspondence should be addressed.
Biosensors 2025, 15(5), 306; https://doi.org/10.3390/bios15050306
Submission received: 26 February 2025 / Revised: 6 May 2025 / Accepted: 7 May 2025 / Published: 11 May 2025
(This article belongs to the Special Issue Advances in Flexible and Wearable Biosensors)

Abstract

:
Urinary incontinence affects many women, yet there are no monitoring devices capable of accurately capturing flow dynamics during everyday activities. Building on our initial development of a wearable personal uroflowmeter, this study enhances the device’s performance under realistic, dynamic conditions similar to those encountered in daily living. We integrated an optimized eight-vane Etoile flow conditioner with a 0.2D opening into the device. Both computational fluid dynamics simulations and experimental tests demonstrated that this flow conditioner significantly reduced turbulence intensity by 82% and stabilized the axial velocity profile by 67%, increasing the R2 of flow rate measurements from 0.44 to 0.92. Furthermore, our machine learning framework—utilizing a support vector machine (SVM) and an extreme gradient boosting (XGBoost) model with principal component analysis (PCA)—accurately predicted the true flow rate with high correlations, robust performance, and minimal overfitting. For the test dataset, the SVM achieved a correlation of 0.86, an R2 of 0.74, and an MAE of 2.8, whereas the XGBoost-PCA model exhibited slightly stronger performance, with a correlation of 0.88, an R2 of 0.76, and an MAE of 2.6. These advances established a solid foundation for developing a reliable, wearable uroflowmeter capable of effectively monitoring urinary incontinence in real-world settings.

1. Introduction

Urinary incontinence (UI), the involuntary loss of urine, affects approximately 200 million people worldwide, with up to 55% of women experiencing it at some point in their lives [1,2,3]. The prevalence of UI increases with age, affecting 17% of women over 20 years old and up to 77% of elderly women [2,4,5]. Additionally, 37.5% of young women (ages 30–50) in primary care settings report stress incontinence [6]. Stress urinary incontinence (SUI), a common subtype, is characterized by involuntary leakage during increases in abdominal pressure associated with jump landings, lifting, sneezing, and coughing [1,2]. Despite its prevalence, UI remains underdiagnosed and undertreated, with only 25% of affected women seeking care [2]. This condition significantly impacts quality of life, leading to psychological distress and greater burdens on health resources [4,7], yet the causes of UI in adult women are not fully understood [8].
Diagnosis typically requires a comprehensive evaluation involving detailed history-taking, physical exams, and urodynamic testing [2,4]. It is crucial to determine the severity of symptoms to tailor treatment effectively [1]. This relies on closely monitoring the frequency and volume of urine leakage to identify triggers and underlying issues. This approach allows healthcare providers to refine treatment strategies, offering personalized interventions that significantly enhance patient quality of life [9,10]. While urodynamic tests are considered the gold standard for assessing bladder and urethral function and identifying urinary incontinence subtypes, their invasive nature and high costs limit widespread application [2,7,11,12]. Clinicians often use validated questionnaires and leakage diaries to track symptoms [13], although these methods can be impractical because patients do not always notice or remember leakage episodes, with recall bias particularly affecting older adult data [1,2,14,15,16]. Pad tests quantify urine loss by measuring the weight gain of absorbents over a fixed time period (e.g., 24 h), but do not capture real-time flow rates [1,13,17]. Alternatives such as wetness sensor wearables [18,19,20], urine collection bags [17], and the paper towel test [21] are available but fail to measure instantaneous flow rates or the number of leakage episodes during activities of daily living (ADL).
Uroflowmetry measures urine flow rates and voiding time, typically in a seated posture on a commode, but requires specialized lab equipment and settings, obviating its application in monitoring daily incontinence [22,23]. Recent advances aim to improve flexibility through portable and handheld devices, but these face challenges of inaccuracy and sensitivity to movement and urine salinity [22,23]. Although home-based monitoring solutions present potential advantages, they are often limited by complexity and cost, emphasizing the need for accessible, reliable devices for everyday use [24,25,26].
To address these issues, we designed a novel wearable personal uroflowmeter (PUF) for monitoring SUI during ADL [27,28]. The PUF attaches over the urethral meatus in women, measuring urine flow rates and volume during ADL. It also incorporates a waist-mounted inertial measurement unit (IMU) to capture physical activity and posture in real-time to enable post hoc identification of which ADL triggered a leakage episode, along with the amount of leakage. This article describes enhancements to the PUF design and signal processing in order to achieve precise incontinence monitoring under dynamic conditions by utilizing machine learning (ML) techniques.
Briefly, the fully instrumented PUF integrates both measurement and determination units (Figure 1). The measurement unit features a funnel-shaped housing placed over the urethral meatus to collect urine and includes integrated flow and temperature sensors. This assembly connects to a signal conditioner unit (SCU) worn at the waist. Urine flow rate and temperature are measured using hotwire anemometry principles through a modified version of the flow rate sensor developed by Lin et al. [29], capable of measuring leakage rates from a single droplet to 40 mL/s. The rigid urine channel, with a 10 mm diameter circular cross-section, was rapid-prototyped using a Form 2 3D printer (Formlabs, Somerville, MA, USA). To ensure comfort across various labial shapes, the funnel was overmolded onto the rigid channel using flexible medical-grade silicone elastomer MED2-4220 (Nusil Technology LLC, Carpinteria, CA, USA) [27].
This paper examines the performance of an integrated PUF system with an added flow conditioner (FC) under dynamic conditions that replicate an ADL such as coughing. The system’s efficacy in accurately measuring flow rates over short intervals and across diverse flow rates was assessed. By utilizing computational fluid dynamics (CFD) modeling and machine learning, the study sought to optimize system performance. The goal was to validate the PUF as a reliable tool for continuous monitoring, while addressing the complexities of real-world urinary incontinence scenarios.

2. Materials and Methods

2.1. Research Design

A simulation-driven conceptual design of a flow conditioner intended for integration into an existing wearable uroflowmeter was developed, aiming to enhance measurement performance under dynamic flow rate conditions. The optimized blade configuration was initially evaluated through benchtop experiments. Additional experimental tests were then conducted to generate a more diverse dataset under varying flow conditions, providing the basis for training and validating machine learning models. These models were employed to analyze experimental data, enabling further refinement of system accuracy and reliability.

2.2. Approach

Women with mild-to-moderate incontinence can experience a maximum flow rate during coughing, reaching up to 10 mL in 0.5 milliseconds, which corresponds to a flow rate of 20 mL/s [21,28]. To evaluate our system based on this data, we designed a servo syringe pump system (Figure 2). Briefly, the syringe pump incorporated a commercial 550 mL syringe with a replaced 3D-printed hub designed to decrease flow resistance to high flow rates that was easily connected to a flexible tube with an inner diameter of 9 mm. This inner diameter matched the inner sagittal diameter of the urethra, which has been measured at 8.4 ± 1.9 mm using a vaginal scan and 11.5 ± 2.2 mm when measured using a rectal scan [30]. This servo pump enabled precise control over both flow rate and timing, with a relative standard deviation (RSD) of less than 2.2%.
Figure 2 shows the setup incorporating the syringe pump utilized in the calibration process. The sensor housing was secured in a 3D-printed holder with its urine channel in a vertical orientation, similarly to the urine channel in ADL tests with participants upright and walking or running. Pneumatic air line tubing (OD: 12 mm, ID: 9 mm) was used to transfer water from the syringe to the sensor. A lab stand was used to align the tube above the measurement channel. The fluid output from the measurement channel was directed into a large beaker placed on a high-precision scale (Sartorius ENTRIS6202-1S, Göttingen, Germany), which served as the standard reference. The scale had a resolution of 0.01 gr and was connected to a Lenovo ThinkPad (Lenovo, Morrisville, NC, USA) computer for continuous recording of the instantaneous weight as the beaker filled with water. The PUF sensor was connected to its signal conditioner unit, which recorded the data on a Kingston 32 GB microSD (Kingston Technology Company, Fountain Valley, CA, USA) memory card inside it. The data were uploaded and analyzed after all measurements were completed.
The system underwent optimization and performance enhancement prior to the calibration phase, which involved a series of experimental tests using the setup depicted in Figure 2, simulating human body conditions. To do so, a two-gallon, temperature-controlled water bath (PolyScience, Niles, IL, USA) was used to maintain temperatures between 35 °C and 39 °C. Thermal insulation was applied to the syringe and fluid delivery pipes in the test setup to maintain temperature stability throughout each measurement cycle. As shown in the inset of Figure 2, this insulation included rubber pneumatic pipes, fiberglass, plastic, aluminum foil, foam, and additional rubber layers.
Despite these precautions, the water temperature in the syringe could change when transferred from the water bath. To address this, the water temperature passing through the sensor was measured with a Keysight E2308A thermistor (Keysight Technologies, Santa Rosa, CA, USA) at the beginning and end of each test cycle. The thermistor was housed in a homemade double-walled insulated container filled with bath water to maintain thermal equilibrium, minimizing response time delays and ensuring accurate temperature measurements.
During the optimization phase tests, when the sensor was mounted in its holder, we observed that the sensor did not respond as expected. As will be shown in Section 3 (Results), the coefficient of determination (R2) between the flow sensor output and the different flow rates applied to the sensors was only 0.44.
The unsatisfactory response was hypothesized to be due to turbulence in the flow as it entered the measurement channel. In other words, the flow structure significantly influenced measurement accuracy and system performance, particularly when swirl flows and undeveloped velocity profiles were present. For reliable in situ operation, it is known to be essential for flowmeters—typically calibrated under laboratory conditions with fully developed, swirl-free flow—to operate under similar conditions in practice, though practical applications often involve distorted flow conditions [31,32,33].
To test this hypothesis, an open conical channel was designed to maintain laminar flow within the specified flow rate range, with the sensor placed inside. The channel featured a radiused transition from a 7.5 mm to a 2.1 mm diameter. The larger end radius allowed the channel to accommodate higher flow rates, while the smaller end radius provided effective flow control and constriction. The gradual change in radius facilitated smooth flow transitions without inducing turbulence. Under these conditions, the R2 value improved significantly to 0.98.
Having confirmed the hypothesis, it became essential to address flow disturbances and reduce turbulence during measurements with the sensor positioned in the measurement channel. Typically, achieving a proper flow velocity profile requires at least 30 L/D of straight piping upstream, where L is the pipe length and D is its diameter [34,35]. However, applying such a long, straight pipe was not practical given the spatial constraints of our measurement channel, which was only 1 cm in length. An alternative approach was to use a flow conditioner combined with a shorter settling length. This device enhanced flow profile development and minimized swirl by homogenizing the velocity distribution, eliminating disturbances, and redistributing the flow into a more stable and uniform pattern [32,33,35].

2.3. Flow Conditioner Design and Optimization

Among various FCs recommended in the flow metering standard ISO 5167-1, such as tube bundles, Gallagher, K-Lab NOVA, NEL (Spearman), Zanker flow conditioners, Etoile, AMCA egg box, and Sprenkle devices [32,36], the Etoile FC has been extensively studied for performance enhancements to operate effectively with minimal upstream settling lengths [31,34]. For example, a compact D/8 eight-vane Etoile FC design effectively reduces swirls and enhances flow, as demonstrated by Laws et al. [31,33]. Initially, the proposed short Etoile unit had a central wake caused by a solid blockage at the pipe centerline where the vanes meet [31]. Laws and Ouazzane addressed this by creating an “open” version, removing the central portion [33]. While the standard Etoile design required a longer downstream settling length because of slower wake mixing, the open Etoile unit, with its 0.2D open center, effectively reduced swirl and mitigated upstream flow nonuniformities, improving downstream conditions [31,33]. With this understanding, we used CFD modeling to analyze and compare various FCs, including the Etoile FC. Our results showed that an eight-vane Etoile flow conditioner with a 0.2D opening is the optimal choice for our compact measurement channel.
The CFD model using COMSOL Multiphysics 5.6 software was developed to estimate flow behavior around the sensor and evaluate the performance of FCs during optimization studies. The Turbulent Flow, k-ε interface in COMSOL was used to effectively model and predict turbulent fluid behavior because of its proven accuracy in high-Reynolds-number conditions [37]. In this study, turbulence intensity (T I ) along the sensor was employed as a comparative metric to evaluate the performance of various flow conditioner structures. Turbulence intensity was calculated using the relationship T I = k / U [38], where k denotes the turbulent kinetic energy measured in m 2 / s 2 and U is the velocity measured in m / s . Therefore, T I is a nondimensional parameter quantifying the strength of turbulent fluctuations relative to the flow velocity. Furthermore, the FC’s ability to homogenize the velocity profile highlights the importance of comparing time-averaged axial velocity components along the downstream horizontal line at the sensor position for different design structures.
The CFD model of the measurement channel is shown in Figure 3. The sensor’s glass substrate was represented as a rectangular prism within the measurement channel, with the software modeling only the fluid region and excluding the parts of the prism outside the channel. The attack angle shown in the model was included because experimental evidence indicated that a small sensor attack angle was critical to prevent fluid separation on the side of the sensor die where the filaments are deposited. Without this inclination, eddy currents formed over the filament, thereby increasing turbulence and leading to inconsistent results. The upper side of the measurement channel served as the inlet, and the lower side was designated as the outlet.
We then integrated the FC into the measurement channel. Based on the FC design proposed by Laws et al. [31], for a measurement channel diameter of 1 cm, the optimal flow conditioner length was set at D/8 = 1.25 mm, with a 2 mm opening. The vane width, constrained by the capabilities of the Form 2 3D printer (Formlabs, Somerville, MA, USA), was chosen at 40 µm, the minimum achievable with this printer. The structure of this design is illustrated in Figure 4a.
In the next phase, we refined the design for seamless integration and optimal performance within our system. This involved conducting optimization studies to determine the best vane shape, count, width, flow conditioner length, and sensor positioning relative to the FC’s vanes (Figure 4. Given the limited size of our measurement channel and the benefits of reduced vane count to minimize flow obstruction and turbulence, we compared eight-vane and three-vane Etoile configurations (Figure 4b,e). To mitigate the flow separation and turbulence caused by sharp-edged vanes, we explored airfoil-shaped vanes designed for smoother aerodynamics (Figure 4c). After identifying the upstream eight-vane Etoile as the most effective configuration, we further refined it by increasing the height to 2 mm (Figure 4d,f) to ensure sufficient settling lengths for optimal flow stabilization. This adjustment represented the maximum permissible height above the sensor within the measurement channel. We also tested the sensor’s positioning relative to the vanes—either directly beneath a vane or positioned between two vanes (Figure 4g,h). Then, the turbulence intensity and velocity profile along the sensor for all configurations were analyzed.
The selected design was fabricated using a Form 2 3D printer. To address potential 3D printing errors, multiple parts were printed to ensure precise dimensional accuracy. The flow conditioner was affixed upstream of the sensor within the measurement channel (Figure 5). The literature suggests that positioning flow conditioners closer to the disturbance source can enhance their effectiveness in mitigating flow disturbances [38]. Because of the limited space available upstream of the sensor in our compact measurement channel, the flow conditioner was placed at the entry point of the channel. This positioning was also considered in the CFD model.

2.4. Data Collection and Processing

2.4.1. Dataset and Preprocessing

Data were collected over nine measurement cycles, with each cycle employing 14 distinct flow rates ranging from 0 to 20 mL/s. Each flow rate was applied for a duration between 2 and 6 s, with a one-minute interval between successive flow rates. The sensors’ outputs, along with corresponding timestamps, were recorded onto the memory card. Post-experiment, the data were extracted and processed by converting sensor readings to millivolts and timestamps to seconds. Each measurement cycle was then segmented to identify tests conducted at different flow rates.
The PUF’s sensors’ die contained two filaments, each identically designed and sensitive to both the temperature and flow rate of the fluid passing over them. By operating at different input power levels, one filament primarily responds to flow rate while the other is more sensitive to temperature [27,29]. By leveraging the outputs from these two filaments, both flow rate and temperature can be measured. Despite the intended design, the temperature-sensitive filament exhibited some sensitivity to flow rate. Given the concurrent variability in temperature and flow rate during measurements, feature extraction from the temperature sensor output is challenging. To address this, we subtracted the outputs of the two sensors—after applying min–max normalization to compensate for differences in the sensors’ gain—to yield a single, combined output. In addition, the true flow rate and temperature values were obtained from the syringe pump system and the Keysight thermostat, respectively. Consequently, the dataset comprised 126 measurements, with each entry including the flow rate sensor output (FSO), the flow rate–temperature differential (FTD), timestamps (t), and the corresponding true flow rate (TFR) and true temperature (TT).
Machine learning methods were then employed to analyze the data and evaluate the system’s performance. The ML algorithm was expected to model the relationship between sensor outputs and the corresponding flow rate.

2.4.2. Feature Selection and Transformation

Data normalization/standardization is a critical preprocessing step to enhance ML model performance [39]. Among the different methods evaluated, Z-score standardization was chosen for its effectiveness in achieving comparable feature distributions. This method standardizes each feature by centering it around a mean of zero and scaling to unit variance, ensuring that features with different scales (such as FSO and FTD) contribute equitably without disproportionately affecting the results.
Selecting the right features is a fundamental aspect of ML. By reducing dimensionality and concentrating on the most pertinent variables, feature selection helps decrease error rates and improve the overall effectiveness of models [40,41]. Although feature reduction was not our primary focus because of the limited number of inputs, we explored the potential benefits of combining FSO and FTD, given their sensitivities to temperature and flow rate, respectively. One approach considered was combining FSO and FTD into a single metric (FTS) to better capture their relationship with TFR. To mitigate multicollinearity and extract the most informative components, we applied principal component analysis (PCA), which transforms correlated variables into uncorrelated principal components [40,42]. Additionally, kernel PCA was evaluated to capture potential nonlinear relationships when the data were not linearly separable [43].
To quantify associations among these variables, Spearman correlation analysis was performed, highlighting their links to TFR. Based on these insights, correlation-based feature selection (CFS) was considered to identify feature subsets with strong correlations to the target variables [39]. Finally, we evaluated machine learning models’ performance using different feature subsets.

2.4.3. Machine Learning Models

We focused on widely used machine learning models relevant to biosensors, prioritizing regression-based supervised methods with low computational costs. Given their proven effectiveness in processing wearable biosensor data, we considered four models: support vector machine (SVM), random forest (RF), extreme gradient boosting (XGBoost), and neural network (NN) [39,44,45,46]. RF and XGBoost are ensemble methods that leverage decision trees, while SVMs use kernel functions to effectively handle nonlinear relationships. Additionally, NNs use layered neurons and backpropagation to learn complex patterns and nonlinear relationships [44].
Random forest improves accuracy and reduces overfitting by constructing an ensemble of decision trees trained on random data subspaces. It measures feature importance through impurity decrease, is robust to outliers, and captures nonlinear relationships with minimal feature engineering. Its use of bagging and random feature selection mitigates overfitting, while out-of-bag error estimation aids in optimizing model parameters [39,40,41,44,45,47,48]. For instance, ref. [49] highlights the use of RF to refine feature selection and regression in an inkjet-printed, body-worn temperature sensor, demonstrating its potential to advance wearable technologies for physiological monitoring.
SVM finds the optimal hyperplane for regression by using kernel functions, which map data into higher-dimensional spaces when linear separation is not possible. Its effectiveness relies on selecting the appropriate kernel type and parameters based on the data’s characteristics. The dual problem formulation in SVM allows efficient handling of constraints and enables kernel functions to capture complex decision boundaries [40,47]. For example, ref. [50] utilized SVM to estimate blood glucose levels from breath samples, choosing SVM for its adaptability and minimal memory requirements, which rendered it ideal for developing a scalable, portable biosensor.
Ensemble methods such as XGBoost combine the strengths of multiple learners to enhance prediction accuracy [40]. This approach, based on gradient boosting machines, iteratively reduces loss by adding weak learners and evaluating their contributions to the features [39,45]. It reduces overfitting through regularization, early stopping, and sequential tree corrections. XGBoost captures nonlinear relationships with minimal feature engineering and measures feature importance using gain, cover, and weight metrics [51]. In [52], XGBoost was applied to analyze data from wearable sensors embedded in shoes, enhancing the prediction of fall risk levels in older adults. The algorithm improved the prediction’s accuracy by effectively processing complex gait data, showcasing its utility in advanced health monitoring systems.
Thus, each of these models—SVM, XGBoost, and RF—has its own advantages and limitations in biosensor applications. In this study, these models were developed and trained using the training dataset to evaluate their performance.
NNs are also widely used in biosensor applications, such as [53], where an NN enhanced the accuracy of identifying characteristic points in wearable ECG signals despite challenges such as high noise. However, small datasets can limit ML model performance, particularly for NNs, because of overfitting risks. Typically, SVMs perform better on limited data, followed by RF, whereas NNs require extensive tuning [54,55]. To address these constraints, we utilized AutoGluon’s AutoML framework to optimize and integrate the NN effectively. AutoGluon automates hyperparameter tuning, model selection, and ensembling, employing regularization techniques (e.g., dropout) to reduce overfitting and variance through ensemble learning, thus enhancing generalization and performance [56]. By automating these processes, AutoGluon allowed us to integrate NNs with SVM, RF, and XGBoost, leveraging comprehensive optimization capabilities even in limited-data scenarios.

2.4.4. Hyperparameter Optimization

Hyperparameters for each model were tuned via an exhaustive grid search. In RF, parameters such as the number of trees, minimum samples for splits and leaves, and the bootstrap setting were optimized. Adjusting these parameters helps balance overfitting and underfitting while improving generalization [35,41,43]. In SVM models, hyperparameters such as the regularization parameter C, kernel coefficient gamma, and kernel type were optimized, while for XGBoost, the learning rate, maximum tree depth, and fraction of features used for each tree were fine-tuned to optimize model performance and prevent overfitting, ensuring the best possible balance between bias and variance. Using AutoGluon, model performance was further refined through automated hyperparameter tuning, focusing on reducing the mean square error (MSE). This streamlined the integration of the NN, XGBoost, SVM, and RF models, enhancing accuracy while minimizing manual effort intervention.
The hyperparameters and their corresponding values used during GridSearchCV are presented in Table 1. These parameters were selected based on their default settings and a range designed to encompass the expected variability in model performance. In AutoGluon, we employed similar parameters for RF, SVM, and XGBoost.

2.4.5. Evaluation Matrices

For performance evaluation, the dataset was split into training (80%) and testing (20%) sets using random stratified sampling. Cross-validation (10-fold) was applied exclusively to the training set via GridSearchCV to optimize hyperparameters. Performance metrics such as R-squared, mean absolute error (MAE), and root mean square error (RMSE) were used to assess model performance, where R-squared quantifies explained variability, MAE measures the average prediction error, and RMSE penalizes larger errors more significantly.

3. Results

Figure 6a compares the turbulence intensity along the sensor position for various FC designs, with a zoomed-in view for enhanced comparison Figure 6b. P represents the measurement channel without the sensor with laminar flow, while S0 refers to the measurement channel with a sensor under turbulent flow conditions. S1 used the configuration in Figure 4b, featuring a D/8-length, three-vane Etoile FC with a 0.2D opening. S2 used a D/8-length, eight-vane, airfoil-shaped FC with a 0.2D opening (Figure 4c), and S3 extended this design by increasing its length to 2 mm (Figure 4d). Similarly, S4 followed the configuration in Figure 4e, incorporating a D/8-length, eight-vane Etoile FC with a 0.2D opening, while S5 was built on S4 by extending the FC length to 2 mm (Figure 4f). In S6, the structure of S4 was modified by repositioning the sensor between the vanes (Figure 4g), whereas S7 followed the same approach as S6 but applied it to S5, placing the sensor between the vanes (Figure 4h). For ease of comparison, all results were normalized against the TI value of laminar flow in the measurement channel (P).
Figure 7 illustrates the performance of various flow conditioner designs in homogenizing velocity profiles. The figure shows normalized, time-averaged axial velocity profiles measured at the sensor location downstream (Figure 7a). Each curve contrasts a flow conditioner’s profile with two benchmarks: (1) the ideal laminar profile in the measurement channel (P) and (2) the turbulent profile in the sensor-equipped channel (S0). All velocities were normalized by the maximum laminar flow velocity in laminar flow.
For enhanced comparison of different FC structures with respect to velocity homogeneity, we illustrate the slope of the line connecting the initial and final points of each velocity profile. Additionally, to capture the overall variation—particularly in structures such as S6 and S7, where the velocity increased from the starting point and then decreased—we report the normalized range of velocity (NRV). The NRV was defined as the difference between the minimum and maximum velocities within the profile, normalized by the corresponding laminar flow velocity in the pipe, and is presented in each figure.
Following the above results, the eight-vane Etoile flow conditioner was chosen, 3D-printed, and installed in the measurement channel. Figure 8 presents experimental results, comparing the flow sensor output with and without FC across fluid flow rates ranging from 0 to 20 mL/s. Each point represents the mean of five measurements, with the solid line indicating the fitted curve.
In our analysis, we first applied Z-score standardization, with Figure 9a showing its effect in ensuring that FSO and FTD contributed equally to the ML models. Figure 9b presents a correlation matrix detailing the relationships between the inputs and the output, providing a deeper insight into the interdependencies among these variables. This analysis revealed not only the direct relationships, such as the strong correlation of the composite metric FTS with TFR, but how the individual features contributed to the overall prediction.
Based on these insights, we evaluated multiple models—RF, SVM, and XGBoost, with AutoGluon used for automated tuning and incorporating NNs—to determine which algorithm could best predict the flow rate from the sensor outputs. Table 1 presents the selected hyperparameters for each model among the values provided for GridSearchCV across each feature subset, including T1: FTS; T2: FTD; T3: FSO, FTS, and FTD; T4: FSO, FTS, and FTD with PCA (linear); and T5: FSO, FTS, and FTD with PCA (RBF). The table also includes the time cost for each model, incorporating grid search durations, allowing for a comparison of training times across models.
Table 1. Value ranges explored during GridSearchCV, along with the selected hyperparameters and total training times (including grid search), for each feature subset (T1–T5). Source data and analyses available; see Data Availability Statement.
Table 1. Value ranges explored during GridSearchCV, along with the selected hyperparameters and total training times (including grid search), for each feature subset (T1–T5). Source data and analyses available; see Data Availability Statement.
ModelHyperparameterValuesBest ParametersTime Cost
T1T2T3T4T5
RFn_estimators30, 40, 50, 100304030505088.8 s
max_depth10, 20, 30, 403040303030
min_samples_split2, 5, 10210252
min_samples_leaf1, 2, 444211
bootstrapTrue, FalseTrueTrueTrueTrueTrue
XGBoostn_estimators40, 50, 100, 200504040505016 s
learning_rate0.01, 0.05, 0.1, 0.20.050.050.10.10.1
max_depth3, 5, 7, 10331033
subsample0.6, 0.8, 1.01.00.81.00.60.6
colsample_bytree0.6, 0.8, 1.00.60.60.81.01
SVMC0.1, 1, 10, 100101100 2 s
Gamma‘scale’, ‘auto’, 0.1, 0.01, 0.001ScaleScaleScale
kernel‘linear’, ‘rbf’, ‘poly’, ‘sigmoid’rbfrbfrbf
NN in
AutoGloun
num_layers1, 2, 3, 4 9.1 s *
dropout_prob0.1, 0.2, 0.3, 0.4
* This time cost is for the AutoGluon model, which includes RF, SVM, XGBoost, and NN.
Finally, Table 2 summarizes the performance metrics for these models with optimized hyperparameters, including the correlation between TFR and the predicted flow rate and R2 values for both training and test sets, as well as the MAE and RMSE for the test data. These results were examined across various input combinations and with or without the application of kernel PCA. Ultimately, the best performance was achieved by the SVM model using FSO, FTD, and FTS as inputs and the XGBoost model with linear PCA applied to the same inputs. Figure 10 further illustrates the relationship between the predicted flow rates and the true flow rate, alongside the corresponding relative errors across different flow rates, for these two selected models.

4. Discussion

This study presents the process we used for improving the performance of the PUF under dynamic conditions, so as to more accurately monitor urinary incontinence in ADLs. Our approach involved hardware innovations—namely, the sensor housing design—along with a comprehensive analysis of the fluid dynamics using computational fluid dynamics and experimental validation, followed by the application of machine learning for flow rate prediction.

4.1. Sensor Performance and Flow Dynamics

Initial tests of the PUF in a dynamic environment revealed a significant challenge. As shown in Figure 8 the flow rate measurements had low accuracy (R2 = 0.44) due to turbulence. To address this, we tested the sensor in a conical channel to induce laminar flow, improving the R2 to 0.98. This confirms the importance of laminar flow for accurate sensor readings.
To achieve a more uniform flow profile in the short measurement channel, we incorporated the FC, starting with the eight-vane Etoile design, with a vane opening of 0.2D and length D/8. Our CFD simulations allowed us to compare various vane structures by analyzing normalized turbulence intensity and axial velocity profile at the sensor location.
Flow TI quantifies the magnitude of velocity fluctuations, with lower TI values ensuring more stable and accurate downstream measurements. Similarly, the axial velocity profile provides insight into flow stability and uniformity along the streamwise direction, where a lower slope and smaller NRV indicate improved consistency.
Our analysis in Figure 7 showed that the S1 configuration, with only three vanes, performed poorly, exhibiting the highest TI peak along with a steep velocity profile slope of −0.58 and an NRV of 1.05. This was likely due to the larger gaps between vanes, which allowed turbulence to persist rather than being effectively redistributed. In contrast, the denser eight-vane arrangement acted as a more effective FC, disrupting turbulence and promoting a more uniform velocity profile with reduced TI.
Comparing FC lengths revealed that increasing the FC length from 1.25 mm to 2 mm resulted in a significant TI reduction—42% for S3 versus S2 and 35% for S5 versus S4. This improvement was likely due to the extended length providing additional space for turbulence dissipation and flow reorganization, reducing the influence of upstream disturbances. As a result, the vane shape becomes less critical. Notably, at an FC length of 2 mm, both the airfoil-shaped (S3) and rectangular (S5) vanes yielded similar TI values, suggesting that the specific vane geometry had a negligible effect on turbulence under these conditions. However, the airfoil configuration produced a more uniform velocity profile, with a slope of −0.24 and an NRV of 0.46.
To better differentiate between these two vane shapes, we also evaluated the axial velocity standard deviation (SD) as a measure of temporal stability. Higher SD values indicate stronger unsteady fluctuations, whereas lower values suggest a more stabilized flow. As shown in Figure 11, the axial velocity SD for S3 ranged from 0.6% to 1.1%, while for S5, it was significantly lower, ranging from 0.2% to 0.4%. This suggests that the rectangular vane (S5) produced a steadier flow, making it the better choice. The higher fluctuations in S3 likely stemmed from the airfoil’s curved geometry, which enhanced shear layer formation and delayed wake stabilization.
Building on these findings, we further refined the S5 configuration by testing different sensor positions. The simulations indicated that positioning the sensor between the vanes decreased the measured TI by 65% (S6 vs. S4) and 60% (S7 vs. S5). This reduction was attributed to placing the sensor in a more stabilized flow region, away from high-shear and recirculation zones. Among all configurations, S7 demonstrated the best performance, achieving an 82% reduction in TI compared to S0. It also exhibited the smallest velocity profile slope (−0.11), the lowest NRV (0.25), which was 67% lower than that of S0, and a reduction in velocity SD from 0.47% to 0.25%.

4.2. Experimental Integration and Calibration

The integration of the optimized FC into the measurement channel led to a significant improvement in sensor performance. While the FC affected local flow velocity over the sensor, this impact was manageable through system calibration to compensate for the shift.
The device was at this point ready for calibration, considering variable body temperatures and dynamic conditions to ensure accurate sensor output correlation with true flow rates.

4.3. Machine Learning Model Development

To address residual turbulence, temperature variations, and the sensor’s nonlinear behavior, we developed machine learning models predicting TFR using sensor outputs FSO, FTD, and their composite metric FTS. The correlation table (Figure 9b) highlights key insights, notably the strong correlation of FTS with TFR (0.71), making it an effective predictor. FSO and FTD also showed high correlations with both FTS and TFR (FTD correlating 0.65 with TFR and 0.73 with FTS), indicating that each input captured distinct aspects of flow dynamics. This underscores the benefits of a multifeature approach, which enhances predictive performance by providing complementary information. The presence of high correlations among inputs did not hinder our analysis, as tree-based models such as RF and XGBoost inherently manage multicollinearity by emphasizing feature importance. PCA was used to reduce dimensionality and mitigate potential issues from correlated inputs. We also evaluated the SVM model, which effectively handles correlated variables, ensuring that our multifeature strategy remained robust.
Based on comparative analyses (see Table 2), we prioritized models that demonstrated strong performance on test data and maintained consistency between training and test results. Significant performance gaps would indicate overfitting and a lack of consistency across the dataset. For instance, while AutoGluon using FTD as input provided an R2 of 0.75 on test data, the training R2 was only 0.35.
Ultimately, the best-performing models were the SVM and the XGBoost-PCA with a linear kernel. The SVM achieved a training correlation of 0.88 and an R2 of 0.78, while its test performance showed a correlation of 0.86, R2 of 0.74, MAE of 2.8, and RMSE of 3.4. In comparison, the XGBoost-PCA linear model delivered even stronger training performance, with a correlation of 0.95 and an R2 of 0.9, and comparable test metrics—a correlation of 0.88, R2 of 0.76, MAE of 2.6, and a lower RMSE of 3.3. As illustrated in Figure 10, the slight advantage of the XGBoost-PCA model suggests it may provide more accurate flow rate predictions. Although RF-PCA produced results comparable to those of XGBoost-PCA, we ultimately selected XGBoost-PCA for its slightly superior performance.
These findings highlight the advantage of combining FTS, FSO, and FTD, as each contributes unique, complementary insights into flow dynamics, resulting in more robust and reliable predictions—essential for navigating the complexities of the dynamic measurement environment in our wearable uroflowmeter. Additionally, our results indicate that relative error was higher for flow rates below 3.5 mL/s, likely because of incomplete sensor coverage at low flow rates.
As the training costs for each model are presented in Table 1, it is important to highlight that these times included grid search durations. This aspect may have contributed to variations in time costs across models due to differences in the number of hyperparameter values evaluated in addition to the characteristics of the models themselves. Given our small dataset, the models with optimized hyperparameters ran swiftly.
With a carefully designed flow conditioner integrated into the measurement channel and the application of suitable machine learning models with optimized hyperparameters and optimal feature selection, the PUF system is ready for dynamic situations similar to ADLs. Overall, these findings pave the way for future advancements in monitoring technologies, offering promising solutions for improving efficiency and accuracy in practical applications.

5. Conclusions

In conclusion, this research demonstrates significant advancements in the functionality of a wearable flowmeter intended for monitoring urinary incontinence in dynamic conditions. By integrating a specifically optimized eight-vane Etoile flow conditioner featuring a 0.2D opening, the flowmeter markedly improved the stability and accuracy of flow measurements. This enhancement led to an increase in the R2 value of our measurements from 0.44 to an impressive 0.92. Moreover, the utilization of machine learning techniques achieved an R2 of 0.76 on test datasets, highlighting the strong potential of our system for practical applications. The combined use of CFD simulations, experimental validation, and machine learning modeling provides a robust framework to tackle the challenges of turbulent flow in real-time measurement scenarios. Looking forward, we plan to expand our dataset to enhance the generalizability and performance of our model across diverse conditions, ensuring its robustness and applicability in various situations. Furthermore, future research involving human subjects is being considered to comprehensively validate the effectiveness of our system and its machine learning models. These developments mark critical progress toward creating reliable monitoring devices that can significantly aid individuals managing urinary incontinence.

Author Contributions

Conceptualization, J.A.A.-M. and F.S.; methodology, F.S. and J.A.A.-M.; software, F.S.; validation, F.S.; formal analysis, F.S.; investigation, F.S.; resources, J.A.A.-M. and J.O.L.D.; data curation, F.S.; writing—original draft preparation, F.S. and J.A.A.-M.; writing—review and editing, J.A.A.-M., J.O.L.D. and F.S.; visualization, F.S.; supervision, J.A.A.-M.; project administration, J.A.A.-M.; funding acquisition, J.A.A.-M. and J.O.L.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the U.S. Public Health Service grants 1 RC2 DK122379, P30 AG024824 and Procter and Gamble (through an institutional research contract). The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets can be found at https://doi.org/10.7302/1zth-8c11.

Conflicts of Interest

Shanehsazzadeh has no conflict of interest. Ashton-Miller and DeLancey are coinventors of the wearable uroflowmeter described in U.S. Patent #US20210121112A1, “Uroflowmetry systems having wearable uroflowmeters, and methods of operating the same” [28].

Abbreviations

The following abbreviations are used in this manuscript:
ADLActivities of daily living
CFDComputational fluid dynamics
FCFlow conditioner
FSOFlow-rate sensor output
FTDDifferential of flow-rate and temperature sensors
FTSComposite metric of FSO and FTD
MAEMean absolute error
MSEMean squared error
NNNeural network
NRVNormalized range of velocity
PCAPrincipal component analysis
PUFPersonal uroflowmeter
RFRandom forest
RMSERoot mean square error
SCUSignal conditioner unit
SVMSupport vector machine
TFRTrue flow rate
TITurbulence intensity
TTTrue temperature
UIUrinary incontinence
XGBoostExtreme gradient boosting

References

  1. Wood, L.N.; Anger, J.T. Urinary Incontinence in Women. BMJ 2014, 349, g4531. [Google Scholar] [CrossRef] [PubMed]
  2. Lukacz, E.S.; Santiago-Lastra, Y.; Albo, M.E.; Brubaker, L. Urinary Incontinence in Women: A Review. JAMA 2017, 318, 1592–1604. [Google Scholar] [CrossRef] [PubMed]
  3. Wadensten, T.; Nyström, E.; Franzén, K.; Lindam, A.; Wasteson, E.; Samuelsson, E. A Mobile App for Self-Management of Urgency and Mixed Urinary Incontinence in Women: Randomized Controlled Trial. J. Med. Internet Res. 2021, 23, e19439. [Google Scholar] [CrossRef]
  4. Vaughan, C.P.; Markland, A.D. Urinary Incontinence in Women. Ann. Intern. Med. 2020, 172, ITC17–ITC32. [Google Scholar] [CrossRef]
  5. Batmani, S.; Jalali, R.; Mohammadi, M.; Bokaee, S. Prevalence and Factors Related to Urinary Incontinence in Older Adults Women Worldwide: A Comprehensive Systematic Review and Meta-Analysis of Observational Studies. BMC Geriatr. 2021, 21, 212. [Google Scholar] [CrossRef] [PubMed]
  6. Ng, S.F.; Lok, M.K.; Pang, S.M.; Wun, Y.T. Stress Urinary Incontinence in Younger Women in Primary Care: Prevalence and Opportunistic Intervention. J. Women’s Health 2014, 23, 65–68. [Google Scholar] [CrossRef]
  7. Young, C.; Cooper, D.; Mostafa, A.; Abdel-Fattah, M. The “Aberdeen Home Continence Stress Test”: A Novel Objective Assessment Tool for Female Stress Urinary Incontinence. Int. Urogynecol. J. 2023, 34, 1961–1969. [Google Scholar] [CrossRef]
  8. Li, Q.; Cheng, Y.; Shi, H.; Xue, K.; Zhou, F. Advances in the Natural History of Urinary Incontinence in Adult Females. J. Obstet. Gynaecol. 2023, 43, 2171774. [Google Scholar] [CrossRef]
  9. Hafid, A.; Difallah, S.; Alves, C.; Abdullah, S.; Folke, M.; Lindén, M.; Kristoffersson, A. State of the Art of Non-Invasive Technologies for Bladder Monitoring: A Scoping Review. Sensors 2023, 23, 2758. [Google Scholar] [CrossRef]
  10. Ben Arous, M.; Haddar, I.; Truong, A.; Ayena, J.C.; Ouakrim, Y.; El Kamel, L.; Chikhaoui, B.; Mezghani, N. Non-Invasive Wearable Devices for Urinary Incontinence Detection—A Mini Review. Front. Sens. 2023, 4, 1279158. [Google Scholar] [CrossRef]
  11. D’Alessandro, G.; Palmieri, S.; Cola, A.; Barba, M.; Manodoro, S.; Frigerio, M. Correlation between Urinary Symptoms and Urodynamic Findings: Is the Bladder an Unreliable Witness? Eur. J. Obstet. Gynecol. Reprod. Biol. 2022, 272, 130–133. [Google Scholar] [CrossRef] [PubMed]
  12. Block, V.J.; Mclntyre, L.; Sisodia, N.; Van Kuiken, M.E.; Suskind, A.M.; Bove, R. Wearables for the Bladder: Stakeholder Perspectives on Moving Multiple Sclerosis Bladder Dysfunction Interventions Into the 21st Century. Int. J. MS Care 2024, 26, 290–301. [Google Scholar] [CrossRef]
  13. Medeiros Araujo, C.; de Morais, N.R.; Sacomori, C.; de Sousa Dantas, D. Pad Test for Urinary Incontinence Diagnosis in Adults: Systematic Review of Diagnostic Test Accuracy. Neurourol. Urodyn. 2022, 41, 696–709. [Google Scholar] [CrossRef] [PubMed]
  14. Nygaard, I.; Holcomb, R. Reproducibility of the Seven-Day Voiding Diary in Women with Stress Urinary Incontinence. Int. Urogynecol. J. 2000, 11, 15–17. [Google Scholar] [CrossRef]
  15. Tincello, D.G.; Williams, K.S.; Joshi, M.; Assassa, R.P.; Abrams, K.R. Urinary Diaries: A Comparison of Data Collected for Three Days versus Seven Days. Obstet. Gynecol. 2007, 109, 277–280. [Google Scholar] [CrossRef]
  16. Rabin, J.M.; McNett, J.; Badlani, G.H. Computerized Voiding Diary. Neurourol. Urodyn. 1993, 12, 541–552. [Google Scholar] [CrossRef]
  17. Ryhammer, A.M.; Djurhuus, J.C.; Laurberg, S. Pad Testing in Incontinent Women: A Review. Int. Urogynecol. J. 1999, 10, 111–115. [Google Scholar] [CrossRef] [PubMed]
  18. Curran, P.; Barda, D.A.; Bradley, D.B.; Phillips, J.; Kotlarski, P.; Olkkonen, J.T.; Mattila, T.J.P. Capacitive Wetness Sensor and Method for Manufacturing the Same. WO 2013/016765 A1, 13 January 2013. [Google Scholar]
  19. Lewis, M.P.; Carey, K.M.; Templestowe, L.; Cottenden, M.A.; Barda, D.A.; Bay, R.; Bergman, F. Incontinence Monitoring and Assessment. US 2012/0268278 A1, 25 October 2012. [Google Scholar]
  20. Ang, L.M.; Ow, S.H.; Seng, K.P.; Tee, Z.H.; Lee, B.W.; Thong, M.K.; Poi, P.J.H.; Kunanayagam, S. Wireless Intelligent Incontinence Management System Using Smart Diapers. In Proceedings of the 2008 5th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology, Krabi, Thailand, 14–17 May 2008; IEEE: New Yok, NY, USA, 2008; Volume 1, pp. 69–72. [Google Scholar] [CrossRef]
  21. Miller, J.M.; Ashton-Miller, J.A.; Delancey, J.O.L. Quantification of Cough-Related Urine Loss Using the Paper Towel Test. Obstet. Gynecol. 1998, 91, 705–709. [Google Scholar] [CrossRef]
  22. DiMino, A.; Drummer, M.E.; Campbell, J.M.; Malik, A.; Curameng, L. Apparatus and Method for Uroflowmetry. US20120226196A1, 6 September 2012. [Google Scholar]
  23. Beckwith, R.; Drinnan, M.; Bray, A.; Griffiths, C.J.; Whitaker, M. Urine Flow Measuring Apparatus. GB 2508551A, 4 January 2014. [Google Scholar]
  24. Gammie, A.; Wachter, S. De Research Priorities for Diagnostic Instrumentation in Urinary Incontinence. Proc. Inst. Mech. Eng. H 2024, 238, 682–687. [Google Scholar] [CrossRef]
  25. Dawidek, M.T.; Singla, R.; Spooner, L.; Ho, L.; Nguan, C. Clinical Validation of an Audio-Based Uroflowmetry Application in Adult Males. Can. Urol. Assoc. J. 2021, 16, E120–E125. [Google Scholar] [CrossRef]
  26. Chun, K.; Kim, S.J.; Cho, S.T. Noninvasive Medical Tools for Evaluating Voiding Pattern in Real Life. Int. Neurourol. J. 2017, 21, S10–S16. [Google Scholar] [CrossRef] [PubMed]
  27. Attari, A. Design and Testing Novel Wearable Instrumentation for Assessing Pelvic Floor Function and Exploring Continence Mechanisms. Ph.D. Thesis, University of Michigan, Ann Arbor, MI, USA, 2020. [Google Scholar]
  28. Attari, A.; Ashton-Miller, J.A.; DeLancey, J.O.; Burns, M.A.; Kirkbride, T.M.; Carlin, E.P.; Ramachandran, A.J.; Day, C.A. Uroflowmetry Systems Having Wearable Uroflowmeters, and Methods of Operating the Same. US 2021/0121112 A1, 29 April 2021. [Google Scholar]
  29. Lin, W.C.; Burns, M.A. Low-Power Micro-Fabricated Liquid Flow-Rate Sensor. Anal. Methods 2015, 7, 3981–3987. [Google Scholar] [CrossRef]
  30. Umek, W.H.; Obermair, A.; Stutterecker, D.; Häusler, G.; Leodolter, S.; Hanzal, E. Three-Dimensional Ultrasound of the Female Urethra: Comparing Transvaginal and Transrectal Scanning. Ultrasound Obstet. Gynecol. 2001, 17, 425–430. [Google Scholar] [CrossRef] [PubMed]
  31. Laws, E.M.; Ouazanne, A.K. Compact Installations for Differential Flowmeters. Flow. Meas. Instrum. 1994, 5, 79–85. [Google Scholar] [CrossRef]
  32. Laws, E.M.; Harris, R. Evaluation of a Swirl-Vor-Tab Flow Conditioner. Flow. Meas. Instrum. 1993, 4, 101–108. [Google Scholar] [CrossRef]
  33. Laws, E.M.; Ouazzane, A.K. A Preliminary Study into the Effect of Length on the Performance of the Etoile Flow Straightener. Flow. Meas. Instrum. 1995, 6, 225–233. [Google Scholar] [CrossRef]
  34. Chen, G.; Liu, G. Performance Evaluation and Analysis of a New Flow Conditioner Based on CFD. IOP Conf. Ser. Mater. Sci. Eng. 2018, 394, 032049. [Google Scholar] [CrossRef]
  35. Askari, V.; Nicolas, D.; Edralin, M.; Jang, C. Computational Fluid Dynamics Model for Sensitivity Analysis and Design of Flow Conditioners. In Proceedings of the 9th International Conference on Simulation and Modeling Methodologies, Technologies and Applications (SIMULTECH 2019), Prague, Czech Republic, 29–31 July 2019; SciTePress: Setúbal, Portugal, 2019; pp. 129–140. [Google Scholar]
  36. ISO 5167-1:2022; Tracked Changes. Measurement of Fluid Flow by Means of Pressure Differential Devices Inserted in Circular Cross-Section Conduits Running Full. Part 1, General Principles and Requirements. British Standards Institution: London, UK, 2022; ISBN 9780539230604.
  37. COMSOL. CFD Module User’s Guide; COMSOL, Inc.: Stockholm, Sweden, 2020. [Google Scholar]
  38. Savcı, İ.H.; Şener, R.; Duman, İ. A Study of Signal Noise Reduction of the Mass Air Flow Sensor Using the Flow Conditioner on the Air Induction System of Heavy-Duty Truck. Flow Meas. Instrum. 2022, 83, 102121. [Google Scholar] [CrossRef]
  39. Lambert, T.P.; Chan, M.; Sanchez-Perez, J.A.; Nikbakht, M.; Lin, D.J.; Nawar, A.; Bashar, S.K.; Kimball, J.P.; Zia, J.S.; Gazi, A.H.; et al. A Comparison of Normalization Techniques for Individual Baseline-Free Estimation of Absolute Hypovolemic Status Using a Porcine Model. Biosensors 2024, 14, 61. [Google Scholar] [CrossRef]
  40. Manju, N.; Samiha, C.M.; Kumar, S.P.P.; Gururaj, H.L.; Flammini, F. Prediction of Aptamer Protein Interaction Using Random Forest Algorithm. IEEE Access 2022, 10, 49677–49687. [Google Scholar] [CrossRef]
  41. Wekalao, J.; Patel, S.K.; U, A.K.; Armghan, A.; Kraiem, H.; Said, Y. Detection of Proteins in a Surface Plasmon Resonance Biosensor Based on Hybrid Metasurface Architecture and Behaviour Prediction Using Random Forest Regression. Plasmonics 2024, 123456789, 1–21. [Google Scholar] [CrossRef]
  42. Kyriazos, T.; Poga, M. Dealing with Multicollinearity in Factor Analysis: The Problem, Detections, and Solutions. Open J. Stat. 2023, 13, 404–424. [Google Scholar] [CrossRef]
  43. Kutateladze, V. The Kernel Trick for Nonlinear Factor Modeling. Int. J. Forecast. 2022, 38, 165–177. [Google Scholar] [CrossRef]
  44. Rumbut, J.; Fang, H.; Carreiro, S.; Smelson, D.; Boyer, E. An Overview of Wearable Biosensor Systems for Real-Time Substance Use Detection. IEEE Internet Things J. 2022, 9, 23405–23415. [Google Scholar] [CrossRef]
  45. Wekalao, J.; Mandela, N. Terahertz Metasurface Biosensor for High-Sensitivity Salinity Detection and Data Encoding with Machine Learning Optimization Based on Random Forest Regression. Opt. Quant. Electron. 2024, 56, 1826. [Google Scholar] [CrossRef]
  46. Liu, H.; Li, Q.; Yan, B.; Zhang, L.; Gu, Y. Bionic Electronic Nose Based on MOS Sensors Array and Machine Learning Algorithms Used for Wine Properties Detection. Sensors 2019, 19, 45. [Google Scholar] [CrossRef]
  47. Kokabi, M.; Tahir, M.N.; Singh, D.; Javanmard, M. Advancing Healthcare: Synergizing Biosensors and Machine Learning for Early Cancer Diagnosis. Biosensors 2023, 13, 884. [Google Scholar] [CrossRef]
  48. Sharma, H.; Kalita, D.; Naskar, U.; Mishra, B.K.; Kumar, P.; Mirza, K.B. Prediction of Glucose Sensor Sensitivity in the Presence of Biofouling Using Machine Learning and Electrochemical Impedance Spectroscopy. IEEE Sens. J. 2023, 23, 18785–18797. [Google Scholar] [CrossRef]
  49. Rahman, M.J.; Morshed, B.I. Improving Accuracy of Inkjet Printed Core Body WRAP Temperature Sensor Using Random Forest Regression Implemented with an Android App. In Proceedings of the 2019 United States National Committee of URSI National Radio Science Meeting (USNC-URSI NRSM), Boulder, CO, USA, 9–12 January 2019. [Google Scholar] [CrossRef]
  50. Boubin, M.; Shrestha, S. Microcontroller Implementation of Support Vector Machine for Detecting Blood Glucose Levels Using Breath Volatile Organic Compounds. Sensors 2019, 19, 2283. [Google Scholar] [CrossRef]
  51. Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; Association for Computing Machinery: San Francisco, CA, USA, 2016. [Google Scholar]
  52. Noh, B.; Youm, C.; Goh, E.; Lee, M.; Park, H.; Jeon, H.; Kim, O.Y. XGBoost Based Machine Learning Approach to Predict the Risk of Fall in Older Adults Using Gait Outcomes. Sci. Rep. 2021, 11, 12183. [Google Scholar] [CrossRef]
  53. Wang, Z.; Wang, J.; Chen, M.; Yang, W.; Fu, R. Deep Regression Network with Sequential Constraint for Wearable ECG Characteristic Point Location. IEEE Access 2023, 11, 63487–63495. [Google Scholar] [CrossRef]
  54. Althnian, A.; AlSaeed, D.; Al-Baity, H.; Samha, A.; Dris, A.B.; Alzakari, N.; Abou Elwafa, A.; Kurdi, H. Impact of Dataset Size on Classification Performance: An Empirical Evaluation in the Medical Domain. Appl. Sci. 2021, 11, 796. [Google Scholar] [CrossRef]
  55. Shaikhina, T.; Khovanova, N.A. Handling Limited Datasets with Neural Networks in Medical Applications: A Small-Data Approach. Artif. Intell. Med. 2017, 75, 51–63. [Google Scholar] [CrossRef]
  56. Erickson, N.; Mueller, J.; Shirkov, A.; Zhang, H.; Larroy, P.; Li, M.; Smola, A. AutoGluon-Tabular: Robust and Accurate AutoML for Structured Data. arXiv 2020, arXiv:2003.06505. [Google Scholar]
Figure 1. (a) Front view showing apparatus worn by the subject, (b) Left lateral schematic showing the PUF placement over the female urethral meatus, (c) Sagittal cross-sectional view of the PUF device [27].
Figure 1. (a) Front view showing apparatus worn by the subject, (b) Left lateral schematic showing the PUF placement over the female urethral meatus, (c) Sagittal cross-sectional view of the PUF device [27].
Biosensors 15 00306 g001
Figure 2. Schematic of the calibration system, featuring a servo-driven syringe pump controlled by a laptop, a thermally insulated syringe and delivery pipe, a PUF sensor with its signal conditioning unit, and a precision scale as the reference measurement (its connection to the laptop not shown for simplicity).
Figure 2. Schematic of the calibration system, featuring a servo-driven syringe pump controlled by a laptop, a thermally insulated syringe and delivery pipe, a PUF sensor with its signal conditioning unit, and a precision scale as the reference measurement (its connection to the laptop not shown for simplicity).
Biosensors 15 00306 g002
Figure 3. CFD model of the sensor in the measurement channel, with arrows showing the flow direction.
Figure 3. CFD model of the sensor in the measurement channel, with arrows showing the flow direction.
Biosensors 15 00306 g003
Figure 4. (a) Schematic of the flow conditioner design and its location relative to the sensor within the measurement channel. Illustration of different FC designs: (b) 3-vane Etoile FC, (c) airfoil-shaped 8-vane FC, (d) extended airfoil-shaped 8-vane FC, (e) classic Etoile configuration, (f) extended classic Etoile configuration, (g) sensor positioned between vanes in structure (e), and (h) sensor positioned between vanes in structure (f).
Figure 4. (a) Schematic of the flow conditioner design and its location relative to the sensor within the measurement channel. Illustration of different FC designs: (b) 3-vane Etoile FC, (c) airfoil-shaped 8-vane FC, (d) extended airfoil-shaped 8-vane FC, (e) classic Etoile configuration, (f) extended classic Etoile configuration, (g) sensor positioned between vanes in structure (e), and (h) sensor positioned between vanes in structure (f).
Biosensors 15 00306 g004
Figure 5. Placement of the 3D-printed flow conditioner within the PUF measurement channel.
Figure 5. Placement of the 3D-printed flow conditioner within the PUF measurement channel.
Biosensors 15 00306 g005
Figure 6. (a) Normalized turbulence intensity along the sensor for different flow conditioner designs; (b) zoomed-in view of (a) from 2.5 to 4.5 for enhanced comparison. Source data and analyses available; see Data Availability Statement.
Figure 6. (a) Normalized turbulence intensity along the sensor for different flow conditioner designs; (b) zoomed-in view of (a) from 2.5 to 4.5 for enhanced comparison. Source data and analyses available; see Data Availability Statement.
Biosensors 15 00306 g006
Figure 7. Time-averaged axial velocity profiles at the sensor location shown in (a) for S1 (b), S2 (c), S3 (d), S4 (e), S5 (f), S6 (g), and S7 (h) compared with P and S0. The dotted black line represents P, the dashed orange line corresponds to S0, and the solid green lines depict various FC structures. Source data and analyses available; see Data Availability Statement.
Figure 7. Time-averaged axial velocity profiles at the sensor location shown in (a) for S1 (b), S2 (c), S3 (d), S4 (e), S5 (f), S6 (g), and S7 (h) compared with P and S0. The dotted black line represents P, the dashed orange line corresponds to S0, and the solid green lines depict various FC structures. Source data and analyses available; see Data Availability Statement.
Biosensors 15 00306 g007
Figure 8. Flow sensor output under turbulent (blue) and laminar (orange) flow conditions. Each point represents the mean of five measurements, connected by a dashed line, with the solid line indicating the fitted curve. Source data and analyses available; see Data Availability Statement.
Figure 8. Flow sensor output under turbulent (blue) and laminar (orange) flow conditions. Each point represents the mean of five measurements, connected by a dashed line, with the solid line indicating the fitted curve. Source data and analyses available; see Data Availability Statement.
Biosensors 15 00306 g008
Figure 9. (a) Z-score standardization of FSO and FTD; (b) correlation analysis between inputs and TFR. Source data and analyses available; see Data Availability Statement.
Figure 9. (a) Z-score standardization of FSO and FTD; (b) correlation analysis between inputs and TFR. Source data and analyses available; see Data Availability Statement.
Biosensors 15 00306 g009
Figure 10. Predicted vs. actual flow rates and absolute error for SVM (a,c) and XGBoost (b,d) models on training (a,b) and test data (c,d). Source data and analyses available; see Data Availability Statement.
Figure 10. Predicted vs. actual flow rates and absolute error for SVM (a,c) and XGBoost (b,d) models on training (a,b) and test data (c,d). Source data and analyses available; see Data Availability Statement.
Biosensors 15 00306 g010
Figure 11. Standard deviation of the axial velocity across spatial locations for S1 to S7 compared with P and S0. The dotted black line represents P, the dashed orange line corresponds to S0, and the solid green lines depict various FC structures. Source data and analyses available; see Data Availability Statement.
Figure 11. Standard deviation of the axial velocity across spatial locations for S1 to S7 compared with P and S0. The dotted black line represents P, the dashed orange line corresponds to S0, and the solid green lines depict various FC structures. Source data and analyses available; see Data Availability Statement.
Biosensors 15 00306 g011
Table 2. Comparison of the performance of the different machine learning models in predicting flow rate for training and test data. Source data and analyses available; see Data Availability Statement.
Table 2. Comparison of the performance of the different machine learning models in predicting flow rate for training and test data. Source data and analyses available; see Data Availability Statement.
Training DataTest Data
InputPCAML ModelCorrR2CorrR2MAERMSE
T1: FTS-RF0.840.70.80.633.34.1
SVM0.750.540.770.583.54.3
XGBoost0.850.70.770.553.74.5
AutoGluon0.850.690.80.573.84.4
T2: FTD-RF0.740.540.840.653.24
SVM0.670.440.840.6934
XGBoost0.810.630.830.633.54.1
AutoGluon0.660.350.870.752.53.4
T3: FSO
FTS
FTD
-RF0.960.910.860.732.73.5
SVM0.880.780.860.742.83.4
XGBoost110.840.6833.8
AutoGluon0.880.760.840.72.93.7
T4: FSO
FTS
FTD
LinearRF0.970.940.870.752.83.4
XGBoost0.950.90.880.762.63.3
T5: FSO
FTS
FTD
rbfRF0.930.850.780.63.34.2
XGBoost0.940.870.810.653.24
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

Shanehsazzadeh, F.; DeLancey, J.O.L.; Ashton-Miller, J.A. Improving the Accuracy of a Wearable Uroflowmeter for Incontinence Monitoring Under Dynamic Conditions: Leveraging Machine Learning Methods. Biosensors 2025, 15, 306. https://doi.org/10.3390/bios15050306

AMA Style

Shanehsazzadeh F, DeLancey JOL, Ashton-Miller JA. Improving the Accuracy of a Wearable Uroflowmeter for Incontinence Monitoring Under Dynamic Conditions: Leveraging Machine Learning Methods. Biosensors. 2025; 15(5):306. https://doi.org/10.3390/bios15050306

Chicago/Turabian Style

Shanehsazzadeh, Faezeh, John O. L. DeLancey, and James A. Ashton-Miller. 2025. "Improving the Accuracy of a Wearable Uroflowmeter for Incontinence Monitoring Under Dynamic Conditions: Leveraging Machine Learning Methods" Biosensors 15, no. 5: 306. https://doi.org/10.3390/bios15050306

APA Style

Shanehsazzadeh, F., DeLancey, J. O. L., & Ashton-Miller, J. A. (2025). Improving the Accuracy of a Wearable Uroflowmeter for Incontinence Monitoring Under Dynamic Conditions: Leveraging Machine Learning Methods. Biosensors, 15(5), 306. https://doi.org/10.3390/bios15050306

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