{"id":2482,"date":"2021-08-31T14:58:42","date_gmt":"2021-08-31T18:58:42","guid":{"rendered":"https:\/\/www.day5analytics.com\/?p=2482"},"modified":"2026-08-17T08:10:31","modified_gmt":"2026-08-17T08:10:31","slug":"deploying-and-controlling-intelligent-predictions-for-financial-performance-part-2","status":"publish","type":"post","link":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/2021\/08\/31\/deploying-and-controlling-intelligent-predictions-for-financial-performance-part-2\/","title":{"rendered":"Deploying and Controlling Intelligent Predictions for Financial Performance (Part 2)"},"content":{"rendered":"<p>Day5 Analytics\u2019 client completes thousands of residential electrical, HVAC and plumbing service requests each month \u2013 where technicians attend a problem and attempt to repair it. The cost of each request is affected by various factors \u2013 such as, when the request is made, the urgency with which work needs to be completed, the number of previous calls made to service the same equipment, etc. The final cost of the service is only known when work is finally completed \u2013 however, the client needs an accurate cost estimate to manage cashflow, inform discretionary spending, and assess whether there is value in delivering the repair service. Basic cost estimation methods result in crude high-level estimates, that lead to missed financial opportunities, and challenge decision making at the field level.<\/p>\n<p>Using a combination of automatic machine learning, simplified field deployable applications and an automated way to ensure predictions remain accurate, Day5 Analytics developed a field-deployable solution that improves cost estimates by 40%.<\/p>\n<p>Over a 3-part blog series, Day5 Analytics demonstrates how to create and deploy a machine learning solution with an innovative blend of low-code and low-cost technologies. Part 1 demonstrated the production deployment of cost prediction with automated machine learning, using KNIME and PyCaret.<\/p>\n<p>&nbsp;<\/p>\n<h2>Part 2: Field Deployment of Cost Predictor using Microsoft PowerApps and KNIME Server<\/h2>\n<p>This blog will demonstrate how to deploy an analytic application so field operators can leverage powerful cost prediction algorithms via a simple user interface, using Microsoft PowerApps and KNIME Server.<\/p>\n<p><a href=\"https:\/\/www.knime.com\/knime-analytics-platform\">KNIME Analytics Platform<\/a> is used to build a workflow to predict the cost of a service request using <a href=\"https:\/\/pycaret.org\/\">PyCaret<\/a> for automated machine learning. KNIME\u2019s differentiated <a href=\"https:\/\/www.knime.com\/integrated-deployment\">integrated deployment<\/a> nodes make the predictive model deployment-ready.\u00a0Once the model is deployed to <a style=\"background-color: #ffffff;\" href=\"https:\/\/www.knime.com\/knime-server\">KNIME Server<\/a>, it provides cost estimates for new service requests. KNIME Server automatically creates a <a style=\"background-color: #ffffff;\" href=\"https:\/\/www.knime.com\/blog\/the-knime-server-rest-api\">REST API<\/a> for every deployed workflow. These APIs allow the deployed workflow to be run via a simple HTTP request from any <em style=\"color: var( --e-global-color-text );\">(permitted)<\/em> source application \u2013 such as internal tools, mobile applications, websites, etc.<\/p>\n<p><a href=\"https:\/\/powerapps.microsoft.com\/en-ca\/\">Microsoft Power Apps<\/a> is used to build a simple user interface for field users to interact for accurate cost estimation. <a href=\"https:\/\/flow.microsoft.com\/en-us\/\">Power Automate<\/a> performs the back-end logic processes required by the mobile app, by taking the user inputs, making the HTTP request to the REST API, and processing the response data.<\/p>\n<p><a href=\"https:\/\/azure.microsoft.com\/en-ca\/services\/api-management\/#overview\">Azure API Management<\/a> is used to manage the deployed KNIME Server API. This adds a layer of security, provides a single static IP address for network access, and provides monitoring and fine-grained access controls. <em>(Note: Azure APIs are a client preference and not essential)<\/em>. The data flow is demonstrated below:<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-content\/uploads\/2021\/08\/API_Power_platform_interaction.png\" sizes=\"(max-width: 1430px) 100vw, 1430px\" srcset=\"https:\/\/i0.wp.com\/www.day5analytics.com\/wp-content\/uploads\/2021\/08\/API_Power_platform_interaction.png?w=1430&amp;ssl=1 1430w, https:\/\/i0.wp.com\/www.day5analytics.com\/wp-content\/uploads\/2021\/08\/API_Power_platform_interaction.png?resize=600%2C172&amp;ssl=1 600w, https:\/\/i0.wp.com\/www.day5analytics.com\/wp-content\/uploads\/2021\/08\/API_Power_platform_interaction.png?resize=300%2C86&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.day5analytics.com\/wp-content\/uploads\/2021\/08\/API_Power_platform_interaction.png?resize=1024%2C294&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.day5analytics.com\/wp-content\/uploads\/2021\/08\/API_Power_platform_interaction.png?resize=768%2C220&amp;ssl=1 768w\" alt=\"\" width=\"1430\" height=\"410\" \/><\/p>\n<h3>Field User Experience<\/h3>\n<p><img decoding=\"async\" class=\"size-medium wp-image-3789 alignleft\" src=\"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-content\/uploads\/2021\/08\/newImg81-170x300.webp\" alt=\"\" width=\"170\" height=\"300\" srcset=\"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-content\/uploads\/2021\/08\/newImg81-170x300.webp 170w, https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-content\/uploads\/2021\/08\/newImg81.webp 325w\" sizes=\"(max-width: 170px) 100vw, 170px\" \/><\/p>\n<p>When a field user requires a price estimate for a service request, they open the PowerApps application on their device (phone, computer, etc.), and the enter the service request details \u2013 such as the type of service required, urgency, etc. The user then submits the request, and immediately receives back a predicted cost.<\/p>\n<p>A simplified view of the application user interface is shown to the right. The user is able to leverage the complex estimation model deployed on KNIME Server without being exposed to any of the complexity. A similar interface can be deployed with the KNIME WebPortal embedded within internal client sites.<\/p>\n<h3>Back-End Data flow<\/h3>\n<p>Power Automate runs the back-end process of the Power App. The user inputs are composed into a JSON format for the HTTP request. After the request is sent to the KNIME Server API, the process receives a JSON response from the deployed machine learning model. The cost estimate is then parsed from the JSON response, and displayed in the App in a simple way.<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-content\/uploads\/2021\/08\/power_flow.png\" sizes=\"(max-width: 681px) 100vw, 681px\" srcset=\"https:\/\/i0.wp.com\/www.day5analytics.com\/wp-content\/uploads\/2021\/08\/power_flow.png?w=681&amp;ssl=1 681w, https:\/\/i0.wp.com\/www.day5analytics.com\/wp-content\/uploads\/2021\/08\/power_flow.png?resize=600%2C304&amp;ssl=1 600w, https:\/\/i0.wp.com\/www.day5analytics.com\/wp-content\/uploads\/2021\/08\/power_flow.png?resize=300%2C152&amp;ssl=1 300w\" alt=\"\" width=\"681\" height=\"345\" \/><\/p>\n<h3>Rapid Deployment of Predictive Models<\/h3>\n<p>Integrating KNIME and PowerApps allows for fast iteration, leading to rapid deployment of user-friendly mobile applications built on complex predictive models. This process makes it possible for end users to leverage complex and accurate predictive models, based on information that a single user simply would not have access to. Cost estimate accuracy has a direct correlation with spend and budget forecasts &#8211; proactive estimation eliminates financial surprises later and importantly, enables the business to make informed spending decisions. <strong>KNIME Edge<\/strong> can further enhance the user experience by deploying the model on a field device and speeding up the interaction.<\/p>\n<h3>Next Steps<\/h3>\n<p><em>The prediction KNIME model for Part 1 can be found on the KNIME Hub, <\/em><a href=\"https:\/\/kni.me\/w\/u53goeMdMZx_x-p_\"><em>here<\/em><\/a><em>.<\/em><\/p>\n<p>Part 1 of the blog post series detailed the development, assessment, and deployment of the machine learning model cost predictions compared to the \u2018status quo\u2019 average cost method, while Part 2 demonstrated the Microsoft Power Apps mobile application for field deployment. Part 3 will showcase model monitoring and automatic retraining functionality with KNIME Server.<\/p>\n<p>To inquire about custom-built and deployed machine learning solutions at your company, contact <a href=\"http:\/\/www.day5analytics.com\">Day5 Analytics<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over a 3-part blog series, Day5 Analytics demonstrates how to create and deploy a machine learning solution with an innovative blend of low-code and low-cost technologies. Part 2.<\/p>\n","protected":false},"author":1,"featured_media":2436,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_angie_page":false,"page_builder":"","footnotes":""},"categories":[68],"tags":[50,51,74],"class_list":["post-2482","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solutions","tag-finance","tag-knime","tag-machine-learning"],"_links":{"self":[{"href":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-json\/wp\/v2\/posts\/2482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-json\/wp\/v2\/comments?post=2482"}],"version-history":[{"count":6,"href":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-json\/wp\/v2\/posts\/2482\/revisions"}],"predecessor-version":[{"id":3794,"href":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-json\/wp\/v2\/posts\/2482\/revisions\/3794"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-json\/wp\/v2\/media\/2436"}],"wp:attachment":[{"href":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-json\/wp\/v2\/media?parent=2482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-json\/wp\/v2\/categories?post=2482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mindblowpreviews.com\/stagings\/day5-analytics\/wp-json\/wp\/v2\/tags?post=2482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}