NTI_AI_Project_graphic era hill_2022.pptx

chirag19saxena2001 21 views 58 slides Aug 28, 2024
Slide 1
Slide 1 of 58
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58

About This Presentation


Creating a 3,000-word description of a Git assignment in PDF format involves detailing the assignment's objectives, instructions, use cases, and step-by-step procedures. Below is an outline for the description:

Git Assignment Overview
1. Introduction
What is Git?

Definition and significance o...


Slide Content

CNN                               Doctork Application

INTROUDUCTION ABOUT National Telecommunications Institute Artificial Intelligence Summer Training 2022 Artificial Intelligence Course Final Project Under Supervision of : Engineer Eman Negm Students:          1)Ahmed Mohamed          2)Adham Khaled          3)Sarah Hesham          4)Reem Ali          5)Doaa Salah Faculty of Computers and Artificial Intelligence (Bioinformatics Department & Mainstream) Faculty of Engineering (Biomedical Engineering) Cairo University & Helwan University

Main Idea A health application system with simple GUI Pyqt5 used for GUI Python Programming Language Used Deep Learning Models used Covid19_Pneumonia_Normal Chest X-rays detection Breast Cancer detection Brain Tumors detection You simply browse and upload your image and click a button to detect and classify the image  H5 files deployed and trained Accuracies >92% CNN Models

What is Doctork?? Doctork is a Simple Desktop Application That does a prediction of several disease from rays It can predict: Covid19 & Pneumonia Breast Cancer Brain Cancer

How we did it?

First:  Brief About CNN What is the meaning of CNN Usage Layers in a Convolutional Neural Network

1:CNN meaning CNN refer to   Convolutional Neural Network. type of artificial neural network, which is widely used for image/object recognition and classification. Deep Learning thus recognizes objects in an image by using a CNN.

  2:Usage                               Image recognition CNNs are often used in image recognition systems Video analysis Compared to image data domains, there is relatively little work on applying CNNs to video classification  Anomaly Detection A CNN with 1-D convolutions was used on time series in the frequency domain by an unsupervised model to detect anomalies in the time domain

Drug discovery By Predicting the interaction between molecules and biological proteins Health risk assessment and biomarkers of aging discovery Video analysis Some extensions of CNNs into the video domain have been explored

   3: Layers in a Convolutional Neural Network A convolution neural network has multiple hidden layers that help in extracting information from an image:       1:  Convolution layer       2:Pooling layer       3:Fully connected layer      

                                                      Convolution layer It is the first step to extract features from image  It has several filters that perform the convolution operation. Kernel is a filter  kernel is  a matrix that moves over the input data , performs the dot product with the sub-region of input data, and gets the output as the matrix of dot products. Multiple kernels work as different feature extractors, such as a horizontal edge detector, a vertical edge detector,  and an outline detector.  

Calculating the Output Dimension n: the size of input image f: filter size p: padding( Valid,Same ) s: stride

And use activation function such Relu or Tanh

Pooling Layer The pooling layer replaces the output of the network at certain locations by deriving a summary statistic of the nearby outputs helps in reducing the spatial size of the representation, which decreases the required amount of computation and weights processed on every slice of the representation individually.

                                     Types of Pooling Layer Max Pooling It is a pooling operation that selects the maximum element from the region of the feature map covered by the filter. Average Pooling computes the average of the elements present in the region of feature map covered by the filter. Thus, while max pooling gives the most prominent feature in a particular patch of the feature map, average pooling gives the average of features present in a patch. 

Fully Connected Layer Fully Connected Layer is simply, feed forward neural networks Fully Connected Layers form the last few layers in the network. The  input  to the fully connected layer is the output from the  final  Pooling or Convolutional Layer, which is  flattened  and then fed into the fully connected layer.

               Flatten....??? The output from the final (and any) Pooling and Convolutional Layer is a 3-dimensional matrix, to flatten that is to unroll all its values into a vector.

Second: Models

Covid-19 Image Dataset    3 Way Classification - COVID-19, Viral Pneumonia, Normal

About Dataset                     Data was installed from Kaggle.com @ DatasetDownload   Context : Helping Deep Learning and AI Enthusiasts like me to contribute to improving COVID-19 detection using just Chest X-rays. Content : It is a simple directory structure branched into test and train and further branched into the respective 3 classes which contains the images. Acknowledgements : The University of Montreal for releasing the images. Inspiration : Help the medical and researcher community by sharing my work and encourage them to contribute extensively.

About Dataset Data was split into test set of total 59 images : Covid : 19 images Normal : 20 images Viral Pneumonia :  20 images Train set of total 251 images : Covid : 111 images Normal : 70 images Viral Pneumonia : 70 images

Used Model                              Covid19_Pneumonia and Normal CNN classification python model of accuracy 92% . A python model built on google.colab , where data was installed from kaggle.com and it contained images of corona virus, pneumonia (lung disease) and normal images , the task was to classify these images and  used CNN, the accuracy was 92% . While running this model on google Colab, you have to be signed in to kaggle.com and make a token and upload it, as I am connecting Kaggle with Colab so as not to download the data on my PC. Also at the end saving the model.h5 on google drive , so there will be a connection request to your google drive account to save the model. At the end made a python code to use my .h5 file, i.e. deep learning model to test new data randomly selected from the internet.  Simple Model Deployment.

CNN

                        Accuracy &  Confusion Matrix

Brain MRI Images for Brain Tumor Detection 2 Way Classification – Brain Tumor, No Brain Tumor

               About Dataset Data was installed from Kaggle.com @ DatasetDownload Context: Helping Deep Learning and AI Enthusiasts like me to contribute to improving Brain Tumor detection using just MRI. Content: It is a simple directory structure branched into test and train and further branched into the respective 2 classes which contains the images. Inspiration: Help the medical and researcher community by sharing my work and encourage them to contribute extensively.

What is a brain MRI?              A brain MRI ( magnetic resonance imaging ) scan, also called a head MRI, is a painless procedure that produces very clear images of the structures inside of your head — mainly, your  brain . MRI uses a large magnet, radio waves and a computer to produce these detailed images. It doesn’t use radiation. Currently,   MRI   is the most sensitive imaging test of your head (particularly, your brain), as compared to other imaging techniques, such as  CT (computed tomography) scans   or  X-rays .

About Dataset Data was split into test set of total 210 images : Tumor : 130 images No Tumor  : 80 images Train set of total 43 images : Tumor : 25 images No Tumor  : 18 images

Brain Tumor detection model built using CNN and deployed with accuracy 93.02% . A python model built on google.colab, where data was installed from kaggle.com and it contained images of normal brain  and brain with tumor , the task was to classify these images and used CNN, the accuracy was 93.02% . While running this model on google.colab, you have to be signed in to kaggle.com and make a token and upload it, as connecting Kaggle with colab so as not to download the data on my PC. Also at the end  saving the model.h5 on google drive , so there will be a connection request to your google drive account to save the model. At the end made a python code to use .h5 file, i.e. deep learning model to test new data randomly selected from the internet.  Simple Model Deployment.

CNN

CNN

Accuracy

Breast Cancer Model

Steps of build model 1- Data set (Kaggel-500 normal- 500 sick, ) 2- Preprocessing (Normalization) 3- Modeling:   -Four convolution layers (filter numbers between 64,512 )   -Four pooling layers (max)   -Batch Normalization   -Activation function RELU and Sigmoid in output layer   -validation: accuracy 97.2%

Batch Normalization Batch Norm is a normalization technique done between the layers of a Neural Network instead of in the raw data. It is done along mini-batches instead of the full data set. It serves to speed up training and use higher learning rates, making learning easier.

Application Description Class Diagram Sequence Diagram

Sample of Doctork

Sample of Doctork

Sample of Doctork

Sample of Doctork

Let’s Run Visual Studio 2022

Brain tumor Classification to 4 classes We used a pre-trained model called Efficient net

Efficientnet: Google released a paper in 2019 that dealt with a new family of CNNs i.e EfficientNet. These CNNs not only provide better accuracy but also improve the efficiency of the models by reducing the parameters and FLOPS (Floating Point Operations Per Second) manifold in comparison to the state of art models such as GPipe.

To this end, the authors use Neural Architecture Search to build an efficient network architecture, EfficientNet-BO. It achieves 77.3% accuracy on ImageNet with only 5.3M parameters and 0.39B FLOPS. (Resnet-50 provides 76% accuracy with 26M parameters and 4.1B FLOPS).

Adversarial Attack Before solve the Adversarial Attack:

After apply Fast Gradient Sign Method:

Accuracy of the model

Testing

Testing

Testing

Skin Cancer Our dataset has two classes (benign & Malignant) Our model achieves 84.5%

Architecture of the model:

Testing

Closure Do you think AI will ever replace humans ?

Types of AI The weak AI view holds that intelligent machines cannot really reason and solve problems. These machines only look intelligent, but do not have real intelligence or self-awareness.
Tags