The concept of the 4D heart refers to a comprehensive, time-sequential representation of a beating heart, showcasing its progression from diastole to systole. This is achieved by creating a series of 3D models that accurately depict the heart's internal structures throughout its rhythmic cycle. Although modern medical imaging technologies, such as computed tomography (CT) and magnetic resonance imaging (MRI), have made it possible to generate detailed 3D data blocks during the cardiac cycle, visualizing the intricate intracardiac processes of a beating heart in 3D still requires segmenting the heart at each phase. This becomes particularly important in cases of dynamic cardiac pathologies, like hypertrophic obstructive cardiomyopathy, where a meticulously segmented 4D heart model can be instrumental in devising effective surgical strategies.
Currently, the process of segmenting these images is a laborious, manual task that involves carefully distinguishing the heart from other structures in the scan. Our objective is to streamline this process by automating myocardial wall segmentation throughout the entire cardiac cycle. To achieve this, we plan to create a machine-learning model capable of identifying the heart and generating accurate masks for the given CT images.
Once the segmentation is complete, we will utilize the machine-learning model's output to construct a 4D heart model that captures the heart's dynamic nature. By developing and refining these innovative heart modeling techniques, we aim to propel medical imaging technology to new heights, thereby enhancing diagnostic and surgical planning capabilities in the field of cardiology.
The primary objective is to automate myocardial wall segmentation throughout the cardiac cycle using advanced machine learning algorithms and techniques. This automation will facilitate the construction of a 4D heart model, providing a new level of insight into cardiac activities for improved surgical strategies.
- Python 3.x
- Jupyter Notebook
- Quantum Machine Learning Algorithms
- Coronary Computed Tomography Angiography (CCTA)
- Libraries: Numpy, Pydicom, SimpleITK, qiskit, TensorFlow
This repository contains specialized Python code and Jupyter Notebooks focused on heart failure prediction using machine learning algorithms. Below is a detailed description of each key file:
This Python file is geared towards implementing quantum machine learning algorithms for predicting heart failure.
- Importing Libraries: Libraries such as numpy, pandas, and qiskit are imported.
- Data Preprocessing: Functions for data preprocessing are defined.
- Quantum Circuit Creation: Functions to create quantum circuits are defined.
- Model Training: Code for training the quantum machine learning model is included.
- Evaluation: Code for evaluating the model's performance is present.
This Python file is specialized for cardiac segmentation using CCTA images.
- Importing Libraries: Libraries such as numpy, pydicom, and SimpleITK are imported.
- Reading DICOM Files: Functions for reading DICOM files are defined.
- Image Preprocessing: Functions for preprocessing CCTA images are included.
- Segmentation: Code for cardiac segmentation is present.
This Jupyter Notebook is used for segmenting the left atrial region of the heart, possibly using NIfTI (.nii) files.
-
Clone this repository.
git clone https://github.com/Kidus-berhanu/4D-Heart-Failure-Predication-AI-using-Machine-learning-algorithms.git
-
Install dependencies.
pip install -r requirements.txt
-
Run Jupyter Notebook.
jupyter notebook
- Open
Quantum Machine Learning.py
orcardiacsegmentationccta.py
in Jupyter Notebook. - Run all cells to see the segmentation results and 4D model generation.
Feel free to contribute to this project. Fork the project, make your changes, and submit a pull request.
This project is licensed under the MIT License. See the LICENSE.md file for details.