Introduction

Biochemical testing of bodily fluids has transformed modern medicine by enabling precise detection and monitoring of disease and response to treatment (i.e., medications). Urine is a valuable biological fluid and contains various nutrients and disease biomarkers formed as a result of metabolic processes1,2,3,4. This rich body fluid has varying concentrations of electrolytes (Na+, K+, Ca2+, Mg2+, and Cl ions), nitrogenous chemicals (urea and creatinine), vitamins, hormones, and organic acids (e.g., uric acid)5,6,7. The concentrations of compounds can vary from day to day and person to person, depending on diet, physical activity, health status, and environmental conditions5. Owing to its abundant biological properties, urinalysis can enable the early identification of diseases, such as urinary tract infections, acute kidney disease, chronic kidney disease, or diabetes, and provide valuable information regarding chronic medical conditions. While the use of urinalysis is common in hospitals and clinical settings, its application in at-home continuous health monitoring and point-of-care (POC) testing has remained underexplored. Traditional laboratory based urinalysis assays have some caveats, including their reliance on centralized facilities and trained personnel, delayed turnaround times, and high costs for longitudinal monitoring applications8. Recently, the development of POC urine analysis or at-home urine analysis systems has attracted widespread attention. By integrating strategies such as microfluidics and machine learning (ML) applications into urinalysis platforms, recent studies have addressed some challenges associated with traditional laboratory testing9,10,11. Studies have highlighted the potential of at-home health monitoring using smart sanitary hardware such as sensor-integrated toilets or non-expert-user-friendly rapid urinalysis kits9. Such tools have shown great promise in advancing personalized healthcare by enabling continuous, real-time tracking of physiological biomarkers12. In addition to individual health management, recent technological advancements also can also enable population-level applications8. A prominent focus within community health monitoring has been wastewater-based epidemiology, which enables population-level disease surveillance through the analysis of biomarkers in communal sewage systems13,14.

Here, we review the applications of sewage and toilet systems, highlighting established analytical strategies and emerging tools. We discuss emerging smart sanitary hardware technologies and their role in health monitoring, potentially addressing the demand for decentralized user-friendly real-time health monitoring. Furthermore, we explore emerging applications of artificial intelligence (AI) in novel urinalysis platforms.

Point-of-care and longitudinal health monitoring

Regular screening of human waste, such as urine and stool, which are produced in large volumes on a daily basis can allow the early detection of disease, increase healthcare delivery, and improve patient well-being12. Early detection not only improves patient outcomes, but it can also help reduce the cost of healthcare and the burden on centralized healthcare centers by eliminating more expensive treatments and hospital visits12. Technologies developed with this goal in mind have huge potential to improve overall health of communities and individuals and can be integrated into sanitation infrastructure, enabling continuous long term waste monitoring9,12. Integrating such technologies into daily routines and preexisting infrastructure demands innovative engineering and design strategies to create the next generation of toilet and wastewater systems. However, integrated smart toilets and wastewater systems for both diagnostic settings and energy-efficient sustainable wastewater resource recovery pose huge challenges, such as sample heterogeneity and biomarker degradation, sensor fouling and signal instability in complex matrices, high energy and maintenance demands, difficulties in data integration and privacy protection, and the lack of standardized frameworks for clinical validation, biosafety, and large-scale implementation. Challenges arise due to the complex nature of the technology, infrastructure requirements, and social factors involved. Several key aspects need to be addressed to overcome such challenges and unlock the full potential of integrated smart toilets and wastewater systems.

Several strategies have been developed to analyze urine for diagnostic, screening, and monitoring purposes (Leveraging the biological properties of urine for diagnostics, screening, and health monitoring). Traditional biochemical and reagent based assays provide rapid and low-cost detection of specific analytes (Reagent strips). Microscopic analysis enables morphological evaluation (Microscopic analysis). Advances in biosensors and smart sanitary technologies have expanded urine diagnostics toward automated, sensor-integrated, and network-connected systems (Smart toilets), supporting applications in anti-fouling surface design (Anti-fouling) and population-level monitoring through wastewater based epidemiology applications (Wastewater-based epidemiology).

Leveraging the biological properties of urine for diagnostics, screening, and health monitoring

Kidneys not only regulate blood pressure and water homeostasis but also offer an important homeostasis mechanism of the body and play an indispensable role filtering out toxic substances from the blood15,16. Therefore, by analyzing the appearance (clear vs. turbid), amount, density, and constituents (i.e., glucose, nitrites, protein, etc.) of urine, it is possible to monitor overall health, screen for a medical condition (i.e., diabetes, chronic kidney disease), and monitor a treatment (i.e., renally excreted medications)8. A healthy individual who takes about 2 L of fluid per day, will filter 200 L of fluid in 24 h and produce between 0.75 and 2 L of urine17. Over 100 metabolites have been identified in the human urinary metabolome, and 3429 different proteins and more than 10,000 peptides have been uniquely identified in the human urinary proteome18. More than 99% of the substances dissolved in urine consist of 68 analytes, mainly 42 compounds, with minimum concentrations of 10 mgL−1 19. The kidneys regulate internal homeostasis by filtering the blood through a multistep process comprising glomerular ultrafiltration, tubular reabsorption, and tubular secretion, which together facilitate the excretion of metabolic waste products while conserving water and essential solutes. In addition to their excretory role, the kidneys synthesize and release hormones that modulate blood pressure, erythropoiesis, and systemic electrolyte and acid–base balance20. In addition to providing information about metabolism, nutrition, kidney function, urine samples play a critical role in diagnosing urinogenital diseases, neurological disorders, cardiovascular disorders, musculoskeletal diseases, and integumentary diseases18.

The color of urine ranges from pale yellow to amber, due to the urochrome pigment. In urine, coloration and turbidity can indicate dehydration, an infection, or metabolic disease, the presence of red blood cells, white blood cells, or bacteria17. Urine production below 0.75 L in 24 h indicates conditions such as dehydration, infection, obstruction, renal stones, kidney failure, or stenosis17. Accurate pathogen-level identification and antimicrobial susceptibility testing remain central to urinary tract infection diagnostics, but conventional urine culture typically requires 24–72 h and may miss polymicrobial pathogens21,22. While molecular POC tests (including PCR and CRISPR-based assays) offer high sensitivity and shorter turnaround times, unlike respiratory or blood infections, urinary pathogen identification is still predominantly culture-based, and molecular assays are not yet widely adopted as first-line diagnostics in clinical microbiology laboratories. Therefore, POC assays are useful for detecting that an infection is likely present, but they do not typically determine the exact infectious agent.

Besides the analytical and microscopic analysis, appearance and quantification of the urine samples have provided a decisive and guiding screening method over the last century23,24. Recent advancements in ML, AI, and digital microscopy can enable the automated analysis of both macroscopic and microscopic characteristics of urine, providing objective, reproducible diagnostic information25,26. Quantitative and qualitative examination of urine is an effective method in the evaluation of many pathological conditions such as diabetes, infections, kidney and liver dysfunction, hereditary diseases, genitourinary system cancer, and sexually transmitted diseases17,23,27,28,29,30. Urine can also be used to measure substances such as glucose, protein, blood, drugs of abuse, and medications17,23,27,28,29,31,32,33.

Urine’s molecular complexity and non-invasive accessibility provide a foundation for developing sensitive diagnostic tools; understanding its biological composition is critical for optimizing downstream biosensing and analytical technologies.

Reagent strips

Reagent strips are solid-phase colorimetric sensors in which reagent-impregnated pads undergo visible color changes upon reacting with urinary analytes such as glucose, protein, or nitrite34. Strips are often low-cost assays and remain a mainstay of POC urinalysis, enabling rapid biochemical screening in both clinical and home settings35. Reagent strips are the most common method used in urinalysis (Fig. 1), and many strips are commercially available36,37. The color change on the reagent strip is determined after immersion in the urine sample, representing a fast, cost-effective, and easy-to-apply method28,38. The color change can be detected with the naked eye or with an electronic reader, adhering to the color chart based on pre-determined concentration ranges. However, the analysis must be done within 1 h after collection, and the immersion time of the reagent strip and the reading time must be accurate38. Reagent strip is the most widely used method for the determination of pH value, urobilinogen, glucose, bilirubin, ketones, blood, protein, nitrite, and leukocyte concentrations in urine39. The presence of glucose, bilirubin, ketones, blood, protein, nitrite, and leukocytes in the urine can be a sign of serious metabolic or infectious diseases17. Although sensitivity is approximately 85%, it plays an active role in the detection of blood in urine (hematuria) due to its simplicity and low false negative rate28,40. However, microscopic and endoscopic (cystoscopy) imaging is recommended in high-risk patients due to the relatively higher false positive rate28. The lateral-flow assay is another simple urine-based test utilized as a pregnancy test that can be administered at home41. Compared with lateral flow assays, dipsticks are more prone to false-positive results due to interfering substances28. In lateral flow assays, the analyses of exogenous chemicals, drug, and doping, drug interactions, therapeutic dosing, and nutrition requires high-cost complex clinical chemistry equipment that includes spectrometric and chromatographic platforms38,42. Proteomic, transcriptomic, and multiplexed platforms can allow for the determination of biomarkers of cancer types (ovarian, bladder, and breast), in which the survival rate increases significantly with early detection43,44,45,46,47. Studies to identify a combination of multiple urinary biomarkers (e.g., ANXA3, sarcosine, gene fusions, PCA3) for the type of prostate cancer, in which tumor cells are shed in urine, are promising in early disease detection48,49. Although reagent strips offer rapid, inexpensive screening, their qualitative nature and susceptibility to user error highlight the need for quantitative and automated biosensing alternatives.

Fig. 1: Urinalysis technologies for longitudinal health monitoring.
figure 1

Rapid POC testing can be achieved through the use of reagent strips and lateral flow tests, which can enable the detection of acute changes in urine metabolites. Intelligent hardware (i.e., sensors) can be integrated into toilets to facilitate automated urinalysis and tracking of health parameters. Wastewater based epidemiology can enable community-level health tracking. Machine learning (ML)-based applications can improve capabilities of traditional urinalysis, and smartphone-based testing can offer easy user access. This figure was designed using BioRender.

Microscopic analysis

Microscopic imaging of urine is a widely used method for the diagnoses of diseases affecting the urogenital system. Microscopic analysis of urine includes screening for white blood cells in urinary tract infections, glomerulonephritis, vaginal and cervical infections, and infections of the external urethral meatus (men and women), bacteria for abundant normal microbial flora of the vagina or external urethral meatus; yeast for infection, renal tubular epithelial cells for nephrotic syndrome, evidence of tubular degeneration, crystals (calcium oxalate, triple phosphate, amorphous phosphates, uric acids) for hypercalcemia, and cystine crystals for renal failure17. Another analysis technique deploys smartphones with easily accessible and built-in sensors to reduce reliance on centralized healthcare settings and laboratory instrumentation (Fig. 1)50,51,52,53,54. An image of the reagent strip or paper-based microfluidic device can be taken by a smartphone camera and analyzed by a mobile application developed specifically to interpret colorimetric results52,53,54. In one study, off-the-shelf electronics and smartphones were utilized in combination with loop-mediated isothermal amplification (LAMP) for urinary sepsis monitoring50. In this study, to assess pathogen ID, freshly collected urine specimens were lysed with NaOH and detergent. Treated samples were heated to generate fluorescence intensity changes that varied according to specific gene concentrations under LED illumination. Finally, fluorescence signals were obtained by using smartphone camera to process and detect pathogen ID using a coarse derivative algorithm that can quantitatively determine concentration of gDNA. Therefore, pathogen ID was detected by an off-the-shelf hardware that consisted of a housing, a heating block, LEDs, and a smartphone camera. Integrating such a system into a urine-diverted toilet can eliminate user-induced contamination and the need for a healthcare professional during sample collection and analysis. Microscopic urinalysis remains an indispensable diagnostic tool, yet automation and digital image analysis are essential for improving reproducibility and integrating morphology with molecular findings. Such technologies may complement the requirement for diagnostic applications such as blood analysis or subsequent medical imaging and biopsy in the screening and follow-up of kidney failure and cancer types, where the early detection is critical.

For any given application, selecting the most appropriate diagnostic modality is essential to improve patient outcomes. While clinical laboratory methods offer high analytical accuracy and standardized workflows, they require trained personnel (typically) larger sample volumes, longer turnaround times, and higher operational costs55,56,57. POC at-home tests are often rapid, user-friendly, and cost-effective, yet sacrifice specificity and quantitative ability. Emerging lab-on-chip and microfluidics systems aim to bridge the gap between POC and centralized testing.

Smart toilets

Lab-on-chip inspired devices and sensors can be designed and inserted into toilets to seamlessly monitor target compounds (Fig. 1)33,58,59,60. Achieving the capability of processing samples directly collected from patients would eliminate the need for high-cost facilities and complex and time-consuming procedures, while significantly reducing healthcare costs associated with transportation, storage, and maintenance of clinical chemistry instruments12,60,61,62.

In general, urine is a sterile product, unlike feces, which may contain various pathogens depending on the prevalence of infectious diseases in a given population. Therefore, the first step in developing a smart toilet involves the adoption of a urine-diverting toilet system, which is used to prevent urine from mixing with feces prior to sampling and analysis. The establishment of urine monitoring toilet systems can enable analysis by quantity, appearance, and chemical components. Such urine monitoring systems can contribute to monitoring health status of individuals and provide early diagnosis of diseases8,12,63,64. Applications can also be expanded into community-level health monitoring through wastewater epidemiology14,65,66. Integrating urinalysis technologies into toilets can enable a holistic approach for mass-scale disease screening. Urine may also contain small amounts of hormones, drug residues, and heavy metals, which can prove useful for wastewater-based epidemiology and community-level health monitoring applications.

One smart-toilet design by Park et al., proposed a proof-of-concept demonstration of a toilet based device9 utilizing two high-speed cameras for assessing uroflowmetry, urinalysis, and stool-form analysis using computer vision algorithms and urine strip (Fig. 2a)9. To assess the performance of their proposed uroflowmetry module, the researchers conducted a study involving simulated urination events within a typical range of 50–670 ml and real urinations from ten male participants aged 19–40. This study included a total of 31 urination events by the participants and 68 simulated streams conducted over a 5-week period. They estimated the flow rate by analyzing pixel counts in specific areas of each video frame and applying cross-correlation analysis. A comparison between an image generated by the standard uroflowmeter and one generated using computer-vision uroflowmetry showed a significant correlation, although some disparities were observed during the terminal dribbling phase. Nevertheless, voiding times recorded by both standard and computer-vision uroflowmetry exhibited a strong linear correlation with the number of video frames, offering valuable insights into prostate and bladder functions. Furthermore, their algorithm accurately determined the total voided volume by using depth- and flow-rate-adjusted pixel data from synchronized video frames. This method displayed a linear correlation with the total voided volume measured via standard uroflowmetry. Notably, discrepancies primarily arose with urine streams of extremely high flow rates, which could potentially be addressed by using a higher-frame-rate camera and optimizing the camera’s field of view. In addition, the researchers trained two independent deep convolutional neural networks (CNNs) using separate gold standards provided by surgeons. To evaluate the CNNs’ classification performance, they enlisted six medical students with a minimum of 2 years of medical school training to grade stool images based on the Bristol Stool Form Scale (BSFS). The CNNs’ predictions were compared with those of the medical students. Despite the students’ initial lack of familiarity with BSFS grading, the CNNs outperformed the untrained students in the training sets and achieved similar results to trained medical students in the test sets. The outcomes can be correlated with total bowel transit time, which can be an indicator of irritable bowel syndrome, HIV-related diarrhea, and fecal incontinence59,60. Although the workflow is seamless, accurate, and repeatable, the major drawback of such design is the utilization of cameras for identifying each different individual, where the identification process is handled by a camera that captures an image of user’s anal silhouette (analprint) and fingerprint. In general, surveys have shown that the overwhelming majority of the participants are unlikely to prefer devices that utilize direct biometric identification methods such as camera, voice recognition, and fingerprint compared to the indirect approaches such as distance between the user’s heel and toilet bowl, rotating a flush lever, duration of lavatory usage, weight distribution sensed by mountable toilet seat and pulling technique for paper roll62.

Fig. 2: Intelligent toilet platforms and urine sample collection modules for continuous health monitoring.
figure 2

a A perspective depiction of a toilet equipped with a device designed for continuous monitoring of human excreta baseline parameters9. This toilet system comprises several key components: A 10-parameter test-strip-based urinalysis with a retractable cartridge, computer-vision uroflowmetry featuring two high-speed cameras (the blue dashed lines indicate the field of view for each camera), stool classification accomplished through deep learning (the blue dashed lines denote the field of view of the defecation monitoring camera), measurement of defecation duration using a pressure sensor located beneath the toilet seat (the red arrow signifies the force detected by the pressure sensor), two biometric identification methods: an analprint scan (represented by the green box, utilizing a template-matching algorithm) and a fingerprint scanner integrated into the flush lever. b A design for utilizing toilets as continuous health screening platforms. (i) Seamless sample collector design that can be easily integrated into toilets to prevent cross contamination effects. (ii) Photograph of full experimental setup consisting of acrylic holder, phial turret, collector, flush water pump, sample pump, and peristaltic collector pump powered by a DC motor. (iii) An imaging box to block outside light while capturing an image of an inserted dipstick to quantify protein concentration. Tests for colorimetric detection methods are also conducted to prove accurate diagnostics. Reprinted from ref. 11 under CCBY 4.0 license.

Restricting camera usage from toilet may necessitate the development of indirect approaches that are not associated with privacy concerns. One of these approaches is to separate the urine and transfer it to a sample collector with a module integrated into the toilet11. The integrated sample collector is painless and offers a non-body contact method; hence, it is likely to be compatible with the user’s behavioral preferences. This system, shown in Fig. 2b, is designed as a cylindrical reservoir that can be mounted on the side wall of an existing toilet bowl and is easy to target while the person is urinating, the collected samples can then be routed to a dedicated urinalysis module11,12. The analysis module can be integrated either internally or externally within the toilet system. Figure 2b illustrates an internal system designed for measuring protein concentration in urine11. To enable long-term cyclic use of the sample collector, it is attached at a 10° angle using a mounting plate fixed on a plastic tray to contain the water. The setup includes a vial holder capable of accommodating eight vials and one draining tube for uncollected liquid. A servo motor is affixed to the bottom of the vial holder, enabling a 20° clockwise rotation for each sample collection. A peristaltic pump, controlled by a speed reduction DC motor, is assembled to transfer protein samples from the collector to the turret via thermoplastic tubing. The holder, collector pump, and turret are securely attached to a breadboard. A submersible water pump is utilized as the sample pump, employing polyurethane tubing to transfer protein samples from the sample container to the collector. Additionally, a flush water pump, drawing water from the water reservoir, is employed to clean the collector after protein sample collection by directing the water toward the collector via tubing.

An alternative example of an analysis module that can be integrated with the sample collector entails employing a colorimetric detection technique within the toilet’s design (Fig. 2b)11. This analysis of the test strip could be performed using RGB sensors that can easily quantify analyte concentrations by reading digital red, green, blue hues of the sensing regions. This colorimetric sensing method was validated by Temirel et al. utilizing an imaging box, a built-in camera, and commercial urine strips, where solutions with different standard bovine serum albumin (BSA) concentrations were applied to urine pad and then fed into imaging box to observe color changes11. Results showed that different compound concentrations yielded distinguishable color changes. Due to direct urine-equipment contact requirements of the proposed design, extra care is needed for eliminating cross contamination effects. To assess the cross-contamination elimination capabilities of the proposed design, the main part responsible for collecting urine samples was filled repeatedly with BSA solution with various concentrations, followed by 2 s flushing to rinse the leftover water. Finally, samples were gathered from the water that was left after rinsing and draining. Results revealed that the sample collector holds ~250 μL of leftover water with almost zero BSA concentration. Furthermore, those leftover samples did not cause any color change in urine dipsticks; thus, a sample collector was developed for holding urine samples and colorimetric analysis. However, this design did not include any approach regarding the identification and scalability of the detection mechanism.

Smart toilets represent a transformative interface between users and digital health ecosystems, though challenges in sensor integration, hygiene, data privacy, and standardization must be addressed for clinical translation. In addition to technical considerations, smart toilet implementation must address user-related and anatomical challenges, including differences in urine flow and collection between men and women, as well as limited applicability in children and elderly individuals who may rely on diapers or assisted care. Hybrid systems that integrate toilet-based sensing with wearable or diaper-embedded biosensors have been proposed to extend monitoring beyond conventional toilet use67. While wearable sensors have been explored in various context, further validation is required for urinalysis applications68.

Anti-fouling

Anti-Fouling is a surface coating strategy used to prevent the deposition of unwanted proteins, microorganisms, and cell-like substances on the surface and to minimize contamination as much as possible69. Antifouling has enabled significant progress in the performance, reusability, and longevity of microfluidic devices. This approach, which ranges from surface coatings and liquid-infused films70,71 to capillary-stabilized liquid Gates72 and magnetically actuated cilia73 and enzyme-based cleaning methods74, when combined with microfluidic technology, prevents nonspecific adhesion of biological materials such as blood, mucus, proteins71,75, and microorganisms73 while maintaining critical functions such as real-time detection76, sample processing, and optical clarity in clinical and laboratory settings. Applications include blood-contact catheters69,70, endoscopic lenses70,71, lab-on-a-chip systems72,73, electrochemical biosensors76, and digital microfluidics77, and many platforms have been successfully validated in vivo. Microfluidic chips have been engineered with antifouling strategies for use in biomedical applications (Fig. 3).

Fig. 3: Antifouling strategies in microfluidic systems.
figure 3

a Disposable glass-coverslip lubricant coatings on endoscopes: mounting with PDMS; performance of 350 cSt and 500 cSt silicone-oil coatings vs uncoated (red), noting transient aberrations from droplet pinning/detachment. Adapted from ref. 70. Copyright (2016) National Academy of Sciences. b Magnetic artificial cilia (MAC): (i) SEM side view (Ø50 μm, h = 350 μm, pitch = 250 μm); (ii) Bright-field after 28 days actuation, showing reduced algae fouling; (iii) Antifouling over time for partial MAC coverage. Adapted from ref. 73 under CC BY license. c Protein-fouling mitigation in PDMS chips: (i) Protein in effluent after 20 mg/mL BSA, 10 min, 1 mL/min; (ii) Total uptake after cleaning (10 mL); (iii) Six cleaning cycles comparing untreated vs PLL-g-PEG-treated; (iv) Cumulative uptake with/without pretreatment and trypsin post-treatment. Adapted from ref. 74 with permission. d (i) Two-step mechanochemical activation and grafting render PDMS antibiofouling; (ii) demonstration on a toilet bowl. Adapted from ref. 72 with permission.

Applications include omniphobic coatings applied to catheters and tubes, preventing clot formation and biofilm adherence75, silicone-based liquid coatings applied to keep the lens surface clean during repeated tests with blood (Fig. 3a)70, magnetic artificial cilia integrated into the surface repelling microalgae from the surface (Fig. 3b)73, and microfluidic chips reducing protein contamination after washing (Fig. 3c)74. Antifouling can also facilitate personalized treatments by continuously and instantly monitoring serum drug concentrations. The purpose of this microfluidic sensor system is to prevent biological substances, such as blood cells and proteins, from adhering to the sensor surface and to ensure the target molecules are distributed uniformly across the sensor surface. This prevents biofouling and maintains accuracy during measurements76. SLIPS (Slippery Liquid-Infused Porous Surfaces) film used in the digital microfluidic system prevented biomolecule adhesion by preventing both conductive and insulating droplets from contacting the surface. This approach enabled smooth liquid transfer over long cycles77. Ball milling can also be used to apply and activate poly(dimethylsiloxane) (PDMS) on ceramic and glass surfaces, the researchers created a durable, water-repellent coating that significantly reduces bacterial adhesion by mechanically breaking siloxane bonds in PDMS without the need for any solvents and high temperatures (Fig. 3d). Maintaining its transparency and not affecting the appearance of the substrate, this coating achieved a 100,000-fold reduction in bacterial adhesion from urine samples when applied to a real ceramic toilet bowl. This result makes it ideal for protecting embedded sensors and microfluidic channels in toilet-based PoC systems72. Liquid-infused membranes have been shown to demonstrate an antifouling effect by reducing the surface accumulation of substances such as proteins, particles, and blood in microchannels. Images show virtually no bioaccumulation on the liquid-coated surfaces78.

Effective anti-fouling design is fundamental to ensuring sensor reliability, long-term performance, and maintenance-free operation in smart sanitary and wastewater diagnostic systems. Environmental factors such as water quality, mineral deposits (e.g., limescale), and cleaning chemicals can interfere with sensor accuracy and longevity, highlighting the need for antifouling materials, self-cleaning designs, and standardized maintenance protocols79.

Wastewater-based epidemiology

The sewage problem has become a serious public health concern in rapidly developing industrial societies and urban areas. Especially with the increase of epidemic diseases, it has become imperative to solve this problem with a modern system. Despite the public health benefits of separating clean and dirty water via integrated wastewater treatment plants, rapid increase in the world population has inevitably resulted in wasting of clean water. Initially, quickly disposing of urine along with other wastes such as excreta and toilet paper to the sewer system by a large amount of clean water seemed quite practical. The value of urine, historically used in fertilizing crops, tanning leather, washing clothes, and making gunpowder in some societies, has regained popularity following studies on the use of urine as a diagnostic medium and raw material source in soil fertilizing and electricity generation. To constitute such a system, urine processing facilities should be integrated with urine-diverted toilets that separate urine from other wastes80. Such strategies can save and recycle a significant amount of water and nutrients, as well as increase the lifespan of existing sewer systems by reducing the total load81. Sewers also have significant potential to be used as a platform to assess public population-level indicators that provide insights into health trends82,83,84,85, drugs85,86, and pharmaceuticals use83. These indicators would be helpful for policymaking to provide a set of solutions for existing or urgent public health concerns due to sanitation issues, drug overuse, antibiotic resistance, and pathogens83,84,85,87.

Monitoring sewage for both solid and liquid compounds by applying bioanalytical measurement methods such as liquid chromatography, mass spectroscopy, and PCR reveals the presence of viral compositions85,86,87,88. Measurements can be stored for long-term monitoring to track the effects or progress of the certain decisions or actions. Quantifying metoprolol acid in sewage to estimate hypertension prevalence in the population aged over 15 years by Hou et al. showed that 28 ± 10% of the population had hypertension while the result of the China Hypertension Survey was indicated as 28%83. Consistent estimation results have been achieved for various target compounds such as alcohol, tobacco, caffeine, pharmaceuticals, and drugs83. Target analytes can be quantified at trace levels (ng L−1) in a consistent fashion. Thus, sewage monitoring or wastewater epidemiology can serve as indicators of public health trends82,83,84,85,86,87,88,89. Although some of the target analytes or agents of interest may be degraded due to sewer conditions, chemical compounds that can be used as drug biomarkers in wastewater can be considered as comparably stable and preserved8. A challenge is to locate target biomarkers inside a complex wastewater matrix since a wide range of inorganic, chemical, and biological substances are present. The target substance, such as fat, protein, and other chemicals, must be extracted from the matrix while utilizing PCR analysis8789. However, high complexity also illustrates the possibility of extracting numerous valuable insights regarding the health status of a community. Therefore, potential biomarkers (e.g., proteins) in wastewater would be a valuable metadata collection resource that can enhance accuracy and effectiveness of policymakers and provide well suited set of solutions.

WBE offers unprecedented insight into community health dynamics, yet harmonization of sampling protocols, biomarker normalization, and data interpretation remains essential for actionable epidemiological intelligence. However, privacy and ethical concerns must be addressed by considering social perceptions and adoptions, such as eliminating direct identification in waste analysis for both diagnostics and overall wastewater monitoring10,90,91. Innovative and indirect sampling systems are required instead of relying on cameras or other direct identification protocols12.

Emerging technologies

Urine diversion combined with the emerging technologies such as microfluidic chips, IoT based edge devices, ML algorithms, and biosensors, indirect workflows can be adopted for at-home settings where all the required infrastructure is readily available92. These technologies must contain strict privacy procedures during diagnostic testing in toilets for early disease screening. With this goal in mind, those platforms can be easily integrated into people’s daily lives and reduce the workload of centralized healthcare centers, and eliminate troublesome, time-consuming, and costly procedures while significantly contributing to healthcare expenditure reduction12.

Artificial intelligence (AI) in diagnostics

Advances in algorithm hardware infrastructure and computing capabilities, along with data from wearable biosensors, medical imaging technologies, individual health records, and public health institutions, have paved the way for more effective use of biosensors in healthcare93,94. Advanced models can successfully detect complex patterns, monitor bodily electrophysiological and electrochemical signals, and detect low-level trends and anomalies by processing large datasets at high speed. Consequently, they can significantly increase the real-time predictive accuracy of biosensors94. Models, which enable the wider use of biosensors, have the potential to radically transform diagnostic processes by integrating them into POC biosensors, enabling capabilities such as data processing, quantitative analysis, instant decision-making, and adaptive sensing. Furthermore, they enable rapid, low-cost, reliable, and easily accessible assessment of patient-specific health status93,95,96. Traditional urinalysis methods, such as manual microscopy and visual dipstick interpretation, are limited by operator variability, subjective assessment, and lack of longitudinal data integration. AI-driven platforms address these limitations by enabling automated sediment analysis, digital interpretation of reagent strips, biomarker prediction, and integration within smart toilet and connected health systems9,12.

One of the promising applications of AI in urinalysis leverages AI-enhanced imaging technology. Super resolution Faster Region-based Convolutional Neural Network (CNN) has been used to detect and classify urine sediments97. Similarly, a deep learning (DL) classification algorithm that employed CNNs was developed to enable optimal parameter tuning for urinary sediment classification98. However, for strategies involving CNNs, large sets of manually annotated data are typically required, which increases the computational burden of systems. To overcome this issue, a model named YOLOv5 was developed using an evolutionary genetic algorithm99. The hyperparameter optimization model was faster and better automated for microscopic urinalysis compared to other counterparts. Other image-based diagnostic platforms have focused on utilizing ML-enhanced Surface enhanced Raman spectroscopy (SERS) for early-stage bladder cancer detection in endoscopic images100. SERS-based strategies have also proved useful for the label-free detection of cancer biomarkers in urine, saliva, and blood samples101,102. ML-based strategies have been employed to automate the traditional urinalysis pipeline. The development of gravity sedimentation cartridges has enabled centrifugation-free urinalysis and eliminated the need for experienced technicians to prepare samples103. Following uptake of samples, an AI-based object detection model was used to auto-analyze reports and deliver results. Such automated processes can enable POC testing as well as at-home testing for non-experts, reducing the reliance on complex laboratory infrastructure. Several studies have also used ML to achieve predictive modelling for health conditions, including kidney disease104,105. Seamless, at-home or POC urinalysis that feeds algorithms with data can enable earlier disease detection and personalized health decisions106,107,108,109.

Conclusion

Urine-based diagnostics offer significant advantages, including non-invasiveness, low cost, minimal sample volume, and potential for continuous, decentralized health monitoring, and therefore, can enable early disease detection, longitudinal surveillance, and personalized healthcare decision-making. However, their clinical translation and widespread adoption are limited by several challenges: variable sensitivity and specificity in POC tests, sensor degradation in continuous-use environments, data privacy concerns, and user reluctance. Mitigation strategies include implementing anti-fouling coatings, microfluidic pre-processing, and AI-based result interpretation. For successful fundamental integration, it is critical to develop user-friendly, easy-to-maintain, and odorless systems.