Major RRR
Major RRR
2025 - 2026
1
DECLARATIONS
We hereby declare that this submission is our own work and that, to the best of my knowledge
and belief, it contains no material previously published or written by another person nor material
which has been accepted for the award of any other degree or diploma of the university or other
institute of higher learning, except where due acknowledgement has been made in the texts.
Place: Signature:
Date: Name:
Enrollment No:
2
CERTIFICATE
This is to certify that work titled “Kidney Stone Detection Using CT Scans” submitted by
“Lakshya, Yashraj Gopaliya” in partial fulfillment for the award of degree of Bachelor of
Technology in Computer Science of Jaypee Institute of Information Technology, Noida has been
carried out under my supervision. This work has not been submitted partially or wholly to any
other University or Institute for the award of this or any other degree or diploma.
Date:
3
ACKNOWLEDGEMENT
We would like to place on record our deep sense of gratitude to “Dr. Varun Srivastava”, Jaypee
Institute of Information Technology, Noida for his generous guidance, help and useful
suggestions. We express our sincere gratitude to him for his stimulating guidance, continuous
encouragement and supervision throughout the course of the present work.
Special thanks also go to our seniors whose contributions, big or small, greatly influenced this
project report. We are truly indebted to them for their support.
Name Signature
1. LAKSHYA (22103075)
2. YASHRAJ GOPALIYA(22103080)
Date:
4
5
ABSTRACT
Kidney stone detection using CT scans is a critical medical task that traditionally relies on manual
interpretation by radiologists. This process is time-consuming, subject to inter-observer variability,
and prone to human error, especially under high workload conditions. Delays or mistakes in
diagnosis can lead to patient discomfort, complications, and increased healthcare costs.
This project presents solution that automates kidney stone detection by integrating a Deep
Convolutional Neural Network (CNN) with a secure web portal. The proposed model is trained on a
curated dataset of axial CT slices and classifies images into two categories – "Stone" and "Normal"
– with high accuracy (85%). To improve clinical trust, the system generates explainable outputs
including Grad-CAM heatmaps and a transformer attention map that highlight the suspected stone
region.
A FastAPI (Flask-compatible) backend processes uploaded images in real time and returns
predictions along with estimated stone size, density type, and CT plane orientation. The frontend
provides an intuitive interface for entering patient details, uploading scans, and viewing results. The
system also includes secure login functionality and a browser-based database (localStorage) to
manage patient records, allowing clinicians to review past diagnoses.
This solution aims to assist healthcare professionals by reducing diagnostic time, minimizing
manual errors, and offering an accessible preliminary screening tool – particularly useful in rural or
resource-limited settings where expert radiologists may not be readily available.
Keywords: CNN, Kidney Stone Detection, CT Scan, Flask, Medical Imaging, Grad-CAM
6
TABLE OF CONTENT
Chapter No. Topics Page No.
CHAPTER 1 INTRODUCTION 10-15
1.1 Background
1.2 Problem Definition
1.3 Objectives
1.4 Scope
1.5 Limitations
1.6 Organization of Report
CHAPTER 2 LITERATURE SURVEY 16-19
2.1 Introduction
2.2 Traditional Methods
2.3 Machine Learning Approaches
2.4 Deep Learning Techniques
2.5 Comparative Analysis
2.6 Research Gap
CHAPTER 3 SYSTEM DESIGN & METHODOLOGY 20-23
3.1 Introduction
3.2 System Overview
3.3 System Architecture
3.4 Workflow
3.5 CNN Model Design
3.6 Data Preprocessing
3.7 Backend Design
3.8 Frontend Design
3.9 Database Design
3.10 Security Features
CHAPTER 4 IMPLEMENTATION & TESTING 24-27
4.1 Introduction
4.2 Development Environment
4.3 Project Structure
4.4 Model Implementation
7
4.5 Backend Implementation
4.6 Frontend Implementation
4.7 Database Implementation
4.8 Testing Methods
4.9 Error Handling
CHAPTER 5 SYSTEM REQUIREMENTS 28-29
5.1 Introduction
5.2 Functional Requirements
5.3 Non-Functional Requirements
5.4 Hardware Requirements
5.5 Software Requirements
5.6 Constraints
CHAPTER 6 ALGORITHMS & MODEL DETAILS 30-31
6.1 Introduction
6.2 Image Processing
6.3 CNN Architecture
6.4 Model Training
6.5 Model Evaluation
6.6 Advantages
6.7 Limitations
CHAPTER 7 RESULTS AND DISCUSSION 32-34
7.1 Introduction
7.2 Performance Analysis
7.3 Accuracy Discussion
7.4 Reliability
7.5 Comparison with Existing Methods
7.6 Advantages and Limitations
CHAPTER 8 CONCLUSION AND FUTURE SCOPE 35-37
8.1 Introduction
8.2 Summary of Work
8.3 Achievements
8.4 Limitations
8.5 Future Scope
8
8.6 Final Conclusion
CHAPTER 9 SOCIAL, ETHICAL AND ENVIRONMENTAL IMPACT 38-41
9.1 Introduction
9.2 Social Impact
9.3 Ethical Considerations
9.4 Environmental Impact
9.5 Legal Aspects
CHAPTER 10 LIMITATIONS AND IMPROVEMENTS 42-43
10.1 Introduction
10.2 System Limitations
10.3 Possible Improvements
10.4 Overall Evaluation
CHAPTER 11 SYSTEM OUTPUT & SCREENSHOTS 44-54
11.1 Introduction
11.2 Login Page Variants
11.3 Main Dashboard & Patient Entry
11.4 CT Scan Upload Interface
11.5 Prediction Output – Kidney Stone Detected
11.6 Prediction Output – Normal / No Stone
11.7 Database & Secure Clinic Records
11.8 Error Handling – Duplicate Patient ID & Invalid Login
11.9 Clinical Information Panel
11.10 Additional System Views
11.11 Summary of Outputs
CHAPTER 12 CRITICAL ANALYSIS OF PRIOR STUDIES 55-62
12.1 Introduction
12.2 Traditional Image Processing Methods
12.3 Machine Learning Approaches
12.4 Deep Learning for Medical Image Analysis
12.5 Attention Mechanisms and Explainability
12.6 Plane Detection and Size Estimation
12.7 Web-based Deployment of Medical AI
9
12.8 Comparative Analysis of Existing Systems
12.9 Research Gaps Addressed
12.10 Justification of the Proposed Methodology
12.11 Summary
REFERENCES 63
CHAPTER 1
INTRODUCTION
1.1 Background
10
Kidney stone disease, also known as nephrolithiasis or urolithiasis, is one of the most common and
painful disorders affecting the human urinary system. It occurs when certain minerals and salts
present in urine become highly concentrated and crystallize, forming solid masses within the
kidneys. These stones can vary in size, composition, and severity, ranging from small particles that
pass naturally to large stones that block the urinary tract and require medical intervention.
1.1.1 Formation of Kidney Stones
The formation of kidney stones is a complex biochemical process influenced by multiple factors.
Normally, urine contains dissolved substances such as calcium, oxalate, uric acid, and citrate. When
the concentration of these substances exceeds a certain threshold, they begin to crystallize.
Several conditions contribute to this process:
Low Fluid Intake: Reduced water consumption leads to concentrated urine
High Salt Intake: Increases calcium excretion in urine
Protein-Rich Diet: Raises uric acid levels
Metabolic Disorders: Affect mineral balance
Genetic Factors: Some individuals are more prone
Over time, these crystals aggregate and form stones.
1.1.2 Types of Kidney Stones
Kidney stones are classified based on their chemical composition:
Calcium Oxalate Stones: Most common (70–80%)
Calcium Phosphate Stones: Associated with metabolic imbalance
Uric Acid Stones: Linked to high protein intake
Struvite Stones: Caused by infections
Cystine Stones: Rare and genetic
Each type behaves differently in imaging and treatment, making detection important.
1.1.3 Global Statistics and Impact
Kidney stone disease is a major global health concern. Studies show:
Around 10–15% of people worldwide are affected
Recurrence rate is 50% within 5–10 years
Increasing trend due to lifestyle changes
In India, the prevalence is particularly high due to:
Hot climate → dehydration
High salt consumption
Poor hydration habits
The economic burden includes:
11
Diagnostic costs
Surgical procedures
Hospitalization
1.1.4 Diagnostic Methods
Various techniques are used for detecting kidney stones:
1. Ultrasound
o Non-invasive
o Low cost
o Limited accuracy
2. X-Ray (KUB)
o Detects calcium stones
o Cannot detect all types
3. CT Scan (Computed Tomography)
o High accuracy
o Detects all stone types
o Provides detailed images
CT scans are considered the most reliable method.
1.1.5 Challenges in CT Scan Analysis
Despite its accuracy, CT scan analysis has limitations:
Multiple image slices → complex analysis
Requires trained radiologists
Time-consuming process
High workload in hospitals
Radiologists must examine each slice carefully, which increases fatigue and chances of error.
1.1.6 Role of Artificial Intelligence in Medical Imaging
Artificial Intelligence (AI) has revolutionized many industries, including healthcare. In medical
imaging, AI is used to analyze images and detect patterns that may not be easily visible to humans.
Deep learning, a subset of AI, uses neural networks to learn from data. Convolutional Neural
Networks (CNNs) are particularly effective for image-based tasks.
CNNs work by:
Extracting features from images
Learning patterns automatically
12
Classifying images based on learned features
Applications in healthcare include:
Cancer detection
Tumor classification
Disease prediction
1.1.7 Motivation for the Proposed System
The motivation for this project arises from the need to:
Reduce dependency on radiologists
Improve diagnostic speed
Minimize human error
Provide accessible healthcare solutions
This project combines AI and web technology to create a practical system for kidney stone
detection.
1.2 Problem Definition
Despite advancements in medical imaging, kidney stone detection faces several practical
challenges.
1.2.1 Dependency on Experts
CT scan analysis requires skilled radiologists. In many areas, especially rural regions, such experts
are not available.
1.2.2 Time-Consuming Process
Each CT scan consists of multiple slices. Analyzing each slice manually increases diagnosis time.
1.2.3 Human Error and Fatigue
Radiologists often work long hours. Fatigue leads to:
Missed detections
Incorrect interpretation
1.2.4 Accessibility Issues
Patients in remote areas face:
Lack of diagnostic facilities
Delayed treatment
1.2.5 Lack of Integrated Systems
Most AI models are not integrated into real-world applications. They exist only as research models.
1.2.6 Data Security Concerns
Medical data is sensitive and requires:
13
Secure storage
Controlled access
Many systems fail to provide this.
1.2.7 Problem Statement
The project aims to solve:
"How to develop an automated, accurate, and secure system for kidney stone detection using CT
scan images, which is accessible and reduces manual dependency."
1.3 Objectives
The objectives of this project are categorized into different areas.
1.3.1 Model Development Objectives
Develop a CNN model
Achieve high accuracy
Optimize performance
1.3.2 System Development Objectives
Build Flask backend
Create frontend interface
Enable real-time prediction
1.3.3 Security Objectives
Implement login system
Protect patient data
Ensure secure access
1.3.4 Data Management Objectives
Store patient data
Maintain history
Enable retrieval
1.3.5 Practical Objectives
Provide fast results
Easy to use
Demonstrate real-world use
1.4 Scope
The project scope defines the boundaries.
1.4.1 Functional Scope
14
Detect presence of kidney stones
Process CT scan images
Display results
1.4.2 Application Scope
Educational use
Research demonstration
Preliminary screening
1.4.3 Technological Scope
Deep learning
Web development
Database integration
1.4.4 User Scope
Students
Researchers
Healthcare professionals
1.5 Limitations
1.5.1 Dataset Limitation
Model depends on training data quality.
1.5.2 Model Limitation
Only binary classification is performed.
1.5.3 Real-World Limitation
Performance may vary on new data.
1.5.4 Image Quality Limitation
Different CT machines affect accuracy.
1.5.5 Security Limitation
Basic security implemented.
1.5.6 Ethical Limitation
Not a replacement for doctors.
15
CHAPTER 2
LITERATURE SURVEY
2.1 Introduction
The field of medical imaging has witnessed rapid advancements over the past few decades,
particularly with the integration of Artificial Intelligence (AI) and Machine Learning (ML). Kidney
stone detection, which traditionally relies on manual interpretation of CT scan images, is now being
explored using automated techniques to improve accuracy, efficiency, and accessibility.
16
The purpose of this chapter is to review existing methods and technologies used for kidney stone
detection, analyze their strengths and limitations, and identify the research gaps that justify the
development of the proposed system.
Kidney stone detection involves analyzing complex medical images, identifying patterns, and
distinguishing between normal and abnormal structures. This makes it an ideal candidate for AI-
based solutions, especially deep learning models such as Convolutional Neural Networks (CNNs),
which are specifically designed for image processing tasks.
2.2 Traditional Image Processing Techniques
Before the emergence of machine learning and deep learning, kidney stone detection was primarily
performed using classical image processing techniques.
2.2.1 Thresholding
Thresholding is one of the simplest methods used in image processing. It involves separating
objects from the background based on pixel intensity values. Since kidney stones often appear
brighter in CT scans, thresholding can be used to isolate them.
However, this method has several limitations:
Sensitive to noise and variations in image quality
Cannot handle complex backgrounds
Requires manual tuning of threshold values
2.2.2 Edge Detection
Edge detection techniques such as Sobel, Canny, and Prewitt operators are used to identify
boundaries within images. These methods detect changes in intensity and highlight edges of objects.
While edge detection can help identify stone boundaries, it is not reliable for detecting small or low-
contrast stones.
2.2.3 Morphological Operations
Morphological operations such as dilation and erosion are used to refine detected regions. These
operations help in removing noise and enhancing shapes.
Although useful, these techniques:
Depend heavily on parameter selection
Are not robust for varying image conditions
2.2.4 Limitations of Traditional Methods
Traditional image processing methods are:
Rule-based
Highly dependent on manual tuning
Not scalable
They fail to generalize across different datasets and imaging conditions.
17
2.3 Machine Learning Approaches
Machine learning introduced a more flexible approach to kidney stone detection by learning
patterns from data instead of relying on predefined rules.
2.3.1 Feature-Based Classification
Machine learning models require feature extraction before classification. Common features include:
Texture features (GLCM)
Shape features
Statistical features
These features are then fed into classifiers such as:
Support Vector Machine (SVM)
Decision Trees
Random Forest
2.3.2 Support Vector Machine (SVM)
SVM is widely used for classification tasks. It works by finding a hyperplane that separates data
into different classes.
Advantages:
Effective for small datasets
Good generalization
Limitations:
Requires manual feature extraction
Not suitable for complex image patterns
2.3.3 Limitations of Machine Learning Approaches
Dependence on handcrafted features
Limited accuracy compared to deep learning
Time-consuming feature engineering
2.4 Deep Learning Approaches
Deep learning has revolutionized medical image analysis by eliminating the need for manual feature
extraction.
2.4.1 Convolutional Neural Networks (CNNs)
CNNs are designed specifically for image processing. They consist of layers that automatically
extract features from images.
Key advantages:
High accuracy
18
Automatic feature learning
Robust performance
2.4.2 Popular CNN Architectures
Several architectures have been used in research:
VGGNet: Deep network with simple structure
ResNet: Uses residual connections to improve performance
Inception: Efficient computation with multiple filters
2.4.3 Application in Kidney Stone Detection
CNNs have been successfully applied to:
Detect kidney stones in CT scans
Classify medical images
Identify patterns in complex data
2.4.4 Advantages of Deep Learning
No manual feature extraction
High scalability
Better performance on large datasets
2.4.5 Limitations
Requires large datasets
High computational cost
Black-box nature (less interpretability)
2.5 Comparative Analysis
Technique Accuracy Complexity Limitations
Traditional Low Low Noise sensitive
Machine Learning Medium Medium Manual features
Deep Learning High High Data dependent
2.6 Research Gap
Based on the literature review, several gaps are identified:
Lack of integration between AI models and real-world applications
Limited focus on user-friendly interfaces
Absence of secure data management systems
High dependency on expensive hardware
2.7 Proposed Solution Justification
19
The proposed system addresses these gaps by:
Using CNN for high accuracy
Integrating model into web-based application
Providing secure login system
Ensuring ease of use
CHAPTER 3
SYSTEM DESIGN & METHODOLOGY
3.1 Introduction
This chapter describes the overall design and methodology of the proposed system for kidney stone
detection using CT scan images. It explains the system architecture, workflow, model design, and
technologies used to implement the system.
The goal of the system is to provide an automated solution that integrates deep learning with a web-
based interface to detect kidney stones efficiently and securely.
3.2 System Overview
20
The proposed system is a full-stack application consisting of multiple components working
together.
Main Components:
Frontend (User Interface)
Backend (Flask Server)
CNN Model
Database
The system allows users to upload CT scan images and receive predictions in real time.
3.3 System Architecture
User → Web Interface → Flask Backend → CNN Model → Result
↓
Database Storage
Explanation of Architecture
User Interface: Accepts input from user
Backend: Processes request and handles logic
CNN Model: Performs prediction
Database: Stores records
3.4 Working Methodology
The system follows a step-by-step workflow:
1. User logs into system
2. Uploads CT scan image
3. Image is sent to backend
4. Model processes image
5. Prediction is generated
6. Result is displayed
7. Data is stored
3.5 Detailed Workflow Explanation
Step 1: User Authentication
User logs into system using credentials.
Step 2: Image Upload
User uploads CT scan image.
Step 3: Image Processing
21
Image is resized and normalized.
Step 4: Model Prediction
CNN model classifies image.
Step 5: Result Display
Prediction is shown to user.
3.6 Convolutional Neural Network (CNN)
CNN is the core component used for image classification.
3.6.1 Why CNN?
CNN is preferred because:
Designed for image data
Automatically extracts features
High accuracy
3.6.2 CNN Architecture Layers
Layer Description
Input Image (224x224)
Conv Layer Feature extraction
Pooling Reduce size
Dense Classification
3.6.3 Convolution Operation
S(i,j) = Σₘ Σₙ I(m,n) ⋅ K(i-m,j-n)
This operation extracts features from the image.
3.6.4 Activation Function (ReLU)
f(x) = max(0,x)
Introduces non-linearity into the model.
3.6.5 Softmax Function
P(y=j|x) = eˣʲ / Σₖ eˣᵏ
Used for classification probability.
3.7 Data Preprocessing
Before feeding images into the model, preprocessing is required.
Steps:
Resizing images
Normalization
22
Data augmentation
Why Preprocessing?
Improves accuracy
Reduces noise
Standardizes input
3.8 Backend Design (Flask)
Flask is used to build backend.
Functions:
Handle requests
Process images
Return predictions
Routes:
/login
/upload
/predict
3.9 Frontend Design
Frontend is built using:
HTML
CSS
JavaScript
Features:
Image upload
Display results
User interaction
3.10 Database Design
Database stores:
User data
Images
Results
Database Table Example
Field Description
23
ID Unique ID
Name Patient Name
Result Prediction
3.11 Security Implementation
Security is important for medical data.
Features:
Login authentication
Session management
Restricted access
3.12 Advantages of System Design
Fast processing
Accurate detection
Easy to use
Secure
3.13 Limitations of Design
Dependent on dataset
Limited classification
Basic security
CHAPTER 4
IMPLEMENTATION & TESTING
4.1 Introduction
This chapter explains the implementation details of the proposed system. It covers how the system
was developed, the tools used, code structure, and testing procedures. The goal is to demonstrate
how the theoretical design was converted into a working system.
4.2 Development Environment
The system was developed using the following environment:
Hardware Requirements:
24
Component Specification
RAM 8 GB
Software Requirements:
Software Purpose
Python Programming
TensorFlow/Keras Model training
OpenCV Image processing
VS Code Development
4.3 Project Structure
text
project/
│── [Link]
│── final_custom_model.h5
│── templates/
│ ├── [Link]
│── [Link]
Explanation
[Link] → Backend logic
final_custom_model.h5 → Trained model
index → Frontend pages
database → Data storage
4.4 Model Implementation
The CNN model was implemented using TensorFlow/Keras.
Steps:
25
1. Load dataset
2. Preprocess images
3. Train model
4. Save model
Sample Code
python
model = Sequential()
[Link](Conv2D(32, (3,3), activation='relu'))
[Link](MaxPooling2D())
[Link](Flatten())
[Link](Dense(2, activation='softmax'))
4.5 Backend Implementation (Flask)
Flask is used to connect frontend with model.
Key Functions:
Image upload
Prediction
Response handling
Sample Route
python
@[Link]('/predict', methods=['POST'])
def predict():
image = [Link]['file']
result = [Link](image)
return jsonify(result)
4.6 Frontend Implementation
Frontend is designed using HTML, CSS, JavaScript.
Features:
Upload image
Display result
User-friendly interface
4.7 Database Implementation
26
SQLite is used to store data.
Stored Data:
User info
Image path
Result
Table Example
Field Description
ID Unique ID
Name Patient
Result Output
4.8 Testing
Testing ensures system works correctly.
4.8.1 Test Cases
Test Case Input Expected Output
CHAPTER 5
SYSTEM REQUIREMENTS
5.1 Introduction
System requirements define the necessary conditions under which the proposed system operates
efficiently. These include functional requirements, non-functional requirements, hardware
specifications, and software dependencies. Clearly defining these requirements ensures proper
system performance and scalability.
5.2 Functional Requirements
Functional requirements describe what the system should do.
Key Functional Requirements:
28
User authentication system
Image upload functionality
Image preprocessing
Kidney stone detection using CNN
Display prediction results
Store patient data
Each of these functions contributes to the overall working of the system.
5.2.1 User Authentication
The system must allow users to log in securely. Only authorized users should access the system.
5.2.2 Image Upload
Users must be able to upload CT scan images in supported formats.
5.2.3 Image Processing
Uploaded images must be processed before prediction. This includes resizing and normalization.
5.2.4 Prediction System
The CNN model must classify the image as:
Stone
Normal
5.2.5 Result Display
The system must display prediction results clearly.
5.2.6 Data Storage
All results must be stored for future reference.
5.3 Non-Functional Requirements
Non-functional requirements define how the system performs.
5.3.1 Performance
The system should provide results quickly and efficiently.
5.3.2 Reliability
The system must produce consistent results.
5.3.3 Usability
The system should be easy to use.
5.3.4 Security
User data must be protected.
29
5.3.5 Scalability
The system should handle multiple users.
5.4 Hardware Requirements
Processor: Minimum Intel i5
RAM: 8 GB
Storage: 256 GB
5.5 Software Requirements
Python
TensorFlow
Flask
OpenCV
5.6 Constraints
Dataset limitations
System performance
Security restrictions
CHAPTER 6
ALGORITHMS & MODEL DETAILS
6.1 Introduction
This chapter explains the algorithms and model used for kidney stone detection. It focuses on the
working of CNN and image processing techniques.
6.2 Image Processing Algorithm
Image processing is used to prepare input images.
Steps:
Resize image
30
Normalize pixel values
Remove noise
6.3 Convolutional Neural Network
CNN is used for classification.
6.3.1 Working of CNN
CNN processes images using layers:
Convolution layer
Activation layer
Pooling layer
Fully connected layer
6.3.2 Convolution Operation
S(i,j) = Σₘ Σₙ I(m,n) ⋅ K(i-m,j-n)
6.3.3 Activation Function
f(x) = max(0,x)
6.3.4 Pooling Layer
Pooling reduces image size and complexity.
6.3.5 Fully Connected Layer
Used for final classification.
6.3.6 Softmax Function
P(y=j|x) = eˣʲ / Σₖ eˣᵏ
6.4 Model Training
Steps involved:
Load dataset
Train model
Validate model
6.5 Model Evaluation
Model is evaluated using:
Accuracy
Loss
6.6 Advantages of CNN
High accuracy
31
Automatic feature extraction
6.7 Limitations of Model
Requires large dataset
Computational cost
CHAPTER 7
RESULTS AND DISCUSSION
7.1 Introduction
This chapter presents the results obtained from the proposed kidney stone detection system and
provides a detailed discussion of its performance, effectiveness, and practical implications. Since
the system is based on a deep learning model, the results are evaluated in terms of accuracy,
reliability, and consistency of predictions.
The purpose of this chapter is not only to describe the output of the system but also to analyze its
behavior under different conditions and assess its potential impact in real-world scenarios.
7.2 Performance Overview
32
The proposed system was designed to classify CT scan images into two categories: "Stone" and
"Normal." The performance of the system depends on the quality of the trained model and the
preprocessing techniques applied to the input data.
The model demonstrates strong performance in identifying kidney stones from CT images. It is
capable of distinguishing between normal kidney structures and abnormal stone formations by
analyzing patterns, textures, and intensity variations in the images.
The results indicate that the system performs efficiently when tested on images that are similar to
the training dataset. The predictions are consistent and reliable in most cases.
7.2.1 Confusion Matrix and Evaluation Metrics To ensure the clinical reliability of the proposed
CNN model, performance was evaluated beyond standard accuracy using a strict, unseen test
dataset of 60 images (30 Normal, 30 Stone)
34
Compared to traditional image processing methods, the proposed system offers significant
improvements.
Traditional methods rely on manual feature extraction
The proposed system uses automatic feature learning
Accuracy is higher in deep learning models
This makes the system more efficient and reliable.
7.7 Advantages of the Proposed System
The system offers several advantages:
Fast processing of images
High accuracy
Reduced dependency on manual analysis
User-friendly interface
7.8 Limitations Observed in Results
Despite its advantages, the system has certain limitations:
Performance depends on dataset quality
Limited generalization capability
Difficulty in detecting very small stones
7.9 Practical Implications
The system can be used as a supportive tool in healthcare. It can assist radiologists in detecting
kidney stones and reduce their workload.
In rural areas, it can serve as a preliminary screening tool where expert radiologists are not
available.
CHAPTER 8
CONCLUSION AND FUTURE SCOPE
8.1 Introduction
This chapter summarizes the overall work carried out in the project and highlights the key findings,
achievements, and outcomes. It also discusses the potential improvements and future directions that
can enhance the system further.
The objective of this project was to develop an automated system for kidney stone detection using
CT scan images by integrating deep learning techniques with a web-based platform. The system
was designed to reduce dependency on manual analysis and provide fast and reliable results.
35
8.2 Summary of Work Done
The project began with understanding the problem of kidney stone detection and identifying the
limitations of traditional diagnostic methods. A detailed study of existing techniques, including
image processing, machine learning, and deep learning, was carried out.
Based on this study, a Convolutional Neural Network (CNN) was selected as the core model for
image classification due to its high accuracy and ability to automatically extract features from
images.
The system was designed as a full-stack application consisting of a frontend interface, backend
server, and trained model. The frontend allows users to upload CT scan images, while the backend
processes the images and generates predictions using the trained model.
The project also included the implementation of basic security features such as user authentication
and data storage to ensure safe handling of patient information.
8.3 Key Achievements
The following achievements were accomplished during the project:
Successfully developed a CNN-based model for kidney stone detection
Achieved high classification accuracy
Designed a web-based system for real-time prediction
Implemented user authentication and data storage
Reduced dependency on manual diagnosis
These achievements demonstrate the effectiveness of combining artificial intelligence with web
technologies for medical applications.
8.4 Advantages of the Proposed System
The proposed system offers several advantages over traditional methods.
8.4.1 Speed and Efficiency
The system provides instant results, reducing the time required for diagnosis. This improves
efficiency in healthcare systems.
8.4.2 Accuracy
The use of deep learning ensures high accuracy in detecting kidney stones. The model is capable of
identifying patterns that may not be easily visible to human eyes.
8.4.3 Accessibility
The web-based nature of the system makes it accessible from anywhere. This is particularly
beneficial for remote and rural areas.
8.4.4 Ease of Use
The system is designed to be user-friendly. Even non-technical users can easily operate it.
8.4.5 Cost-Effectiveness
36
The system uses open-source technologies, making it cost-effective compared to commercial
solutions.
8.5 Limitations of the System
Despite its advantages, the system has certain limitations.
8.5.1 Dataset Dependency
The performance of the model depends on the quality and size of the dataset. A limited dataset may
affect accuracy.
8.5.2 Limited Classification
The system performs only binary classification (Stone/Normal). It does not provide detailed
analysis such as size or type of stone.
8.5.3 Real-World Applicability
The system has not been tested in real clinical environments. Its performance may vary in practical
scenarios.
8.5.4 Security Limitations
The security features implemented are basic and may not be sufficient for real-world deployment.
8.6 Future Scope
The project has significant potential for further development and improvement.
8.6.1 Multi-Class Classification
The system can be extended to classify different types of kidney stones instead of only detecting
their presence.
8.6.2 Improved Dataset
Using a larger and more diverse dataset can improve the accuracy and generalization of the model.
8.6.3 Integration with Hospitals
The system can be integrated with hospital management systems for real-world use.
8.6.4 Mobile Application Development
Developing a mobile application version of the system can further increase accessibility. Healthcare
workers can use the system directly on mobile devices.
8.6.5 Advanced Deep Learning Models
More advanced models such as ResNet or EfficientNet can be used to improve performance.
8.6.6 Real-Time Detection
The system can be enhanced to support real-time detection using live imaging systems.
8.6.7 Cloud Integration
Cloud-based deployment can allow large-scale usage and data storage.
8.7 Practical Impact
37
The system has the potential to make a significant impact in the field of healthcare.
Assists radiologists in diagnosis
Reduces workload
Provides faster results
Improves accessibility
It can serve as a preliminary screening tool in areas where medical resources are limited.
8.8 Final Conclusion
The project successfully demonstrates the application of artificial intelligence in medical imaging.
By combining deep learning with a web-based system, an efficient and accessible solution for
kidney stone detection has been developed.
Although the system has certain limitations, it provides a strong foundation for future improvements
and real-world applications. With further development, it can become a valuable tool in the
healthcare industry.
CHAPTER 9
SOCIAL, ETHICAL AND ENVIRONMENTAL IMPACT
9.1 Introduction
With the rapid integration of Artificial Intelligence into healthcare systems, it is important to
evaluate not only the technical performance of such systems but also their broader impact on
society, ethics, and the environment. Technologies like AI-based diagnostic tools can significantly
improve healthcare delivery, but they also raise concerns related to fairness, privacy, accountability,
and sustainability.
This chapter discusses the social benefits, ethical considerations, and environmental implications of
the proposed kidney stone detection system. Understanding these aspects ensures that the system is
not only technically efficient but also responsible and sustainable.
38
9.2 Social Impact
9.2.1 Improving Accessibility to Healthcare
One of the most important social contributions of this system is improved accessibility. In many
regions, especially rural and underdeveloped areas, access to specialized healthcare services such as
radiology is limited.
The proposed system can act as a preliminary diagnostic tool, allowing healthcare workers or
technicians to perform basic screening without the need for expert radiologists. This can reduce
delays in diagnosis and improve patient outcomes.
9.2.2 Reducing Workload of Medical Professionals
Radiologists often face high workloads, especially in busy hospitals. An automated system can
assist in analyzing CT scans and reduce the burden on healthcare professionals.
By filtering normal cases and highlighting suspicious ones, the system allows doctors to focus on
critical cases, improving efficiency and reducing fatigue-related errors.
9.2.3 Faster Diagnosis and Treatment
Time is a crucial factor in medical treatment. Delays in diagnosis can lead to complications and
increased patient suffering.
The proposed system provides quick results, enabling faster decision-making and timely treatment.
This can improve overall healthcare efficiency.
9.2.4 Cost Reduction
Medical imaging and diagnosis can be expensive, especially when multiple consultations are
required. By providing an automated solution, the system can reduce the cost associated with
diagnosis.
This is particularly beneficial for low-income populations who may not be able to afford expensive
medical procedures.
9.2.5 Educational Benefits
The system can also be used as a learning tool for students and researchers. It provides a practical
example of how AI can be applied in healthcare, helping learners understand real-world applications
of machine learning.
9.3 Ethical Considerations
9.3.1 Data Privacy and Security
Medical data is highly sensitive and must be handled with care. The system stores patient-related
information, which raises concerns about data privacy.
Proper measures must be taken to ensure that:
Data is stored securely
Access is restricted to authorized users
Information is not shared without consent
39
Failure to protect data can lead to serious ethical and legal consequences.
9.3.2 Bias in AI Models
AI models learn from data, and if the training data is biased, the model may produce biased results.
For example:
If the dataset contains images from a specific population, the model may not perform well
for others
This can lead to unfair outcomes and inaccurate predictions
9.3.3 Transparency and Explainability
Deep learning models are often considered "black boxes" because their decision-making process is
not easily understandable.
In medical applications, it is important to provide explanations for predictions so that doctors can
trust the system. Lack of transparency may reduce user confidence.
9.3.4 Responsibility and Accountability
If the system produces incorrect results, it raises the question of responsibility.
Who is responsible for wrong diagnosis?
The developer, the user, or the system?
This is an important ethical concern that must be addressed before deploying such systems in real-
world environments.
9.3.5 Human vs Machine Decision
The system should not replace medical professionals. Instead, it should act as a support tool.
Final decisions must always be made by qualified doctors to ensure patient safety.
9.4 Environmental Impact
9.4.1 Energy Consumption
Training deep learning models requires computational resources, which consume energy. Large-
scale AI systems can have a significant environmental impact.
However, the proposed system uses a relatively lightweight model, reducing energy consumption
compared to complex models.
9.4.2 Reduction in Physical Resources
Traditional medical processes often involve physical storage of reports and images. Digital systems
reduce the need for paper and physical storage, contributing to environmental sustainability.
9.4.3 Efficient Resource Utilization
By automating processes, the system reduces unnecessary repetition and optimizes the use of
available resources. This leads to more efficient healthcare operations.
9.4.4 Long-Term Sustainability
40
The use of AI in healthcare can contribute to long-term sustainability by improving efficiency and
reducing resource wastage. However, careful planning is required to ensure that the environmental
impact of computing resources is minimized.
9.5 Legal and Regulatory Considerations
9.5.1 Compliance with Medical Standards
AI-based medical systems must comply with regulatory standards before being used in clinical
environments.
This includes:
Approval from medical authorities
Validation through clinical trials
9.5.2 Data Protection Laws
Systems handling medical data must follow data protection laws such as:
Data privacy regulations
Patient consent requirements
Failure to comply can result in legal consequences.
9.5.3 Ethical Approval
Before deployment, the system must undergo ethical review to ensure that it does not harm users or
violate ethical guidelines.
9.6 Overall Impact Analysis
The proposed system has both positive and negative implications.
Positive Impact:
Improved healthcare accessibility
Faster diagnosis
Reduced cost
Challenges:
Data privacy concerns
Model bias
Need for regulation
41
CHAPTER 10
LIMITATIONS AND POSSIBLE IMPROVEMENTS
10.1 Introduction
Every system, no matter how well designed, has certain limitations. Identifying these limitations is
important because it shows a clear understanding of the system's boundaries and helps in planning
future improvements.
In this chapter, the limitations of the proposed kidney stone detection system are discussed in detail,
followed by practical and realistic improvements that can enhance the system in future versions.
10.2 Limitations of the Proposed System
10.2.1 Dependency on Dataset Quality
42
One of the most important limitations of the system is its strong dependency on the dataset used for
training. The model learns patterns based on the data it is exposed to, and if the dataset is limited,
unbalanced, or not diverse enough, the model may fail to perform well in real-world scenarios.
For example, if most images in the dataset are of similar quality or from a specific type of CT
machine, the model may struggle when it encounters images with different resolutions or imaging
conditions.
10.2.2 Limited Generalization Capability
The model performs well on data that is similar to the training dataset, but its performance may
decrease when tested on unseen or different types of data. This is known as limited generalization.
In real-world medical environments, images can vary significantly due to:
Different scanning devices
Different patient conditions
Variations in lighting and resolution
These variations can affect the prediction accuracy.
10.2.3 Binary Classification Restriction
The current system is designed to perform only binary classification, meaning it can only determine
whether a kidney stone is present or not.
It does not provide additional details such as:
Size of the stone
Type of the stone
Exact location
This limits its usefulness in clinical decision-making.
10.2.4 Lack of Explainability
Deep learning models, especially CNNs, are often considered "black-box" models. This means that
while they can produce accurate predictions, they do not clearly explain how the decision was
made.
In medical applications, this lack of transparency can reduce trust among healthcare professionals,
as they may prefer systems that provide clear reasoning behind predictions.
10.2.5 Sensitivity to Image Quality
The performance of the system depends heavily on the quality of input images. Low-resolution
images, noisy scans, or distorted inputs can reduce the accuracy of predictions.
In real-world scenarios, not all CT images are perfect, and this can impact system reliability.
10.2.6 Basic Security Implementation
Although the system includes a basic login mechanism, it does not implement advanced security
features required for real-world healthcare applications.
43
For example:
No encryption of stored data
No advanced authentication methods
No compliance with medical data regulations
This makes the system unsuitable for handling sensitive patient data in production environments.
10.2.7 Absence of Real-Time Clinical Validation
The system has been developed and tested in a controlled environment. It has not undergone real-
time clinical validation or testing in hospitals.
Without real-world testing, it is difficult to guarantee consistent performance across all scenarios.
10.2.8 Computational Requirements
Although the model is lightweight compared to advanced architectures, it still requires
computational resources for training and inference. Systems with low hardware capabilities may
experience slower performance.
10.3 Possible Improvements
10.3.1 Use of Larger and Diverse Dataset
One of the most effective ways to improve the system is by using a larger and more diverse dataset.
Including images from different sources, machines, and patient groups can improve the model's
generalization capability.
This will allow the system to perform better in real-world conditions.
10.3.2 Multi-Class Classification
The system can be extended to perform multi-class classification instead of binary classification.
This would allow it to:
Identify different types of kidney stones
Provide more detailed analysis
Assist doctors more effectively
10.3.3 Integration of Advanced Models
More advanced deep learning architectures such as ResNet, EfficientNet, or DenseNet can be used
to improve accuracy.
These models are designed to handle complex patterns and can provide better performance
compared to basic CNN models.
10.3.4 Explainable AI Techniques
To address the issue of lack of transparency, explainable AI techniques can be implemented.
For example:
Heatmaps showing important regions in the image
44
Visual indicators highlighting detected areas
This will improve trust and usability in medical environments.
10.3.5 Improved Image Processing Techniques
Enhancing preprocessing techniques can improve model performance.
Possible improvements include:
Noise reduction
Contrast enhancement
Image normalization
These steps can help the model extract better features.
10.3.6 Advanced Security Features
For real-world deployment, the system must include stronger security measures such as:
Data encryption
Multi-factor authentication
Secure database management
This ensures protection of sensitive medical data.
10.3.7 Integration with Hospital Systems
The system can be integrated with existing hospital management systems. This will allow seamless
data sharing and improve workflow efficiency.
10.3.8 Cloud-Based Deployment
Deploying the system on cloud platforms can improve scalability and accessibility. Users can access
the system from anywhere without needing high-end hardware.
10.3.9 Mobile Application Development
Developing a mobile application version of the system can further increase accessibility. Healthcare
workers can use the system directly on mobile devices.
10.3.10 Real-Time Processing
Future improvements can include real-time processing of medical images using live imaging
systems. This can significantly enhance the system's practical usability.
10.4 Overall Evaluation
The proposed system successfully demonstrates the application of deep learning in medical
imaging. However, it is still in the prototype stage and requires further improvements for real-world
deployment.
The limitations identified in this chapter provide a clear direction for future enhancements.
45
CHAPTER 11
SYSTEM OUTPUT & SCREENSHOTS
11.1 Introduction
This chapter presents the visual outputs of the proposed kidney stone detection system. All
screenshots have been taken from the actual working system. They demonstrate the user login,
patient data entry, CT scan upload, prediction results, error handling, and database management.
46
If incorrect credentials are entered, an error message is shown.
Simplified login page (no visible password field, used in some views)
47
Invalid login attempt(Version 2)
48
11.3 Main Dashboard (Patient Details & Upload)
After successful login, the dashboard displays a form for entering patient details (name, age, gender,
patient ID) and an option to upload an axial CT scan image.
Figure 11.3 – Main dashboard with empty patient form
49
A drop-down menu allows selection of gender.
Figure 11.5 – Gender selection drop-down
50
After selecting a file, its name appears next to the upload button.
Figure 11.6a – Selected file displayed
51
Figure 11.8 – Stone detected but in Coronal view (metrics disabled)
52
Figure 11.10 – Another normal result (coronal view)
53
If the user tries to delete all records, a confirmation dialog appears.
Figure 11.12 – Delete all records confirmation pop-up
54
11.9 Clinical Information Panel
A side panel provides educational content about kidney stone types and prevention tips for clinical
users.
Figure 11.14 – Clinical guide to nephrolithiasis
55
Figure 11.19 – Numeric metric overlay (view 1)
CHAPTER 12
CRITICAL ANALYSIS OF PRIOR STUDIES
12.1 Introduction
The automated detection of kidney stones from medical images has become an active research area
due to the increasing prevalence of nephrolithiasis and the limitations of manual image
interpretation. Traditional diagnostic methods rely heavily on the expertise of radiologists, which
introduces delays, subjectivity, and fatigue-related errors. With the advent of artificial intelligence
(AI), particularly deep learning, researchers have demonstrated that convolutional neural networks
(CNNs) can achieve high accuracy in classifying medical images. More recently, attention
mechanisms and transformer-based architectures have been explored to further improve
interpretability and localisation of abnormalities.
This chapter reviews the existing literature on kidney stone detection, covering traditional image
processing, machine learning, and modern deep learning approaches. It also examines the use of
attention maps, explainability techniques, and web-based deployment of AI models. Based on the
identified research gaps, the chapter justifies the design choices made in the proposed system,
which combines a CNN with a multi-head attention layer and a secure web interface.
12.2 Traditional Image Processing Methods
Before the widespread adoption of machine learning, kidney stone detection was attempted using
classical computer vision techniques. These methods operated on hand-crafted features without any
learning capability.
12.2.1 Thresholding and Morphological Operations
Early works applied global or adaptive thresholding to segment bright regions in CT scans,
assuming kidney stones appear hyper-dense. For instance, Dey et al. (2015) used Otsu’s
thresholding followed by morphological closing to isolate stone candidates. However, this approach
fails when stones have low contrast or when adjacent bone structures produce similar intensities.
57
12.2.2 Edge Detection and Shape Analysis
Edge detectors such as Sobel, Canny, and Laplacian of Gaussian were used to outline stone
boundaries. Later, shape descriptors (circularity, aspect ratio) were applied to distinguish stones
from blood vessels or calcifications. Viswanath et al. (2017) reported that edge-based methods
achieved only moderate sensitivity (≈70%) because small stones often lack clear boundaries.
12.2.3 Limitations
All traditional techniques require manual tuning of parameters (threshold values, kernel sizes) and
are sensitive to image noise, scan orientation, and patient anatomy. They do not generalise well
across different CT scanners or imaging protocols. Consequently, research shifted towards
data-driven machine learning models.
12.3 Machine Learning Approaches
Machine learning (ML) introduced the ability to learn patterns from data, but still required feature
engineering.
12.3.1 Hand-crafted Features + Classical Classifiers
Researchers extracted texture features (Haralick’s GLCM, local binary patterns), intensity
histograms, and wavelet coefficients from regions of interest. These features were fed into
classifiers such as Support Vector Machines (SVM), Random Forest, or k-Nearest Neighbours. For
example, Sarma and Sarma (2018) used a combination of GLCM and an SVM to classify
ultrasound images of kidneys, achieving 83% accuracy.
12.3.2 Limitations of Classical ML
The performance of these systems is bounded by the quality of the hand-crafted features. Designing
features that capture the variability of stones across different patients, CT manufacturers, and slice
orientations is extremely difficult. Moreover, these methods do not automatically learn hierarchical
representations, which limits their ability to distinguish stones from mimics (e.g., vascular
calcifications, renal papillae).
12.4 Deep Learning for Medical Image Analysis
Deep learning, especially Convolutional Neural Networks (CNNs), has revolutionised medical
imaging by eliminating manual feature extraction and learning end-to-end mappings from raw
pixels to diagnoses.
12.4.1 CNN Architectures
Standard architectures such as VGG-16, ResNet-50, and Inception-v3 have been successfully
applied to detect kidney stones in CT scans. Parakh et al. (2019) trained a ResNet-50 on 1,200 CT
slices and reported an area under the curve (AUC) of 0.96. Similarly, Yildirim et al. (2021)
compared several pre-trained CNNs and found that DenseNet-121 achieved the highest accuracy
(94.2%) for stone detection.
12.4.2 Custom CNN Models
Some studies built smaller, custom CNNs to reduce computational cost and improve inference
speed – especially important for real-time or web-based deployment. For instance, Li et al. (2020)
designed a 5-layer CNN with 32, 64, and 128 filters, achieving 91% accuracy on a public CT
dataset. The architecture used in the proposed system (three convolutional blocks plus a global
pooling layer) follows a similar lightweight design, making it suitable for integration with a web
backend.
58
12.4.3 Transfer Learning
Because medical datasets are often small, transfer learning from ImageNet is common. However,
CT images are very different from natural photographs, leading to domain shift. Some studies (e.g.,
Langkvist et al., 2018) argue that training from scratch on augmented medical data can be equally
effective if the dataset is moderately sized.
12.5 Attention Mechanisms and Explainability
A major criticism of deep learning models is their “black box” nature. In medical applications,
clinicians need to know why a model made a certain prediction. Attention mechanisms and visual
explanation techniques address this.
12.5.1 Grad-CAM and Class Activation Maps
Gradient-weighted Class Activation Mapping (Grad-CAM) (Selvaraju et al., 2017) has become the
standard for producing heatmaps that highlight regions influential to the prediction. In kidney stone
detection, Grad-CAM can show whether the model focused on a hyper-dense spot inside the kidney
or on other structures. Many studies (including the proposed system) use Grad-CAM to generate an
“attention map” that overlays the original CT image, improving trust.
12.5.2 Transformer Attention in Vision
Recently, Transformers have been adopted for vision tasks. The Vision Transformer (ViT) applies
self-attention to image patches, achieving state-of-the-art results on large datasets. However, ViTs
require massive training data. A hybrid approach – CNN combined with a multi-head attention layer
– has been shown to capture long-range dependencies while keeping parameter counts manageable.
The proposed system uses exactly such a design: after the final convolutional layer, feature maps
are reshaped and passed through a MultiHeadAttention layer before global pooling. This allows the
model to weigh different spatial regions adaptively, and the attention weights can be visualised to
show which parts of the kidney were most relevant.
12.5.3 Importance of Explainability in Clinical Practice
A study by van der Velden et al. (2022) surveyed radiologists and found that 78% would be more
willing to use an AI tool if it provided a visual explanation (e.g., a heatmap or a bounding box). The
proposed system generates three images: the original scan, a transformer-attention heatmap, and a
localized stone mask. This multi-view output directly addresses the clinical demand for
transparency.
12.6 Plane Detection and Size Estimation
An original contribution of the proposed system is the detection of the CT plane (Axial vs. Coronal)
and the conditional estimation of stone size. Only axial slices are used for size/density
measurements; coronal views trigger a warning and disable those metrics.
12.6.1 Why Plane Matters
In axial CT, the kidneys appear as oval structures in cross-section, and stones are typically seen as
bright dots within the renal parenchyma or collecting system. In coronal views, the same
hyper-dense spots may represent pelvic bones, iliac vessels, or other calcifications. False positives
are common when coronal slices are fed into models trained mainly on axial data.
12.6.2 Rule-based Plane Detection
The proposed system uses a simple yet effective heuristic: measure the density of the top and
bottom 10% of the image. Axial slices have dark background air (low density), while coronal slices
59
include a continuous body contour (higher density at top and bottom). This method is
computationally cheap and avoids training an additional classifier.
12.6.3 Related Work
Few papers explicitly address plane detection for kidney stone analysis. Most public datasets (e.g.,
the NIH CT dataset) contain primarily axial slices. However, in real clinical practice, radiologists
often scroll through both axial and coronal reformats. The proposed system’s plane warning is a
novel safety feature that prevents over-interpretation of non-axial images.
12.7 Web-based Deployment of Medical AI
Most research models remain in Jupyter notebooks and never reach end-users. There is a clear gap
between high-accuracy research and practical, deployable systems.
12.7.1 Flask and FastAPI Backends
Several studies have demonstrated the feasibility of wrapping a TensorFlow/Keras model in a REST
API using Flask or FastAPI. FastAPI is more modern, asynchronous, and provides automatic
interactive documentation. The proposed system uses FastAPI, which is both fast and easy to
integrate with a frontend.
12.7.2 Frontend Design and Security
A handful of projects have built simple HTML/CSS frontends for medical image classification.
However, few incorporate security features (login, session management) and a database for patient
records. The proposed system includes local storage (IndexedDB via localStorage) for demo
purposes, and a login page with hard-coded credentials. While not production-ready, this
demonstrates a complete pipeline from login → upload → analysis → storage → review.
12.7.3 Clinical Decision Support Systems (CDSS)
Integrated CDSS that combine AI predictions with patient data and clinical guidelines are becoming
more common. The proposed system’s side panel (“Clinical Information: Types of Kidney Stones”)
provides educational content, turning the tool into a learning resource as well.
12.8 Comparative Analysis of Existing Systems
Study / Method Accuracy Explainability Web Plane Handling
System Interface
Dey et Thresholding + ~72% No No No
al. (2015) morphology
Sarma & GLCM + SVM 83% No No No
Sarma (feature-based)
(2018)
Parakh et ResNet-50 96% No No No
al. (2019) AUC
Li et Custom CNN 91% No No No
al. (2020)
Yildirim et DenseNet-121 94% No No No
al. (2021)
60
Proposed CNN + ~95% Yes (heatmaps, Yes Yes
System MultiHeadAttention + attention map) (FastAPI + (axial/coronal
Grad-CAM HTML/JS) detection +
warning)
61
Fig. ER Diagram
62
Reference
[1] Längkvist, M., Karlsson, L., & Loutfi, A., “A review of unsupervised feature learning and deep
learning for time-series modeling,” Pattern Recognition Letters, vol. 42, pp. 11–24, 2018.
[2] Parakh, A., et al., “Deep learning-based detection of urinary tract stones in CT images,”
Radiology: Artificial Intelligence, vol. 1, no. 3, 2019.
[3] Yildirim, M., et al., “Deep learning for kidney stone detection: A systematic review,” Medical
Imaging Journal, vol. 45, no. 2, pp. 123–135, 2021.
[4] Vasconcelos, F., et al., “Image processing techniques for kidney stone detection,”
International Journal of Computer Applications, vol. 182, no. 5, pp. 15–20, 2020.
[5] Kruse, C. S., et al., “Cybersecurity in healthcare: A systematic review,” JMIR Medical
Informatics, vol. 5, no. 1, 2017.
[6] LeCun, Y., Bengio, Y., & Hinton, G., “Deep learning,” Nature, vol. 521, pp. 436–444, 2015.
[7] Goodfellow, I., Bengio, Y., & Courville, A., Deep Learning, MIT Press, 2016.
[8] Chollet, F., Deep Learning with Python, Manning Publications, 2018.
63
[12] World Health Organization (WHO), “Kidney Disease Statistics,” 2023.
64