<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Micha Kastelein on Medium]]></title>
        <description><![CDATA[Stories by Micha Kastelein on Medium]]></description>
        <link>https://medium.com/@michakastelein?source=rss-aafb58f5549c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wLcEY1r9mdUdqQcWwya51g.png</url>
            <title>Stories by Micha Kastelein on Medium</title>
            <link>https://medium.com/@michakastelein?source=rss-aafb58f5549c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:36:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@michakastelein/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[IPA: not your average automation!]]></title>
            <link>https://medium.com/sogetiblogsnl/ipa-not-your-average-automation-2917db490df1?source=rss-aafb58f5549c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2917db490df1</guid>
            <category><![CDATA[process-automation]]></category>
            <category><![CDATA[rpa-tools]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[rpa-solutions]]></category>
            <category><![CDATA[intelligent-automation]]></category>
            <dc:creator><![CDATA[Micha Kastelein]]></dc:creator>
            <pubDate>Tue, 11 Oct 2022 09:19:07 GMT</pubDate>
            <atom:updated>2022-10-11T09:19:07.153Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OgubW_1KCsRbBaVUeQzMHw.jpeg" /></figure><h3><strong>How to combine RPA with AI</strong></h3><p><strong>Introduction</strong></p><p><em>Repetitive work within the technology sector is costing businesses 19 working days per year per employee, on average. 90% of workers are burdened with this repetitive work.</em> <em>Work that includes searching for data, data entry, data processing and analysis, and combining data from multiple sources (SnapLogic, 2017).</em></p><p>With numbers like these, it does not come as a surprise that companies have shown more and more interest in automating their business processes. Through automation, companies can relieve their workers of the repetitive, mundane, and time-consuming tasks, leaving more time to be spent on the things that matter.</p><p>But how far can we take process automation? With the recent surge of Artificial Intelligence (AI), we also see a shift in automation from classical rule-based automation to a new field called Intelligent Process Automation (IPA). With the addition of AI, process automation can now overcome one of its biggest hurdles, complex decision-trees that are easily solve by humans but are hard to express in rulesets.</p><p>In this blog series we will explore the possibilities of Intelligent Process Automation. In this first blog we will start with a foundation for the other blogs. We are going to introduce IPA and why it is a game changer in business process automation. In upcoming blogs, we will explore IPA further by addressing use cases, tooling and more. But first things first, what is RPA again and why do we need to make it smarter?</p><p><strong>A crash course on RPA</strong></p><p><em>An unbelievable 58% of government citizen-facing processes are paper-driven in the United States, and only 20% of public service employees in the UK do strategic work that requires analytical thinking. RPA has the potential to reform stagnant bureaucracy and free up employee time for human-centric activities (Minit, 2018).</em></p><p>In recent years we have seen a rise in the use of Robotic Process Automation (RPA) to automate business processes and it is expected that this trend will continue. The term <em>RPA</em> has even become synonymous with the all-encompassing term <em>automation</em>. Where automation is the ‘mother term’, which entails automating a business process with any of the tools available, for example by using API’s or scripts, Robotic Process Automation is the act of automating business processes via software robots that mimic the actions of a human worker through a rule-based decision system, often on legacy software where an API is not present.</p><p><em>With RPA speeding up processing times and reducing costly errors, processing costs decline and per-employee output increases. Common savings from these efficiency improvements fall within 25% and 50% (Kofax, 2020).</em></p><p>RPA is widely used to automate processes like merging documents, filling in forms, executing tasks within a legacy software program or scraping websites. RPA is a good fit when a process has well defined decision boundaries that can easily be distinguished. Letting automations do these tasks comes with several advantages: an automation is less likely to make mistakes, can work at any time, will not get bored or fed up and is cheaper than a human employee. But RPA slows down when a process is more complex and relies on a human to make difficult decisions or interpretations. A robot lacks two main things: (1) it cannot make complex decisions by itself and (2) it cannot interpret complex documents on its own. To overcome these issues, automation solutions often use a <em>human in the loop:</em> a system wherein robots perform tasks up to a point where an employee must step in to make a decision or interpret text after which the robot takes over again.</p><p>However, in this digital age a question does arise, is it not possible to automate at least some human decisions?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m-Raf9TuhKhuj8cJGLO7JQ.png" /></figure><p><strong>IPA, not alcohol but automation</strong></p><p><em>According to a survey, many companies across industries have been experimenting with IPA, with impressive results; automation of 50–70% of tasks, which has translated into 20–35% annual run-rate cost efficiencies (Markets and Markets, 2022).</em></p><p>With the rise of more and more computing power, there have also been enormous advancements in AI: image recognition combined with deep learning driving cars, outlier-detection models recognizing fraudulent transactions or cyber-attacks, the rise of recommendation systems, and NLP models that can hold a conversation so well that people believe it is sentient. With these milestones it comes to no surprise that process automation can also benefit from the current state of AI.</p><p>With regards to the above-mentioned decision-making limitations of RPA, AI can complement the process as a cognitive factor. The complexity of many if-then-else rules are not an issue for AI models. They can easily deal with large decision trees, can learn rulesets and develop human thought processes.</p><p><strong>IPA in action</strong></p><p>AI techniques that collaborate well with automation are Natural Language Processing (NLP) and Optical Character Recognition (OCR). A good illustration of this is intelligent invoice processing. Retail companies get large volume invoices, often in different formats and through different channels, for example via email or post. Processing these invoices can be a time-consuming and monotonous process for humans. However, it is a perfect fit for IPA. The invoices can be extracted by RPA and interpreted by NLP. The model can even interpret scanned invoices with the help of OCR. After the relevant information is extracted from the invoice, it can be saved in a file, fed to a database, or used as input for the company’s preferred software.</p><p>To further illustrate the power of IPA let’s discuss an actual Sogeti success story. One of our clients has a large volume of documents which need to be reviewed by a legal team before they are sent to other parties. Before the actual review of these documents, which includes redacting sensitive information, the legal team has to scan the documents and decide whether they are relevant for their business partners. This document scan was a time-consuming task that we automated with the help of NLP. Using the previously labeled data we trained a model that was able to learn on what grounds the legal team decided to label a document as relevant or irrelevant and label the documents as such via automation on the document management system. The model performed so well that the client has adopted this intelligent automation into their business process, resulting in a time savings of 30.000 hours over the course of a few years, calculated by multiplying the time spent by the number of unprocessed documents.</p><p><strong>About the authors</strong></p><p>This blog has been written by Micha Kastelein and Jeroen ter Voert, RPA Engineers and Data Scientists at Sogeti and are currently diving into the emerging field of IPA. Via this blog series we will take you along on our journey wherein we explore the possibilities of IPA and keep you up to date on our findings. Our series will continue with the exploration of IPA tooling, its considerations and a dive into some business cases. Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2917db490df1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sogetiblogsnl/ipa-not-your-average-automation-2917db490df1">IPA: not your average automation!</a> was originally published in <a href="https://medium.com/sogetiblogsnl">Sogeti Data &amp; AI | Netherlands</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Measure it up: Regression metrics of fit]]></title>
            <link>https://medium.com/sogetiblogsnl/measure-it-up-regression-metrics-of-fit-74e2467b6e61?source=rss-aafb58f5549c------2</link>
            <guid isPermaLink="false">https://medium.com/p/74e2467b6e61</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[best-fit-line]]></category>
            <category><![CDATA[regression-testing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Micha Kastelein]]></dc:creator>
            <pubDate>Fri, 18 Dec 2020 11:02:21 GMT</pubDate>
            <atom:updated>2020-12-18T11:02:21.659Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DRIeTDlA5WOlaSA30O3vaw.jpeg" /></figure><p>Machine learning metrics/measures of fit can be quite daunting. Do you recognize this situation? You have gathered a lot of data and you have built a regression model that looks amazing. It gives predictions for the variable you want to predict. Everything looks perfect. But, how do you know if your model predicts correctly? Don’t look further, this blog is for you!</p><p>After fitting a regression model on a dataset, it is important to test if the calculated model fits the data. Luckily, there is a way to compare multiple models with one another: measures of fit. A measure of fit will qualify the error of the calculated model. The error is the mistake that the model makes, compared to the original data. Which measure of fit is used, determines the way the mistake of the model is calculated. It is important to remember that a measure of fit doesn’t necessarily say anything about the accuracy of a model, it only tells you about the average error between your models’ predictions and the true values.</p><p>In this blog we will discuss 4 different measures of fit: Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE) and R Squared (R²). Each measure will be explained, and we will talk about its best uses and its flaws.</p><p><strong>Mean Absolute Error (MAE)</strong></p><p>The MAE calculates the absolute error between the prediction and the true value for every datapoint and takes the sum of all these errors divided by the number of datapoints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/151/1*U01ukDlgZd4z1mdCVwUYMg.png" /></figure><p>The MAE is easy to interpret but doesn’t show larger error outliers that well. MAE is commonly used in time series analysis since the change on big differences in errors between data points is smaller.</p><p><strong>Mean Squared Error (MSE)</strong></p><p>The MSE calculates the squared error between the prediction and the true value for every datapoint, sums the errors and divides it by the number of datapoints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/164/1*PinnYDxf4vClEglx5-FVww.png" /></figure><p>The MSE is less easy to interpret since it has an order of 2 and data (normally) has an order of 1, the error can’t be directly correlated with the data. On the plus-side, the MSE will be smaller when more data is used. This results in the MSE giving a better representation of the error of a model when more data is used. It can be used for almost all regression models</p><p><strong>Root Mean Squared Error (RMSE)</strong></p><p>RMSE is very similar to the MSE. To calculate the RMSE, we simply take the root of the MSE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/178/1*R2Ot7YnDWeEEOcwr4qHXZg.png" /></figure><p>This solves the MSE issue of not having the same order in the dataset and error. RMSE is also sensitive to outliers. But because of the root, the number will always be lower than MSE thus making it a more readable number than MSE. Keep in mind that you can’t use the RMSE to compare different variables if they have a different scale of numbers.</p><p><strong>R squared</strong></p><p>R² is calculated by dividing the Sum of Squared Errors (SSE) by Sum of Squared Total (SST).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*ecfpvWy-oQKa9HZSjfSMyQ.png" /></figure><p>The SSE is the sum of the difference between the predicted value and the true value squared. It is very similar to the calculation used in the MSE with the only difference being that MSE is divided by the number of datapoints. The SST is calculated by taking the sum of the difference between the predicted value and the average true value squared.</p><p>R² is the comparison of a straight line with the chosen model. If a straight line is better at predicting than the chosen model, R² is negative. When the model fits the data perfectly, R² is 1 (SSE will be zero for a perfect prediction). Don’t use R² on its own. A low R² isn’t always bad and a higher R² isn’t always good. Make sure to combine it with another measure of fit, a high R² might have a large error and vice versa.</p><p><strong>Some Python magic: Measures of Fit in action</strong></p><p>I hear you think: <em>“Micha, this is interesting, but how can I use this in Python?”</em>. Let me show you!</p><p>Let’s start with stating some true values and some predictions. I will be using some easy to see and calculate deviations. This is a nice way to get a good feeling for the discussed measures of fit, so next time you work with a model, you can use the measures yourself in a larger scenario.</p><pre>y_true = [-10, -5, 0, 5, 10, 15]<br>y_always_five = [-15, -10, -5, 0, 5, 10]<br>y_small_large = [-7, -2, 3, 12, 17, 22]<br>y_outlier = [-10, -5, 0, 5, 10, 45]</pre><p>Now that we have the y_true and the predictions, we can calculate if our prediction is any good. We’ll go over them one by one. The python code will only show examples for y_always_five, Table 1 will show the the measures for other predictions as well.</p><pre><em>print(&quot;MAE y_always_five: &quot;, mean_absolute_error(y_true, y_always_five))</em></pre><pre><em>MAE y_always five: 5.0</em></pre><pre><em>print(&quot;MSE y_always_five: &quot;, mean_squared_error(y_true, y_always_five))</em></pre><pre><em>MSE y_always_five: 25.0</em></pre><pre><em>print(&quot;RMSE y_always_five: &quot;, sqrt(mean_squared_error(y_true, y_always_five)))</em></pre><pre><em>RMSE y_always_five: 5.0</em></pre><pre><em>print(&quot;R2 y_always_five: &quot;, r2_score(y_true, y_always_five))</em></pre><pre><em>R2 y_always_five: 0.6571428571428571</em></pre><p>A bunch of different numbers. Time to interpret them and get our best fit. The table below displays the different predictions and their corresponding measures (Table 1). But first some code to plot these predictions. The result is shown in Figure 1.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e167bc67b0ec2aed49f934906c88041e/href">https://medium.com/media/e167bc67b0ec2aed49f934906c88041e/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*9CWhUu7KdcLMjzX0lh9Svw.png" /><figcaption>Figure 1: <em>y_true and its predictions plotted</em></figcaption></figure><p>As previously stated, MAE doesn’t handle outliers very well. The y_outlier has a large outlier on x=5, but still shows a MAE value of 5. The other 3 measures are better at displaying this outlier. MSE and RMSE are giving a much higher value than before and R² even gives a negative number, showing that the predicted model is worse than a horizontal line at predicting the values. You can also notice that MSE has a much higher value than the other measures. As earlier discussed, this has to do with the MSE having an order of two and the data having an order of one. You can also notice the difference between y_always_five and y_small_large when you look at RMSE. There is a small difference in error. This shows that the larger errors in y_small_large way heavier than the smaller errors.</p><p><strong>Recommendation</strong></p><p>MAE, MSE, RMSE and R² plotted side by side, show that the MAE is most interpretable, but it lacks the ability to deal with outliers and differences between evenly distributed errors and a small variance in errors. It also shows that MSE and RMSE overcome MAE’s shortcomings since larger errors have a bigger impact on them. Lastly, R² is great in showing if our model is better at predicting values than a horizontal line. Its value shows us if our models prediction comes close to the original values. I would suggest using both RMSE and R² side-by-side. Trying to get a model with RMSE as low as possible, while also trying to get the R² as close to one as possible. When presenting a model, you can use the RMSE to show the average deviation the model makes, compared to the true values. The R² can be presented like an accuracy, but only when you use it in combination with other measures. This combination shows a model that comes close to the true values, while also showing a small average error for each datapoint.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74e2467b6e61" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sogetiblogsnl/measure-it-up-regression-metrics-of-fit-74e2467b6e61">Measure it up: Regression metrics of fit</a> was originally published in <a href="https://medium.com/sogetiblogsnl">Sogeti Data &amp; AI | Netherlands</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>