Submit Search
Upload
The rod of Asclepios: Machine learning in Python for cardiac image analysis, Jan Margeta
•
1 like
•
424 views
Pôle Systematic Paris-Region
Follow
PyParis 2017 http://pyparis.org
Read less
Read more
Technology
Report
Share
Report
Share
1 of 37
Download now
Download to read offline
Recommended
Sparse Isotropic Hashing
Sparse Isotropic Hashing
Ikuro Sato
Deep learning for FinTech
Deep learning for FinTech
geetachauhan
Why Neurons have thousands of synapses? A model of sequence memory in the brain
Why Neurons have thousands of synapses? A model of sequence memory in the brain
Numenta
RNN Explore
RNN Explore
Yan Kang
Overview of Genome Assembly Algorithms
Overview of Genome Assembly Algorithms
Ntino Krampis
Neural network and deep learning Devfest17
Neural network and deep learning Devfest17
Issam AlZinati
3D localization methods for intracranial electrodes
3D localization methods for intracranial electrodes
Brian Owens
Lebanon SoftShore Artificial Intelligence Seminar - March 38, 2014
Lebanon SoftShore Artificial Intelligence Seminar - March 38, 2014
lebsoftshore
Recommended
Sparse Isotropic Hashing
Sparse Isotropic Hashing
Ikuro Sato
Deep learning for FinTech
Deep learning for FinTech
geetachauhan
Why Neurons have thousands of synapses? A model of sequence memory in the brain
Why Neurons have thousands of synapses? A model of sequence memory in the brain
Numenta
RNN Explore
RNN Explore
Yan Kang
Overview of Genome Assembly Algorithms
Overview of Genome Assembly Algorithms
Ntino Krampis
Neural network and deep learning Devfest17
Neural network and deep learning Devfest17
Issam AlZinati
3D localization methods for intracranial electrodes
3D localization methods for intracranial electrodes
Brian Owens
Lebanon SoftShore Artificial Intelligence Seminar - March 38, 2014
Lebanon SoftShore Artificial Intelligence Seminar - March 38, 2014
lebsoftshore
Facial expression recognition projc 2 (3) (1)
Facial expression recognition projc 2 (3) (1)
AbhiAchalla
Ai for life sciences - are we ready
Ai for life sciences - are we ready
Jack C Crawford
Value chain maps for open source ecosystems
Value chain maps for open source ecosystems
Chris Corriere
machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...
Armando Vieira
Introduction to Deep learning
Introduction to Deep learning
Massimiliano Patacchiola
Neural Networks
Neural Networks
Eric Su
Designing a neural network architecture for image recognition
Designing a neural network architecture for image recognition
ShandukaniVhulondo
Think Machine Learning with Scikit-Learn (Python)
Think Machine Learning with Scikit-Learn (Python)
Chetan Khatri
An introduction to AI (artificial intelligence)
An introduction to AI (artificial intelligence)
Bellaj Badr
"From IA to AI in Healthcare" - Walter De Brouwer (CEO/Founder, doc.ai/Scanadu)
"From IA to AI in Healthcare" - Walter De Brouwer (CEO/Founder, doc.ai/Scanadu)
Hyper Wellbeing
CIS AIML Beginners Series Part 1
CIS AIML Beginners Series Part 1
Council Of Information Security
II-SDV 2017: The Next Era: Deep Learning for Biomedical Research
II-SDV 2017: The Next Era: Deep Learning for Biomedical Research
Dr. Haxel Consult
Data Science.pptx
Data Science.pptx
TrainerAnalogicx
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptx
Hchethankumar
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptx
Hchethankumar
Transfer Leaning Using Pytorch synopsis Minor project pptx
Transfer Leaning Using Pytorch synopsis Minor project pptx
Ankit Gupta
Python for Data Science with Anaconda
Python for Data Science with Anaconda
Travis Oliphant
Introduction to Deep Learning
Introduction to Deep Learning
Oleg Mygryn
Python for Science and Engineering: a presentation to A*STAR and the Singapor...
Python for Science and Engineering: a presentation to A*STAR and the Singapor...
pythoncharmers
Artificial Intelligence
Artificial Intelligence
Rk King
OSIS19_IoT :Transparent remote connectivity to short-range IoT devices, by Na...
OSIS19_IoT :Transparent remote connectivity to short-range IoT devices, by Na...
Pôle Systematic Paris-Region
OSIS19_Cloud : SAFC: Scheduling and Allocation Framework for Containers in a ...
OSIS19_Cloud : SAFC: Scheduling and Allocation Framework for Containers in a ...
Pôle Systematic Paris-Region
More Related Content
Similar to The rod of Asclepios: Machine learning in Python for cardiac image analysis, Jan Margeta
Facial expression recognition projc 2 (3) (1)
Facial expression recognition projc 2 (3) (1)
AbhiAchalla
Ai for life sciences - are we ready
Ai for life sciences - are we ready
Jack C Crawford
Value chain maps for open source ecosystems
Value chain maps for open source ecosystems
Chris Corriere
machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...
Armando Vieira
Introduction to Deep learning
Introduction to Deep learning
Massimiliano Patacchiola
Neural Networks
Neural Networks
Eric Su
Designing a neural network architecture for image recognition
Designing a neural network architecture for image recognition
ShandukaniVhulondo
Think Machine Learning with Scikit-Learn (Python)
Think Machine Learning with Scikit-Learn (Python)
Chetan Khatri
An introduction to AI (artificial intelligence)
An introduction to AI (artificial intelligence)
Bellaj Badr
"From IA to AI in Healthcare" - Walter De Brouwer (CEO/Founder, doc.ai/Scanadu)
"From IA to AI in Healthcare" - Walter De Brouwer (CEO/Founder, doc.ai/Scanadu)
Hyper Wellbeing
CIS AIML Beginners Series Part 1
CIS AIML Beginners Series Part 1
Council Of Information Security
II-SDV 2017: The Next Era: Deep Learning for Biomedical Research
II-SDV 2017: The Next Era: Deep Learning for Biomedical Research
Dr. Haxel Consult
Data Science.pptx
Data Science.pptx
TrainerAnalogicx
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptx
Hchethankumar
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptx
Hchethankumar
Transfer Leaning Using Pytorch synopsis Minor project pptx
Transfer Leaning Using Pytorch synopsis Minor project pptx
Ankit Gupta
Python for Data Science with Anaconda
Python for Data Science with Anaconda
Travis Oliphant
Introduction to Deep Learning
Introduction to Deep Learning
Oleg Mygryn
Python for Science and Engineering: a presentation to A*STAR and the Singapor...
Python for Science and Engineering: a presentation to A*STAR and the Singapor...
pythoncharmers
Artificial Intelligence
Artificial Intelligence
Rk King
Similar to The rod of Asclepios: Machine learning in Python for cardiac image analysis, Jan Margeta
(20)
Facial expression recognition projc 2 (3) (1)
Facial expression recognition projc 2 (3) (1)
Ai for life sciences - are we ready
Ai for life sciences - are we ready
Value chain maps for open source ecosystems
Value chain maps for open source ecosystems
machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...
Introduction to Deep learning
Introduction to Deep learning
Neural Networks
Neural Networks
Designing a neural network architecture for image recognition
Designing a neural network architecture for image recognition
Think Machine Learning with Scikit-Learn (Python)
Think Machine Learning with Scikit-Learn (Python)
An introduction to AI (artificial intelligence)
An introduction to AI (artificial intelligence)
"From IA to AI in Healthcare" - Walter De Brouwer (CEO/Founder, doc.ai/Scanadu)
"From IA to AI in Healthcare" - Walter De Brouwer (CEO/Founder, doc.ai/Scanadu)
CIS AIML Beginners Series Part 1
CIS AIML Beginners Series Part 1
II-SDV 2017: The Next Era: Deep Learning for Biomedical Research
II-SDV 2017: The Next Era: Deep Learning for Biomedical Research
Data Science.pptx
Data Science.pptx
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptx
Transfer Leaning Using Pytorch synopsis Minor project pptx
Transfer Leaning Using Pytorch synopsis Minor project pptx
Python for Data Science with Anaconda
Python for Data Science with Anaconda
Introduction to Deep Learning
Introduction to Deep Learning
Python for Science and Engineering: a presentation to A*STAR and the Singapor...
Python for Science and Engineering: a presentation to A*STAR and the Singapor...
Artificial Intelligence
Artificial Intelligence
More from Pôle Systematic Paris-Region
OSIS19_IoT :Transparent remote connectivity to short-range IoT devices, by Na...
OSIS19_IoT :Transparent remote connectivity to short-range IoT devices, by Na...
Pôle Systematic Paris-Region
OSIS19_Cloud : SAFC: Scheduling and Allocation Framework for Containers in a ...
OSIS19_Cloud : SAFC: Scheduling and Allocation Framework for Containers in a ...
Pôle Systematic Paris-Region
OSIS19_Cloud : Qu’apporte l’observabilité à la gestion de configuration? par ...
OSIS19_Cloud : Qu’apporte l’observabilité à la gestion de configuration? par ...
Pôle Systematic Paris-Region
OSIS19_Cloud : Performance and power management in virtualized data centers, ...
OSIS19_Cloud : Performance and power management in virtualized data centers, ...
Pôle Systematic Paris-Region
OSIS19_Cloud : Des objets dans le cloud, et qui y restent -- L'expérience du ...
OSIS19_Cloud : Des objets dans le cloud, et qui y restent -- L'expérience du ...
Pôle Systematic Paris-Region
OSIS19_Cloud : Attribution automatique de ressources pour micro-services, Alt...
OSIS19_Cloud : Attribution automatique de ressources pour micro-services, Alt...
Pôle Systematic Paris-Region
OSIS19_IoT : State of the art in security for embedded systems and IoT, by Pi...
OSIS19_IoT : State of the art in security for embedded systems and IoT, by Pi...
Pôle Systematic Paris-Region
Osis19_IoT: Proof of Pointer Programs with Ownership in SPARK, by Yannick Moy
Osis19_IoT: Proof of Pointer Programs with Ownership in SPARK, by Yannick Moy
Pôle Systematic Paris-Region
Osis18_Cloud : Pas de commun sans communauté ?
Osis18_Cloud : Pas de commun sans communauté ?
Pôle Systematic Paris-Region
Osis18_Cloud : Projet Wolphin
Osis18_Cloud : Projet Wolphin
Pôle Systematic Paris-Region
Osis18_Cloud : Virtualisation efficace d’architectures NUMA
Osis18_Cloud : Virtualisation efficace d’architectures NUMA
Pôle Systematic Paris-Region
Osis18_Cloud : DeepTorrent Stockage distribué perenne basé sur Bittorrent
Osis18_Cloud : DeepTorrent Stockage distribué perenne basé sur Bittorrent
Pôle Systematic Paris-Region
Osis18_Cloud : Software-heritage
Osis18_Cloud : Software-heritage
Pôle Systematic Paris-Region
OSIS18_IoT: L'approche machine virtuelle pour les microcontrôleurs, le projet...
OSIS18_IoT: L'approche machine virtuelle pour les microcontrôleurs, le projet...
Pôle Systematic Paris-Region
OSIS18_IoT: La securite des objets connectes a bas cout avec l'os et riot
OSIS18_IoT: La securite des objets connectes a bas cout avec l'os et riot
Pôle Systematic Paris-Region
OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...
OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...
Pôle Systematic Paris-Region
OSIS18_IoT : Securisation du reseau des objets connectes, par Nicolas LE SAUZ...
OSIS18_IoT : Securisation du reseau des objets connectes, par Nicolas LE SAUZ...
Pôle Systematic Paris-Region
OSIS18_IoT : Ada and SPARK - Defense in Depth for Safe Micro-controller Progr...
OSIS18_IoT : Ada and SPARK - Defense in Depth for Safe Micro-controller Progr...
Pôle Systematic Paris-Region
OSIS18_IoT : RTEMS pour l'IoT professionnel, par Pierre Ficheux (Smile ECS)
OSIS18_IoT : RTEMS pour l'IoT professionnel, par Pierre Ficheux (Smile ECS)
Pôle Systematic Paris-Region
PyParis 2017 / Un mooc python, by thierry parmentelat
PyParis 2017 / Un mooc python, by thierry parmentelat
Pôle Systematic Paris-Region
More from Pôle Systematic Paris-Region
(20)
OSIS19_IoT :Transparent remote connectivity to short-range IoT devices, by Na...
OSIS19_IoT :Transparent remote connectivity to short-range IoT devices, by Na...
OSIS19_Cloud : SAFC: Scheduling and Allocation Framework for Containers in a ...
OSIS19_Cloud : SAFC: Scheduling and Allocation Framework for Containers in a ...
OSIS19_Cloud : Qu’apporte l’observabilité à la gestion de configuration? par ...
OSIS19_Cloud : Qu’apporte l’observabilité à la gestion de configuration? par ...
OSIS19_Cloud : Performance and power management in virtualized data centers, ...
OSIS19_Cloud : Performance and power management in virtualized data centers, ...
OSIS19_Cloud : Des objets dans le cloud, et qui y restent -- L'expérience du ...
OSIS19_Cloud : Des objets dans le cloud, et qui y restent -- L'expérience du ...
OSIS19_Cloud : Attribution automatique de ressources pour micro-services, Alt...
OSIS19_Cloud : Attribution automatique de ressources pour micro-services, Alt...
OSIS19_IoT : State of the art in security for embedded systems and IoT, by Pi...
OSIS19_IoT : State of the art in security for embedded systems and IoT, by Pi...
Osis19_IoT: Proof of Pointer Programs with Ownership in SPARK, by Yannick Moy
Osis19_IoT: Proof of Pointer Programs with Ownership in SPARK, by Yannick Moy
Osis18_Cloud : Pas de commun sans communauté ?
Osis18_Cloud : Pas de commun sans communauté ?
Osis18_Cloud : Projet Wolphin
Osis18_Cloud : Projet Wolphin
Osis18_Cloud : Virtualisation efficace d’architectures NUMA
Osis18_Cloud : Virtualisation efficace d’architectures NUMA
Osis18_Cloud : DeepTorrent Stockage distribué perenne basé sur Bittorrent
Osis18_Cloud : DeepTorrent Stockage distribué perenne basé sur Bittorrent
Osis18_Cloud : Software-heritage
Osis18_Cloud : Software-heritage
OSIS18_IoT: L'approche machine virtuelle pour les microcontrôleurs, le projet...
OSIS18_IoT: L'approche machine virtuelle pour les microcontrôleurs, le projet...
OSIS18_IoT: La securite des objets connectes a bas cout avec l'os et riot
OSIS18_IoT: La securite des objets connectes a bas cout avec l'os et riot
OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...
OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...
OSIS18_IoT : Securisation du reseau des objets connectes, par Nicolas LE SAUZ...
OSIS18_IoT : Securisation du reseau des objets connectes, par Nicolas LE SAUZ...
OSIS18_IoT : Ada and SPARK - Defense in Depth for Safe Micro-controller Progr...
OSIS18_IoT : Ada and SPARK - Defense in Depth for Safe Micro-controller Progr...
OSIS18_IoT : RTEMS pour l'IoT professionnel, par Pierre Ficheux (Smile ECS)
OSIS18_IoT : RTEMS pour l'IoT professionnel, par Pierre Ficheux (Smile ECS)
PyParis 2017 / Un mooc python, by thierry parmentelat
PyParis 2017 / Un mooc python, by thierry parmentelat
Recently uploaded
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
gurkirankumar98700
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pooja Nehwal
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
The Digital Insurer
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Roshan Dwivedi
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enterprise Knowledge
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
Results
Recently uploaded
(20)
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
The rod of Asclepios: Machine learning in Python for cardiac image analysis, Jan Margeta
1.
The rod of Asclepios Jan Margeta | | jan@kardio.me @jmargeta
2.
World full of superpowers
3.
Python as our superpower? Meet Asclepios
4.
Hi, I am Jan Pythonista for 8 years Founder of KardioMe Maker of tools to better understand our hearts Python 3.5+, numpy, MxNet, Keras, Tensorflow, scikit-learn, SimpleITK, pydicom, Flask, Sanic, Django, PostgreSQL, ReactJS, Docker
5.
This talk Peek into our hearts with medical images What used to be hard is now magically simple Tricks and tools for machine learning in Python we've learned along the way
6.
Imaging of our hearts X-Ray ultrasound fluoroscopy computed tomography
magnetic resonance Kelly 2007 Carmo et al. 2010 Arnold et al. 2008 Foley et al. 2010 Vanezis et al. 2011
7.
What a human sees
8.
What a human sees
9.
What a computer sees
10.
Machine learning Solving problems with data prediction = model.predict (data)
11.
Image recognition in 6 lines of code from keras.applications import imagenet_utils from keras.applications.vgg16 import VGG16 # Load and prepare input images images_raw = load_images() images = imagenet_utils.preprocess_input(images_raw) # Load a pretrained image classification model model = VGG16(include_top=True, weights='imagenet') # Do the prediction predictions = model.predict(images)
12.
Convolutional neural networks By Aphex34
13.
Finding the right image representation
14.
Excellent for natural images Trained on Imagenet large scale visual recognition challenge dataset 10 million images, 1000 categories
15.
Extracting visual features # Load a pretrained classification model source_model = VGG16(weights='imagenet') # Define feature extractor from one layer of the network feature_layer = source_model.get_layer('conv4') feature_extractor = Model( input=fix_model.input, output=feature_layer.output) # Extract features features = feature_extractor.predict(images) See also "Deep visualization toolbox" on youtube
16.
Using the extracted features with scikit-learn from sklearn.svm import LinearSVC def flatten_features(features): return features.reshape(len(features), -1) features_train = feature_extractor.predict(images_train) features_train = flatten_features(features_train) classifier = LinearSVC() classifier.fit(features_train, labels_train) # predict on never seen images features_test = feature_extractor.predict(images_test) features_test = flatten_features(features_test) prediction_test = classifier.predict(features_test)
17.
Example: Cardiac view recognition , Joint work with and Margeta et al. 2015 Inria
Microsoft Research Cambridge
18.
Train the model from scratch from keras.models import Sequential from keras.layers import Conv2D, Dense, Flatten images_train, labels_train = load_data() shape = (64, 64, 1) model = Sequential([ Conv2D(32, (3, 3), activation='relu', input_shape=shape), MaxPooling2D(pool_size=(2, 2)) Flatten(), Dense(4, activation='softmax'), ])
19.
# Loss function - task dependent # high for bad parameters, low for good ones # e.g. for image recognition loss_function = 'sparse_categorical_crossentropy' # Compile the model and fit model.compile(loss=loss_function, optimizer='adam') model.fit(images_train, labels_train) # Save the model for reuse model.save('model.h5')
20.
Let's save some time for our radiologists , Joint work with and KardioMe Inria
IHU Liryc
21.
Deploy as a web service see also Tensorflow-serving and Kubernetes
22.
Expose the model with Flask* *do not run in production, it requires a bit more love than this import keras from flask import Flask, jsonify, request app = Flask(__name__) model = keras.models.load_model('model.h5') @app.route('/predict', methods=['POST']) def predict(): image_batch = request_to_numpy(request) y = model.predict(image_batch) prediction = convert_prediction(y) return jsonify(output=prediction) app.run(port=5000, threaded=False)
23.
Run with the same conditions as when it was built
24.
Define the Dockerfile FROM python:3.5 RUN mkdir -p /usr/src/app COPY server.py /usr/src/app/ COPY model.h5 /usr/src/app/ COPY requirements.txt /usr/src/app/ WORKDIR /usr/src/app RUN pip install -r requirements.txt EXPOSE 5000 CMD python server.py
25.
Build the Docker container Run the service Call the service docker build -t kardiome/model-pyparis . docker run -d -p 5000:5000 kardiome/model-pycon curl -X POST -F 'image=@/data/im.png' localhost:5000/predict
26.
Tips to improve your machine learning today
27.
Iterate fast Minimally viable model
28.
One metric to rule them all Training progress visualisation in Tensorboard
29.
Visualize everything Built with Sanic backend (like Flask) and React
30.
Progress with confidence and repeatable pipelines Gitlab's continuous integration is an excellent start for simple pipelines (see Airflow, Luigi, Joblib, Flink)
31.
No glory in data preparation But it must be done
32.
Having a small dataset? Do something about it https://affinelayer.com/pixsrv/
33.
Got unlabeled data? Don't be lazy, just annotate it if you can, there are tools to help you See in Scikit-learn , Joint work with and Margeta et al. 2015
Inria Microsoft Research Cambridge Label Propagation example
34.
Be practical Have an open mind
35.
Overall experience Remarkable ecosystem Fantastic community Build things very hard before ★★★★★
36.
Takeaways Build something you care about Poke your models and learn from them Pick your superpower and have fun # to fly import antigravity
37.
The rod of Asclepios Jan Margeta | | Thanks! Python, numpy, MxNet, Keras, Tensorflow, scikit-learn, SimpleITK, pydicom, Flask, Sanic, Django, PostgreSQL, ReactJS, Docker Inria, IHU Liryc, Microsoft Research jan@kardio.me @jmargeta
Download now