In this paper, we present an Internet of things (IoT)-based data collection system for the risk assessment of urinary stone formation, or urolithiasis, by the measurement and storage of four parameters in urine: pH, concentrations of ionized calcium (Ca2+), uric acid and total dissolved solids. The measurements collected by the system from patients and healthy individuals grouped by age and gender will be stored in a cloud database. These will be used in the training phase of an artificial intelligence (AI) machine learning process utilizing the logistics regression model. The trained model provides a binary risk assessment, indicating if the end user is either a stone-former or not. For system validation, standard chemical solutions were used. Preliminary results indicated a sufficient measurement range, falling within the physiological range, and resolution for pH (2.0–10.0, +/−0.1), Ca2+(0.1–3.0 mmol/l, +/−0.05), uric acid (20–500 ppm, +/−1) and conductivity (1.0–40.0 mS/cm, +/−0.1), exhibiting high correlation with standard instruments. We intend to deploy this system in few hospitals in Taiwan to collect the data of patients’ urine, with analysis aided by urologist assessments for the risk of urolithiasis. The modularized design allows future modification and expansion to accommodate other sensing analytes.