1 of 18

Machine Learning Hackathon - ExxonMobil

Solution to Problem Statement 1

2 of 18

Team Members:

3 of 18

Problem Statement

Currently, ExxonMobil sponsors campaign signage for retailers and field staff has to physically visit the retail sites to validate the signage to ensure the signage is within ExxonMobil brand guidelines. This manual effort will be very time consuming. Develop a solution which automates some of this work:

a.) Retailers take an image of the campaign signage and send/upload to the technology platform.

b.) The technology will leverage a combination of image analytics and machine learning to automate the validation process with the uploaded campaign signage image and identify those signage which does not confirm to ExxonMobil brand guidelines.

4 of 18

Solution Approach

  • We design, develop and implement a modular system which can identify images with rule-compliant signage, provide the ability to train the underlying Machine Learning model, perform logo detection and geotagging -- all via a simple web portal.
  • We perform the tasks using:
    • Convolutional Neural Network: state of the art Deep Learning model for image classification.
    • Advanced Image Analysis Techniques: Template Matching using HAAR Classifiers for accurate Logo detection.
    • Geotagging: Extraction of geo-coordinates from the image.

5 of 18

Model Architecture

Image Input

Neural Network Module

Geotagging Module

Signage Detection

Learning Module

Logo Object Detection

Geographic Info

Image Analysis Module

6 of 18

Deep Learning: Compliant Brand Signage Identification

  • We used transfer learning on Inception-v3 (Google’s cnn pre-trained on thousands of images) to train our neural network to classify images into two categories:
    • Correct Brand Signage
    • Incorrect Brand Signage
  • After training, we tuned the parameters of the Neural Network to optimize the results for the specific use case.

Architecture of Convolutional Neural Networks converting input image to probabilistic classification outputs

7 of 18

Signage Detection using Neural Network Model

0.92 Correct

Input Image

Neural Network

Output

0.08 Incorrect

8 of 18

Image Analysis: Logo Detection

  • We leveraged OpenCV2 (a library of advanced real-time computer vision algorithms) to perform image analysis.
  • We implemented a scaled-variant version of template matching algorithm to identify and locate the Exxon Mobil logos in the uploaded images.
  • We first created multiple templates using the logos available online and the template matching algorithm was applied at various scales thus making our logo detection size-invariant.

9 of 18

Demonstration

The video shows the working of the algorithm on 2 images.

  • An image is resized to various scales (enlarged and shrunk).
  • ExxonMobil logo is then searched on all the resized versions of the image.
  • The best version is picked and is outlined.

10 of 18

Logo Detection Results

11 of 18

Step 1: Select the image to be classified and upload it to the server.

Step 2: The image is received by the backend and fed into our system consisting of Machine Learning Model, Image Analysis Engine and Geotagging module.

Step 3: The modules produce respective outputs on the backend which are then delivered to the front end.

12 of 18

Detected

Logo

Neural Network Output

13 of 18

Geotagging

  • We extracted the latitude and longitude information from the image metadata.
  • Used Google Maps API to:
    • Get the street address of the location pointed out by the (latitude, longitude) pair.
    • Point that location on the map.
  • Thus, the system has an ability to identify and authenticate the geo-location of where the image was taken.
  • A sample output on next slide...

14 of 18

15 of 18

Training

  • We created an interface that enables Exxon Mobil to retrain the platform according to their evolving requirements just by click of a button on our portal.
  • Training the platform requires the user to upload two sets of images:
    • Positive Images: Represent correct brand signage
    • Negative Images: Represent incorrect brand signage
  • Future work may involve creating a feedback loop by human intervention and correcting the model’s mistakes in an online fashion.

16 of 18

Platform Training Methodologies

Model

Positive Training Set

Negative Training Set

OFFLINE TRAINING

ONLINE TRAINING

Prediction

Feedback

17 of 18

The signage classifier can be retrained by uploading images from both the categories to tune the model as per business requirements.

18 of 18

Thank You!