<?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 Łukasz Mokrzycki on Medium]]></title>
        <description><![CDATA[Stories by Łukasz Mokrzycki on Medium]]></description>
        <link>https://medium.com/@l.mokrzycki?source=rss-87955a73a1d4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DnYTOH3DyQaN3rYUt4oQKQ.jpeg</url>
            <title>Stories by Łukasz Mokrzycki on Medium</title>
            <link>https://medium.com/@l.mokrzycki?source=rss-87955a73a1d4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:09:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@l.mokrzycki/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[GDPR in Machine Learning projects]]></title>
            <link>https://medium.com/@l.mokrzycki/gdpr-in-machine-learning-projects-9fc3f0efbc61?source=rss-87955a73a1d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fc3f0efbc61</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[gdpr]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Łukasz Mokrzycki]]></dc:creator>
            <pubDate>Sun, 22 Apr 2018 18:02:07 GMT</pubDate>
            <atom:updated>2018-04-22T18:56:05.868Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C0JY9HxpIjhhvHqY." /><figcaption>“A Paris square beside the Louvre filled with people, a garden fountain, and the petit Arc de Triomphe” by <a href="https://unsplash.com/@jacegrandinetti?utm_source=medium&amp;utm_medium=referral">Jace Grandinetti</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>General Data Protection Regulation comes to live in the European Union from 25th May and will strongly influence how Machine Learning products are developed. Without a doubt, it will increase the amount of work required for shipping ML project to productions, but on the other hand, it will be solid protection for the rights of users, which also includes us, creators of these projects. The rights that help us keep control over data that is collected about us and protect us from unfair results of fully autonomous systems.<br>Now, a user will have a legal basis for access, rectify, transfer or deletion of his private data. With this post, I would like to propose best practices for ML models developers allowing them to reduce the amount of work and issues implied by the new law.</p><p><strong><em>It is important to note that this is not official legal advice for companies or individuals, only my subjective ideas to help developers with the process of compliance with the new standards. Remember that details of GDPR implementation could be a little bit different in specific countries.</em></strong></p><h3>Key Definitions</h3><p>Before we jump into good patterns which will help to comply with GDPR, we need to get familiar with a few concise definitions of terms widely used in documents and materials about this new directive.</p><p><strong>Data Subject</strong>: a single person in your system that is either already identified or is directly or indirectly identifiable based on physical, genetic, economic or other factors.</p><p><strong>Personal Data</strong>: any information related to Data Subject. It may be misleading that “personal” means an only narrow subset of users data, like health or financial records, but it truly means any data that is gathered about users, including but not limited to online behavior, work performance or physical position.</p><p><strong>Data Controller</strong>: person, company or institution thats collect users’ data and determines it’s purpose. Data Controller is responsible for protecting users data according to GDPR standards and may be obligated to assign one of his employees to Data Protection Officer role.</p><p><strong>Data Processor</strong>: person, company or institution that processes Personal Data on behalf of Data Controllers. Usually, those are third-party services which perform specific tasks with users data. According to GDPR, they need to provide proper technical and security measures.</p><p><strong>Profiling</strong>: means any form of analysis or prediction model based on individuals Personal Data.</p><p><strong>Automated decision making</strong>: the process which allows to make a decision or perform an action without human involvement. Level of automation of such system may be very different, from just advice giving solutions to fully autonomous ones.</p><p>Of course, those are plain langue explanations, to see full version of those descriptions you could visit sites like <a href="https://gdpr-info.eu/art-4-gdpr/">gdpr-info.eu</a> or <a href="https://www.gdpreu.org/the-regulation/key-concepts/">gdpreu.org</a>.</p><h3>Developers Best Practices</h3><p><strong>Documentation</strong> is a fundamental tool for building more complex supervision of a ML project. First of all, it helps new developers quickly jump into the system, which may be developed through years, but what’s more important it provides a permanent source of knowledge about under the mask behavior of the product. According to the new law, Data Subject has a right to obtain a detailed explanation of why the automated decision, with a significant impact on their life or career, produced specific outcome as what as getting the full description of how his Personal Data is used. The sooner we introduce the idea of up-to-date documentation in ML workflow, the sooner we will be confident and calm about the possibility of mentioned situation. What should such documentation contain? It depends on the type of the project, but some parts should be universal: description of data formats, list of all data sources, list of Data Processors with details about what kind of data they could access, description of data consents obtaining process. In case of Machine Learning models, even if we use black box models, we should have at least documentation what’s the input and any possible output of the model.</p><p><strong>Control over data</strong> could be described as an ability to quickly perform one of the actions described as Data Subject right in GDPR, which are: access, rectify, portability and erase. Every experienced software developer would see big refactoring overhaul for this compliance if the system wasn’t designed to support those actions easily. That’s a strong argument to plan those possibilities in order to avoid the cost of future changes and prepare ML pipeline for recalibration after data rectifications.</p><p><strong>Anonymization middleware</strong> is connected with the part of GDPR that permits more relaxed work with data when it’s fully anonymized, and there’s no possibility to re-identify individual based on such subset of information. If final product doesn’t require identification of specific user, it’s smart to just get rid of such information, by introducing anonymization layer at the beginning of data collection pipeline and save yourself a lot of additional work. Tricky part is possibility of being affected by results of automated decision making even after, in theory, secure removal of all direct and indirect identifiers, and so far there’s no easy answer for that.</p><p><strong>Simple Algorithms First</strong> means starting small, asking yourself if you need start with techniques like Deep Learning to solve your problem with successful results. Descriptive statistics or decision trees may be just good enough for the task and provide a huge benefit in the form of interpretability of the results and underlying rules. Additionally performance gain of black box models in a production environment may not compensate the cost of its implementation. Slightly less accurate models could be a good compromise, and their interpretability makes compliance with GDPR faster to achieve. What if using for example Deep Learning is crucial for the project? In such scenario, developers should remember about documenting and testing input and output data, think about the possibility of manual corrections and supervision of models output and prepare validation datasets which illustrate the behavior of the black box in specific scenarios. The last one could be called “testing for ethics” and should check if the algorithm doesn’t discriminate or affects the Data Subject unintentionally based on any direct or more fuzzy correlation.</p><p><strong>Transparency</strong> translates into being honest with users about what and how personal data is processed in your product. It’s the foundation of GDPR idea, giving the user ability to give or revoke consent for managing personal data or performing profiling and automated decision making by Data Controller. Those consents require conscious user action and should be logged and safely stored in case of a potential audit. But transparency is not only about that, but it also connects strongly with an ability to explain how ML model works and what may be their legal or any other significant impact on lives of the product users. In other words be honest what are you’re going to do with the data.</p><h3><strong>Summary</strong></h3><p>Those are generic ideas, which I’ll cover with the more details and examples in future posts on this blog. I hope that by just keeping above concepts in mind, while starting new or refactoring existing Machine Learning projects, cost of compliance with General Data Protection Regulation standards should be minimized. In my opinion, it’s not the main benefit. Biggest take off is creating transparent and interpretable systems, and prioritizing and protecting ethical standards with proper testing and supervision of the ML pipeline, to gain the trust of users in AI/ML powered solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fc3f0efbc61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why should Machine Learning developers care about transparency?]]></title>
            <link>https://medium.com/@l.mokrzycki/why-should-machine-learning-developers-care-about-transparency-df3509b17d51?source=rss-87955a73a1d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/df3509b17d51</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ethics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[gdpr]]></category>
            <dc:creator><![CDATA[Łukasz Mokrzycki]]></dc:creator>
            <pubDate>Sat, 10 Feb 2018 15:20:04 GMT</pubDate>
            <atom:updated>2018-02-10T15:20:04.409Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtaODiPimUZGyAjd9vE7IA.png" /><figcaption>Photo by <a href="https://unsplash.com/photos/8Pd8yCjjKIQ?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Maxime Le Conte des Floris</a> on <a href="https://unsplash.com/search/photos/glass?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The modern world is full of algorithms that drive many complex systems and by doing so, affect lives of millions. Not all of them are sophisticated deep neural networks, sometimes it’s just a statistical model or automation process. The common problem is lack of clear communication of how those things work with its developers and often very unaware users. Today, I would like to look at trending approach in the time of hype around AI: end-to-end machine learning models, which are fed with a massive amount of raw data to perform a sophisticated set of tasks of classifications. I will try to consider both the problem they create but also propose ideas for solving that challange.</p><p>The first challenging part of end-to-end AI algorithms comes with a restricted co-operation with its developers during the development phase. When algorithm learns entirely by itself, with tons of data using deep learning, model developers could omit one of the most crucial parts of good old machine learning, feature engineering, which till the boom of deep neural networks was probably most important making machines to learn. Giving up this step also creates the danger of polluting the model with biased data, and in consequence indirectly harm people. Detailed examples of this issues are described in “Weapons of Math Destruction” written by Cathy O’Neil.</p><p>Applying domain knowledge for construction of better input data for models has two main advantages. First of all, it can enormously improve algorithm performance, especially when we do not have vast amounts of data and from the other. Secondly, it gives meaningful insights about used dataset to model developers. Insights that could be still very useful, even when a model by itself does not meet desired expectations.</p><p>After finishing development phase, we need to think what happens when our black box solution finally ships to the production environment, or better to say: human environment. It is even more important to pay attention to safety and reliability, in high-risk industries like a healthcare, transportation or finances decisions and actions made by the AI could affect real people’s health and life. The moment when we delegate a complex task and expect only final results is when we lose insights of what’s happening. The typical example could be an autopilot in a plane, drone or autonomous car which suddenly has a crash and human operators have no clue what was the reason why such system performed specific actions.</p><p>In fact, constant interaction and transparency in front of users may prevent a significant percentage of such accidents from happening. A reduction or decomposition of end-to-end models could save many errors when AI systems are used outside of a laboratory or developer environment. Lack of supervision could be required by laws, what’s been already happening in the European Union according to the General Data Protection Regulation. Applications of this regulation will affect not only European based companies but also everybody who wants to use the data of European citizens.</p><p>What does the GDPR mean for the AI industry? In specific cases, authors of a model that has been interacting with users need to explain how and based on which rules it has made specific decisions. It may be an answer for a credit request, an automatically calculated insurance cost or adds content presented to a user. As a creator of such systems, we might be asked to prove it’s not biased in a harmful way or doesn’t break any rules of users data protection. Needless to say, developers, project managers, and business owners will need to change their methods for development, in order to adapt.</p><p>It all leads to the biggest challenge and opportunity. If we make interpretability of AI systems a universal norm, we could avoid losing trust for this beneficial field of technology or even to the technology itself. I am convinced that by a proper User Experience design, responsible workflows of Machine Learning project and education, we could minimize the risk of AI to arouse fears and benefit from its potential.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df3509b17d51" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>