MathWorks News and Stories

Students Design a Low-Cost, Lifesaving Heart Pump

AI, Model-Based Design, and Code Generation Optimize Biomedical Device Development


For millions with congestive heart failure, the condition can be deadly. Only around 10,000 of the 200,000 people on waiting lists will receive transplants. A surgically implanted heart pump, known as a left ventricular assist device (LVAD), can extend life expectancy for individuals awaiting transplants and provide long-term treatment for others. However, high costs and limited access often make this vital intervention unaffordable.

Enter Kamuran Kadıpaşaoğlu, a biomedical engineering associate professor in the School of Electrical and Electronics Engineering at Yildiz Technical University (YTU) in Istanbul. After decades of leading cardiovascular surgical research labs in the United States, he now heads the Physiological Control Laboratory (PCL) at YTU. His students are developing a smarter, low-cost alternative to commercially available LVADs.

“Technologically, we’re trying to improve existing technology with the ultimate goal to create a competitive, reliable, efficient, safe, and economical pump that closes the gap in the market,” Kadıpaşaoğlu says.

In Turkey, the cost for a single LVAD, including surgery, starts at $75,000. Kadıpaşaoğlu says that his students’ mechanical circulatory support system should cost less than half that. And, unlike heart pumps that require patients to adjust their speed manually, the students’ device promises to change dynamically in real time.

Students in the lab maximized the university’s Campus-Wide License from MathWorks to develop their innovative heart pump system through Model-Based Design using Simulink®. MATLAB® formed the foundation.

"MATLAB is easy to learn, and you can create anything that comes to mind."

Laboratory setup showing testing of the LVAD. The LVAD is in a clear tube on the right side.

The Physiological Control Laboratory (PCL) at YTU. Kamuran Kadıpaşaoğlu and his students are developing a smarter, low-cost alternative to commercially available LVADs.
(Image credit: YTU Davutpaşa Campus, Physiological Control Laboratory)

“We tried other software, but it was harder to create models and systems,” says research assistant Mert Yiğit, a recent biomedical engineering graduate specializing in turbine design and computational fluid dynamics. “MATLAB is easy to learn, and you can create anything that comes to mind.”

The lab’s mechanical circulatory support system includes an implantable heart pump powered by batteries, a smart controller, and a wireless portable patient unit for vitals monitoring. Students made nearly all the hardware for their prototypes on-site.

While considering the path to clinical trials, the young YTU team came up with an approach to minimize animal testing for their LVAD and other heart devices. They built a hybrid pneumo-hydraulic mock circuit in MATLAB that enables rigorous testing in realistic cardiovascular conditions. The students optimized and accelerated computations using GPU Coder™ and a powerful NVIDIA® workstation. 

“The students are the dynamo behind this whole project,” Kadıpaşaoğlu says. Their research was published in the International Journal of Robust and Nonlinear Control.

Hands-On Experience

LVAD technology has evolved significantly since the early artificial heart advancements of the 1960s. By 1994, a large external pneumatically driven device had received FDA approval in the United States. Successive generations moved to a continuous-flow rotary pump system and became smaller, implantable, and more durable. But limitations persisted.

Kadıpaşaoğlu spent nearly 20 years working on new surgical interventions for heart failure at the Texas Heart Institute in Houston. He understands heart pump technology and the accessibility hurdles around it firsthand.

“Before we thought to use MATLAB, I was staying up all night working in other software and getting errors. Realizing I could just build it with MATLAB was the best experience.”

“Coming from Turkey, we have a hard time financing these devices,” Kadıpaşaoğlu observes. “And Turkish surgeons haven’t gone through a research phase with device engineers, so they’re inexperienced. They would implant pumps in patients after training for a day or two, sometimes with disastrous results.”

He brought his knowledge and experience back home to teach enterprising YTU students about LVAD development, foster academic ties to the medical sector, and lay the groundwork for manufacturing affordable heart pumps in Turkey. Kadıpaşaoğlu serves as a mentor to students on biomedical, electrical, and control engineering career paths.

“I’m trying to help them secure training in hospitals and surgical theaters so that they can have hands-on experience with blood, open chests, and beating hearts,” he says. 

Kadıpaşaoğlu encourages self-directed research. Mini portraits of influential scientists such as Sir Isaac Newton and Joseph-Louis Lagrange line the lab walls for inspiration. There are around 20 students in the group, including two who graduated summa cum laude: Derya Sahin and Ahmed Alhajyounis. The students come up with projects, write grants, and coauthor journal articles.

Yiğit displayed the team’s latest LVAD prototype, a rigid 7.2-centimeter (2.8-inch)-long cylindrical turbine that the group crafted from biocompatible titanium alloy.

“We tried to automate a system that models the LVAD. Before we thought to use MATLAB, I was staying up all night working in other software and getting errors,” Yiğit recalls. “Realizing I could just build it with MATLAB was the best experience.” The lab received key support from MathWorks customer success engineer Marco Rossi and the academic team at local MathWorks distributor Figes.

In their LVAD design, blood acts as a lubricant for the bearing and a coolant for the flux brushless DC electrical motors. Dual motors keep the device running even if a fault occurs, enabling the patient to continue activities until they can visit a hospital.

“The axial flow inside is novel,” Yiğit says, showing where two motors nestle inside the tiny turbine. Simulink and Simscape™ helped the students maximize motor performance and compatibility with the turbine. They determined optimal motor part geometry through iterative electromagnetic simulations.

Animation of the assembly of the LVAD. (Image credit: YTU Davutpaşa Campus, Physiological Control Laboratory)

Each motor’s moving sections are made from a soft magnetic composite and a plastic template that fits on top, holding mini magnets. They also used the magnetic composite for the toothed stationary core, wrapping thin copper wire around it to produce a magnetic field that interacts with the moving part.

Early on, the students waited an entire year for an outside group to produce a single motor. “When our team decided to build our motors, we did it in one month,” Yiğit explains.

Realistic Cardiovascular Device Testing

The LVAD boasts additional innovations. Often, patients manually adjust the heart pump speed, dialing it up for exercise and down for sleep. The students are developing a noninvasive smart controller with MATLAB for their LVAD that estimates critical parameters like blood pressure from the patient’s heart pump data and adjusts the speed automatically. The team used Simulink Control Design™ and Simulink Real-Time™ to fine-tune the parameters.

A wireless portable patient unit prototype shows the wearer’s vital signs and how much battery charge the unit has left. This enables the patient’s doctor to monitor health in real time and make data-driven decisions, remotely adjusting the pump speed as needed.

Before the YTU mechanical circulatory support system can progress to animal and clinical trials, the students are refining prototypes with their own advanced electronic cardiovascular model.

“Our hybrid mock circuit takes this simulation and brings it into the physical world,” Yiğit says. “The hardware setup replicates real physiological conditions based on the cardiovascular model, allowing us to test biomedical devices like the LVAD in a highly realistic and safe environment.”

“A single simulation used to require one minute to process all the information. Using GPU Coder with the Jetson, it now takes only 10 seconds.”

A diagram shows how the team captures particle image velocimetry using a camera and a laser pointed at the LVAD. A monitor is on the far right-hand side.

The particle image velocimetry (PIV) station. (Image credit: YTU Davutpaşa Campus, Physiological Control Laboratory)

The lab used Simulink and MATLAB to construct the complex cardiovascular model of this engineered system, where several systems function in series with one another. Adjusting a single parameter in one system influences the other parameters in tandem, Kadıpaşaoğlu pointed out.

“Simulink makes it easy to build a cardiovascular system simulator, but the most difficult part is adjusting for the desired patient-specific outcomes,” he says.

Yiğit unveiled the latest physical hybrid mock circuit setup in the lab, with their most recent LVAD prototype visible inside a sleek water-filled chamber connected to hydraulics. He explained that creating controllers for the pump flows and pressures inside these physical components was extremely difficult, as the pneumatic systems are nonlinear.

“Pressure accumulates inside, so if you enter the wrong inputs, water could spray all over the place,” Yiğit cautions.

To find the control coefficients, they created a digital twin of their hybrid mock circuit in MATLAB. The group leveraged Q-learning, a reinforcement-based approach, with Statistics and Machine Learning Toolbox™ to identify the control coefficients for their cardiovascular system. PCL members developed a machine learning algorithm that automatically adjusted the controllers. Now, if someone enters the wrong input, there’s no liquid explosion.

The group tackled other challenges. Cardiovascular modeling data resembles a bowl of spaghetti. Flow imaging, called particle image velocimetry (PIV), enables researchers to visualize blood flow patterns and velocities. The team worked on image processing and reconstruction in MATLAB, but discovered that simulating fluid dynamics, blood flow, and cardiovascular system scenarios was computationally demanding.

A flow diagram showing, from left to right: a 2D, unprocessed image in MATLAB obtained from the PIV setup, a screenshot of the MATLAB code, and a box labeled “GPU Coder.”

Code generation workflow to process a PIV image with Image Processing Toolbox™ in MATLAB. (Image credit: YTU Davutpaşa Campus, Physiological Control Laboratory)

“When I looked in the MATLAB forums for information about parallel computing, I saw that GPU Coder speeds up the process,” Yiğit says, adding that the documentation was easy to understand.

They started with a NVIDIA Quadro® P1000 GPU workstation before upgrading to a NVIDIA Jetson™ TX2. Using GPU Coder to generate CUDA® code optimized for GPU execution allowed them to run their cardiovascular model more efficiently on the TX2.

“A single simulation used to require one minute to process all the information. Using GPU Coder with the Jetson, it now takes only 10 seconds,” Yiğit says.

Through this setup, the students can easily test their cardiovascular model under varying conditions while making frequent adjustments to the physical parameters. Additionally, they utilized MATLAB Coder™ to convert their MATLAB algorithms into C and C++ code for deployment on a dSPACE® real-time processing system, allowing them to operate the hybrid mock circuit. They successfully validated their heart pump prototype’s dual motor system in the hybrid mock circuit by simulating a patient’s physiological conditions with just one operational motor.

PCL members have a new effort underway that leverages machine learning to determine the optimal blood flow rate for the LVAD prototype. And the entire team is working to reduce the size of the heart pump by 20% while improving its efficiency. They also seek to make their hybrid mock circuit more compact and bring it to market.

The group plans to eventually replace the dSPACE real-time processing system with the Jetson TX2 board to greatly increase the performance of the real-time simulation. The group’s use of GPU Coder in the simulation phase will help ease the migration.

“We’re continually asking ourselves whether a technology is something we have to buy or something we could create ourselves,” Yiğit says. “If we can create it on our own, we develop a project around it.”

Kadıpaşaoğlu reflected that he’s more than met his goals since launching the lab at Yildiz Technical University. “We are starting to get our name on the map,” he says. “People are coming to us for interviews. The laboratory has become a place where other universities send their undergraduate students to train.”



Read Other Stories

Panel Navigation

MEDICAL DEVICES

Simulating Surgery in 3D for New Medical Device Design

Virtual Validation of In-Office Robotic Surgery

Panel Navigation

MEDICAL DEVICES

Breath Powers Pediatric Prosthetic Hand

Virtual Prototyping Produces Intuitive Device for Children

Panel Navigation

ROBOTICS / MEDICAL DEVICES

Autonomous Pediatric Exoskeleton Takes Its First Steps

Robotic Medical Device Advances Physical Therapy for Children