Slide 1

Slide 1 text

Using Deep Learning and GCP in Helping Rice Farmers Marc Anthony Reyes [email protected] / @marcreyesph Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 1

Slide 2

Slide 2 text

About Me Recent Computer Science graduate, Xavier University – Ateneo de Cagayan Kubernetes Guy @ Mynt Likes cats and everything Python Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 2

Slide 3

Slide 3 text

Applications of Machine Learning Business Analytics Computer Vision Finance Manufacturing Medicine And the list goes on… Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 3

Slide 4

Slide 4 text

How About Farming? Little to no government support Lack of interest Youth find it not an interesting field to take on Left behind of technological advancements Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 4

Slide 5

Slide 5 text

AI Projects on Farming Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 5

Slide 6

Slide 6 text

UmaBOT Agricultural drone for monitoring plant health Funded by Jollibee Group Foundation Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 6

Slide 7

Slide 7 text

Realizations Drone parts are expensive Maintenance and repair Expensive for small-scale farmers Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 7

Slide 8

Slide 8 text

Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 8 Introducing PalayLab

Slide 9

Slide 9 text

Partners Department of Agriculture Regional Field Office 10 PhilRice Database and Management Portal Opol Municipal Agricultural Office Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 9

Slide 10

Slide 10 text

Partners TensorFlow Research Cloud for Google Cloud Platform Free TPU Usage Quota Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 10

Slide 11

Slide 11 text

TFRC Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 11 tensorflow.org/tfrc

Slide 12

Slide 12 text

TFRC Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 12 tensorflow.org/tfrc

Slide 13

Slide 13 text

Methodology Data Collection Data Prepocessing Feature Extraction Model Training Model Deployment Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 13

Slide 14

Slide 14 text

Data Collection Image of healthy rice plants Image of rice plant pests and diseases Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 14

Slide 15

Slide 15 text

Data Collection DISEASES Bacterial Blight Rice Blast Sheath Blight Tungro INFESTATIONS Army Worm Golden Apple Snail Green Leafhopper Rice Black Bug Rice Ear Bug Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 15

Slide 16

Slide 16 text

Data Preprocessing Preparation of train-test data Data augmentation Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 16

Slide 17

Slide 17 text

Data Preprocessing Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 17

Slide 18

Slide 18 text

Feature Extraction Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 18

Slide 19

Slide 19 text

Model Training Inception ResNet v2 from scratch Got 89% accuracy in training Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 19

Slide 20

Slide 20 text

Training on GCP Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 20 Convert processed images to .tfrecords file Test Train Upload to Google Cloud Storage Cloud TPU Submit to Prepare training job configuration files

Slide 21

Slide 21 text

Model Deployment Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 21 .tflite model file Mobile optimized Model Host to Firebase ML Kit Return predictions API integration Submit image for prediction Mobile application Automatic model updates Automatic model fallback Save model to phone

Slide 22

Slide 22 text

Phone to GCP Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 22 Send image Firebase Cloud Storage API integration Google Cloud Storage Cloud TPU Submit to Prepare training job configuration files

Slide 23

Slide 23 text

PalayLab 1) Diseases Activity 2) Pests Activity 3) Detection Activity 4) Statistics Activity Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 23

Slide 24

Slide 24 text

Plant Health Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 24

Slide 25

Slide 25 text

NDVI Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 25

Slide 26

Slide 26 text

Plant Health Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 26 Get percentage of segmented lesion area over the healthy one

Slide 27

Slide 27 text

PalayLab 1) Live Camera View 2) Detection Result 3) Information About the Disease/Pest Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 27

Slide 28

Slide 28 text

PalayLab 1) Select Image Activity 2) Select Activity Intent 3) Select Image From Gallery 4) Image Select Preview 5) Detection Result 6) Information About the Disease/Pest Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 28

Slide 29

Slide 29 text

Moving Forward Including other factors such as the soil, moisture, and weather condition as features for the model. Legacy support for phones that have deprecated API levels. Introduce mobile applications to government agencies for training of farmers Map severity of infestation/infection in a field Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 29

Slide 30

Slide 30 text

Recognition Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 30 Top 6, 2019 BPI-DOST Science Awards

Slide 31

Slide 31 text

Thank you very much! Let’s build more ML solutions for farming. Thursday, December 12, 2019 Using Deep Learning and GCP in Helping Rice Farmers 31 Marc Anthony Reyes [email protected] / @marcreyesph