{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\nimport PIL # We will import the packages at \"use-time (just for this kernel)\n\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# <center style=\"font-family: consolas; font-size: 22px; font-weight: bold;\">Unlocking the promise: AI Ethics in Action</center>\n<p><center style=\"color:#949494; font-family: consolas; font-size: 15px;\"> Kaggle AI Report</center></p>\n\n***","metadata":{}},{"cell_type":"markdown","source":" \n# <a></a> <h2 style=\"color:white;background-color:#f04a00;padding:3%;border-radius:50px 50px;font-size:18px;text-align:center\"><b>Table of Contents</b></h2><br>\n\n\n  <ul style=\"list-style-type: none; padding-left: 0;\">\n    <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section1_introduction\" target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #f39c12;font-size:18px;\"><b>Section 1 Introduction</b></a>\n    </li>\n    <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section2_SA\" target=\"_self\" rel=\" noreferrer nofollow\"style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #2980b9;font-size:18px;\"><b>Section 2 Research Impact Assessment</b></a>\n    </li>\n    <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section7_reference2\" target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #27ae60;font-size:18px;\"><b>Section 3 Advancement Of AI Ethics</b></a>\n    </li>\n     <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section6_Con\"target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #A020F0;font-size:18px;\"><b>Section 4 Conclusion</b></a>\n    </li>\n       <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section_8_reference\"target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #FF0000;font-size:18px;\"><b>Reference</b></a>\n    </li>\n      <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section9_annexure\"target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #964B00\n;font-size:18px;\"><b>Annexure</b></a>\n    </li>\n  </ul>\n\n","metadata":{}},{"cell_type":"markdown","source":"# <a id= \"section1_introduction\"> </a><h2 style=\"color:white;background-color:#f04a00;padding:3%;border-radius:50px 50px;font-size:18px;text-align:center\"><b>Section 1 Introduction</b></h2>\n  <div style=\"padding: 10px; border: 1px solid #ccc; background-color: #f5f5f5; border-radius: 5px;\">\n\n  <ul style=\"list-style-type: none; padding-left: 0;\">\n    <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section1introduction\" target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #f39c12;font-size:18px;\"> <b>Introduction</b></a>\n    </li>\n    <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section2_introduction\" target=\"_self\" rel=\" noreferrer nofollow\"style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #2980b9;font-size:18px;\"><b>AI Ethics vs Responsible AI</b> </a>\n    </li>\n      <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section3_introduction\"target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #27ae60;font-size:18px;\"><b>The Challenges of Building Ethical AI</b></a>\n    </li>\n  </ul>\n</div>\n","metadata":{}},{"cell_type":"markdown","source":"<a id=\"section1introduction\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #f39c12;font-size:18px\"><b>Introduction</b></a>\n","metadata":{}},{"cell_type":"markdown","source":"\n<div style=\"font-size:16px\"> \n    \nAI, or <span style=\"color:blue\"><b>artificial intelligence</b></span> , is a fast developing science that focuses on the <span style=\"color:blue\"><b>building of intelligent robots</b></span>  that are capable of doing activities that would typically need the intelligence of a human being. Some examples of these tasks include <span style=\"color:blue\"><b>visual perception, speech recognition, decision-making, and natural language processing.</b></span>  In recent years, there has been substantial development achieved in the field of artificial intelligence (AI), which has the potential to alter many parts of society, including education, transportation, and medical care, among others. \n\nThe fact that many innovative AI tools have various constraints that are not properly understood, yet which potentially lead to harmful uses whether <span style=\"color:blue\"><b>intentionally or accidentally, is a constant challenge with these technologies</b></span>. Those that contribute to the development of AI must, as a result, increase their participation in ethical procedures in order to guarantee the publication and release of AI tools in a responsible manner. Given the scope of artificial intelligence, which has many uses that are pervasive in society and pose a substantial danger of possible harm and misuse, this is an essential and vital step to take.\n\nIn this report, we provide a <span style=\"color:blue\"><b>high-level introduction to AI ethics</b></span> , outlining its evolution and current state. We also considered bigger issues, such as who should be held responsible for the consequences of AI use, both individually and collectively. We want to present the <span style=\"color:blue\"><b>philosophical, legal, sociological, and technological dimensions of AI ethics</b></span>  and their interplay with one another. When we think about AI from all these angles, we gain a better understanding and are better prepared to deal with the problems that may arise as a result of its widespread use in <span style=\"color:blue\"><b>fields like medicine, law, security, and more.</b></span>\n\nThoughtful AI development is essential if it is to fulfill its potential to improve people's lives and the world at large. First, we'll try to grasp the <span style=\"color:blue\"><b>distinction between Ethical AI and Responsible AI</b></span>  so that we can move forward with our discussion of the ethics of artificial intelligence. Many people use the two terms interchangeably, but our research has shown that there are important distinctions between them. In this report, we'll outline those distinctions before diving into the actual issues and concerns surrounding ethical artificial intelligence.  Ethical and responsible AI discussions and rules are meant to aid data scientists in creating technology that is <span style=\"color:blue\"><b>good to society, secure, and accountable.</b></span>\n<br><br>\nThe notebook is further divided into many sections where Section 2 talks about the Research Assessment done on the research paper published in the area of AI Ethics. Section 3 briefs about the concerns of applying AI Ethics in practice while Section 4 describes in depth the advancements done at the different levels of the society with their initiatives. Section 5 concludes the paper with the way forward vision in the AI Ethics domain.\n</div>\n\n    \n","metadata":{}},{"cell_type":"markdown","source":"<a id=\"section2_introduction\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #2980b9;font-size:18px;\"><b>AI Ethics vs Responsible AI</b></a>","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:18px;\"><b>What is “Ethical AI”?</b></div>","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nThe goal of the discussion surrounding ethical AI is to ensure that <span style=\"color:blue\"><b>it causes no damage</b></span>, while also keeping tabs on the potential downsides of the technology. This kind of self-regulation actively promotes the <span style=\"color:blue\"><b>appropriate use and development of AI technology</b></span>, and it continues to change and evolve the industry. The phrase<span style=\"color:blue\"><b> \"Ethical AI\"</b></span> is commonly used to refer to two distinct but intertwined ideas:<br>\n<span style=\"color:red\"><b>(a) ethical considerations in the creation and use of AI technology, and </b></span><br>\n<span style=\"color:red\"><b>(b) ethical decision-making by AI systems. </b></span><br>\nWhen it comes to AI ethics, it's important to consider how the technology could affect people and communities.\n</div>","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:18px;\"><b>What is Responsible AI?</b></div>","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \n <span style=\"color:blue\"><b> Ethics and the weight of responsibility</b></span> that comes with creating AI must be taken into account whenever the topic is broached. <span style=\"color:blue\"><b> Practicing responsible AI</b></span> means making sure the tools we develop are free from bias and can be relied upon by the public. It keeps working to implement the <span style=\"color:blue\"><b> moral concerns and issues surrounding ethical AI</b></span> into working prototypes of AI tools and services.\n\nThus, as per our knowledge inference, <span style=\"color:blue\"><b> AI Ethics</b></span>[5] could be considered as the framework for addressing the ethical concerns for AI utilization and its impact on the <span style=\"color:blue\"><b> socio economic system</b></span> while Responsible AI deals with how the ethical AI could be <span style=\"color:blue\"><b> incorporated in practice</b></span> for the development of the AI systems.</div>","metadata":{}},{"cell_type":"markdown","source":"<a id=\"section3_introduction\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #27ae60;font-size:18px;\"><b>The Challenges of Building Ethical AI</b></a>","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nAI systems begin with data at the  <span style=\"color:blue\"><b>most fundamental level</b></span>. The first step in allowing the ethical and responsible use of AI and ML is to establish confidence in the  <span style=\"color:blue\"><b>underlying data and data processes</b></span>. The necessity of humans-in-the-loop is highlighted in the more technical areas of model creation. The development of responsible AI is influenced significantly by  <span style=\"color:blue\"><b>human thinking and environment.</b></span>IBM AI Ethics[3] talks about 5 pillars to be considered for bringing and developing Ethical AI while [4] talks about Explainability, Accuracy, Bias pillars for Ethical AI.\n<br>\n\nBecause of the inherent human engagement and context applied to the AI development process, ethical considerations are made at each level of the model creation process to ensure the  <span style=\"color:blue\"><b>integrity and usefulness of AI technology</b></span> and final products. The challenges being faced while applying AI Ethics in practice are also addressed by some authors as the pillars of AI Ethics. Thus following we are briefing these 5 challenges in detail.\n\n <span style=\"color:red\"><b>1. Explainability:<br></b></span>\n    \nOften problems occur during the earlier stages of conceptualization, research, and design of AI models.  Understanding the rationale behind an AI algorithm’s results (explainability) and the algorithm’s accuracy and consistency (robustness) in producing results contributes to building responsible models.\n\nDiscrepancies may arise at any step in the training data, model, or manufacturing process. You can enhance your models if you understand how and why they do what they do. Furthermore, promptly updating and correcting differences may lead to a more ethical, responsible, and simplified process for future builds and products.\n\nAssuming all AI technology firms continue to value explainability and robustness as concepts. In such situation, it may continue to increase public trust in AI as a relevant and safe technology to develop.\n     \n <span style=\"color:red\"><b>2. Bias:<br></b></span>\n\n <span style=\"color:blue\"><b>Annotating or labeling data</b></span> is a necessary step in machine learning. Machines assimilate on what we tell them. However, the way we define data is subjective. This is when biases such as  <span style=\"color:blue\"><b>historical, measurement, and modeling bias</b></span> might come into picture.\n\n <span style=\"color:red\"><b>2.1 Historical bias:<br></b></span>\n    \n This form of bias may be  <span style=\"color:blue\"><b>found in prior data pools</b></span> used to develop the tools, and it is more common among disadvantaged or marginalized populations, categorizations, or data sets.\n\n <span style=\"color:red\"><b>2.2 Measurement or modeling bias:<br></b></span>\n    \n Measurement bias has two major components: <br>\n  <span style=\"color:blue\"><b> 1. mistakes that are naturally woven into the machine learning process based on previous failures</b><br>\n <span style=\"color:blue\"><b>2. human-based errors in human data collecting.</b></span><br>\n\nTeams must be aware of  <span style=\"color:blue\"><b>accurate, equitable, and high-quality data representation</b></span> – specifically, whether data in the sample over- or under-represents a given group within the data collection. To ensure the integrity and correctness of the data, data must be consistently represented in the same manner across the dataset.\n\n <span style=\"color:red\"><b>3. Robustness<br></b></span>\n\nThe goal of machine learning training and testing is to assess and  <span style=\"color:blue\"><b>improve your model’s accuracy</b></span>. <br>\n      \n  <span style=\"color:red\"><b>3.1 Quality of Data<br></b></span>\n      \n  A well-documented development and testing process can help mitigate and correct unintended risks from inaccurate predictions. If errors occur, having highly accurate training data can help assess how likely the errors are.\n\nMachine learning enables machines to learn independently, but a machine can’t distinguish between good and bad data. Machines  <span style=\"color:blue\"><b>must learn</b></span> from a  <span style=\"color:blue\"><b>training dataset or input data</b></span>, and the quality of that data is directly proportional to a machine learning model’s success.\n\nSo, if a machine learning model delivers inaccurate or irrelevant results, the first step in troubleshooting is evaluating data quality.\n\nSubpar data quality is a critical problem that engineers can’t overlook.  <span style=\"color:blue\"><b>Poor data quality</b></span> can create data cascades that cause adverse downstream effects. For example, these errors can work their way down the development process. These can jeopardize the quality of the decision-making process around refinement and design.\n\nThis is why  <span style=\"color:blue\"><b>data quality</b></span> is vital to ML performance and the value it provides to the operation where it’s deployed.<br>\n      \n\n <span style=\"color:red\"><b>3.2 Quantity of data<br></b></span>\n\n      \n <span style=\"color:blue\"><b>Insufficient data</b></span> sets may not accurately reflect all of the qualities that need to be accounted for in a model to produce a consistent outcome. Data must be as complete as possible before moving to the next part of the production process. Ideally, datasets should represent  <span style=\"color:blue\"><b>all aspects of operating conditions</b></span> in a balanced way.\n\n<b style=\"color:red\"> 4. Transparency:</b><br>\n      \nAny feature of a model should be <span style=\"color:blue\"><b>scrutinized</b></span>. Is it feasible to understand the <span style=\"color:blue\"><b>model's background?</b></span> Who built it, what data was utilized, what <span style=\"color:blue\"><b>algorithms</b></span>, what programs were used, who approved it, and who validated it? All of these model traits and information should be available. Like when you buy food, there is a label on them that gives the nutritional information, when and where it was created, and other information. Similarly, you should be able to quickly discover the model's details.\n\n<b style=\"color:red\"> 5. Privacy:</b><br>\n\nPrivacy[10] is often cited as one of the guiding principles of Ethical AI. This is evocative of the need to apply <span style=\"color:blue\"><b>global privacy and data protection framework's</b></span> general privacy principles to AI/ML systems that handle personally identifiable information. Limiting data collection, guaranteeing data quality, specifying data usage, <span style=\"color:blue\"><b>setting limits on data reuse</b></span>, holding data users accountable, and inviting them to participate are all parts of this process. \n \n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/7 images.png\")\n\n","metadata":{"_kg_hide-input":false,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# <a id=\"section2_SA\"></a><h2 style=\"color:white;background-color:#f04a00;padding:3%;border-radius:50px 50px;font-size:18px;text-align:center;\"><b>Section 2 Research Impact Assessment </b></h2>\n\n  <ul style=\"list-style-type: none; padding-left: 0;\">\n    <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section1_data_acquisition\" target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #f39c12;font-size:18px;\"><b>Data Acquisition Source and Dataset Info </b></a>\n    </li>\n    <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section1_keyword\" target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #2980b9;font-size:18px;\"><b>keyword analysis </b></a>\n    </li>\n    <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section2_journal\" target=\"_self\" rel=\" noreferrer nofollow\"style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #27ae60;font-size:18px;\"><b>Top Journals</b></a>\n    </li>\n    <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section3_countries\" target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #A020F0;font-size:18px;\"><b>Countries Analysis</b></a>\n    </li>\n       <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section4_organizations\" target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #FF0000;font-size:18px;\"><b>Organizations Analysis</b></a>\n    </li>\n       <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section5_authors\"target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #000000;font-size:18px;\"><b>Authors Analysis </b></a>\n    </li>\n      <li style=\"margin-bottom: 5px;\">\n      <a href=\"#section6_citation_authors\"target=\"_self\" rel=\" noreferrer nofollow\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #f39c12;font-size:18px;\"><b>Citation Analysis </b></a>\n    </li>\n  </ul>\n\n","metadata":{}},{"cell_type":"markdown","source":"<a id=\"section1_data_acquisition\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #f39c12;font-size:18px;\"><b>Data Acquisition Source and Dataset Info</b> </a>\n    ","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/graphs/year frequency.png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\">The dataset provided by the <span style=\"color:blue\"><b>Kaggle Competition</b></span> is comprised of a variety of topic papers belonging to the competition's various categories. After extracting the AI Ethics papers from the provided Kaggle dataset, we discovered that only <span style=\"color:blue\"><b>nine papers</b></span> pertained to this subject. Given in <span style=\"color:blue\"><b>Annexure 1</b></span>, the relevant preprocessing of the dataset to derive the AI Ethics papers from the Kaggle dataset is described. Due to the time constraints, we have chosen to create our own dataset using a single academic datasource in order to expand the research's scope and reduce the number of sources used to gather papers. This will help us identify the <span style=\"color:blue\"><b>current research trend in AI ethics</b></span>. Therefore, we have chosen the most popular Academic Database, Web of Science, to compile AI Ethics research papers. The search term <span style=\"color:blue\"><b>(\"AI Ethics\")</b></span> was used to compile the relevant papers for our topic, and we searched only the titles section of the papers. Thus, using the aforementioned search query, we were able to obtain sixty AI Ethics papers, which we used to compile our dataset for analysis.  All research evaluations performed in this segment utilize only these 60 articles from our dataset.</div>\n","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"><h4>📌 Import libraries/module.</h4></div>\n","metadata":{"_kg_hide-input":true,"_kg_hide-output":true}},{"cell_type":"code","source":"#importing libraries\nimport pandas as pd\nimport numpy as np\nimport scipy.stats as st\nimport os\nimport matplotlib.pyplot as plt\nimport seaborn as sns","metadata":{"_kg_hide-output":true,"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 reading writeup dataset.</h4></div>\n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"#reading writeup dataset\ndataset_writeup = pd.read_csv(\"/kaggle/input/2023-kaggle-ai-report/kaggle_writeups_20230510.csv\")","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 understanding Data.</h4></div>\n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"\ndataset_writeup\n","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<!-- #Competition Citation\n\n@misc{2023-kaggle-ai-report,\n\n    author = {Bojan Tunguz, Dieter, Heads or Tails, Karnika Kapoor, Paul Mooney, Phil Culliton, Rob Mulla, Sanyam Bhutani, Will Cukierski},\n    \n    title = {2023 Kaggle AI Report},\n    \n    publisher = {Kaggle},\n    \n    year = {2023},\n    \n    url = {https://kaggle.com/competitions/2023-kaggle-ai-report}\n} -->","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 As we can see this dataset belongs to kaggle competition and it is out of our domain respectively .</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 importing the json data file .</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"def reading_file():\n    with open('/kaggle/input/2023-kaggle-ai-report/arxiv_metadata_20230510.json', 'r') as f:\n        for line in f:\n            yield line","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 Reading the contents from dataset .</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"import json\nread=reading_file()\nfor dataset_read in read:\n    for k, v in json.loads(dataset_read).items():\n        print(f'{k}: {v}')\n    break","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"><h4> 📌 Feature extraction.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"titles, abstracts, versions, categories, doi, authors_parsed = [], [], [], [], [], []\n\nread = reading_file()\n# loop over all dataset\nfor dataset_read in read:\n    # extract single dataset\n    paper_dict = json.loads(dataset_read)\n    version = paper_dict.get('versions')\n    try:\n        versions.append(version[-1]['created']) # choose created as the most recent version\n        titles.append(paper_dict.get('title'))\n        abstracts.append(paper_dict.get('abstract'))\n        categories.append(paper_dict.get('categories'))\n        doi.append(paper_dict.get('doi'))\n        authors_parsed.append(paper_dict.get('authors_parsed'))\n    except:\n        pass","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 converting json data into dataframe for better analysis </h4> .</div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"dataset_read = pd.DataFrame({\n    'titles': titles,\n    'abstracts': abstracts,\n    'categories': categories,\n    'versions': versions,\n    'doi': doi,\n    'authors_parsed': authors_parsed\n})\ndataset_read.head()\n\n# reduce memory constraints\ndel titles, abstracts, versions, categories, doi, authors_parsed","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 Reading the first 5 contents from dataset .</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"dataset_read.head()","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"><h4> 📌 pre-processing the contents from dataset for abstracts and latest version for extracting month and  year .</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"# clean abstracts\ndataset_read['abstracts'] = dataset_read['abstracts'].apply(lambda x: x.replace(\"\\n\",\"\"))\ndataset_read['abstracts'] = dataset_read['abstracts'].apply(lambda x: x.strip())\n\n# extract date time info \ndataset_read['DateTime']= pd.to_datetime(dataset_read['versions'])\ndataset_read['month'] = pd.DatetimeIndex(dataset_read['DateTime']).month\ndataset_read['year'] = pd.DatetimeIndex(dataset_read['DateTime']).year\n\n# clean authors\ndataset_read['authors_parsed']= dataset_read['authors_parsed'].apply(lambda authors_parsed:[(\" \".join(a)).strip() for a in authors_parsed])\ndataset_read.head()","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 pre-processing the contents from dataset for latest version to extract date.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"dataset_read['date'] = pd.DatetimeIndex(dataset_read['DateTime']).date\n\n","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"dataset_read.head()","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 checking the datset information as the changes.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"dataset_read.info()","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 checking the column indexes.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"dataset_read.columns\n","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 checking the data type for each column.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"dataset_read.dtypes\n","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> 📌<h4> data cleaning and checking duplicacy of data is present or not.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"dataset_read.nunique\n","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 extracting all the publication happened per year.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"dataset_read['year'].value_counts()","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 plotting the graphs per year.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"plt.figure(figsize=(20,5));\nsns.barplot(x=dataset_read['year'].value_counts().head(25).index,palette='winter_r',y=dataset_read['year'].value_counts().head(25).values)\nplt.xticks(rotation = 45)\nplt.xlabel(' Year')\nplt.ylabel('Number of publication each year')\nplt.title('publication per years')","metadata":{"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 attribution selection for better analysis for categories and formatting abstracts</h4> </div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"dataset_read['num_categories'] = dataset_read['categories'].apply(lambda x:len(x)).astype('int')\ndataset_read['num_words_abstract'] = dataset_read['abstracts'].apply(lambda x:len(x.split())).astype('int')\ndataset_read['num_authors'] = dataset_read['authors_parsed'].apply(lambda x:len(x)).astype('int')\ndataset_read.head()","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 Assuming AI Ethics may come under this categories.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"ai_list=['cs.AI','cs.LG','stat.ML','cs.CY']\ndataset_read['is_ai_ethics'] = dataset_read['categories'].apply((lambda x: any(ele in x for ele in ai_list)==True))\ndataset_read = dataset_read[dataset_read['is_ai_ethics']==True]\ndataset_read.head","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌dropping all the un-necessaries rows as per the problem statement.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"index_year = dataset_read[ (dataset_read['year'] <=2021)].index\ndataset_read.drop(index_year , inplace=True)\ndataset_read.head(15)","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"dataset_read.info()","metadata":{"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌Checking the available data after deleting the data.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"><h4> 📌searching ethics word in titles present in the paper.</h4></div>\n \n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"\ndataset_titles = dataset_read[dataset_read['titles'].str.contains('ethics')]\ndataset_titles","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌searching \"ethics\" word in abstract present in the paper.</h4></div>\n","metadata":{"_kg_hide-input":true}},{"cell_type":"code","source":"\ndataset_titles = dataset_read[dataset_read['abstracts'].str.contains('ethics')] \ndataset_titles","metadata":{"_kg_hide-input":true,"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\"> <h4>📌 Please note this Scientometric analysis has been analysed software.</h4></div>\n","metadata":{"_kg_hide-input":true}},{"cell_type":"markdown","source":"<a id=\"section1_keyword\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #2980b9;font-size:18px;\"><b>Keyword Analysis</b> </a>\n    ","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌Keywords Analysis</h4></div>","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/keywords .png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \n\nAccording to the number of documents in our dataset, the keywords have been extracted and presented in the form of a graph to analyze the frequent keywords used in the AI Ethics research papers. As per the visualization, we can see that the term “artificial intelligence” is having a bigger circle followed by the term “ethics” and “ai ethics”.\n</div>","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌 we filtered the top 29 most frequently used keywords</h4></div>","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/selected keywords 29.png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nIn this visualization you can see that we have removed the keywords that are not  relevant  to “AI Ethics” such as  “Buddishm”,”future”,”text” and we have extracted the keywords and presented in the form of a graphs for better analyzation of frequently used keywords in the field of “AI Ethics”</div>","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"><h4> 📌  Frequency of occurence of keywords 29</h4> </div>\n\n","metadata":{}},{"cell_type":"code","source":"import PIL # We will import the packages at \"use-time (just for this kernel)\nPIL.Image.open(\"/kaggle/input/graphs/occurrences vs. keyword 29 .png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nThe above graphical visualization provides the same statistics which have been presented in the below bar graph. The bar graph elucidates the occurrences of the keywords identified in various papers that are published in journals and conference Proceedings by different Authors.\n</div>","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌 we filtered the top 16 most frequently used keywords</h4></div>","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/selected keywords 14.png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nIn this visualization you can see that we have presented the keywords that are  domain specific to “AI Ethics” such as  “AI Ethics”,”Ethics Guildlines” and presented in the form of a graphs for better analyze of most frequently used keywords in the field of “AI Ethics”\n</div>\n","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"><h4> 📌  Frequency of occurence of keywords 16</h4> </div>\n\n","metadata":{}},{"cell_type":"code","source":"import PIL # We will import the packages at \"use-time (just for this kernel)\nPIL.Image.open(\"/kaggle/input/graphs/occurrences vs. keyword.png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nThe above graphical visualization provides the same statistics which have been presented in the below bar graph. The bar graph elucidates the most frequently occurred keywords identified in various papers that are used by various Authors.</div>\n","metadata":{}},{"cell_type":"markdown","source":"<a id=\"section2_journal\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #27ae60;font-size:18px;\"><b>Top Journals</b> </a>\n ","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌 Journals</h4></div>\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/journals sources.png\")","metadata":{"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nAccording to the number of documents in our dataset, the Source Of Journals have been extracted and presented in the form of a graph to analyze the highest number of published papers in the specific journals for  AI Ethics research papers. As per the visualization, we can see that the term “Science and Engineering  intelligence” is having a bigger circle followed by the term “IEEE Technology and Society ”.\n</div>","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌 Top Journals in AI Ethics </h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/jornals.png\")","metadata":{"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nIn the subsequent graphs, we have depicted the strength of the links between the sources of journals in a year-wise manner, including other journals as well. Notably, there is a larger cluster with a pink outline on the outer circle, indicating that this cluster represents the most cited journals among all the sources. The pink outline highlights the significance of this cluster in terms of citations, suggesting that these journals have received a higher number of references compared to others.</div>","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌  Frequency of occurence of sources and journals </h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/graphs/sources and journals.png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nThe above graphical visualization provides the same statistics which have been presented in the below bar graph. The bar graph elucidates the most prominent journal sources\n</div>\n","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌  Frequency of papers published in each journal</h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/graphs/paper count based on publishers.png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nIn addition, we have provided the statistical Representation for occurrence of papers published in each journal on the basis of the publishers.As per the visualization,it  indicates that \"Springer\" has made a significant contribution to the conference with a large volume of published papers.\n</div>","metadata":{}},{"cell_type":"markdown","source":"<a id=\"section3_countries\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #A020F0;font-size:18px;\"><b>countries Analysis </b></a>\n  ","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌 Countries that worked on AI Ethics </h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/countries.png\")","metadata":{"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nAccording to the number of documents in our dataset, the countries have been extracted and presented in the form of a graph to analyze the contribution of countries at the forefront of research, advancements and initiatives  in the field of “AI Ethics”.As per the visualization, we can see that the country “U.S.A” is having a bigger circle followed by the term “Germany” and “England”.</div>","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌 Top Countries that worked on AI Ethics </h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/selected countries author.png\")","metadata":{"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nIn this visualization, we have removed those countries “Hungray”,”Japan” who has contributed very less as compared to other prominent countries  “U.S.A”  that worked together  in field of “AI Ethics”.</div>\n","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌  Frequency of occurence of countries </h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/graphs/countries.png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nThe above graphical visualization provides the same statistics which have been presented in the below bar graph.The bar graphs represent the occurrence of the countries that are actively engaged in AI Ethics research and initiatives.\n</div>\n","metadata":{}},{"cell_type":"markdown","source":"<a id=\"section4_organizations\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #FF0000;font-size:18px;\"><b>Organization Analysis</b> </a>\n  ","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"><h4> 📌 Organizations that worked on AI Ethics </h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/organizations.png\")","metadata":{"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nAccording to the number of documents in our dataset, the organizations have been extracted and presented in the form of a graph to analyze the initiatives of various organizations  in the field of “AI Ethics”.As per the visualization, we can see that the country University Tubingen” is having a bigger circle followed by the term “British  LIB” and “Digital Catapult”.\n</div> \n","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"><h4> 📌 Top Organizations that worked on AI Ethics </h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/organiztions 3.png\")","metadata":{"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nIn this visualization, we have removed those organizations“Informational Technology university punjab” who has contributed very less as compared to other prominent organizations  “University Tubingen ”  that worked together  in field of “AI Ethics”.\n</div>\n","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌  Frequency of occurence of Organizations </h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/graphs/organizations .png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px;\">The above graphical visualization provides the same statistics which have been presented in the below bar graph.The bar graphs represent the contributions of the Organizations  that are actively engaged in AI Ethics research and initiatives.</div>\n\n","metadata":{}},{"cell_type":"markdown","source":"<a id=\"section5_authors\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #000000;font-size:18px;\"><b>Authors Analysis</b></a>\n","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌Authors that worked on AI Ethics</h4> </div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/authors.png\")","metadata":{"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\">According to the number of documents in our dataset, the Authors have been extracted and presented in the form of a graph to analyze the networthy contributions of authors/ group of authors   in the field of “AI Ethics\".</div>","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌Authors that worked on AI Ethics</h4> </div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/Authors_image_justifications.png\")","metadata":{"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nIn this visualization, it has been indicating that contributions of various authors that came together to contribute in the field of “AI Ethics”. It is a part of above graphical visualization graphs as we just explore the smaller circles in above visualization</div>\n","metadata":{}},{"cell_type":"markdown","source":"<a id=\"section6_citation_authors\" style=\"text-decoration: none; color: #333; display: block; padding: 5px; border-left: 4px solid #f39c12;font-size:18px;\"><b>Citation Analysis</b> </a>\n  ","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌 citation Authors that worked on AI Ethics </h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/citations.png\")","metadata":{"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nAccording to the number of documents in our dataset, the citations has been extracted and presented in the form of a graph to analyze the networthy contributions of research paper that are appreciated and being referenced to find new findings in the field of “AI Ethics”. </div>\n","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"> <h4>📌 Top citation Authors that worked on AI Ethics </h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/IMAGES/selected citations.png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nIn this visualization, we have removed those citation papers who contributions for new findings are  very less as compared to other prominent cited papers  that has been appreciated   in field of “AI Ethics”.</div>\n\n","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"><h4> 📌  Frequency of occurence of most citations cited by countries</h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/graphs/cited by country.png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nFrom the above graphical visualization we extracted the country of authors to provides the statistics which have been presented in the below bar graph.The bar graphs represent the significant  contributions of the citation cited by countries  that are actively appreciated their Research work  in the field of  AI Ethics research and initiatives.</div>\n\n","metadata":{}},{"cell_type":"markdown","source":"<div class=\"alert alert-block alert-info\" style=\"background-color:#D8BFD8;color:black;\"><h4> 📌  Frequency of occurence of Top cited Papers</h4></div>\n\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/graphs/top citation .png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \nThe above graphical visualization provides the same statistics which have been presented in the below bar graph.The bar graphs represent the significant  contributions of the citation  that are actively appreciated their Research work  in the field of  AI Ethics research and initiatives.\n</div>\n\n","metadata":{}},{"cell_type":"code","source":"# PIL.Image.open(\"/kaggle/input/images/IMAGES/ai ethics reference 2.png\")\n","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"\n# <a id=\"section7_reference2\"></a><h2  style=\"color:white;background-color:#f04a00;padding:3%;border-radius:50px 50px;font-size:18px;text-align:center;\"><b>Section 3 Advancement of AI Ethics Table of Contents</b></h2>","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> Despite the advancements in artificial intelligence, the concerns about the ethics and responsible AI were not given much focus. The terms <span style=\"color:blue\"><b>“Ethical AI”, “AI Ethics”, “Responsible AI”</b></span> are currently gaining much popularity from the past one decade. Due to evolving technology and the high-rate technology adoption has given rise to think on this perspective of the <span style=\"color:blue\"><b>artificial intelligence</b></span> for the benefit of the human society and the socio-economic concerns. There have been many incidents such as COMPAS[7], Amazon “Rekognition”[8], Deepfakes[9] that compel us to reconsider the development of artificial intelligence products in more sophisticated and <span style=\"color:blue\"><b>ethically responsible ways.</b></span>This section talks about the initiatives taken at the different levels of the society <span style=\"color:blue\"><b>(i.e. academic, government, industrial, etc.)</b></span> to develop artificial intelligence in an ethical and more responsible way.</div>\n","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> <span style=\"color:red\"><b>Initiatives taken by at the intergovernmental level\n:</b></span><br>\n    \n1. A High-Level Expert Group on Artificial Intelligence exists within the <span style=\"color:blue\"><b>European Commission</b></span>. This released its <span style=\"color:blue\"><b>\"Ethics Guidelines for Trustworthy Artificial Intelligence\"</b></span>[11] on April 8, 2019. A white paper on <span style=\"color:blue\"><b>quality and trust in artificial intelligence innovation</b></span>[12] was released on February 19, 2020, by the <span style=\"color:blue\"><b>European Commission's</b></span> Robotics and Artificial Intelligence Innovation and quality section.The Artificial Intelligence Act[13] was additionally recommended by the European Commission.<br>\n    \n2. An OECD AI Policy Observatory[14]  was created by the <span style=\"color:blue\"><b>OECD</b></span>.<br>\n    \n3. The Recommendation on the Ethics of Artificial Intelligence, the first international standard on AI ethics, was adopted by <span style=\"color:blue\"><b>UNESCO[15]</b></span> in 2021.</div>\n\n","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> <span style=\"color:red\"><b>Initiatives taken by various government level\n:</b></span><br>\n    \n1. The <span style=\"color:blue\"><b>Obama administration</b></span> created a Roadmap for AI Policy[16] in the US.Two notable white papers on the <span style=\"color:blue\"><b>implications and future of AI</b></span> were published by the Obama administration. The National Institute of Standards and Technology <span style=\"color:blue\"><b>(NIST)</b></span> was directed by the <span style=\"color:blue\"><b>White House</b></span> to start work on Federal Engagement of AI Standards[17] in 2019 in an executive letter known as the <span style=\"color:blue\"><b>\"American AI Initiative\"</b></span> (February 2019).\n\n2. A draft executive order on <span style=\"color:blue\"><b>\"Guidance for Regulation of Artificial Intelligence Applications\"</b></span> (\"OMB AI Memorandum\"), published by the Office of Management and Budget <span style=\"color:blue\"><b>(OMB)</b></span> in January 2020, was made public by the Trump Administration in the United States. The directive places a focus on the need to fund AI applications, increase public confidence in AI, lower obstacles to using AI, and maintain American AI technology's competitiveness in a global market. Although the necessity for <span style=\"color:blue\"><b>privacy concerns</b></span> is acknowledged, there is no additional information on enforcement. The emphasis and priority seem to be on <span style=\"color:blue\"><b>American AI technological advancements</b></span>. <span style=\"color:blue\"><b>Federal organizations</b></span> are even urged to employ the order to avoid any state laws and rules that a market may deem to be too onerous to follow[18].\n    \n3. A <span style=\"color:blue\"><b>20-Year Community Roadmap</b></span> for Artificial Intelligence Research in the US[19], published as a draft study by the <span style=\"color:blue\"><b>Computing Community Consortium</b></span> (CCC), provided input.\n\n4. <span style=\"color:blue\"><b>US officials</b></span> are counseled on the security implications of emerging technology, such as AI, by the <span style=\"color:blue\"><b>Center for Security and Emerging Technology</b></span>.\n    \n\n    \n5. The <span style=\"color:blue\"><b>OECD AI Principles[22]</b></span>, the Council of Europe's Report <span style=\"color:blue\"><b>\"Towards Regulation of AI Systems[21],\"</b></span> China's ethical guidelines for using AI, the <span style=\"color:blue\"><b>UNESCO [20] Recommendation</b></span> on the Ethics of AI [23], the High-Level Expert Group on AI established by the <span style=\"color:blue\"><b>European Commission</b></span>, and the <span style=\"color:blue\"><b>UNESCO Recommendation</b></span> on the Ethics of AI are some notable examples of responsible AI frameworks by public organizations.\n    \n6. The release of the <span style=\"color:blue\"><b>Model AI Governance Framework[24]</b></span> by Singapore's Personal Data Protection Commission, the extensive work on an AI Auditing Framework[25] by the <span style=\"color:blue\"><b>U.K. Information Commissioner's Office</b></span>, and the publication of a Guidance on the Ethical Development and Use of AI by <span style=\"color:blue\"><b>the Office of The Privacy Commissioner for Personal Data</b></span> of Hong Kong[26] all highlight the significant role that <span style=\"color:blue\"><b>privacy regulators</b></span> play in AI governance.\n","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> <span style=\"color:red\"><b>Initiatives taken at the academic level\n:</b></span><br>\n    \n1. The <span style=\"color:blue\"><b>University of Oxford</b></span> has three research institutions with a primary interest in AI ethics. The Future of<span style=\"color:blue\"><b> Humanity Institute</b></span> has two main areas of interest: <span style=\"color:blue\"><b>AI Governance[28] and AI Safety</b></span>[27].John Tasioulas is the director of the <span style=\"color:blue\"><b>Institute for Ethics in AI</b></span>, whose main objective is to advance AI ethics as a legitimate topic in contrast to related applied ethics fields. <span style=\"color:blue\"><b>The Oxford Internet Institute</b></span>, led by <span style=\"color:blue\"><b>Luciano Floridi</b></span>, focuses on the moral implications of current ICT and AI developments.\n\n\n2. <span style=\"color:blue\"><b>Joanna Bryson</b></span> co-founded the Centre for Digital Governance at the <span style=\"color:blue\"><b>Hertie School</b></span> in Berlin to do study on moral and technological issues.\n\n    \n3. <span style=\"color:blue\"><b>The societal effects of artificial intelligence</b></span> are being researched at the <span style=\"color:blue\"><b>NYU,</b></span>[29] AI Now Institute. The topics of its <span style=\"color:blue\"><b>multidisciplinary study</b></span> are bias and inclusion, work and automation, rights and freedoms, and safety and civic infrastructure.\n\n4. The consequences of AI on policy and unemployment are studied by the <span style=\"color:blue\"><b>Institute for Ethics and Emerging Technologies (IEET)[30][31]</b></span>.\n\n5. The <span style=\"color:blue\"><b>Technical University of Munich's Institute</b></span> for Ethics in Artificial Intelligence (IEAI)[32], led by <span style=\"color:blue\"><b>Christoph Lütge</b></span>, carries out research in a number of areas, including mobility, employment, healthcare, and sustainability.\n\n6. In order to create a future generation of computer scientists with a worldview that considers the social impact of their work[33], <span style=\"color:blue\"><b>Barbara J. Grosz</b></span>, the Higgins Professor of Natural Sciences at the <span style=\"color:blue\"><b>Harvard</b></span>. John A. Paulson School of Engineering and Applied Sciences, started the <span style=\"color:blue\"><b>Embedded Ethics initiative.</b></span>\n","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> <span style=\"color:red\"><b>Initiatives taken at the industrial level:</b></span><br>\n    \n\n\nBeyond that, there are a seemingly endless number of attempts taken by businesses to self-regulate. Additionally, in order to improve the responsible use of artificial intelligence (AI), the business sector has joined forces with the <span style=\"color:blue\"><b>academic community and nonprofit organizations</b></span>, such as in the Partnership on AI[34] and the Global Partnership for AI[35]. Additionally, assistance may be obtained through <span style=\"color:blue\"><b>standardization agencies</b></span> such as ISO/IEC[36], IEEE[37], and NIST[38].\nCompanies such as <span style=\"color:blue\"><b>Datagen[39], Galileo[40], and Snorkel AI[1]</b></span> that operate in the field of Data for AI category offer particular services to safeguard data privacy, <span style=\"color:blue\"><b>identify data bias early</b></span>, or give alternate ways for data collecting / creation in order to minimize bias amplification later on in the machine learning lifecycle. These services may be found in the Data for AI category.\n","metadata":{}},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/images/images industrial.png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"image source: https://opendatascience.com/wp-content/uploads/2022/05/eth2.png\n","metadata":{}},{"cell_type":"markdown","source":"# <a id=\"section6_Con\" ></a><h2 style=\"color:white;background-color:#f04a00;padding:3%;border-radius:50px 50px;font-size:18px;text-align:center;\"><b>Section 4 Conclusion</b></h2>\n<div style=\"font-size:16px\"> ","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"><span style=\"color:blue\"><b>Explainability, Bias, Robustness, Transparency, and Privacy</b></span> are the five most essential pillars of AI Ethics in practice, and they are discussed in detail in this report. During the evaluation, we determined that the work of \"Anat Elhalal\" on AI Ethics has been cited 449 times. The leading journal, with Springer as the leading publisher of AI ethics articles. In terms of national contributions, the United States practices the most AI Ethics work, followed by Germany and the United Kingdom. Numerous government, academic, and business initiatives have been undertaken to introduce ethics and responsibility to artificial intelligence technology in order to increase its accountability and credibility. Despite the fact that many national and international standards are being developed for AI ethics, putting them into practice is one of the most difficult aspects, which raises questions about the security of the technology and how to prevent malicious activities to avoid data poisoning and algorithm poisoning if the pipeline and the development of AI models and data are made public. Thus, this is the subject of the debate, which has a long way to go before every government, industrial and academic body reaches the specific standards and legal norms for the same.\n</div>","metadata":{}},{"cell_type":"markdown","source":"# <a id=\"section_8_reference\" ></a><h2 style=\"color:white;background-color:#f04a00;padding:3%;border-radius:50px 50px;font-size:18px;text-align:center;\"><b>Reference</b></h2>\n<div style=\"font-size:16px\"> ","metadata":{"_kg_hide-input":false}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> \n    \n    1. https://snorkel.ai/ <br>\n    \n    2. Hagendorff, T. The Ethics of AI Ethics: An Evaluation of Guidelines. Minds & Machines 30, 99–120 (2020). Doi: doi.org/10.1007/s11023-020-09517-8 <br>\n    \n    3. https://www.ibm.com/impact/ai-ethics <br>\n    \n    4. Felzmann, Heike et al. “Towards Transparency by Design for Artificial Intelligence.” Science and Engineering Ethics 26.6 (2020): 3333–3361. Web.<br>\n    \n    5. Siau, Keng, and Weiyu Wang. \"Artificial intelligence (AI) ethics: ethics of AI and ethical AI.\" Journal of Database Management (JDM) 31.2 (2020): 74-87.<br>\n    \n    6. Jobin, Anna; Ienca, Marcello; Vayena, Effy (2 September 2020). \"The global landscape of AI ethics guidelines\". Nature. 1 (9): 389–399. arXiv:1906.11668. doi:10.1038/s42256-019-0088-2. S2CID 201827642. <br>\n    \n    7. https://www.nytimes.com/2017/05/01/us/politics/sent-to-prison-by-a-software-programs-secret-algorithms.html \n    \n    8. https://edition.cnn.com/2019/06/11/tech/zuckerberg-deepfake/index.html#:~:text=The%20clip%20of%20Zuckberg%20used,CBS%20spokesperson%20told%20CNN%20Business. <br>\n    \n    9. http://proceedings.mlr.press/v81/buolamwini18a/buolamwini18a.pdf <br>\n    \n    10. Lee, Raymond ST, and Raymond ST Lee. \"AI Ethics, Security and Privacy.\" Artificial Intelligence in Daily Life (2020): 369-384.<br>\n    \n    11. Ethics guidelines for trustworthy AI\". Shaping Europe’s digital future – European Commission. European Commission. 2019-04-08. Archived from the original on 2020-02-20. Retrieved 2020-02-20.<br>\n\n    12. \"White Paper on Artificial Intelligence – a European approach to excellence and trust | Shaping Europe's digital future\". Archived from the original on 2021-03-06. Retrieved 2021-03-18.<br>\n\n    13. \"Why the world needs a Bill of Rights on AI\". Financial Times. 2021-10-18. Retrieved 2023-03-19.\n        <br>\n    14. \"OECD AI Policy Observatory\". Archived from the original on 2021-03-08. Retrieved 2021-03-18.<br>\n\n    15. UNESCO member states adopt first global agreement on AI ethics\". Helsinki Times. 2021-11-26. Retrieved 2023-04-26.<br>\n\n    16. \"The Obama Administration's Roadmap for AI Policy\". Harvard Business Review. 2016-12-21. ISSN 0017-8012. Archived from the original on 2021-01-22. Retrieved 2021-03-16.<br>\n\n    17. \"Accelerating America's Leadership in Artificial Intelligence – The White House\". “trumpwhitehouse.archives.gov”. Archived from the original on 2021-02-25. Retrieved 2021-03-16.<br>\n\n    18. \"CCC Offers Draft 20-Year AI Roadmap; Seeks Comments\". HPCwire. 2019-05-14. Archived from the original on 2021-03-18. Retrieved 2019-07-22.<br>\n\n    19. \"Request Comments on Draft: A 20-Year Community Roadmap for AI Research in the US » CCC Blog\". 13 May 2019. Archived from the original on 2019-05-14. Retrieved 2019-07-22.<br>\n\n    20. (UNESCO’s Recommendation on the Ethics of AI, China’s):  https://unesdoc.unesco.org/ark:/48223/pf0000377897 <br>\n\n    21. (Council of Europe’s Report “Towards Regulation of AI Systems”):  https://rm.coe.int/prems-107320-gbr-2018-compli-cahai-couv-texte-a4-bat-web/1680a0c17a <br>\n\n    22. (Organisation for Economic Co-operation and Development (OCED) AI Principles): https://oecd.ai/en/ai-principles <br>\n\n    23. (European Commission's Ethics Guidelines for trustworthy AI): https://op.europa.eu/en/publication-detail/-/publication/d3988569-0434-11ea-8c1f-01aa75ed71a1 <br>\n\n    24. (Model AI Governance Framework through Singapore’s Personal Data Protection Commission): https://www.pdpc.gov.sg/-/media/files/pdpc/pdf-files/resource-for-organisation/ai/sgmodelaigovframework2.pdf<br>\n\n    25. (U.K. Information Commissioner’s Office work on AI Auditing Framework): https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/artificial-intelligence/guidance-on-ai-and-data-protection/<br>\n\n    26. (Hong Kong’s Ethical Development and Use of AI): https://www.pcpd.org.hk/english/resources_centre/publications/files/guidance_ethical_e.pdf<br>\n\n    27. Grace, Katja, et al. \"When will AI exceed human performance? Evidence from AI experts.\" Journal of Artificial Intelligence Research 62 (2018): 729-754.<br>\n\n    28. \"China wants to shape the global future of artificial intelligence\". MIT Technology Review. Archived from the original on 2020-11-20. Retrieved 2020-11-29.<br>\n\n    29. \"New Artificial Intelligence Research Institute Launches\". 2017-11-20. Archived from the original on 2020-09-18. Retrieved 2021-02-21. <br>\n\n    30. Hughes, James J.; LaGrandeur, Kevin, eds. (15 March 2017). Surviving the machine age: intelligent technology and the transformation of human work. Cham, Switzerland. ISBN 978-3-319-51165-8. OCLC 976407024. Archived from the original on 18 March 2021. Retrieved 29 November 2020.<br>\n\n    31. Danaher, John (2019). Automation and utopia: human flourishing in a world without work. Cambridge, Massachusetts. ISBN 978-0-674-24220-3. OCLC 1114334813.<br>\n\n    32. TUM Institute for Ethics in Artificial Intelligence officially opened\". www.tum.de. Archived from the original on 2020-12-10. Retrieved 2020-11-29.<br>\n\n    33. Communications, Paul Karoff SEAS (2019-01-25). \"Harvard works to embed ethics in computer science curriculum\". Harvard Gazette. Retrieved 2023-04-06.<br>\n\n    34. (Partnership on AI): https://partnershiponai.org/ <br>\n\n    35. ( Global Partnership for AI): \n        https://www.gpai.ai/projects/data-governance/gpai-data-governance-work-framework-paper.pdf <br>\n\n    36. (Standardization bodies - ISO/IEC): https://www.iso.org/standard/77608.html<br>\n\n    37. (Standardization bodies - IEEE SA): https://standards.ieee.org/initiatives/autonomous-intelligence-systems/<br>\n\n    38. (Standardization bodies - NIST): https://www.nist.gov/news-events/events/2021/10/kicking-nist-ai-risk-management-framework <br>\n\n    39. https://datagen.tech/ <br>\n\n    40. https://www.rungalileo.io/ <br></div>","metadata":{}},{"cell_type":"markdown","source":" # <a id=\"section9_annexure\"></a><h2 style=\"color:white;background-color:#f04a00;padding:3%;border-radius:50px 50px;font-size:18px;text-align:center;\"><b>Annexure</b></h2>\n","metadata":{"_kg_hide-input":false}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> <span style=\"color:red\"><b>Annexure 1:</b></span><br>\n\n    In this researched overview on the topic of \"AI Ethics,\" the section containing the information about the Data Acquisition Source and Dataset Info has been hidden. However, if you would like to examine the details and understand how we obtained only 9 papers from the dataset provided by Kaggle, you can copy and edit this notebook to access the code and its corresponding output. By doing so, you will be able to see the specific steps taken to retrieve the 9 papers and analyze the dataset.</div>","metadata":{}},{"cell_type":"markdown","source":"<div style=\"font-size:16px\"> <span style=\"color:red\"><b>Annexure 2:</b></span><br>\n    \nTable 1- Ethical guidelines for AI by country of issuer[6]</div>","metadata":{}},{"cell_type":"code","source":"#importing libraries\nimport pandas as pd\nimport numpy as np\nimport scipy.stats as st\nimport os\nimport matplotlib.pyplot as plt\nimport seaborn as sns","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#reading writeup dataset\ncountry_table = pd.read_csv(\"/kaggle/input/ai-ethics-our-dataset/table.csv\")\npd.set_option('display.max_rows', None)\ncountry_table\n ","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/graphs/Count of Country of issuer (2).png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"PIL.Image.open(\"/kaggle/input/graphs/Count of Country of issuer (1).png\")","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%writefile submission.csv\ntype,value\nessay_category,'AI ethics'\nessay_url,'https://www.kaggle.com/ritwikdalmia/unlocking-the-promise-ai-ethics-in-action/'\nfeedback1_url,'https://www.kaggle.com/code/acetonewong/what-genai-looks-like-in-2023/comments#2331060'\nfeedback2_url,'https://www.kaggle.com/code/sohamjangra/image-and-video-data-analysis-using-ai/comments#2340215'\nfeedback3_url,'https://www.kaggle.com/code/kausheeki01/analyzing-text-data-for-customer-insights/comments#2340315'","metadata":{"trusted":true},"execution_count":null,"outputs":[]}]}