Latest / Agentic Conversations (formally mlops.community) / Deploying Machine Learning Models at Scale in Cloud // Vishnu Prathish // MLOps Meetup #60
Transcript
- 0:16Yeah, this new you're normally in Canada, you're back in India
- 0:20right now, I think it is a good start.
- 0:24If you can tell us exactly what brought you to Canada, how you
- 0:28got into Tech, And what you're doing right now.
- 0:34Interesting. So I I don't remember a time
- 0:38when I'm not in Tech So it's 15, 20 years of encoding.
- 0:45I've been programming since I know it grade but my entire
- 0:53degree, my undergrad Masters, everything in software
- 0:58engineering, so I'm not a dentist.
- 1:00Dissed by discipline, and that's probably what I'll bring to the
- 1:06ml Ops Community as well, right? So there is a wisdom instead of
- 1:10wisdom that is coming from the software engineering world.
- 1:13That's very relevant to them L Ops community in general and how
- 1:20how we built our department pattern.
- 1:22So we built our pipelines. These are largely a mess of data
- 1:29scientist. Workflow combined with
- 1:32traditional software, engineering, paradigms, and
- 1:35wisdoms. So that's what I bring in that
- 1:37has been what I've been working on for over 10 years now.
- 1:43What what I do right now? I lead a team of data scientists
- 1:49and engineers at, in a wise, solve a very cool problem.
- 1:54We we work in the water industry obviously like like, We bet the
- 2:02fresh water supply for the world is limited like extreme weather
- 2:08flooding around the rise and the demand for like fresh water has
- 2:14grown dramatically and our capacity to deliver them is
- 2:17limited to a growing population. Safely affordably reliably,
- 2:23right? So this is where the noise comes
- 2:25in will build all these software.
- 2:27That's that Makes water infrastructure happen.
- 2:32Again, simplest words, but this is one of the Legacy Industries
- 2:38and we have our own problems. Like there is aging
- 2:42infrastructure. Some of these pipes and assets
- 2:48that I work with are like 100 years old, right?
- 2:51So, there is one instance where we actually dug up a wooden
- 2:55pipe. And like if you're modeling the
- 2:58vibrational characteristics of a wooden by B company, Three
- 3:00different from like a regular bike.
- 3:03So you can imagine the kind of data science problems will go
- 3:07through just because of this aging infrastructure, right?
- 3:12The workforce that is operating these distribution networks or
- 3:17Wastewater management plans. They are all like largely
- 3:20tiring, baby, boomer generation. They have this tribal knowledge
- 3:26that has been built over decades.
- 3:30That's not translated well into into the next-gen, right?
- 3:35So there is a lot of scope for automation.
- 3:37So this is the we are coming in at the time where the see this
- 3:42industry is starting to consider automation, right?
- 3:46Like many of them have, but there is still like a trailing
- 3:49large list of people who have not moved move to Cloud our
- 3:56bodice as product, for example, or the security model is old
- 4:00things. Like that and well I try to
- 4:04stall. And it is, this industry comes
- 4:07with its own unique, set of data challenges, it set of quality
- 4:14problems as I told. Wouldn't I problem, right?
- 4:19So these are the issues that we deal with every day.
- 4:23And we have built a solution to optimize and solve all of these
- 4:29things at it. About what are so yeah, I need a
- 4:32team. Yeah.
- 4:33Yeah. What are some of these use cases
- 4:36that you're working on? I mean, there's the wooden pipe,
- 4:38but you said that, you make basically the water, the fresh
- 4:43water happened. Is it just around the
- 4:46instruction or you purifying it? Also, what's going on there?
- 4:50All right, so then that is an oversimplification but we, you
- 4:56know, Isis exclusively software company, we largely bill.
- 5:00Build digital models like the term digital twin is, is
- 5:07familiar to many who are working in the industry.
- 5:10It's basically a virtual representation of this physical
- 5:14actual tangible assets, right? So, if there is a distribution
- 5:18Network that takes water from a lake, I'm seated to a reservoir
- 5:24and maintains like a certain level of pressure and then it
- 5:28supplies to people house people So we call it a water
- 5:31distribution Network reality. That is way more pumps way more
- 5:33Lakes, way more first wires. But ultimately there is like an
- 5:38aggregate demand, which will be like a curve, right?
- 5:42So there is people are waking up in the morning and they will
- 5:45require X liters of water, but as the day passes it reduces.
- 5:50So there is like a demand curve that we need to meet all the.
- 5:56While there is a tariff, Ocean to the electricity that these
- 6:02companies are using to pump the water in from the lake to those
- 6:05who are, right? So the first thing we do, we
- 6:09take this network, we digitize it build this digital twin and
- 6:14what it means to be still doing is we can virtualize its
- 6:17operation so we can input certain way the pump should run
- 6:23over the next twenty-four hours. And we can see whether it will
- 6:26need the dream and how much energy we consumed in doing
- 6:29that. It's so in a wise, the matches
- 6:32my org. Then basically, optimizes this
- 6:36operations, we provide customers with a schedule of how to run
- 6:42their Network or the system in a manner that will save them
- 6:46energy cost optimal. Right?
- 6:48So all these problems I talked about with aging like operators
- 6:55and all of that goes away by adding like an AI based
- 6:59automation into this, the actual details of how that works, is
- 7:03fair. We involved discussion and I can
- 7:06get into if anybody's interested.
- 7:07Yeah. Well button it involves.
- 7:09Yeah. So let's talk a little bit about
- 7:12the platform that you've built for data scientists and the
- 7:16whole machine learning. And so maybe we can talk about
- 7:21some of the like where you started when you got into it and
- 7:25then how its evolved, and what does the platform look like now?
- 7:29Why is it unique? All right.
- 7:32Yeah, so like just, all right, so there are certain problems
- 7:37that comes as part of the territory working in this
- 7:40industry. First sensor, placement is bad,
- 7:45right? These are old unreliable sensors
- 7:49placed across this network, but some of them are reliable, but
- 7:53not many of them are exerted. A lot of sensor anomalies and
- 7:57another issue. That is the data is very sparse
- 8:00like some of these Chemical concentration.
- 8:02Some of these measurements of quality water is taken, like
- 8:08using manually collected by human being every day sent to a
- 8:13lab after X number of hours, the cells come back.
- 8:17And this is your one data point in certain cities, right?
- 8:21So you get four of them a day and we need 20,000 of them day
- 8:25to build reliable models, right? So, these are like unique
- 8:30challenges that comes with Working in this industry and we
- 8:37buy by large. We started out to figure out
- 8:42whether there is a way to even like build a digital 12, build a
- 8:47reliable representation of this network because they did I so
- 8:51bad, right? So we figured it out, but that
- 8:56goes into all right babe, but the ml Ops and the a pipe Line
- 9:01where it really helps this, it it kind of enables this
- 9:07configuration driven data, cleaning and data,
- 9:10Transformations, and feature, engineering that you apply on
- 9:13these data points, consistent and reproducible like across
- 9:19various other points, the pipeline.
- 9:21So let's start with somebody building models in like jupyter,
- 9:25notebook, applying certain feature, engineering
- 9:28Transformations and data cleaning operation.
- 9:30They are dropping. Interpolating data are dropping
- 9:33sensor anomalies and we apply a lot of them, right?
- 9:37So this needs to be reliably replicated in real-time pipeline
- 9:41in batch inference in retraining, right?
- 9:45So Eric a conflict driven there's like a configuration
- 9:50element to that that we need to build so when we started
- 9:52building it out like this is handcrafted models and they were
- 9:56working in theory but it's Ever materialized in production like
- 10:03when we started with our first customers.
- 10:05So that's the first time you thinking about Emma loves ho
- 10:07okay. How can we solve this problem?
- 10:11The first thing we started doing, we started building like
- 10:13a model repository kind of thing where we can build and deploy
- 10:19the models along with Associated metadata, the talks about how
- 10:25feature engineering was performed.
- 10:26How direct leaning was performed.
- 10:29Hmm. And and we try to reproduce that
- 10:33in real time, but it turned out a lot of like manual custom
- 10:37building work. And we tried a few other
- 10:41out-of-the-box Solutions, data robot data IQ.
- 10:45There are a few provide us out there that claim to provide an
- 10:50end-to-end solution to this problem.
- 10:53But ultimately we kind of built a bespoke solution which is kind
- 10:58of them. Loves that everybody has, right?
- 11:00Nobody has February. There's no standard and a lobs
- 11:05package out there that works for everybody.
- 11:08It's always bespoke. But we were we leverage stage
- 11:13maker and Amazon AWS to do a lot of these building blocks.
- 11:19And we it's still a work in progress, but we right now have
- 11:24decent Deployment pipeline. That involves end-to-end data
- 11:31science, workflow starting from feature engineering, all the way
- 11:35cleaning all the analysis you need to do, ability to do a
- 11:38continuous retraining. And we are reaching a point
- 11:41where we can do automated real training.
- 11:43That's good, I see ICD pipeline, that promotes the artifacts from
- 11:49like a development environment to QA to production and in
- 11:52between all the checks and balances you need to get real.
- 11:55Time monitoring in production or all the sweet stuff that comes
- 12:01with the yeah. All the seats that comes with
- 12:06good mL of sight line. Can you walk us through some of
- 12:10those like that that pipeline architecture that you're talking
- 12:14about? And obviously, yeah, verbally
- 12:18here but talk us through and also I'm really interested about
- 12:23why When you did POC with some of these other companies that
- 12:29you mentioned before it didn't work out, what were some things
- 12:33that and then you said, alright, well, let's just do and you
- 12:36landed on stage maker. Why did that one work?
- 12:39In the other ones, didn't? Let's stop that, right?
- 12:43So there is really like two patterns out there and I want to
- 12:50call it Cloud, agnostic, and Cloud native with the Eternal
- 12:54debate in the industry. Which we Which way to go people.
- 12:57Take both sides, but I am generally a big fan of cloud
- 13:03native solution. So an Amazon at a place is Big.
- 13:07Obviously, the largest provider bigger than next three providers
- 13:11combined, right? So Amazon do has have a large
- 13:15array of tools that facilitate some elapsed, that the the The
- 13:25idea is built around like a centralized IDE integrated
- 13:28development environment, that it's like your jupyter notebook.
- 13:35But this Federal right? It just connected to everything
- 13:37Amazon. So if you want to feature
- 13:42engineering, like, if you want to do say, feature selection,
- 13:45from a list of 200,000 features, your local machine that you're
- 13:51running the jupyter notebook in is isn't just powerful enough to
- 13:54do that. You can Outsource that to
- 13:56Amazon's one click. You can do training, highly,
- 13:59parallelized neural networks training in Amazon's compute
- 14:05Cloud, another one, click, you get apis, to do all of that and
- 14:09then from the cic, D is also, there is a change maker
- 14:13pipelines to do reproducible training, right?
- 14:18So once you once once there is a messy process, right?
- 14:22Once you get to A good model. Sometimes you lose track of how
- 14:28we arrive in there, right? So it's important.
- 14:33It's important to be able to reproduce that and we always
- 14:38like redo the whole thing starting from raw data or
- 14:43Transformations that you apply it gets saved, the conflict
- 14:45driven manner, it gets rebuilt and we trained.
- 14:52In addition, you also get some free hybrid parameter during in
- 14:54that and we are But ultimately, the model gets rebuilt, and the
- 14:59artifact that gets rebuilt is what gets used in other in
- 15:04production, from now on, right? So a lot of these, nice, cool
- 15:09things. Came with sage maker, like and
- 15:12Alternatives. We if you, if I were to go and
- 15:16Link Cloud, agnostic approach, and which a lot of people do,
- 15:20right, and there is, the definitely is value to it.
- 15:23Not denying that. It's just a lot more devops.
- 15:27Like their designs is a very multi disciplinary process as a
- 15:34result, there is multiple several tools involved in it,
- 15:38right? So, there are open source tools
- 15:42out there that do one thing really well like dq'd has unit
- 15:45testing for data ml flowed as experiment.
- 15:49Tracking Jupiter, lab does like a shareable notebook mechanism.
- 15:55See, icds thermoform and 200 other plays of doing it.
- 15:58All of these are separate separate tools now.
- 16:01You bring all of them together like that, same full-time job,
- 16:06right? So, and what by going, like,
- 16:09Cloud, native, picking up tools that are built within Amazon and
- 16:13Sage maker you're basically cutting short, that all of that,
- 16:16you're way more agile. You're way more fast in figuring
- 16:22out the like it's business speed basically right here, your your
- 16:27go. You reach your Value Point
- 16:29faster. And like, if you want to fail,
- 16:33like Emma loves, you said, still an evolving discipline, right?
- 16:37Not many people have figured it out.
- 16:39So you need to try and fail many times before you figure out
- 16:44what's right for you. So this enables you to fail
- 16:47fast, like, you don't want to figure out after maintaining and
- 16:51buying a huge, cavernous cluster, even it's in Cloud
- 16:54paying it for it after 3 months, then you realize it doesn't work
- 16:56for you, right? So, serverless patterns.
- 17:02Things like that, keeps your cost minimum and while get a
- 17:07while enabling you to build your custom.
- 17:11Bespoke analysis pipeline faster than typical.
- 17:15So, can you talk about why you didn't go with open source
- 17:22tools? And I see there's a question
- 17:23that came through. So I'm going to get to that
- 17:25next. I promise, I will get through
- 17:26it, but I'm wondering about like open source and if you played
- 17:30around with anything, Thing in that Arena that is that is open
- 17:35source Alternatives or everything we do.
- 17:39And end the, to be honest, select lot of this Cloud
- 17:41providers leverage, those right? These are all safe, I think
- 17:48seismic experiment, tracking is built around him and flow, but
- 17:53and what happened? Wasn't sure about that.
- 17:54But the South Tower is largely leverage open source tools,
- 17:58right? So the question is, whether you
- 18:00want to do that in the Aggression yourself or let the
- 18:05cloud providers. Now, case Amazon do it then, use
- 18:08it, right? So we did evaluate a few of them
- 18:13and realize that there is, there is value in it.
- 18:17It's just that when, when you start evaluating Amazon, we
- 18:21realize that we can I can hire one last devops person to build
- 18:27and maintain this entire fight crime.
- 18:31Yeah, that makes sense. So question coming through is
- 18:34what's the platform that you're using to virtualize?
- 18:37The physical system that virtual twin which lies just gives us
- 18:43some. So that's I wanted without going
- 18:47into too much and details. Over IP, it's basically modeling
- 18:53each asset involved in in this network.
- 18:57Let's say I talked about a lake and pump and a destroyer and
- 19:03people supplying getting orders from edified.
- 19:06So we more than all of these components and and the model
- 19:10that you pick, for each asset, depends on type class of acid.
- 19:14A lot of them are random Forest models.
- 19:17Some of them are neural networks.
- 19:20Some of them are very autoregressive, models are
- 19:22forecast demand, for example, so but they are Semi-auto Amal
- 19:29style pipelines that allows you to pick the right model that
- 19:34solves. That particular asset problems
- 19:36of a pump is probably the simplest of of this list of
- 19:41assets side. So it's if your pump is on based
- 19:44on a pump curve, you need to determine what the flow is going
- 19:47to be from the but that as you add chemical process into this
- 19:52flocculation erase that gets complicated and there needs to
- 19:55be advanced mode. But ultimately, we model all of
- 19:58these individual components using an array of machine
- 20:02learning processes. And build collected, diag
- 20:08directed acyclic graph of this models that can that that
- 20:13essentially becomes a digital tool.
- 20:14So know how in terms of the platform that is used it is
- 20:19entirely in Amazon stage maker. We use various libraries that is
- 20:25some of them natively provided. Some of them we developed for
- 20:28certain type of assets. But ultimately building models
- 20:33that represent the Lisa. Ourselves gets deployed to Sage
- 20:36maker inference engine and we leverage real-time and batch
- 20:42Insurance capabilities provided by teaching Michael along, with
- 20:46their custom-built framework. On top of it to build this bag.
- 20:51I don't know that answer that question.
- 20:53If that doesn't, please follow up.
- 20:56Yeah, that was pretty clear to me.
- 20:59I'm wondering about the data quality issues that you
- 21:02mentioned before and how you People like this scenario is
- 21:07wild to meet you, have people manually taking the test and
- 21:11then you get four of them a day and really what you would prefer
- 21:16to have our 20,000. So how are you attacking that
- 21:21problem? Are you just going in and trying
- 21:23to lobby for more sensors to be put in?
- 21:28Or like, what can you do there? Like so, well, not all.
- 21:34Data science, problems are solvable where there is a degree
- 21:36of Science in it. You can crush it and solve it.
- 21:41But so, well, there are instances where we were unable,
- 21:47the model systems purely because of lack of data.
- 21:51But there are really some really cool methods.
- 21:55You have developed that helps mitigate this problem as well.
- 21:59Like, there are methods of building virtual or soft sensors
- 22:03that Rely on the sparse data but also leverage one of the other
- 22:10sensors that has more frequent data points to build the soft
- 22:14sensor. And there are some proprietary
- 22:16algorithms in doing that. But this conversation not about
- 22:21data science, right? So in terms of Emma lobs, what
- 22:25we really need to do is enable data scientists to do whatever
- 22:31they want. And make sure that it's
- 22:34reproducible in a pipeline, that's the key, right?
- 22:38And this this, what I call as config driven data
- 22:43Transformations for it, it needs to be it.
- 22:50Needs to enable the messy data science process of building
- 22:57could call. The features are going to a
- 22:58model from like a bad Road. Data.
- 23:05And capsule that in the configuration.
- 23:08Make sure it's available for retraining.
- 23:11Make sure it's available for real-time inference.
- 23:14When you want to do the predictions, make sure it's
- 23:16available for other match predictions if you're doing any
- 23:20it. So that's one like, really good
- 23:23way to draw Bus Time. Elapsed pipeline helps in
- 23:28solving this problem, but the actual way of solving itself is
- 23:33Extremely design, C. Hmm.
- 23:36So this idea of reproducibility is obviously really important to
- 23:41you and the team. Why is that?
- 23:45Have you had problems in the past where you couldn't
- 23:48reproduce something and then it came back to bite you?
- 23:50Or is it just something that you're bringing from the
- 23:52software development world? But you produce ability is
- 23:58obviously important for but everybody, right?
- 24:03The and And most of the Frameworks out there, do that
- 24:06for you. There is a but it really starts
- 24:10from legacies and grabbing and onwards the cleaning and
- 24:15preparation steps that involves. Calculation of calculated
- 24:22virtual sensors calculated, virtual Channel streams of data
- 24:26or droppings and so normally'. They re producing all of them,
- 24:32reliably and correctly between environments, takes like little
- 24:36bit of work. It's little bit of software
- 24:39engineering, there are tools out there that does that Republic.
- 24:42Amazon itself has features Stone.
- 24:44It goes all the way up from a ton of Interest cleaning but it
- 24:49clean Go some raw data. You are, you'll be able to build
- 24:53and store and save features that you can reuse across your
- 24:59multiple modeling exercises. Yeah, that's a fascinating one
- 25:04for me because I know in the, in certain sectors, reproducibility
- 25:09is a must right? Because of the law.
- 25:13And so, it's really interesting to hear that for you
- 25:18reproducibility Is there because you just need to?
- 25:21It's like the core business I guess is what it sounds like.
- 25:26Like, if you can't reproduce it, then your core business is not
- 25:30going to be able to work that one.
- 25:32Yeah, that is what it is along with the deployment pattern that
- 25:38we need to follow. Like so one thing I might not
- 25:40have mentioned, well, is this digital twin building exercise
- 25:43is custom for every customer like they Different thought I
- 25:51would advise like talk about, but they have different networks
- 25:57different assets different problems.
- 25:59So this it hand curated exercise of building models.
- 26:05So, it's not as separate. See a CD pipeline that is built
- 26:10per customer. It's 11m elapsed pipeline
- 26:14through which like a models pass through, right?
- 26:17It's not like a Cic, D script that gets that changes between
- 26:23customers and you have the ability to customize it any way
- 26:26you want. If the day start giving that
- 26:28kind of flexibility during friends framework needs to
- 26:31change as well. Right there is software that we
- 26:34use is this leverages this prediction will need to change
- 26:37as well. So we needed to build like a
- 26:39certain degree of standardization around this
- 26:41process which and and there are like hundreds of models passing
- 26:48through this pipeline as well. So, Yeah, so is that does that
- 26:56mean that? It's like you have various
- 26:58customers and then these models are all going out.
- 27:01But each model is individual to each customer.
- 27:04You have largely. So right.
- 27:06Yeah, the digital training is built for the customer in
- 27:09somewhat hand created process. That represents each customer's
- 27:14Network and they all have unique challenges, but but the model
- 27:19types, right? So once you solve A model for a
- 27:23pump. Like, I end up picking pump
- 27:25here, it's common simplistic as a tear, but Tom, please 200
- 27:31types, right? They all have different
- 27:36characteristics. Same the model the model that
- 27:39you build for a problem. Typically Works across that you
- 27:42stayed like different from curves.
- 27:44Mean, you need some degree of tuning and optimization, but in
- 27:48when it comes to other chemical biological processes, and when
- 27:51these assets work together, A combination lock each customer
- 27:55and really different, right? They they have different models
- 28:01built to represent that is doing So sticking on reproducibility,
- 28:09just for one more, not to beat a dead horse, but I know that the
- 28:14idea of having the data which is changing and it's constantly in
- 28:19flux and then you need to go back and you need to try and
- 28:23reproduce that can be difficult. Sometimes, how did you go about
- 28:27solving that problem? so, so Intel like
- 28:40reproducibility applies to the process of rendering pipeline,
- 28:47right? It starts with let's say you
- 28:50collected some historical raw data.
- 28:53That was in customers email somewhere, the email that was
- 29:01put in a drop ball. She started modeling in real
- 29:05time. There is also this data being
- 29:07collected from directly from sensors, coming through Supreme
- 29:10pipeline, somebody who is starting to build machine
- 29:14learning models for this digital twin starts working on
- 29:18historical data when he or she needs to connect this real-time
- 29:24data to the to this historical data to build models.
- 29:30That works and works for works as one continuous string.
- 29:36Right? And this all works like all of
- 29:40this happens, they somehow make it work.
- 29:43It's just that at the end of building this, their loss lose
- 29:47track of, what, what exactly happened, how we made it work.
- 29:50And there is this data, doesn't? These units have changed between
- 29:59historical and real-time or the starters?
- 30:02They added a new sensor in Between in between these two
- 30:07time frames or some other thing has happened and there is like
- 30:10discrepancies between this data. So in terms of data, what you
- 30:13will need to do is provide like a centralized repository to do
- 30:20training like Bo for both real-time and historical data
- 30:24use cases and make sure it's one stream of connected data and now
- 30:30this is really like an iot style problem ayuda time series
- 30:34forecasting, cell phone and not every industry.
- 30:35Trees has to face this. But we do but and in in in Time
- 30:42series forecasting, this is a fairly common issue.
- 30:46Now, the exercise of model building.
- 30:49Once the once the data scientist goes and builds this, it's
- 30:54important to rebuild it in a separate environment, just to
- 30:58make sure it's not like a random stroke of leg one.
- 31:02There are like compliance requirements and X rays.
- 31:05Spencey like model for understanding requirements
- 31:10people asking why is it predicting this this way right
- 31:14things like that when but more importantly retraining right so
- 31:19when as time passes more and more data becomes available this
- 31:25is in by the nature of times it's forecasting and models can
- 31:29do better or in other cases where there is like it concept
- 31:34of data drift, right? So 2020, for example, was
- 31:39completely different here for everybody.
- 31:42It basically broke many time, series forecasting, models out
- 31:45there that really dealt with real time.
- 31:48They attended, as you know, our industry like water rainfall
- 31:50patterns change their lot of things change because people
- 31:52behaviors change during covid. And essentially, all the models
- 31:58built before 2020 became obsolete, right?
- 32:02So reap training solves, I like real-time automated retraining
- 32:08is also. Now, it's extremely hard to do,
- 32:11but reproducible training is like a step, 12 attaining,
- 32:17automated retraining. And I want to talk about the
- 32:22automated retraining in just a minute because I also find that
- 32:26idea fascinating on whether or not we should be doing that and
- 32:31how we go about doing it. But I wanted to ask before that
- 32:37about the data scientists and their workflow and how I know
- 32:40that you have a few data scientist on the team.
- 32:43So how do you enable them to collaborate?
- 32:47Yeah, so I don't know if others have figured this out, but there
- 32:51are signs workflow is and it's messy process.
- 32:55It's and it's it needs in the nature at its at needs to be
- 33:00that way. Like we need to enable that as
- 33:02opposed to drawing a box around that process and saying this is
- 33:06how you have to do it. So I have found that the its
- 33:09creative process it's a it's it's all over and over.
- 33:16I treating our problems like we have Have we had problems models
- 33:21that we were unable to build four months and third person was
- 33:25looking at it and something clicked, and then the mom got
- 33:28fixed, right? So But how do you enable this?
- 33:34If you have, we started out we sort of the local jupyter
- 33:38notebooks running on people's laptop and that's obviously a
- 33:42horrible practice. But that's I think that's how
- 33:46many data science project Starts Now.
- 33:49How do you enable sharing right? How do you give this to somebody
- 33:54and Jupiter lab? And today is not book makes it a
- 33:58lot easier but still It comes with, you can just do an entire
- 34:042009, little sense, cause then give it up, give it to a person
- 34:08like, in a get to check, get tanned and make sure it click
- 34:11run it. Now runs it.
- 34:13It feels like all I almost guarantee, right?
- 34:16So there are data structures in memory.
- 34:19There are things that are saved and stored and configurations
- 34:22generated these all needs to be shareable, right?
- 34:28So I can't claim to have seen Out that process but we have
- 34:33taken. That's right.
- 34:34So you say to make a studio enables sharing without
- 34:41compromising security, so share then Ali, Khan issued sharing,
- 34:44is that 20% team? And sometimes I have we had
- 34:48contractors to extend, our work. There is security requirements
- 34:52there that you absolutely need to meet the data.
- 34:55Needs to stay in certain regions.
- 34:57Certain set of people who have already signed the contracts are
- 34:59the only ones who have a Access to NDS are the only ones who
- 35:02have access to it, right? So if you have a centralized
- 35:06jupyter notebook server, everybody has access to
- 35:09everything like you can't do that.
- 35:11It's so there is permission issues that you need to figure
- 35:14out. I'd say like Sage maker Studio
- 35:19as an IDE does said reasonably. Good job of solving.
- 35:24This the reproducibility of 2009.
- 35:28Jupyter notebook that has talked about.
- 35:30That's Not exactly solved, it has still has issues to figure
- 35:36out, but I think so now we will see that somebody has answers to
- 35:40that question. Like do I need to know right now
- 35:42but in a few years I think that it's a process that will evolve
- 35:47mature and it will change its changing even the last year.
- 35:49Last two years, the way data science is done in a notebook as
- 35:53a team that process is changing. And that's something that comes
- 35:58up in the community a lot. And I know, if anybody here
- 36:03wants to chime in, we've talked about it so much.
- 36:06It are jupyter notebooks for production.
- 36:09Should we just like not even think about trying to bring the
- 36:13jupyter notebooks into production.
- 36:15So let us know if you have any opinions or thoughts on that.
- 36:21There's a great question that just came through that I want to
- 36:24highlight and this is one I imagine you've got a few
- 36:28considering you've been in tech for so long.
- 36:31Ideally one around ml Ops, but you can tell us other War
- 36:36Stories if you want. So Vishnu, do you have any cool
- 36:41War Stories? You can share with us anything,
- 36:44maybe model quality, or model deployment failed and it was a
- 36:48complete disaster and what did you learn from it?
- 36:53The big kind of the big one it does.
- 36:56There are many every day, it's every day, right?
- 37:01Well I'm just going to go with one of the top.
- 37:05Easiest ones that came to my mind.
- 37:06Like we have this South American customer who had this particular
- 37:11data sparsity problem. There was a we were basically
- 37:16improving the effluent quality and what that means is that
- 37:19Water waste water. That gets goes from your home's,
- 37:22gets treated and sends back to take a river or a lake and There
- 37:26are compliance. The governmental compliance
- 37:29requirements on how the quality of Honor should be like there
- 37:32are certain chemicals in certain constellations.
- 37:34Right now, this is one of those things that gets measured
- 37:36manually. And in this particular case it
- 37:39is extremely manual extremely manual.
- 37:45Once in a day process, that goes somebody goes like dries down to
- 37:52a this location collects. This data sends it to a lie.
- 37:57Two days later. You get the result, then they
- 38:00enters in there, they can Excel sheet somewhere in there and
- 38:05then we can set a point two days late.
- 38:07Meanwhile, our system is trying to optimize this in real time.
- 38:12So this is a problem that your person that but we were very
- 38:18earlier like a start-up at that point and it's it doesn't big
- 38:22contract but it's Tried to solve the problem, right there.
- 38:27It's there are creative ways. Like but like we talked about
- 38:32building virtual sensors that can correlate to like other data
- 38:40points that I had to have real-time data and then build
- 38:44like a virtual way of virtual way of representing this F1
- 38:48quality thing but ultimately the lesson I learned was that some
- 38:54data science courses are not solvable and it It really
- 38:57depends on the data like win this, and that, it seems so
- 39:02trivial right now, but it was a very expensive lesson, we
- 39:07suspend. Yeah, go ahead, go ahead, finish
- 39:11it. We spent man hours and I don't
- 39:14even want to talk about the expense in trying to figure out
- 39:17the answer. We learned quite a lot from it,
- 39:20right. It helped in many of our
- 39:22customers that came after that who had the same problem.
- 39:25But now, Not as bad, right? But it's the it's a resolution
- 39:29of this data that really caused this issue, but the technology
- 39:35that the kind of experiment and built for this customer helpful
- 39:39in solving, some of the other problems.
- 39:41But this particular one simply didn't work well.
- 39:44So it was you were saying that you could solve that problem.
- 39:49And then at the end of the day, you couldn't.
- 39:51Is that what happened? Yeah, exactly.
- 39:53What it was so bad. Yeah.
- 39:55So some, some Atoms are not, you can build it is yeah, data
- 39:59quality no matter how presumptive and arrogant you
- 40:04think you are? And yeah, I'm gonna happen now.
- 40:06That is latest neural network at it.
- 40:10You don't have the data, you can build it.
- 40:14That is amazing. That so that's something that it
- 40:17reminds me of a talk that I had a few months ago.
- 40:22And one of the people that I was talking to was mentioning This
- 40:26idea of techno solution is mm I think is the name of it because
- 40:31somebody can correct me if I'm wrong.
- 40:33But the idea is that every problem can be solved by Tech
- 40:39and it's a little bit of an arrogant idea that every
- 40:45problem. I mean, this problem potentially
- 40:47could have been solved by better Tech if you had more sensors and
- 40:51you had all of that. But I when I was talking to
- 40:54someone in the I was talking to this person.
- 40:57They were talking about, you know, when it comes to bigger
- 41:02issues, like mental health should that be solved by Tech.
- 41:07And so that's a bit of a tangent.
- 41:09I know we just went way into left field for everyone but it
- 41:13reminded me of that because it's one of those where you say, oh,
- 41:16we got this under control and we can figure out what the problem
- 41:22is and we can throw a neural network at it and won't be able
- 41:25to Like solve this and then you realize wait a minute if we
- 41:29don't have the right data and we if we only have once a day data
- 41:33and we're trying to solve this in real time, but our data is
- 41:36lagging by three days, that is a problem.
- 41:40That is. Yeah.
- 41:41It's very difficult to argue that that can be solved.
- 41:45No matter what kind of data scientist you can have the best
- 41:48data scientist in the world on that, right?
- 41:50So that's, that's a great one. There's another question coming
- 41:54through in the chat. How would you know?
- 41:56If the data has the information that will help you to predict
- 42:01what you want or not, do you have pipelines to analyze it
- 42:06first, but that's a good question and it's we have a few
- 42:13things to do but my answer that question will kind of be largely
- 42:20depend on the problem that we are trying to solve a little bit
- 42:22different for each customer, but I talked about this.
- 42:26Digital twin building process, right?
- 42:28And this was something that came up very earlier on like without
- 42:34good quality data. This is digital twin is not very
- 42:37buildable. So how do you know that without
- 42:41actually under taking the exercise of building this?
- 42:43How do you know, you have the right amount of data?
- 42:48So, several approaches for solving this like step one
- 42:53starting from the business, you make sure the sales Sales, get
- 42:58the right guidance. Right there is, don't look at
- 43:03the sensor placement. Look at the level of maturity,
- 43:08you have this customer they if we give them a feedback to ask
- 43:15you install, a new sensor sensor will sometimes cost only 200
- 43:18dollars to install and that will make a world of difference.
- 43:21They willing to do that is their existing data quality.
- 43:26T. Are you getting at least one
- 43:28data point in 15 minutes? Every 15 minutes like this?
- 43:31So, there are like fundamental checks that you can do then by
- 43:36like a non technical sales qualification process or like
- 43:42right at the before, right? Even before you start thinking
- 43:45about model, sad, thinking about even data analytics on this,
- 43:50then you only qualify. Like in our case, we only call
- 43:53for the customers who we think has like a certain And initial
- 43:58quality check mark. And it goes into like domain
- 44:02experts, the wine experts alike and these are there in every,
- 44:07every designs company. These are non data scientists
- 44:10who are coming from the industry made an our case.
- 44:14This is bought or quality export space water industry experts.
- 44:18They They have been taught a certain degree of data analytics
- 44:23and they look at data sets and placement they apply all of this
- 44:28their expertise to this. Then they do an additional layer
- 44:32of filtering. Now these the first level of
- 44:35filtering is the cheapest the second level, it starts getting
- 44:39expensive but a data scientist is the most expensive higher you
- 44:42can make like but we need to minimize the number of Of bad
- 44:52customers reaching data scientist.
- 44:54It gets if you can be filtered out earlier, that's better.
- 44:56So we equip them with like, this non-programmatic tools, like we
- 45:02should we analyze data, things like that.
- 45:05That will ask for other critical.
- 45:09Less, critical sensors have enough data.
- 45:12There are you seeing anomalies in critical sensors, things like
- 45:17that, and they have another set of checklist.
- 45:20But sometimes they Advance some of the advanced era problems are
- 45:25only like figure out after you start building a model.
- 45:28You do something's engineering you to initial model and you
- 45:33realize that it's just it does not fitting doesn't work.
- 45:38Right? So in there what we have tried
- 45:41to do and this is we are not fully successful in doing that.
- 45:43But as you gain experience over multiple projects there, you can
- 45:49Accumulate this knowledge into like a non-terminal framework
- 45:52that kind of. So let's say I pick a process of
- 45:58flocculation flocculation is like a big tank in which you add
- 46:02some chemicals and gets suspended.
- 46:06Solids that gets on top of this tank, right?
- 46:11So then there are various population mechanism.
- 46:14So there are various models that go gets Built For This to
- 46:17reproduce this problem. And we kind of build that into
- 46:21an ottoman autosomal framework in which the key each model gets
- 46:24tried one after the other after the other and certain degree of
- 46:28I prefer under, tuning is performed, a certain degree of
- 46:30these engineering is performed on all of this and is automated.
- 46:36So before it assigned to supplies is saw her intelligence
- 46:40to this process is automated, you see, whether like a certain
- 46:46degree of qualities? Even correlation is even
- 46:48possible. It was Is your name?
- 46:50What's your name Norma? See numbers.
- 46:55And then, and this is even before this is again before,
- 46:58putting in, like, a lot of work from the other scientist, which
- 47:02means you can filter out a lot of things when you go through
- 47:06this set of steps. But sometimes things just passed
- 47:10through and there were instances where we have spent the time and
- 47:13money, only to realize that it just doesn't work and in those
- 47:19Cases. You have to go back to the
- 47:21client and say, hey yes, around the center for us.
- 47:25Well no, we won't say sorry until we have given up on it,
- 47:29but at that point we'll say, okay, can you get this more
- 47:33data? Can we wait a few more months.
- 47:36You cannot collect a few more data before we can start
- 47:40modeling. Can you do this exactions?
- 47:42On this pieces. There are scenarios that we have
- 47:44not seen these systems operate in.
- 47:46So can you add a little more chemical little less cankles And
- 47:49then can we just call it all step testing rights?
- 47:52Okay, so then, can we observe the resulting data points so
- 47:58that we can capture the Dynamics in the models.
- 48:00All kinds of things we do to improve the model building
- 48:04process over time but ultimately none of that works.
- 48:07Yes to give up. Wow, I find it fascinating.
- 48:12This idea of going through three different tiers to get to where
- 48:18you want to go and And I really like the way that you put it is
- 48:21the data scientist shouldn't be touching it because they're so
- 48:24expensive. They need to be focusing on
- 48:27stuff that we know actually works.
- 48:29And so first you get sales, they go through sales.
- 48:33Then you have a subject matter expert that looks at it, that
- 48:36knows a bit of data analysis. And then if it passes through
- 48:39these filters and then it goes through that auto ml to make
- 48:43sure that there's a possibility on that end and then it can go
- 48:47to the data scientist. So that It is a really
- 48:50interesting way of going about it.
- 48:52I hadn't heard that one before so it's it's nice to know now my
- 48:57last kind of question for you because I know we're getting
- 49:01close to the end when it comes to because you're doing a lot of
- 49:06sensor and you're doing a lot of Internet of Things.
- 49:09What are some specific ml Ops problems that you feel are
- 49:15involved in when you have the internet of things and you're
- 49:20trying to to work with that. If there are any That many so,
- 49:30yes, they don't have. Things means like having some
- 49:34sort of sensors and I still want to classify that further.
- 49:39These are all like time, serious problems, right?
- 49:41Time series data is what your privately dealing with.
- 49:46Not necessarily but in our case we are so.
- 49:48But I want to differentiate between like a circle example,
- 49:51like companies like Tesla. Who would you think have the
- 49:54same issue, right? But in case of Tesla, you own
- 49:59their own, the sensors are or they're really sensors, which
- 50:03means they get to keep this quality of data that they want
- 50:12Vicki to ask this called of data.
- 50:14And It's of data that they want but in our case, it's customers
- 50:19on the sensors, right? So it contributes has all these
- 50:24data quality problems. We talked about which we need to
- 50:28really enable data scientists and Engineers working on this
- 50:32problem to be like reproducible and essentially.
- 50:39Yeah, reproducible. What else comes in?
- 50:43Then that's it. Iot time series, forecasting,
- 50:48problem, that's somewhat unique to us.
- 50:51There is also what we call as, like ASL models or things that
- 51:01basically underlying has like a physics equation.
- 51:04For example, in this flocculation example told about
- 51:06it's there is a certain degree of biology kill process going on
- 51:10in there but as soon as you add the boat load of chemicals to
- 51:14it, Beyond a regular beyond your regular usage, it to the
- 51:20characteristic stage, right? It's like you throw a ball over
- 51:25the are typically you expect a particular trajectory, it goes
- 51:29and falls in nflp you can Define that curve physics equation but
- 51:34as soon as you throw another bulletin hit it it changes its
- 51:37course, right? So these control system style
- 51:42models and when that Gets combined with iot style problem
- 51:48Sokka. Pump for example you can turn on
- 51:50and off and it will chemicals. You can add control chemicals to
- 51:55this flow Clash narration mechanisms they all has the
- 51:58potential to change normally defined characteristic or
- 52:02normally defined equation of this process significantly
- 52:06enough that typical emel methodologies doesn't work.
- 52:11It's a it's a, it's a cutting-edge bleeding edge,
- 52:14research, Search field data-driven control model
- 52:17predictive control, and we do some good stuff with it, but
- 52:22that said largely data science problem again right now.
- 52:26If the part of the ml Ops again, the time elapsed comes in its
- 52:32facilitating the reproducibility on this as well.
- 52:39Yeah, not to me in the last couple minutes about this
- 52:43automatically retraining of the models.
- 52:47And why you felt that was necessary?
- 52:51Because of the number of models that goes through this pipeline.
- 52:55It's just it's impossible for somebody to manderley Monitor
- 52:59and monitor and we retrain as necessary.
- 53:05It's a dangerous territory. Not easy to do.
- 53:09It takes a lot of time but once you have deployed five pump
- 53:12models, the sixth one, you have certain degree of confidence
- 53:17that it's new data and new patterns on you.
- 53:20All you need to do is like extra hyper under tuning.
- 53:23That point you can automate the retraining but generally, yeah,
- 53:26I do not, it's not easy. It's not recommended until you
- 53:30reach a certain level of maturity with The Malt with
- 53:35until you gain a certain degree of confidence.
- 53:38With the models you've deployed in production.
- 53:41It works in fintech. It works in attic.
- 53:46It was for us but took a lot of time and effort to build it the
- 53:50things like fraud detection. For example like they it doesn't
- 53:55work. It's hard.
- 53:57It's not easy to do. Like you'll have to the patterns
- 54:01just kind of drift to that. Those kind of models have our
- 54:05two to altering to behavior altering that that's a model
- 54:11itself like the neural architecture.
- 54:13For example, if they picked one, it doesn't work.
- 54:15You need to rethink what consumer Behavior changed to and
- 54:20rebuild it sometimes but sometimes it works.
- 54:23In our case, most of the times Dynamics remain the same.
- 54:27The pump is the pump the pump, sometimes units change,
- 54:31sometimes they operate more frequently, it's a small beta.
- 54:33So retraining is more applicable to our This case.
- 54:38What what about tracks are you looking at when you're
- 54:42retraining, like, when you're monitoring these models and it
- 54:46triggers a retraining, what is it usually that the metronome
- 54:50looking at to call? So that retrain?
- 54:53Yeah, I like so there is a human in the loop by the way right now
- 54:57or not it's automated enough. In to the point where you can do
- 55:04a click in the get retrained, but they models generally emit
- 55:12all possible Matrix. It can Pharmacy, may may Mac
- 55:17whatever you want to call. It depends on the type series
- 55:19model, You're Building other. My other type of models,
- 55:22however, there are metrics, but you get to look at them and you
- 55:25have a threshold, we set for each of those metrics at the
- 55:29point of training and as soon. As the treshold drops based on
- 55:35some sort of drifted that the you'll still see the near trust,
- 55:39you'll go beyond that are sold. It triggers an alert, it doesn't
- 55:43do the retraining, but yet triggers an alert and then you
- 55:48can go and look at it and Slick retrain and then industry
- 55:53training, right? It's automated but it's not
- 55:55automated both at the same time, but getting to this point itself
- 55:59is a good. It's a good exercise.
- 56:02Yeah, that's so cool because I was going to ask that if there
- 56:07was anyone in involved and if you still had the human
- 56:12knowledge to be able to look at it, yeah, we need to or maybe
- 56:17this is okay, we don't need to re trigger this.
- 56:20Yeah, it's minimal. But that is, that is human
- 56:26involvement. In every case nugget mean.
- 56:28I want to reach a point where if they want to reach a point where
- 56:30there is none, but Yep, I'll take whatever is there is the
- 56:36idea of you can run into trouble?
- 56:40If you start retraining models and you don't have it really
- 56:46down solid, like you can retrain models without and then you just
- 56:51keep retraining a minute and it causes a bunch of chaos.
- 56:54Yeah, absolutely. Yeah.
- 56:56I mean that happened happen all the time.
- 56:59It said, little Less prevalent for our industry compared to
- 57:04like a churn prediction model. Like things like that that they
- 57:09change a lot. There are external factors that
- 57:11depends on it but it compressor pump.
- 57:15Yeah right there is I do think we can reach a point where there
- 57:22is where are we training Islam or automated?
- 57:25But Someday. Yeah perfect.
- 57:30Well this has been immensely insightful for me.
- 57:35I really want to thank you Vishnu and everybody that is
- 57:39still here listening. Hopefully you enjoyed it as much
- 57:42as I did. The yeah, that's about it.
- 57:46I think we're going to call it a day here.
- 57:49Thanks for listening and we will see you all later.
- 57:52Thank you damage on. This is really nice talking to
- 57:54you and we will dance. Everyone else.
- 57:27Someday. Yeah perfect.
- 57:30Well this has been immensely insightful for me.
- 57:35I really want to thank you Vishnu and everybody that is
- 57:39still here listening. Hopefully you enjoyed it as much
- 57:42as I did. The yeah, that's about it.
- 57:46I think we're going to call it a day here.
- 57:49Thanks for listening and we will see you all later.
- 57:52Thank you damage on. This is really nice talking to
- 57:54you and we will dance. Everyone else.