- 1Biomedical Engineering Department, College of Engineering, Imam Abdulrahman Bin Faisal University, Dammam, Saudi Arabia
- 2Department of Mechanical and Energy Engineering, College of Engineering, Imam Abdulrahman Bin Faisal University, Dammam, Saudi Arabia
According to the National Library of Medicine (NLM), chronic kidney disease (CKD) affects more than 10% of the world's population, and peritoneal dialysis (PD) is one of the promising treatments. Despite the advantages of the current PD machine over alternative treatments, it has certain limitations, such as high consumable costs, lengthy daily sessions, and a lack of portability. This work aims to implement a finite state machine design to modify the process of an automated, economical PD system. The proposed optimized process includes a flush system stage, where tubes are rinsed before and after each session to avoid contamination. This design is intended for use by only one patient to prevent contamination. Furthermore, a turbidity sensor is added to measure the efficiency of the dialysis process and reduce the current dialysis time, which can reach eight hours. The finite state machine design is developed using LabVIEW software, featuring a user-friendly interface that allows users to track the process's progress.
1 Introduction
In 2015, the Saudi Ministry of Health (MOH) reported that the number of individuals suffering from kidney failure in Saudi Arabia exceeded 15,000, with over 850 million affected worldwide (1–3). Kidney failure patients lose 85%–90% of their kidney function, which significantly impairs the kidneys’ ability to maintain the body's internal balance, filter blood, and regulate blood pressure (4–6).
Various treatment methods for kidney failure include peritoneal dialysis (PD), hemodialysis (HD), and kidney transplantation (7, 8). PD is a treatment option that utilizes the abdominal cavity (peritoneum) as a natural filter. This is achieved by filling the abdomen with a dialysis solution through a catheter, which drains waste products and excess fluids. Unlike other treatments, PD can be performed at home, eliminating the need for dialysis centers or hospitals (9, 10). Despite its advantages over alternative treatments, the current PD machine has limitations, including high costs due to disposable tubes, a rigid interface, a lack of portability, and lengthy daily sessions (11–15).
This work aims to design a finite state machine for an optimized PD system that modifies the process with a fully monitored, automated, user-friendly interface. This design significantly minimizes costs by utilizing reusable tubes, assuming that only one user per machine is involved, and reduces session duration by employing a turbidity sensor to terminate the process as soon as the drainage is clean. Additionally, the proposed interface offers three levels of accessibility based on user needs, whether the user is a patient, doctor, or developer.
2 Physiology
2.1 The kidney’s function
The kidneys are a pair of bean-shaped organs, each approximately the size of a fist, located on either side of the spine, just below the rib cage, as shown in Figure 1. According to the National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK), around one in every 2,000 individuals is born each year with a single kidney worldwide (16–18). In cases where a single kidney functions well, individuals may not even be aware that they have one kidney (19).

Figure 1. The location of the kidneys (40).
The primary role of the kidneys is to maintain the body's internal balance (homeostasis). They serve as a filtration system, continuously filtering approximately half a cup of blood per minute to excrete excessive water and waste products as urine. The most common waste products include sodium, potassium, bicarbonate, calcium, and phosphate (20, 21). In addition to their filtration function, the kidneys also perform essential roles such as releasing hormones to regulate blood pressure, stimulating red blood cell production in the bone marrow, and maintaining a healthy skeletal system (22).
2.2 Kidney diseases
Kidney diseases can lead to renal failure, a condition in which the kidneys fail to perform their functions. There are two types of kidney disease: Acute Kidney Injury (AKI) and CKD (23).
AKI occurs rapidly, over hours or days, when the kidneys suddenly lose their ability to remove waste from the blood and produce urine. This condition can develop quickly due to factors such as extreme dehydration, severe infections, and medications toxic to the kidneys. With appropriate treatment, kidney function is usually restored within days or weeks, and it may not require kidney replacement therapy (transplant or dialysis). However, AKI can sometimes lead to CKD (24, 25).
CKD, on the other hand, progresses slowly over the years. The damage to the kidneys cannot be reversed but it can be delayed, and kidney function declines until the kidneys no longer function at all. This condition is then called end-stage renal disease (ESRD). CKD can be caused by several factors, the main ones being Diabetes, nephritis (inflammation of kidney tissue), glomerulonephritis (inflammation of the filter t tissue in the kidney), hypertension (medical term for high blood pressure), and atherosclerosis. When a patient reaches ESRD, available treatment options include kidney transplants, HD, and PD (24, 25).
2.3 Hemodialysis vs. peritoneal dialysis
The two main types of dialysis are PD and HD, each with distinct properties and procedures. Hemodialysis is a treatment method where blood is filtered outside the patient's body using a hemodialysis machine, which functions like an artificial kidney with a special filter, often referred to as a dialyzer. The hemodialysis method involves a filter that separates blood into two sections via a permeable membrane (26–28). Table 1 presents a comparison between HD and PD across various aspects.
2.4 The evolution of peritoneal dialysis
The timeline for the evolution of peritoneal dialysis is illustrated in Figure 2 (29–32).
3 Proposed design
3.1 Concept design
The state machine design is applied to an optimized automated peritoneal dialysis machine and process. This proposed system consists of two main components: the physical PD prototype and a simulation user interface. The physical design is illustrated in Figures 3, 4. Firstly, the design contains an electrical components board where all the sensors, tubes and circuit are organized to fit safely on the board. Secondly, a backpack with a belt to cover the catheter insertion place to avoid infection from surrounded environment are included. Thirdly, two tanks with 1l of volume for each are used with applying the newly designed mechanism to achieve the dialysis process. The tanks and electrical board will be placed inside the portable backpack that the patient can carry anywhere. The design of the new mechanism employed in both tanks is shown in Figures 5, 6.

Figure 3. The proposed design on the left and a simple sketch of how the electrical components will be organized on a board.

Figure 4. (a) Lower Plate in final design, (b) upper plate in final design, (c) the middle plate, (d) upper plate with heater cavities, (e) the design of cover, (f) the movement of cover.
Around the two-tank prototype, there is a cover that contains the pipes (solution path) with solenoid valves to control the flow of the solution. Several sensors are incorporated to measure different parameters, including flow meters, a pressure sensor, a level sensor, a turbidity sensor, and an air vent.
The turbidity sensor measures the efficiency of the dialysis procedure by assessing the waste turbidity after each batch, helping to determine the need to inject more solution and continuing the dialysis session or stopping the session if the dwelled solution is clear. This will help in reducing session time. Figure 7 shows a flowchart that illustrate how the function of the turbidity.
While turbidity provides a useful approximation of waste concentration, it may not fully reflect the clearance of large molecular weight toxins such as β2-microglobulin. As a result, the current system design incorporates a confirmation step to avoid premature termination, where turbidity thresholds must persist over a defined time window. This strategy minimizes the risk of incomplete dialysis. For future versions, modeling of uremic toxin kinetics, especially for macromolecules, will be integrated to ensure clearance targets are met, even during shortened treatment durations.
The simulation interface allows for monitoring fluid movement, sensor readings, and sending alarms to halt the process in case of any errors. It is designed to create a fully monitored and controlled environment to minimize device errors and implement safety precautions. The flush system was specifically calibrated to meet sterilization requirements based on ANSI/AAMI ST91:2021. It operates at a controlled flow rate of 200 ml/min for a minimum of 2 min per flush cycle. These parameters were selected to ensure removal of residual dialysate, debris and to mitigate contamination risks, thereby improving the hygiene and safety of the tubing system between sessions. The design of the new mechanism employed in both tanks is shown in Figure 5.
The pumping of the fluid into the body and suction of the fluid out of the body is achieved via two plates mechanism. This mechanism consists of two movable plates and a fixed plate in the middle. These plates are shown in Figure 4. The fixed plate in the middle is used to support and ensure a stable movement. The upper plate is used to push the solution to the patient abdomen. It also includes heater holder covered with a metallic sheet in order to heat the solution closer to the human body temperature. The lower plate is used to produce a suction effect that will assist in taking out the solution from the patient abdomen. Detailed design of the proposed mechanism is shown in Figure 5. The movement of both plates is achieved via a stepper motor, attached to a threaded rod, and three balancing rods. These components are essential to lift and support the plates. A prototype of the proposed design was assembled, as shown in Figure 6.
3.2 Piping and instrumentation diagram (P&Id)
Piping and Instrumentation Diagrams (P&ID) are essential blueprints for process industries, detailing the intricate network of pipes, equipment, and controls. They serve as a universal language, facilitating clear communication among engineers globally. P&IDs play a crucial role in guiding the design, construction, and operation of industrial processes, reflecting the collective expertise and diligence of engineering teams (33, 34).
The proposed design for the PD machine's P&ID is illustrated in Figure 8. It incorporates an upper tank with a heater to heat the solution. A temperature sensor measures the temperature, and when it reaches the desired level, valve1 opens. Flow sensor2 measures the flow rate, while a pressure sensor monitors the pressure. An air vent removes bubbles, and three valves open at specific times. Valve3 and valve1 work together in a closed loop. A turbidity sensor checks purity, and flow sensor4, followed by valve4, directs the solution to the lower tank. Finally, the solution level is monitored using two ultrasound sensors (highlighted in yellow), one placed on the cover of the upper tank and the other positioned beneath the upper tank in the middle section between the upper and lower tanks.
3.3 Interface design
The simulated prototype is implemented using LabVIEW, offering a virtual user experience of peritoneal dialysis through the proposed mechanism. The front panel consists of a four-page user-friendly interface. The first page, shown in Figure 9, contains the ON/OFF buttons and options for selecting the process mode (Dialysis or Device Cleansing). Patient information must be entered, followed by safety instructions, and an audible instructions button is available if the patient desires it; otherwise, they can click “Pass.” If the user selects the dialysis mode, the device will start “Preparing the Solution,” indicating the solution level and temperature while activating the heater as needed. The last part of the start page includes three sequential questions: Are you sure your hands are clean? Is the catheter properly fixed? Are you ready to start your dialysis session? If the patient answers “yes” to all questions, the system will initiate the dialysis session and proceed to the Monitoring Panel.

Figure 9. Start page of the interface window containing the control panel, personal information and safety instructions.
In the Monitoring Panel, as illustrated in Figure 10, the patient can monitor the entire dialysis process, including the added device cleansing stage. Following that is the filling stage, where the solution level is continuously recorded to provide the patient with a view of the remaining solution.
During the dwelling phase, the duration is defined, and a timer is included. The turbidity check is integrated, with the liquid in the bottle appearing yellow to indicate high turbidity and blue to indicate low turbidity during the drainage stage.
The final part of the dialysis session is the cleansing stage, where the green tank appears sparkling until cleansing is complete. The end of the cleansing stage signifies the conclusion of the peritoneal di-alysis session. Below the stage indicators, safety measurements and device features are listed to reassure the patient, along with flow and pressure alarms. Additional safety protocols have been implemented to address potential component failures. These include redundancy checks between sensors (e.g., dual flow and pressure sensors for cross-validation), automated valve shutdowns upon abnormal readings or delayed actuation, and an emergency flush cycle triggered by a watchdog timer in case of sensor or motor malfunction. Any fault activates an error state in the FSM (state 11111), which immediately halts the system and alerts the user both visually and audibly.
The third interface page is exclusively for the developer, as shown in Figure 11. It includes a virtual-interactive device that enables the engineer to monitor the process remotely. This page also contains detailed sensor values and alarms, along with a termination option for any errors.
The doctor's interface level is the last page, accessible only to doctors, illustrated in Figure 12. It is designed to provide a patient session history, assisting the doctor in reviewing necessary information with a tag indicating the success and safety of the procedure. Its primary objective is to facilitate doctors in efficiently reviewing pertinent information while providing a distinct indicator (yellow tag) to denote the success and safety of the procedure.
4 State machine analysis of the process
4.1 Finite state machine (FSM)
A Finite State Machine (FSM) consists of a limited set of states and transitions and is used to model systems that exhibit a predetermined sequence of actions (states) based on a sequence of events (transitions). FSMs can be represented using state-transition tables or state diagrams. State-transition tables contain the current state, input (transition), and next state (output). In contrast, state diagrams use nodes or squares to represent states and arrows to represent transitions between states, with labels indicating the input that triggers each transition. At any given moment, only one state is active, known as the current state. FSMs are widely used for implementing systems using processors and microprocessors and have applications in various fields (35–37). Thus, they are employed to model the process of the designed PD machine.
Finite state machine design is applied in different healthcare applications because of their ability in modeling complex systems with clear state-transition diagrams. An implementation of a hierarchical finite state (HSM) machine to control various complex processes of a hemodialysis system was presented by (38). In this work, the HSM diagram describes system behavior in a structured hierarchy of states and sub-states, each corresponding to a specific phase of the dialysis treatment such as prepare, treatment, post treatment, and alarm level state. Another example of a patent utilizes FSM was to improve the efficiency and to reduce the medical errors in infusion pumps, where is a state diagram illustrating a method of programming an infusion pump machine (39).
While the current FSM utilizes turbidity as a termination indicator, future development will include serum creatinine monitoring as a more robust physiological marker. Turbidity will act as a supporting indicator. Real-time biosensors for toxin concentration measurement are being explored to enable adaptive FSM transitions based on clearance efficiency rather than preset time-based states.
4.2 Input/output (I/O) description table
The I/O table, Table 2, shows that there are 16 inputs and 18 outputs representing the proposed design in Figure 3.
4.3 State diagram
The state diagram presented in Figure 13 illustrates all possible states for the proposed PD process, where the standby state is assigned as 00000 and the error alarm as 11111. The states from 10001 to 11110 are not utilized.
Where:
Transition = 0 means out of range or unwanted value.
Transition = 1 means within the range or wanted value.
Number of cases cases
Where 5 (the number of flip-flops) and 16 (the total inputs).
4.4 State transition table and flip-flops input equations
The state transition table is used to simplify the illustration of the state, where every row has all the needed conditions for that state to be on. The following row represent the next state and so on. The unused states are annotated at the end of the Table 3.
The un-simplified sum of product flip-flops input equations for PD Controller are as follows:
5 Conclusions
In conclusion, there is a pressing need to improve current peritoneal dialysis devices and processes due to the increasing number of kidney failure patients and the desire to address existing limitations. Therefore, the aim of this work was to implement a state machine design for an optimized automated peritoneal dialysis process. An initial prototype was developed to test the mechanism. This successful testing without any passing solution confirmed the mechanism's effectiveness. Following the successful prototype testing, the final design was implemented. The entire electrical circuit was thoroughly tested, and the final code was verified to ensure overall accuracy. Several key innovations were incorporated into the project, including the addition of a flush system to reduce consumable materials, the design of a user-friendly interface, the inclusion of a turbidity sensor to decrease dialysis time, and a reduction in overall costs.
As a future work, the proposed design could be modified by considering different pats such as reducing the size and weight of the prototype, real time monitoring the toxin clearance efficiency by adding another sensor to check the infection of the dwelled solution not only the color, developing a mobile Applications that compatible with Android and iOS and validating the prototype by testing it for longer time with different scenarios.
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.
Author contributions
WB: Data curation, Resources, Formal analysis, Validation, Methodology, Conceptualization, Writing – original draft. FA: Software, Conceptualization, Resources, Writing – original draft, Data curation, Formal analysis, Validation, Methodology. RA: Resources, Conceptualization, Validation, Methodology, Formal analysis, Writing – original draft, Software, Data curation. MA: Resources, Formal analysis, Writing – original draft, Conceptualization, Data curation, Validation, Methodology, Software. NoA: Formal analysis, Resources, Data curation, Validation, Software, Methodology, Writing – original draft, Conceptualization. IA: Supervision, Investigation, Data curation, Writing – review & editing, Conceptualization, Methodology, Writing – original draft, Project administration, Validation, Visualization, Funding acquisition, Formal analysis. NaA: Conceptualization, Validation, Writing – review & editing, Formal analysis, Methodology. SA: Visualization, Methodology, Investigation, Validation, Supervision, Writing – review & editing, Conceptualization.
Funding
The author(s) declare that financial support was received for the research and/or publication of this article. The authors extend their appreciation to the Deputyship for Research & Innovation, Ministry of Education in Saudi Arabia for funding this research work through the project number IF-2022-044-Eng at Imam Abdulrahman Bin Faisal University/College of Engineering.
Acknowledgments
The authors extend their appreciation to the Deputyship for Research & Innovation, Ministry of Education in Saudi Arabia, for funding this research work through project number IF-2022-044-Eng at Imam Abdulrahman Bin Faisal University/College of Engineering and the Biomedical Engineering Department at Imam Abdulrahman Bin Faisal for their continuous support.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declare that no Generative AI was used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher's note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
References
1. Ministry of Health's Team. Ministry of Health Saudi Arabia (2015). Available online at: https://www.moh.gov.sa/en/Ministry/MediaCenter/News/Pages/News-2015-03-10-001.aspx (Accessed May 03, 2025)
2. Francis A, Harhay MN, Ong ACM, Tummalapalli SL, Ortiz A, Fogo AB, et al. Chronic kidney disease and the global public health agenda: an international consensus. Nat Rev Nephrol. (2024) 20(20):1–13. doi: 10.1038/s41581-024-00820-6
3. Khan AA, Alsofayan YM, Alahmari AA, Alowais JM, Algwizani AR, Alserehi HA, et al. COVID-19 in Saudi Arabia: the national health response. East Mediterr Health J. (2021) 27:11. doi: 10.26719/emhj.21.048
4. Kellum JA, Romagnani P, Ashuntantang G, Ronco C, Zarbock A, Anders H-J. Acute kidney injury. Nat Rev Dis Primers. (2021) 7(1). doi: 10.1038/s41572-021-00284-z
5. Vaidya S, Aeddula N. Chronic Kidney Disease. Treasure Island, FL: National Library of Medicine (2024). Available online at: https://www.ncbi.nlm.nih.gov/books/NBK535404/
6. KDIGO. Chapter 1: definition and classification of CKD. Kidney Int Suppl (2011). (2013) 3(1):19–62. doi: 10.1038/kisup.2012.64
7. LaRocco S. Treatment options for patients with kidney failure. AJN Am J Nurs. (2011) 111(10):57–62. doi: 10.1097/01.naj.0000406421.12214.0e
8. Bekker H, Winterbottom A, Gavaruzzi T, Finderup J, Mooney A. Decision aids to assist patients and professionals in choosing the right treatment for kidney failure. Ndt Plus. (2023) 16(Supplement_1):i20–38. doi: 10.1093/ckj/sfad172
9. Jain AK, Blake P, Cordy P, Garg AX. Global trends in rates of peritoneal dialysis. J Am Soc Nephrol. (2012) 23(3):533–44. doi: 10.1681/asn.2011060607
10. Gokal R, Nolph KD. The Textbook of Peritoneal Dialysis. Dordrecht: Springer Netherlands (1994). doi: 10.1007/978-94-011-0814-0
11. Riaz MM. Peritoneal dialysis related infections: exit site infection & care a quick review. Pakist J Kidney Dis. (2020) 4(2):21–8. doi: 10.53778/pjkd42158
12. Ellam T, Wilkie M. Peritoneal dialysis. Medicine (Baltimore). (2015) 43(8):484–8. doi: 10.1016/j.mpmed.2015.05.001
13. Yoshida H, Tsuruya K. Difference in perception of advantages and disadvantages of automated peritoneal dialysis for patients undergoing peritoneal dialysis: a conjoint analysis. Renal Replace Ther. (2021) 7(1). doi: 10.1186/s41100-021-00368-2
14. Corciulo R, Russo R. Cyclers for APD: current potential and possible developments. G Ital Nefrol. (2009) 26(3):355–68.19554533
15. Sukul N, Zhao J, Fuller DS, Karaboyas A, Bieber B, Sloand JA, et al. Patient-reported advantages and disadvantages of peritoneal dialysis: results from the PDOPPS. BMC Nephrol. (2019) 20(1). doi: 10.1186/s12882-019-1304-3
16. Mahadevan V. Anatomy of the kidney and ureter. Surgery (Oxford). (2019) 37(7):359–64. doi: 10.1016/j.mpsur.2019.04.005
17. Finco DR. Kidney function. In: Kaneko JJ, Harvey JW, Bruss ML, editors. Clinical Biochemistry of Domestic Animals. 5th ed. San Diego, CA: Academic Press (1997). p. 441–84. doi: 10.1016/b978-012396305-5/50018-x
18. Webster AC, Nagler EV, Morton RL, Masson P. Chronic kidney disease. Lancet. (2017) 389(10075):1238–52. doi: 10.1016/s0140-6736(16)32064-5
19. Romagnani P, Remuzzi G, Glassock R, Levin A, Jager KJ, Tonelli M, et al. Chronic kidney disease. Nat Rev Dis Primers. (2017) 3(17088):17088. doi: 10.1038/nrdp.2017.88
20. MNIDDK. Your Kidneys & how They Work. Bethesda, MD: National Institute of Diabetes and Digestive and Kidney Diseases (2018). Available online at: https://www.niddk.nih.gov/health-information/kidney-disease/kidneys-how-they-work
21. Ogobuiro I, Tuma F. Physiology, Renal. Treasure Island, FL: National Library of Medicine (2023). Available online at: https://www.ncbi.nlm.nih.gov/books/NBK538339/
22. Huang J-J, Tseng C-C. Emphysematous pyelonephritis. Arch Intern Med. (2000) 160(6):797. doi: 10.1001/archinte.160.6.797
23. Mukoyama M, Nakao K. Hormones of the kidney. In Melmed S, Conn PM, editors. Endocrinology: Basic and Clinical Principles. Totowa, NJ: Humana Press. (2005). p. 353–65. doi: 10.1007/978-1-59259-829-8_23
24. Gilbert SJ, Weiner DE, Bomback AS, Perazella MA, Tonelli M, National Kidney Foundation. National Kidney Foundation’s Primer on Kidney Diseases. Philadelphia, Pa: Elsevier (2018).
25. Kalantar-Zadeh K, Jafar TH, Nitsch D, Neuen BL, Perkovic V. Chronic kidney disease. Lancet. (2021) 398(10302):786–802. doi: 10.1016/s0140-6736(21)00519-5
26. Fenton SSA, Schaubel DE, Desmeules M, Morrison HI, Mao Y, Copleston P, et al. Hemodialysis versus peritoneal dialysis: a comparison of adjusted mortality rates. Am J Kidney Dis. (1997) 30(3):334–42. doi: 10.1016/s0272-6386(97)90276-6
27. Zazzeroni L, Pasquinelli G, Nanni E, Cremonini V, Rubbi I. Comparison of quality of life in patients undergoing hemodialysis and peritoneal dialysis: a systematic review and meta-analysis. Kidney Blood Press Res. (2017) 42(4):717–27. doi: 10.1159/000484115
28. Sinnakirouchenan R, Holley JL. Peritoneal dialysis versus hemodialysis: risks, benefits, and access issues. Adv Chronic Kidney Dis. (2011) 18(6):428–32. doi: 10.1053/j.ackd.2011.09.001
29. Giuliani A, Crepaldi C, Milan Manani S, Samoni S, Cannone M, De Cal M, et al. Evolution of automated peritoneal dialysis machines. Contrib Nephrol. (2019) 197:9–16. doi: 10.1159/000496302
30. Dell’Aquila R, Rodighiero MP, Spano’ E, Pierluigi Di L, Kohn CO, Cruz D, et al. Advances in the technology of automated, tidal, and continuous flow peritoneal dialysis. Perit Dial Int. (2007) 27(2_suppl):130–7. doi: 10.1177/089686080702702s22
31. Ronco C, Amerling R, Dell’Aquila R, Rodighiero MP, Loreto PD. Evolution of Technology for Automated Peritoneal Dialysis. Basel: KARGER eBooks (2006). p. 291–309. doi: 10.1159/000093624
32. Rivero-Urzua S, Paredes-Rojas JC, Méndez-García SR, Ortiz-Hernández FE, Oropeza-Osornio A, Torres-SanMiguel CR. 3D Low-Cost equipment for automated peritoneal dialysis therapy. Healthcare. (2022) 10(3):564–564. doi: 10.3390/healthcare10030564
33. Toghraei M. Principles of P&ID development. In: Piping and Instrumentation Diagram Development. Hoboken, NJ: John Wiley & Sons, Inc (2019). p. 45–68. doi: 10.1002/9781119329503.ch5
34. Chakrabarti S. Project Engineering Primer for Chemical Engineers. Singapore: Springer eBooks (2022). doi: 10.1007/978-981-19-0660-2
35. Wakerly J. Digital Design: Principles and Practices. 4th ed. Upper Saddle River, NJ: Prentice-Hall, Inc eBooks (2005).
37. Lee D, Yannakakis M. Principles and methods of testing finite state machines-a survey. Proc IEEE. (1996) 84(8):1090–123. doi: 10.1109/5.533956
38. Wilt MJ, Van der Merwe DA, Dale JD, Tracey BD, Grant KL, Demers JA, et al. Automated Control Mechanisms and Methods for Controlling Fluid Flow in a Hemodialysis Apparatus. U.S. Patent No. 11,725,645. Washington, DC: U.S. Patent and Trademark Office (2023). Available online at: https://patentscope.wipo.int/search/en/detail.jsf?docId=US295678242&_cid=P22-MCNTNA-61258-1
39. Zhang J, Liu H, Li W, Wang Q. Computer-implemented Method, System, and Apparatus for Electronic Patient Care. Chinese Patent CN107256325 (2017). Available online at: https://patentscope.wipo.int/search/en/detail.jsf?docId=CN205470413&_cid=P22-MCO3DO-26820-1
Keywords: state machine design, automated peritoneal dialysis (APD), peristaltic pump, biomechanics, hemodialysis, chronic kidney disease (CKD), dialysis solutions
Citation: Baroudi WA, Alnahdi FB, Aljohani RS, Alzuabi MA, Alsaqoub NK, Aljamaan IA, Alrubai NA and Ali S (2025) State machine design for an automated peritoneal dialysis machine. Front. Med. Technol. 7:1630829. doi: 10.3389/fmedt.2025.1630829
Received: 18 May 2025; Accepted: 5 August 2025;
Published: 29 August 2025.
Edited by:
Xin Hu, National Center for Child Health and Development (NCCHD), JapanReviewed by:
Le Li, Southwest Medical University, ChinaPetru Adrian Radu, Nephrology Clinical Hospital "Dr. Carol Davila", Romania
Copyright: © 2025 Baroudi, Alnahdi, Aljohani, Alzuabi, Alsaqoub, Aljamaan, Alrubai and Ali. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Ibrahim A. Aljamaan, aWFhbGphbWFhbkBpYXUuZWR1LnNh