SMART MANUFACTURING
With Apache Spark Streaming and Deep Leaning ApacheCon Big Data Europe Nov 2016, Seville, Spain Prajod Vettiyattil, Wipro @prajods https://in.linkedin.com/in/prajod
SMART MANUFACTURING With Apache Spark Streaming and Deep Leaning - - PowerPoint PPT Presentation
ApacheCon Big Data Europe Nov 2016, Seville, Spain SMART MANUFACTURING With Apache Spark Streaming and Deep Leaning Prajod Vettiyattil, Wipro @prajods https://in.linkedin.com/in/prajod 2 AGENDA Introduction Smart Manufacturing
With Apache Spark Streaming and Deep Leaning ApacheCon Big Data Europe Nov 2016, Seville, Spain Prajod Vettiyattil, Wipro @prajods https://in.linkedin.com/in/prajod
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 2
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 3
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 4
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 5
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 6
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 7
defined boundaries
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 8
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 9
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 10
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 11
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 12
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 13
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 14
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 15
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 16
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 17
ways using multiple parameters
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 18
Image from: ucalgary.ca
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 19
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 20
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 21
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 22
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 23
Filter matrix Image
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 24
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 25
1st Convolution Non linear transform
(RELU, tanh etc)
Pooling Nth Convolution Non linear transform
(RELU, tanh etc)
Pooling Fully connected layers Output probabiities Feature extraction + dimension reduction Classification
…..
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 26
Learned by NN Experience of designer
.seed(seed).iterations(iterations).regularization(false).l2(0.003).activation(“relu") .learningRate(0.0007).weightInit(WeightInit.XAVIER) .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT) .updater(Updater.RMSPROP).momentum(0.9).list() .layer(0, convInit("cnn1", channels, 50 , new int[]{5, 5}, new int[]{1, 1}, new int[]{0, 0}, 0)) .layer(1, maxPool("maxpool1", new int[]{2,2})) …. .layer(4, new DenseLayer.Builder().nOut(500).build()) .layer(5, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD) .nOut(numLabels).activation("softmax").build()) .backprop(true).pretrain(false).cnnInputSize(height, width, channels).build();
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 27
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 28
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 29
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 30
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 31
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 32
Apache Spark Core
Spark SQL Spark Streaming MLlib GraphX
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 33
Worker Node Executor Master Node
Executor
Task
Cache
Task
Task
Worker Node Executor Executor
Executor
Task Task
Task Cache Spark’s Cluster Manager Spark Driver
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 34
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 35
Spark Worker Node 1
Spark Master Node
Spark Worker Node 2
Data Data Split 1 Data Split 2 Mini Batch 1 Mini Batch 2
Calculate model parameters Calculate model parameters Averaged parameters from workers
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 36
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 37
Select problem Non ML solution ? Analyze process Data available ? Define success KPI Classify ML type Select 2 or 3 algo Pick one Gather data Analyze data Filter data Convert data Vectorize
Select hyperparams Iterate hyperparams
Iterate data sets Evaluate perform Validation set Deploy Continuous eval
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 38
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 39
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 40
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 41
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 42
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 43
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 44
Smart Manufacturing with Apache Spark and Deep Learning #apacheconbigdata @prajods 45
Prajod Vettiyattil, Wipro @prajods https://in.linkedin.com/in/prajod