{"id":4675,"date":"2023-02-16T08:00:00","date_gmt":"2023-02-16T07:00:00","guid":{"rendered":"http:\/\/www.se-trends.de\/?p=4675"},"modified":"2023-02-15T14:23:59","modified_gmt":"2023-02-15T13:23:59","slug":"re4ai-requirements-part-2","status":"publish","type":"post","link":"https:\/\/www.se-trends.de\/en\/re4ai-anforderungen-teil-2\/","title":{"rendered":"RE4AI: 6 recommendations for the development of AI systems (Part 2)"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Last week I reported on RE4AI, Requirements Engineering for Artificial Intelligence. Among other things, it dealt with the limitations and challenges of RE4AI. All well and good, but how do we approach the whole thing in practice? One possible approach is Google PAIR, which is presented below.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">Here it goes <a href=\"http:\/\/www.se-trends.de\/en\/re4ai-requirements-part-1\/\">to the first part<\/a> and here is the paper <a href=\"https:\/\/ieeexplore.ieee.org\/stampPDF\/getPDF.jsp?tp=&amp;arnumber=9604729&amp;ref=aHR0cHM6Ly9zY2hvbGFyLmdvb2dsZS5jb20v\" target=\"_blank\" rel=\"noreferrer noopener\">What's up with Requirements Engineering for Artificial Intelligence Systems?<\/a> by Ahmad et. al.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">AI in products: The new challenges<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To better understand the challenges of built-in AI, let's take a look at a prominent example: autonomous driving. A sensible requirement could be:<\/p>\n\n\n\n<div style=\"background: #7eb13d; padding: 20px; border-radius: 10px; color: white; font-size: 120%; margin-bottom: 20px;\"><span style=\"font-size: 300%; float: left; vertical-align: middle; font-weight: bold; line-height: 1em;\">The vehicle must not run any red lights.<\/span>&nbsp;<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">But the devil is in the detail. Is it always clear what a traffic light is? What does \"run over\" mean? How do we deal with accuracy and precision? What about special cases, such as an approaching vehicle with flashing blue lights? In this case, can the vehicle drive through the red light to make way for the ambulance? How can we tackle these new problems when existing technologies are no longer sufficient?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google has published a new set of guidelines for developing AI applications with a human-centered approach called PAIR. The authors examine Google PAIR in terms of their findings from the literature review (<a href=\"http:\/\/www.se-trends.de\/en\/re4ai-requirements-part-1\/\">see part 1<\/a>). Based on this, the authors make recommendations for future RE4AI research.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Google PAIR<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">PAIR stands for \"People + AI Research\", as <a href=\"https:\/\/research.google\/teams\/brain\/pair\/\" target=\"_blank\" rel=\"noreferrer noopener\">on the corresponding Google project page<\/a> can be read.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The central part of PAIR is the <a href=\"https:\/\/pair.withgoogle.com\/guidebook\" target=\"_blank\" rel=\"noreferrer noopener\">People + AI Guidebook<\/a>which consists of a collection of methods, best practices and examples for RE4AI. The guidebook consists of 6 chapters, which the authors of the research paper have summarized very nicely as an activity diagram (Figure 7).<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Recommendation: Figure 7 in the paper is an extremely useful activity diagram that shows the overall process in a compact form. <\/p>\n<cite><a href=\"https:\/\/ieeexplore.ieee.org\/stampPDF\/getPDF.jsp?tp=&amp;arnumber=9604729&amp;ref=aHR0cHM6Ly9zY2hvbGFyLmdvb2dsZS5jb20v\" target=\"_blank\" rel=\"noreferrer noopener\">Download paper with Figure 7 now<\/a><\/cite><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">The chapter structure also describes the step-by-step procedure, with the authors of the paper focusing on the following four.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>User needs<\/strong> - As in traditional RE, the guide begins with the users and the problem description. But then comes an examination of whether AI is a useful solution at all. Is AI a viable solution, e.g. if there is only limited information or data? If so, the use of AI should be classified: Is it about automation or generation? In particular: Will the result be good enough (precision vs. recall)? The literature review revealed that many teams had not investigated the latter thoroughly enough at this stage.<\/li>\n\n\n\n<li><strong>Data acquisition<\/strong> - The issues to be considered here are known, but a structured approach is important. These include issues such as data protection, data security and completeness, particularly in order to avoid distortions. Also important: if problems arise, it should be possible to trace them back to data, characteristics or designations. Checklists also help here, for example the \"five essential characteristics\" of accuracy, completeness, consistency, credibility and timeliness.<\/li>\n\n\n\n<li><strong>Explainable and trustworthy AI<\/strong> - User expectations must be managed. Too much trust in AI can lead to problems, which <a href=\"https:\/\/www.nzz.ch\/technologie\/peinlicher-fehler-bei-der-vorstellung-von-googles-konkurrenz-zu-chat-gpt-ist-jetzt-endlich-klar-dass-ein-chatbot-nicht-zur-recherche-taugt-ld.1725271\" target=\"_blank\" rel=\"noreferrer noopener\">the press a lot at the moment<\/a> in relation to chatbots like <a href=\"http:\/\/www.se-trends.de\/en\/christmas-se-with-openai\/\">ChatGPT<\/a> discussed. An important tool for trust is explanation: AI systems should be able to explain to users how they arrived at the result. The paper cites a lot of existing research and concrete recommendations for the development of AI systems. However, these guidelines are still often ignored.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Google PAIR steps not examined by the authors, but nevertheless central to RE4AI:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Mental models<\/strong> - A mental model describes our understanding of how something works. With AI, it is important that these change over time. Users are often unaware of this and are irritated when the system suddenly produces a different result a week later. If, on the other hand, users understand this, they can actively help to improve the system.<\/li>\n\n\n\n<li><strong>Feedback and control<\/strong> - This aspect goes hand in hand with the previous one: If we give users of AI systems the opportunity to provide feedback, we may be able to drastically improve the results. We therefore need to think about appropriate mechanisms.<\/li>\n\n\n\n<li><strong>Mistakes and benevolent failure<\/strong> - What exactly is an error? In AI systems, an answer with low confidence can quickly be perceived as an error. It is therefore important to first define what an error is in the context of AI systems. It should also be decided how to proceed after an error has occurred.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Recommendations for RE4AI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The authors found many shortcomings in the development of systems that use AI. By combining these shortcomings with the identified \"best practices\", they make six specific recommendations:<\/p>\n\n\n\n<div style=\"background: #7eb13d; padding: 20px; border-radius: 10px; color: white; font-size: 120%; margin-bottom: 20px;\"><span style=\"font-size: 300%; float: left; vertical-align: middle; font-weight: bold; line-height: 1em;\">1.<\/span>Questioning whether AI is needed at all<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Many problems only benefit from AI to a limited extent. The authors recommend planning a checkpoint during development at which the following questions must be answered: What problem does the system solve? Why is it needed? How will it be used? Does AI add value to the previous points? Does the organization have the resources to develop an AI product?<\/p>\n\n\n\n<div style=\"background: #7eb13d; padding: 20px; border-radius: 10px; color: white; font-size: 120%; margin-bottom: 20px;\"><span style=\"font-size: 300%; float: left; vertical-align: middle; font-weight: bold; line-height: 1em;\">2.<\/span>Systematically supplement existing specifications for the use of AI<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Many AI systems have problems because the specifications simply do not cover the aspects relevant to AI, such as data collection, data protection, etc. The authors recommend developing a reference system for AI systems that brings together all the requirements relevant to AI systems in a matrix. Until we have such a reference system, guidelines such as Google PAIR in RE4AI can serve us well.<\/p>\n\n\n\n<div style=\"background: #7eb13d; padding: 20px; border-radius: 10px; color: white; font-size: 120%; margin-bottom: 20px;\"><span style=\"font-size: 300%; float: left; vertical-align: middle; font-weight: bold; line-height: 1em;\">3.<\/span>Select a suitable modeling language<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The authors found that a suitable modeling language can be very effective for the development of AI systems. Two of the studies examined suggested developing a separate modeling language for AI4RE. Alternatives already exist today, but classic modeling languages such as <a href=\"http:\/\/www.se-trends.de\/en\/day\/sysml\/\">SysML<\/a> only suitable to a limited extent.<\/p>\n\n\n\n<div style=\"background: #7eb13d; padding: 20px; border-radius: 10px; color: white; font-size: 120%; margin-bottom: 20px;\"><span style=\"font-size: 300%; float: left; vertical-align: middle; font-weight: bold; line-height: 1em;\">4.<\/span>Establish communication between requirements engineer, data scientist and machine learning specialist <\/div>\n\n\n\n<p class=\"wp-block-paragraph\">In practice, communication between these three roles does not work well, partly because the responsibilities are not clearly delineated. The authors recommend structuring this accordingly and working with a collaboration platform.<\/p>\n\n\n\n<div style=\"background: #7eb13d; padding: 20px; border-radius: 10px; color: white; font-size: 120%; margin-bottom: 20px;\"><span style=\"font-size: 300%; float: left; vertical-align: middle; font-weight: bold; line-height: 1em;\">5.<\/span>Systematically evaluate and calculate trade-offs<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">With AI applications, there are rarely yes\/no decisions. Many factors flow into the overall result. We need to take a systematic approach here. This usually boils down to a quantitative evaluation with corresponding weightings, as recommended by PAIR. There are countless criteria. Which is better: a more accurate algorithm or one that explains the results better? Are the disadvantages of false negatives significantly higher than false positives, or are they the same? The trade-off between <a href=\"https:\/\/en.wikipedia.org\/wiki\/Precision_and_recall\" target=\"_blank\" rel=\"noreferrer noopener\">Precision and recall<\/a> is particularly important for AI applications.<\/p>\n\n\n\n<div style=\"background: #7eb13d; padding: 20px; border-radius: 10px; color: white; font-size: 120%; margin-bottom: 20px;\"><span style=\"font-size: 300%; float: left; vertical-align: middle; font-weight: bold; line-height: 1em;\">6.<\/span>Decide which methods and techniques should replace existing ones and which should not<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Most AI projects start with existing systems and functioning development processes. Many things work. Therefore, we need to be systematic and only start where RE4KI requires new approaches, for example because we can collect data in new ways. To do this, the authors suggest creating a taxonomy that lists all the different techniques and methods required when building AI systems. Until we have this, we should proceed systematically and ensure that our adaptations to methods and techniques achieve positive results.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion: a lot to do<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Today, we still have many gaps in the development of AI-based products. These will certainly be eliminated in the coming years. To develop such products today, it helps to be aware of these gaps. The authors have also pointed to Google PAIR as a powerful tool for RE4AI. The recommendations will help you to safely cross this minefield in your own environment - and to inspire the market with impressive, AI-based products.<\/p>\n\n\n\n<p class=\"has-text-align-right wp-block-paragraph\">Photo by <a href=\"https:\/\/unsplash.com\/@kobuagency?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\">KOBU Agency<\/a> on <a href=\"https:\/\/unsplash.com\/photos\/7okkFhxrxNw?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\">Unsplash<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Last week I reported on RE4AI, Requirements Engineering for Artificial Intelligence. Among other things, it dealt with the limitations and challenges of RE4AI. All well and good, but how do we approach the whole thing in practice? One possible approach is Google PAIR, which is presented below.<\/p>","protected":false},"author":1,"featured_media":4687,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[110,518],"tags":[100,656,429,654],"class_list":["post-4675","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-anforderungen","category-kuenstliche-intelligenz","tag-anforderungen","tag-google-pair","tag-machine-learning","tag-re4ai"],"_links":{"self":[{"href":"https:\/\/www.se-trends.de\/en\/wp-json\/wp\/v2\/posts\/4675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.se-trends.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.se-trends.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.se-trends.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.se-trends.de\/en\/wp-json\/wp\/v2\/comments?post=4675"}],"version-history":[{"count":0,"href":"https:\/\/www.se-trends.de\/en\/wp-json\/wp\/v2\/posts\/4675\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.se-trends.de\/en\/wp-json\/wp\/v2\/media\/4687"}],"wp:attachment":[{"href":"https:\/\/www.se-trends.de\/en\/wp-json\/wp\/v2\/media?parent=4675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.se-trends.de\/en\/wp-json\/wp\/v2\/categories?post=4675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.se-trends.de\/en\/wp-json\/wp\/v2\/tags?post=4675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}