SlideShare a Scribd company logo
1 of 23
Mammogram Image
Classification using Attention
Mechanism with Transfer
Learning
Dr. Munir Ahmad
Postdoc Software Engineering, University of Hertfordshire, UK
PhD Medical Physics (Imaging), University College London, UK
MSc Nuclear Engineering (Control Engineering), PIEAS, PK
MSc Physics (Electronics), Punjab University, PK
(munirahm@gmail.com)
Presentation Overviewโ€ฆโ€ฆ..
๏ƒ˜ What is image classification ?
๏ƒ˜ Networks used for image classification ?
๏ƒ˜ Standard Network models ?
๏ƒ˜ Mammogram dataset used ?
๏ƒ˜ Transfer Learning ?
๏ƒ˜ Attention mechanism ?
๏ƒ˜ Our model ?
๏ƒ˜ Results ?
๏ƒ˜ Conclusions ?
Cats and Dogs Image Classificationโ€ฆ.
Neural Network Model
Image
Classification
using
CNN
A
Standard
CNN
Model
(VGG
-16) Visual Geometry Group
(Oxofrd University) 2014
A
Standard
CNN
Model
(ResNet50)
Pre-Trained versions of CNN
The ImageNet dataset
contains 14,197,122
annotated images according
to the WordNet hierarchy.
These images are from 1000
classes.
Attention
mechanism In the image below,
say we only need to
pay attention on this
Balloonโ€ฆ.
We can simply
segment this balloon
and only work with it
instead of the rest of
the image by masking
the area with whiteโ€ฆ.
Need
for
CAD
Modelโ€ฆ.. ๏ƒ˜ Early diagnosis, better treatment
๏ƒ˜ Increased efficiency
๏ƒ˜ Increased accuracy
๏ƒ˜ To save radiologist time
๏ƒ˜ To save radiologist effort
๏ƒ˜ Socio economic effect โ€“ (screening)
๏ƒ˜ Save costs involved
๏ƒ˜ Etc..
CA Breast is the 2nd most
common cancer in the world
and in Pakistan almost 45% of
cancers are CA Breast. The best
screening diagnosis available is
the mammography.
MIAS Datasetโ€ฆ..
MIAS is a small dataset
Total number of images: 323
Malignant: 53
Benign: 63
Normal: 207
Data Augmentation & Pre-Processingโ€ฆ.
Operation used for pre-processing
Dataset Split Methodโ€ฆ..
Our
Model
with
Attention
Mechanism
Model Parameters usedโ€ฆ..
Methodologyโ€ฆโ€ฆ
True Positive: Positive as Positive (TrP)
False Positive: Positive as Negative (FaP)
True Negative: Negative as Negative (TrN)
False negative: Negative as Positive (FaN)
๐ด๐‘๐‘๐‘ข๐‘Ÿ๐‘Ž๐‘๐‘ฆ =
๐‘‡๐‘Ÿ๐‘ƒ + ๐‘‡๐‘Ÿ๐‘
๐‘‡๐‘Ÿ๐‘ƒ + ๐น๐‘Ž๐‘ƒ + ๐‘‡๐‘Ÿ๐‘ + ๐น๐‘Ž๐‘
ร— 100%
๐‘ƒ๐‘Ÿ๐‘’๐‘๐‘–๐‘ ๐‘–๐‘œ๐‘› =
๐‘‡๐‘Ÿ๐‘ƒ
๐‘‡๐‘Ÿ๐‘ƒ + ๐น๐‘Ž๐‘ƒ
ร— 100%
๐‘…๐‘’๐‘๐‘Ž๐‘™๐‘™ =
๐‘‡๐‘Ÿ๐‘ƒ
๐‘‡๐‘Ÿ๐‘ƒ + ๐น๐‘Ž๐‘
ร— 100%
๐น1 =
๐‘ƒ๐‘Ÿ๐‘’๐‘๐‘–๐‘ ๐‘–๐‘œ๐‘› ร— ๐‘…๐‘’๐‘๐‘Ž๐‘™๐‘™
๐‘ƒ๐‘Ÿ๐‘’๐‘๐‘–๐‘ ๐‘–๐‘œ๐‘› + ๐‘…๐‘’๐‘๐‘Ž๐‘™๐‘™
ร— 2
Precision can be seen
as a measure of
quality, and recall as a
measure of quantity.
Higher precision
means that an
algorithm returns more
relevant results than
irrelevant ones, and
high recall means that
an algorithm returns
most of the relevant
results (whether or not
irrelevant ones are
also returned).
Accuracyโ€ฆwith selected batch sizeโ€ฆ
Accuracy โ€“ with selected batch sizeโ€ฆ
Lossโ€ฆ..with selected batch sizeโ€ฆ.
Lossโ€ฆ..with selected batch sizeโ€ฆ.
Other Parametersโ€ฆ..
Conclusions
โ€ข Test and training accuracy and loss is better for VGG16 without
attention layer.
โ€ข ResNet50 performs better with attention layer for all malignant,
normal and benign cases.
โ€ข Similarly, test and training accuracy and loss is better for ResNet50
with attention layer.
โ€ข Feature extraction points need to be optimized โ€“ Future Work.
โ€ข Use of attention layer needs to be optimized โ€“ Future Work.
โ€ข For malignant cases, VGG16 perform equal with or without attention
layer for precision and recall.
Thank youโ€ฆโ€ฆ

More Related Content

Similar to Transfer learning with attenuation mechanism for mammogram image.pptx

Presentation_Malware Analysis.pptx
Presentation_Malware Analysis.pptxPresentation_Malware Analysis.pptx
Presentation_Malware Analysis.pptx
nishanth kurush
ย 
Probability density estimation using Product of Conditional Experts
Probability density estimation using Product of Conditional ExpertsProbability density estimation using Product of Conditional Experts
Probability density estimation using Product of Conditional Experts
Chirag Gupta
ย 
Sample_Subjective_Questions_Answers (1).pdf
Sample_Subjective_Questions_Answers (1).pdfSample_Subjective_Questions_Answers (1).pdf
Sample_Subjective_Questions_Answers (1).pdf
AaryanArora10
ย 
Electricity Demand Forecasting Using ANN
Electricity Demand Forecasting Using ANNElectricity Demand Forecasting Using ANN
Electricity Demand Forecasting Using ANN
Naren Chandra Kattla
ย 

Similar to Transfer learning with attenuation mechanism for mammogram image.pptx (20)

An approach to enhancing image contrast using genetic algorithm
An approach to enhancing image contrast using  genetic algorithmAn approach to enhancing image contrast using  genetic algorithm
An approach to enhancing image contrast using genetic algorithm
ย 
IMAGE CLASSIFICATION USING DIFFERENT CLASSICAL APPROACHES
IMAGE CLASSIFICATION USING DIFFERENT CLASSICAL APPROACHESIMAGE CLASSIFICATION USING DIFFERENT CLASSICAL APPROACHES
IMAGE CLASSIFICATION USING DIFFERENT CLASSICAL APPROACHES
ย 
Brain Tumor Detection Using Deep Neural Network.pptx
Brain Tumor Detection Using Deep Neural Network.pptxBrain Tumor Detection Using Deep Neural Network.pptx
Brain Tumor Detection Using Deep Neural Network.pptx
ย 
Presentation_Malware Analysis.pptx
Presentation_Malware Analysis.pptxPresentation_Malware Analysis.pptx
Presentation_Malware Analysis.pptx
ย 
Multiple Analysis of Brain Tumor Detection Based on FCM
Multiple Analysis of Brain Tumor Detection Based on FCMMultiple Analysis of Brain Tumor Detection Based on FCM
Multiple Analysis of Brain Tumor Detection Based on FCM
ย 
Genetic algorithm for hyperparameter tuning
Genetic algorithm for hyperparameter tuningGenetic algorithm for hyperparameter tuning
Genetic algorithm for hyperparameter tuning
ย 
F017533540
F017533540F017533540
F017533540
ย 
IMPLEMENTATION OF MACHINE LEARNING IN E-COMMERCE & BEYOND
IMPLEMENTATION OF MACHINE LEARNING IN E-COMMERCE & BEYONDIMPLEMENTATION OF MACHINE LEARNING IN E-COMMERCE & BEYOND
IMPLEMENTATION OF MACHINE LEARNING IN E-COMMERCE & BEYOND
ย 
Predict Backorder on a supply chain data for an Organization
Predict Backorder on a supply chain data for an OrganizationPredict Backorder on a supply chain data for an Organization
Predict Backorder on a supply chain data for an Organization
ย 
Paper id 28201445
Paper id 28201445Paper id 28201445
Paper id 28201445
ย 
APPLYING DYNAMIC MODEL FOR MULTIPLE MANOEUVRING TARGET TRACKING USING PARTICL...
APPLYING DYNAMIC MODEL FOR MULTIPLE MANOEUVRING TARGET TRACKING USING PARTICL...APPLYING DYNAMIC MODEL FOR MULTIPLE MANOEUVRING TARGET TRACKING USING PARTICL...
APPLYING DYNAMIC MODEL FOR MULTIPLE MANOEUVRING TARGET TRACKING USING PARTICL...
ย 
Probability density estimation using Product of Conditional Experts
Probability density estimation using Product of Conditional ExpertsProbability density estimation using Product of Conditional Experts
Probability density estimation using Product of Conditional Experts
ย 
ngboost.pptx
ngboost.pptxngboost.pptx
ngboost.pptx
ย 
I2b2 2008
I2b2 2008I2b2 2008
I2b2 2008
ย 
Getting started with Machine Learning
Getting started with Machine LearningGetting started with Machine Learning
Getting started with Machine Learning
ย 
Sample_Subjective_Questions_Answers (1).pdf
Sample_Subjective_Questions_Answers (1).pdfSample_Subjective_Questions_Answers (1).pdf
Sample_Subjective_Questions_Answers (1).pdf
ย 
EFFICIENT USE OF HYBRID ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM COMBINED WITH N...
EFFICIENT USE OF HYBRID ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM COMBINED WITH N...EFFICIENT USE OF HYBRID ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM COMBINED WITH N...
EFFICIENT USE OF HYBRID ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM COMBINED WITH N...
ย 
Brain Tumor Detection and Classification using Adaptive Boosting
Brain Tumor Detection and Classification using Adaptive BoostingBrain Tumor Detection and Classification using Adaptive Boosting
Brain Tumor Detection and Classification using Adaptive Boosting
ย 
Electricity Demand Forecasting Using ANN
Electricity Demand Forecasting Using ANNElectricity Demand Forecasting Using ANN
Electricity Demand Forecasting Using ANN
ย 
MAHA DISS PROJECT 1-1.pptx
MAHA DISS PROJECT 1-1.pptxMAHA DISS PROJECT 1-1.pptx
MAHA DISS PROJECT 1-1.pptx
ย 

More from Munir Ahmad (9)

Radioactive Waste Management
Radioactive Waste ManagementRadioactive Waste Management
Radioactive Waste Management
ย 
Probability Distributions
Probability DistributionsProbability Distributions
Probability Distributions
ย 
Random Variables
Random VariablesRandom Variables
Random Variables
ย 
Machine learning for Tomographic Imaging.pdf
Machine learning for Tomographic Imaging.pdfMachine learning for Tomographic Imaging.pdf
Machine learning for Tomographic Imaging.pdf
ย 
Advance Medical Physics.pptx
Advance Medical Physics.pptxAdvance Medical Physics.pptx
Advance Medical Physics.pptx
ย 
Decay Modes.pptx
Decay Modes.pptxDecay Modes.pptx
Decay Modes.pptx
ย 
Radiation Interactions.ppt
Radiation Interactions.pptRadiation Interactions.ppt
Radiation Interactions.ppt
ย 
Radiation Detection Principles.pptx
Radiation Detection Principles.pptxRadiation Detection Principles.pptx
Radiation Detection Principles.pptx
ย 
Radiation Interactions.pptx
Radiation Interactions.pptxRadiation Interactions.pptx
Radiation Interactions.pptx
ย 

Recently uploaded

Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
gindu3009
ย 
DIFFERENCE IN BACK CROSS AND TEST CROSS
DIFFERENCE IN  BACK CROSS AND TEST CROSSDIFFERENCE IN  BACK CROSS AND TEST CROSS
DIFFERENCE IN BACK CROSS AND TEST CROSS
LeenakshiTyagi
ย 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Sรฉrgio Sacani
ย 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
PirithiRaju
ย 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
RohitNehra6
ย 

Recently uploaded (20)

Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
ย 
DIFFERENCE IN BACK CROSS AND TEST CROSS
DIFFERENCE IN  BACK CROSS AND TEST CROSSDIFFERENCE IN  BACK CROSS AND TEST CROSS
DIFFERENCE IN BACK CROSS AND TEST CROSS
ย 
Hire ๐Ÿ’• 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire ๐Ÿ’• 9907093804 Hooghly Call Girls Service Call Girls AgencyHire ๐Ÿ’• 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire ๐Ÿ’• 9907093804 Hooghly Call Girls Service Call Girls Agency
ย 
fundamental of entomology all in one topics of entomology
fundamental of entomology all in one topics of entomologyfundamental of entomology all in one topics of entomology
fundamental of entomology all in one topics of entomology
ย 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
ย 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
ย 
Chromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATINChromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATIN
ย 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
ย 
โคJammu Kashmir Call Girls 8617697112 Personal Whatsapp Number ๐Ÿ’ฆโœ….
โคJammu Kashmir Call Girls 8617697112 Personal Whatsapp Number ๐Ÿ’ฆโœ….โคJammu Kashmir Call Girls 8617697112 Personal Whatsapp Number ๐Ÿ’ฆโœ….
โคJammu Kashmir Call Girls 8617697112 Personal Whatsapp Number ๐Ÿ’ฆโœ….
ย 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: โ€œEg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: โ€œEg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: โ€œEg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: โ€œEg...
ย 
Lucknow ๐Ÿ’‹ Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow ๐Ÿ’‹ Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow ๐Ÿ’‹ Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow ๐Ÿ’‹ Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
ย 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
ย 
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
ย 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questions
ย 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptx
ย 
Stunning โžฅ8448380779โ–ป Call Girls In Panchshil Enclave Delhi NCR
Stunning โžฅ8448380779โ–ป Call Girls In Panchshil Enclave Delhi NCRStunning โžฅ8448380779โ–ป Call Girls In Panchshil Enclave Delhi NCR
Stunning โžฅ8448380779โ–ป Call Girls In Panchshil Enclave Delhi NCR
ย 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
ย 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
ย 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
ย 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
ย 

Transfer learning with attenuation mechanism for mammogram image.pptx

  • 1. Mammogram Image Classification using Attention Mechanism with Transfer Learning Dr. Munir Ahmad Postdoc Software Engineering, University of Hertfordshire, UK PhD Medical Physics (Imaging), University College London, UK MSc Nuclear Engineering (Control Engineering), PIEAS, PK MSc Physics (Electronics), Punjab University, PK (munirahm@gmail.com)
  • 2. Presentation Overviewโ€ฆโ€ฆ.. ๏ƒ˜ What is image classification ? ๏ƒ˜ Networks used for image classification ? ๏ƒ˜ Standard Network models ? ๏ƒ˜ Mammogram dataset used ? ๏ƒ˜ Transfer Learning ? ๏ƒ˜ Attention mechanism ? ๏ƒ˜ Our model ? ๏ƒ˜ Results ? ๏ƒ˜ Conclusions ?
  • 3. Cats and Dogs Image Classificationโ€ฆ. Neural Network Model
  • 5.
  • 6. A Standard CNN Model (VGG -16) Visual Geometry Group (Oxofrd University) 2014
  • 8. Pre-Trained versions of CNN The ImageNet dataset contains 14,197,122 annotated images according to the WordNet hierarchy. These images are from 1000 classes.
  • 9. Attention mechanism In the image below, say we only need to pay attention on this Balloonโ€ฆ. We can simply segment this balloon and only work with it instead of the rest of the image by masking the area with whiteโ€ฆ.
  • 10. Need for CAD Modelโ€ฆ.. ๏ƒ˜ Early diagnosis, better treatment ๏ƒ˜ Increased efficiency ๏ƒ˜ Increased accuracy ๏ƒ˜ To save radiologist time ๏ƒ˜ To save radiologist effort ๏ƒ˜ Socio economic effect โ€“ (screening) ๏ƒ˜ Save costs involved ๏ƒ˜ Etc.. CA Breast is the 2nd most common cancer in the world and in Pakistan almost 45% of cancers are CA Breast. The best screening diagnosis available is the mammography.
  • 11. MIAS Datasetโ€ฆ.. MIAS is a small dataset Total number of images: 323 Malignant: 53 Benign: 63 Normal: 207
  • 12. Data Augmentation & Pre-Processingโ€ฆ. Operation used for pre-processing
  • 16. Methodologyโ€ฆโ€ฆ True Positive: Positive as Positive (TrP) False Positive: Positive as Negative (FaP) True Negative: Negative as Negative (TrN) False negative: Negative as Positive (FaN) ๐ด๐‘๐‘๐‘ข๐‘Ÿ๐‘Ž๐‘๐‘ฆ = ๐‘‡๐‘Ÿ๐‘ƒ + ๐‘‡๐‘Ÿ๐‘ ๐‘‡๐‘Ÿ๐‘ƒ + ๐น๐‘Ž๐‘ƒ + ๐‘‡๐‘Ÿ๐‘ + ๐น๐‘Ž๐‘ ร— 100% ๐‘ƒ๐‘Ÿ๐‘’๐‘๐‘–๐‘ ๐‘–๐‘œ๐‘› = ๐‘‡๐‘Ÿ๐‘ƒ ๐‘‡๐‘Ÿ๐‘ƒ + ๐น๐‘Ž๐‘ƒ ร— 100% ๐‘…๐‘’๐‘๐‘Ž๐‘™๐‘™ = ๐‘‡๐‘Ÿ๐‘ƒ ๐‘‡๐‘Ÿ๐‘ƒ + ๐น๐‘Ž๐‘ ร— 100% ๐น1 = ๐‘ƒ๐‘Ÿ๐‘’๐‘๐‘–๐‘ ๐‘–๐‘œ๐‘› ร— ๐‘…๐‘’๐‘๐‘Ž๐‘™๐‘™ ๐‘ƒ๐‘Ÿ๐‘’๐‘๐‘–๐‘ ๐‘–๐‘œ๐‘› + ๐‘…๐‘’๐‘๐‘Ž๐‘™๐‘™ ร— 2 Precision can be seen as a measure of quality, and recall as a measure of quantity. Higher precision means that an algorithm returns more relevant results than irrelevant ones, and high recall means that an algorithm returns most of the relevant results (whether or not irrelevant ones are also returned).
  • 18. Accuracy โ€“ with selected batch sizeโ€ฆ
  • 22. Conclusions โ€ข Test and training accuracy and loss is better for VGG16 without attention layer. โ€ข ResNet50 performs better with attention layer for all malignant, normal and benign cases. โ€ข Similarly, test and training accuracy and loss is better for ResNet50 with attention layer. โ€ข Feature extraction points need to be optimized โ€“ Future Work. โ€ข Use of attention layer needs to be optimized โ€“ Future Work. โ€ข For malignant cases, VGG16 perform equal with or without attention layer for precision and recall.