Srs
Srs
VERSION 1.0
1
Revision History
2
Table of Contents
Introduction.................................................................................................................... 5
Scope of Project.............................................................................................................6
Functional and Non Functional Requirements............................................................7
Functional Requirements:........................................................................................................7
Non-Functional Requirements:................................................................................................8
Use Case Diagram(s)..................................................................................................... 9
Dataset.......................................................................................................................... 10
1. Total Patients......................................................................................................................10
2. MRI Modalities..................................................................................................................10
3. Data Format........................................................................................................................10
Usage Scenarios.......................................................................................................... 14
Use Case 1: Data Collection...................................................................................................14
Use Case 2: Data Integrity Verification.................................................................................15
Use Case 3: Image Preprocessing..........................................................................................16
Use Case 4: Dataset Splitting.................................................................................................17
Use Case 5: Deep Learning Model Training..........................................................................18
Use Case 6: Model Evaluation...............................................................................................19
Use Case 7: Noise Reduction.................................................................................................20
Use Case 8: Image Resizing...................................................................................................21
Use Case 9: Tumor Segmentation..........................................................................................22
Use Case 10: Tumor Classification........................................................................................23
Use Case 11: Generate Tumor Report....................................................................................24
Use Case 12: View Tumor Report.........................................................................................25
Use Case 13: Treatment Planning..........................................................................................26
Use Case 14: Download Report.............................................................................................27
Adopted Methodology................................................................................................. 29
Waterfall Model:....................................................................................................................29
3
Agile Model:..........................................................................................................................31
VU Process Model........................................................................................................33
The VU Process Model Phases...................................................................................34
Work Plan (Use Ms Project to Create Schedule/ Work Plan)....................................36
4
Introduction
The primary objective of this project is to develop an advanced brain tumor segmentation model
using deep learning and image processing techniques. This project focuses on processing brain
MRI scans to identify and segment brain tumors accurately, providing valuable insights for
medical diagnoses. The scope includes the collection and preprocessing of MRI images from a
reliable dataset, such as the BraTs2019 dataset, which contains annotated MRI images of brain
tumors. These images will be carefully pre-processed to enhance their quality and suitability for
analysis, including operations such as noise reduction, normalization, and resizing.
Next, the dataset will be divided into training, validation, and testing subsets to ensure that the
deep learning model is properly trained and validated while preventing overfitting. The
segmentation task will be tackled using state-of-the-art deep learning models, with a focus on
advanced architectures like Capsule Networks (CapsNet), which have shown promise in medical
image segmentation tasks. The model will be trained to accurately segment various types of
brain tumors, including gliomas, meningiomas, and pituitary tumors.
The evaluation of the model will be a critical aspect of this project, and it will be conducted
using robust metrics such as Dice Score and Hausdorff Distance, which are specifically designed
to assess the accuracy and precision of segmentation results. These metrics will ensure that the
model's performance is not only reliable but also clinically relevant. Ultimately, the project aims
to contribute to the field of medical image processing by improving the accuracy and efficiency
of brain tumor segmentation, which can lead to better diagnoses, treatment planning, and patient
outcomes. By leveraging deep learning techniques in combination with the BraTs2019 dataset,
the project aspires to advance the capabilities of AI in healthcare and medical imaging.
5
Scope of Project
Brain tumor segmentation is a crucial task in medical image analysis, and it has significant
implications for diagnosis, treatment planning, and monitoring the progression of brain tumors.
Image processing is a powerful field of study that has numerous real-world applications. It
involves the manipulation of digital images to extract useful information or enhance specific
features. In this project, we aim to explore the fascinating realm of image processing and its
applications in the healthcare domain, specifically in the context of brain tumor segmentation.
This project centres on the realm of medical imaging, specifically the challenging task of brain
tumor segmentation using deep learning techniques. Brain tumors are abnormal growths of tissue
within the brain that can be cancerous or non-cancerous. Accurate and early diagnosis is
essential for timely treatment and improved patient outcomes.
The scope of a brain tumor segmentation project typically involves several key aspects:
Image acquisitions
Pre-processing
Data annotation
Algorithm development
Integration with clinical workflow
Real – time processing
Multi- modality integrations
Post-processing and visualization
Clinical application
Brain tumor segmentation projects often require collaboration between computer scientists,
medical professionals, and imaging experts to ensure the development of robust and clinically
relevant solutions. The scope can vary depending on the specific goals of the project and the
available data and resources.
6
Functional and Non Functional Requirements
Functional Requirements:
2. Dataset Splitting:
o Divide the dataset into the following sets:
Training Set (70%): For model training.
Validation Set (20%): For hyperparameter tuning.
Testing Set (10%): For performance evaluation.
o Use stratified sampling to maintain class distributions across sets.
4. Model Training:
o Employ advanced optimization techniques like Adam Optimizer with a
scheduled learning rate decay.
o Use loss functions tailored for segmentation, such as Dice Loss and Binary
Cross-Entropy Loss.
7
o Implement real-time data augmentation to improve generalization, including
rotation, flipping, and random cropping.
5. Model Evaluation:
o Evaluate the model using key metrics:
Dice Score: To measure segmentation overlap.
Hausdorff Distance: To assess the spatial accuracy of segmentation.
o Generate visual outputs to compare ground truth and model predictions.
6. User Interface:
o Develop a simple user interface (UI) using tools like Flask or Streamlit.
o Allow users to:
Upload an MRI scan.
View segmented output along with a confidence score.
Download the processed image.
Non-Functional Requirements:
1. Performance: The system should process a 3D MRI scan within 2-3 seconds during
inference.
2. Scalability: The model and infrastructure should support the addition of more MRI
datasets and segmentation types.
3. Reliability: Maintain consistent and accurate segmentation results across all scans.
4. Usability: The UI should be intuitive, allowing medical professionals to upload, analyze,
and download results with ease.
5. Security: Ensure all uploaded medical data is stored securely and complies with privacy
standards (e.g., HIPAA).
8
6. Maintainability: The codebase should be modular and well-documented for future
enhancements.
7. Portability: The system should be deployable across various platforms, including local
machines and cloud environments.
9
Dataset
The dataset used in this project is the BraTS 2019 Dataset (Brain Tumor Segmentation
Challenge), which is widely recognized for benchmarking brain tumor segmentation tasks in
medical imaging. This dataset includes MRI scans of patients diagnosed with High-Grade
Gliomas (HGG) and Low-Grade Gliomas (LGG). It provides multimodal imaging data,
segmented tumor regions, and other annotations essential for training and evaluating machine
learning models.
1. Total Patients
2. MRI Modalities
Each patient has five different MRI scans, covering the following modalities:
10
3. Data Format
All images are stored in the .nii.gz (NIfTI) format, which is widely used for medical
imaging data.
Files are named based on the patient ID and MRI modality. Examples of file names:
o BraTS19_2013_10_1_flair.nii.gz
o BraTS19_2013_10_1_t1.nii.gz
o BraTS19_2013_10_1_t1ce.nii.gz
o BraTS19_2013_10_1_t2.nii.gz
o BraTS19_2013_10_1_seg.nii.gz
Dataset Details:
1. Source
2. Image Modalities
3. Image Preprocessing
11
Interpolated to a voxel size of 1 mm³ resolution.
1. Segmentation Labels
2. Annotation Process
3. Tumor Sub-Regions
Enhancing tumor.
Edema.
Tumor core.
Data Splitting
1. Training Set
12
Includes MRI scans with ground truth labels.
2. Validation Set
3. Testing Set
Data Accessibility
Participants are permitted to use only the provided dataset, unless explicitly stated otherwise. If
additional private data is used for augmentation, results must also include experiments based
solely on the BraTS 2019 dataset to ensure fairness and comparability.
13
Usage Scenarios
Actors: Admin
Description:
The admin collects data from the BraTS2019 dataset for brain tumor segmentation.
Pre-conditions:
Task Sequence:
Alternative Paths:
Exceptions:
14
o The dataset may be unavailable due to network issues.
Post-conditions:
Author: BC210209889
Actors: Admin
Description:
The admin verifies the integrity of the MRI scans to ensure quality for further analysis.
Pre-conditions:
Task Sequence:
Alternative Paths:
Exceptions:
15
o Corrupted MRI files may need to be excluded from further analysis.
Post-conditions:
Author: BC210209889
Actors: Doctor
Description:
The doctor preprocesses the MRI scans to enhance their quality for segmentation.
Pre-conditions:
Task Sequence:
Alternative Paths:
16
Exceptions:
Post-conditions:
Author: BC210209889
Actors: Admin
Description:
The admin splits the dataset into training, validation, and testing sets.
Pre-conditions:
Task Sequence:
1. Admin splits the dataset into 70% training, 20% validation, and 10% testing.
2. Admin ensures the distribution of tumor types is consistent across the sets.
Alternative Paths:
17
Exceptions:
Post-conditions:
Author: BC210209889
Actors: Doctor
Description:
The doctor trains a Capsule Network model for 3D tumor segmentation.
Pre-conditions:
Task Sequence:
Alternative Paths:
18
Exceptions:
Post-conditions:
Author: BC210209889
Actors: Doctor
Description:
The doctor evaluates the trained model's performance using evaluation metrics.
Pre-conditions:
Task Sequence:
Alternative Paths:
o If performance is insufficient, the doctor retrains the model with adjusted parameters.
19
Exceptions:
o Evaluation may fail if the model is incompatible with the testing set.
Post-conditions:
Author: BC210209889
Actors: Doctor
Description:
The system reduces noise in MRI scans using advanced filtering techniques.
Pre-conditions:
Task Sequence:
1. The doctor loads MRI images into the noise reduction module.
Alternative Paths:
20
Exceptions:
Post-conditions:
Noise-free MRI images are generated.
Author: BC210209889
Actors: Doctor
Description:
MRI scans are resized to ensure uniform dimensions for model input.
Pre-conditions:
Task Sequence:
Alternative Paths:
o If resizing results in loss of important details, the doctor may adjust dimensions.
Exceptions:
21
o Corrupted images cannot be resized.
Post-conditions:
Uniformly resized MRI images are generated.
Author: BC210209889
Actors: Doctor
Description:
The system segments brain tumors from MRI images using the trained model.
Pre-conditions:
Task Sequence:
Alternative Paths:
22
Exceptions:
Post-conditions:
Accurate tumor segmentation results are generated.
Author: BC210209889
Actors: Doctor
Description:
The system classifies segmented tumors as malignant or benign.
Pre-conditions:
Task Sequence:
1. The doctor loads segmented tumor data into the classification module.
Alternative Paths:
23
Exceptions:
Post-conditions:
Tumors are classified accurately.
Author: BC210209889
Description:
The system generates a report detailing the segmentation and classification results.
Pre-conditions:
Task Sequence:
Alternative Paths:
24
Exceptions:
Post-conditions:
A detailed tumor report is generated and ready for sharing.
Author: BC210209889
Description:
The patient and doctor access the generated tumor report.
Pre-conditions:
Task Sequence:
Alternative Paths:
25
Exceptions:
Post-conditions:
The tumor report is successfully reviewed.
Author: BC210209889
Actors: Doctor
Description:
The doctor uses segmentation and classification results to create a treatment plan.
Pre-conditions:
Task Sequence:
2. The doctor formulates a treatment plan based on tumor size and type.
Alternative Paths:
o If report details are unclear, the doctor may conduct further analysis.
26
Exceptions:
Post-conditions:
A comprehensive treatment plan is created.
Author: BC210209889
Description:
The patient or doctor downloads the generated tumor report for offline use.
Pre-conditions:
Task Sequence:
2. The user selects the download option for the tumor report.
Alternative Paths:
27
Exceptions:
Post-conditions:
The report is successfully downloaded and stored offline.
Author: BC210209889
28
Adopted Methodology
Waterfall Model:
The waterfall model is a linear or sequential approach to project management and work
based on fixed dates, requirements and outcomes. It’s made up of the following phases:
Requirements, Design, Implementations, Verification and Maintenance. Each phase is run
through only once. The results of each preceding phase are used as assumptions in the
subsequent phase. The waterfall model is one of the earliest models of software development,
and tasks are executed in a sequence manner where we start from the top with feasibility and
flow down through various tasks with implementation into live environment.
Advantages:
Clear structure: The waterfall model uses a clear and defined set of steps
Minimal scope creep: The model has well-defined roles and responsibilities.
Disadvantages:
29
Figure 02: Waterfall model
Agile Model:
30
The agile method refers to a software development approach based on iterative
development. It breaks tasks into smaller iterations or parts which do not directly involve long-
term planning. It is a continuous iterative process that involves development and testing activities
together. It is a combination of both iterative and spiral model. It is people-focused and results-
focused.
Advantages:
Improved quality
Stakeholder’s engagement
Disadvantages:
Lack of predictability
Documentation tends to get sidetracked, which makes it harder for new members to get
up to speed.
31
Figure 03: Agile Model
VU Process Model
The VU Process Model is a comprehensive approach that merges the benefits of both the
Waterfall and Agile models, making it an ideal choice for complex projects such as brain tumor
segmentation. The project initiation begins with a meticulous definition of the requirements,
32
followed by the design of the software architecture, adhering to the principles of the Waterfall
model. This step ensures that the project has a well-defined scope and a robust plan in place. The
next phase involves translating the design into code. This is done using the Agile model, which is
characterized by small, frequent iterations of development and testing. This approach allows for
quick feedback and adjustments to be made in response to changing needs or challenges that may
arise during the development process.
Once the code units are developed, they are integrated and tested as a complete system.
This crucial step ensures that the software meets the predefined quality standards and functions
as expected. Following the testing phase, the software is deployed, and its performance is closely
monitored and evaluated. This allows the team to identify any areas of improvement or potential
issues that may impact the software’s performance. Post-deployment, any updates or fixes are
implemented using the Agile model. This ensures that the software is continuously improved and
maintained, thereby enhancing its efficiency and usability. The VU Process Model is particularly
suitable for this project as it offers a clear structure and predictability from the Waterfall model,
while also providing the flexibility and adaptability of the Agile model. This hybrid approach
ensures that the project is well-managed, adaptable to changes, and results in high-quality,
efficient software.
1. Requirements Analysis:
Define the requirements for the brain tumor segmentation. This could include the type of
images the software should be able to process, the accuracy of the segmentation, etc.
33
processing, machine learning models for segmentation, etc.
34
Figure 04: VU Process Model
35
Work Plan (Use Ms Project to Create Schedule/ Work Plan)
36