Docsity
Trusted Seller

IT Coding, Tools and Security - Prof. Accetta - ITEM, Dispense di Programmazione e Tecnologie Web

Toggle sidebar
bg1
1
Appunti Salvatore De Lellis – Innovation and Technology Management anno 2021/2022
IT Coding – Module B – Prof. Accetta
Cloud computing basic concepts
Second Industrial revolutions in really important to be mentioned. We find many parallelisms between the
Cloud and the invention of electricity. The creation of the alternator and transformer in 1880 were useful
to generate energy and to transport it elsewhere. In 1920 were established Electrical power plants. Thanks
to this innovation you can start building up things that work with electricity. The number of host computers
shared on the internet connection increased over time. Netflix is a virtual environment created appositely
for you. Capability to adapt, elasticity, and pricing model is a paying as you go. People shared same needs:
• Face growing demand: there’s a need in the market. Start-ups have to be fast to reach the market
in order to be recognized and known.
• Creation of scale economies.
• Improve production in an efficient way.
Same effects:
• Prices reduction (positive).
• Increase adoption of technology (positive).
• Standardization of the service (negative).
A brief history: 1950s – 1970s
• 1950s: the word “Cloud” still refers to a visible mass of condensed water vapor floating in the
atmosphere. The mainframe and time sharing are born, introducing the concept of shared,
centralized compute resources.
• 1969: the first working prototype of Arpanet is launched, linking four geographically dispersed
computers over what is now known as the Internet.
• 1970s: the term “client-server” comes into use, defining the compute model where clients access
data and applications from a central server over a local area network.
• 1995: pictures of clouds start showing up in network diagrams.
• 1999: Salesforce.com launches, becoming the first company to make enterprise applications
available from a website. Google launches: a fledgling search service that returns impressive
results. Netflix launches, mailing DVDs in little red envelops, dreaming of future revenues streams.
• 2003: Web 2.0. is born, characterized by rich multimedia and user generated content and dynamic
interphases.
• 2004: Facebook launches, giving people an easy way to (over)share information about themselves.
• 2006: Amazon launches Amazon Web Services (AWS), giving users a new way to store data offsite
and rent compute cycles as a service. Google CEO Schimdt said to have sued the term a decade
earlier behind the closed doors.
• 2007: Apple introduces the iPhone, which could be used on any wireless network, as long as it was
AT&T’s (American Telephone & Telegraph company). Netflix launches streaming service.
• 2008: Cloud emerges.
• 2009: BBC enterprise applications like Google Apps are introduced revolutionizing the market for
productivity applications and entering users from their desktops.
• 2010: The open-source cloud, thanks to Eucalyptus and OpenStack.
• 2011: Hybrid cloud emerges, combining public and private cloud environments. Microsoft “To the
cloud” commercial launch, attempting to explain how the cloud can benefit mere mortals. iCloud:
Apple launches iCloud letting people automatically store their content.
• 2012: Google launches Google Drive, with free cloud storage.
• 2013: IBM acquires SoftLayer, offering an industry-first, private cloud reliability at the speed and
savings of a public cloud.
• Today: Cloud adoption. It’s accelerating but continues to struggle to distinguish itself from the
plain old internet.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Anteprima parziale del testo

Scarica IT Coding, Tools and Security - Prof. Accetta - ITEM e più Dispense in PDF di Programmazione e Tecnologie Web solo su Docsity!

1

IT Coding – Module B – Prof. Accetta

Cloud computing basic concepts

Second Industrial revolutions in really important to be mentioned. We find many parallelisms between the Cloud and the invention of electricity. The creation of the alternator and transformer in 1880 were useful to generate energy and to transport it elsewhere. In 1920 were established Electrical power plants. Thanks to this innovation you can start building up things that work with electricity. The number of host computers shared on the internet connection increased over time. Netflix is a virtual environment created appositely for you. Capability to adapt, elasticity, and pricing model is a paying as you go. People shared same needs:

  • Face growing demand: there’s a need in the market. Start-ups have to be fast to reach the market in order to be recognized and known.
  • Creation of scale economies.
  • Improve production in an efficient way. Same effects:
  • Prices reduction (positive).
  • Increase adoption of technology (positive).
  • Standardization of the service (negative). A brief history: 1950s – 1970s
  • 1950s: the word “Cloud” still refers to a visible mass of condensed water vapor floating in the atmosphere. The mainframe and time sharing are born, introducing the concept of shared, centralized compute resources.
  • 1969: the first working prototype of Arpanet is launched, linking four geographically dispersed computers over what is now known as the Internet.
  • 1970s: the term “client-server” comes into use, defining the compute model where clients access data and applications from a central server over a local area network.
  • 1995: pictures of clouds start showing up in network diagrams.
  • 1999: Salesforce.com launches, becoming the first company to make enterprise applications available from a website. Google launches: a fledgling search service that returns impressive results. Netflix launches, mailing DVDs in little red envelops, dreaming of future revenues streams.
  • 2003: Web 2.0. is born, characterized by rich multimedia and user generated content and dynamic interphases.
  • 2004: Facebook launches, giving people an easy way to (over)share information about themselves.
  • 2006: Amazon launches Amazon Web Services (AWS), giving users a new way to store data offsite and rent compute cycles as a service. Google CEO Schimdt said to have sued the term a decade earlier behind the closed doors.
  • 2007: Apple introduces the iPhone, which could be used on any wireless network, as long as it was AT&T’s (American Telephone & Telegraph company). Netflix launches streaming service.
  • 2008: Cloud emerges.
  • 2009: BBC enterprise applications like Google Apps are introduced revolutionizing the market for productivity applications and entering users from their desktops.
  • 2010: The open-source cloud, thanks to Eucalyptus and OpenStack.
  • 2011: Hybrid cloud emerges, combining public and private cloud environments. Microsoft “To the cloud” commercial launch, attempting to explain how the cloud can benefit mere mortals. iCloud: Apple launches iCloud letting people automatically store their content.
  • 2012: Google launches Google Drive, with free cloud storage.
  • 2013: IBM acquires SoftLayer, offering an industry-first, private cloud reliability at the speed and savings of a public cloud.
  • Today: Cloud adoption. It’s accelerating but continues to struggle to distinguish itself from the plain old internet.

2 When you run something on the cloud means that somewhere in the world there’s something physical, a computer, a machine, a data center, where your application in running. You can run the same application on multiple computers, joining the computational power of multiple machines. A data centre is a room full of servers, you find rows and rows of laptops. A Blade center is a “stack of laptops” managed as one single computer or “Server”. If the blade center has 10 machines, on each of the machine there’s an OS in which you can install application. Definition of Cloud Computing – Exam question NIST definition: Cloud computing is a model for enabling ubiquitous, convenient, on-demand network access to a shared pool of configurable computing resources (e.g. networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider interaction. The goal of Cloud Computing is to provide easy, scalable access to computing resources and IT services. Cloud computing is an enabler, that enables people to work on what they need. One of the through-backs of Cloud is that you have to take compromises. If a Cloud provider does not install the least version of Python, you cannot use it. This cloud model is composed of five essential characteristics:

  1. On-demand self-service, always available for the user. A consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with each service provider.
  2. Broad network access: if I do not have an internet connection, I can’t have access to cloud resource. Capabilities are available over the network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (smartphone, tablets, laptops).
  3. Location independent / Resource pooling: I don’t care where the information is stored, it could be on the opposite part of the world. This is not considered an issue. The use is independent from the location. Resource pooling means that when I use an app on a web server, the same app can be used by another server at the other side of the world. The provider’s computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to consumer demand. There is a sense of location independence in that the customer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction. Examples of resources include storage, processing, memory, and network bandwidth.
  4. Rapid elasticity: I have the possibility to scale (increase and decrease) the resources. Capabilities can be elastically provisioned and released, in some cases automatically, to scale rapidly outward and inward commensurate with demand. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be appropriated in any quantity at any time.
  5. Measured Service / pay as you go: if I’m running an application and I need to stop it for some reason, I stop paying for it. Cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency for both parts. Benefits of Cloud Computing
  6. Greater cost efficiency. While traditional IT requires you to purchase computing capacity in anticipation of growth, cloud computing enables you to pay for only the capacity you need, when you need it. Cloud also eliminates the ongoing expense of purchasing, housing, maintaining and managing infrastructure on-premises.
  7. Improved agility, faster time to market. On the cloud you can provision and deploy a server in minutes, purchasing and deploying the same server on-premises might take weeks or months.

4 Why is this important? More efficient use of available hardware resources.

  1. Virtualization: A layer of abstraction between computer hardware systems and the software running on them that logically divides resources among the applications that need them. Not a new concept: IBM did virtualization in the 1960’s. Why is this important? Use only what you need and when you need it. Increase or decrease compute, network or storage resources as the application needs dictate. By virtualizing you create some face copies of the hardware. Virtualization is always performed by Hypervisor. Virtualization spreads the load In a data centre, we can never shut down the computers, they keep running, so companies want to try to maximize their performance. By virtualizing, each computer shares processor with all the others. The virtualization spreads the computational power of the processor to different OS. There’s a virtualization layer that make the OS believe they have a dedicated hardware even if it’s not true. With Virtualization you can run more applications on less hardware. It also helps with fail-over should one of your blade servers have a fault. What is going on is that you have a hardware, one virtualization layer, and on top of them you have many different types of OS. Virtual machines and Hypervisor A virtual machine is a virtual representation, or emulation, of a physical computer. They are often referred to as a guest, while the physical machine they run on is referred to as the host. Virtualization makes it possible to create multiple VM, each with their own OS and applications, on a single physical machine. A VM does not communicate directly with the underlying hardware, instead, it uses a layer called a hypervisor to coordinate between it and the underlying physical hardware. The hypervisor allocates physical computing resources (such as processors, memory, and storage) to each VM. It keeps each VM separate from others, so they don't interfere with each other. There are two types of hypervisors :
  • Native hypervisor (or Bare-Metal) : it’s enterprises oriented, such as datacenter. Type 1 hypervisors run directly on the physical hardware (usually a server), taking the place of the OS. Typically, you use a separate software product to create and manipulate VMs on the hypervisor. Some management tools, like VMware’s vSphere, let you select a guest OS to install in the VM. § Pros : Type 1 hypervisors are highly efficient because they have direct access to physical hardware. This also increases their security, because there is nothing in between them and the CPU that an attacker could compromise. § Cons : A Type 1 hypervisor often needs a separate management machine to administer different VMs and control the host hardware.
  • Hosted hypervisor: it’s consumer oriented, such as programs that allow to emulate other OS. Type 2 hypervisors run as an application within a host OS and usually target single-user desktop or notebook platforms. With a Type 2 hypervisor, you manually create a VM and then install a guest OS in it. You can use the hypervisor to allocate physical resources to your VM, manually setting the amount of processor cores and memory it can use. Depending on the hypervisor’s capabilities, you can also set options like 3D acceleration for graphics. Type 2 hypervisors rarely show up in server- based environments. Instead, they’re suitable for individual PC users needing to run multiple OS. § Pros : A Type 2 hypervisor enables quick and easy access to an alternative guest OS alongside the primary one running on the host system (use Linux and Windows). This makes it great for end-user productivity. § Cons : A Type 2 hypervisor must access computing, memory, and network resources via the host OS, which has primary access to the physical machine. This introduces latency issues, affecting performance. It also introduces potential security risks if an attacker compromises the host OS because they could then manipulate any guest OS running in the Type 2 hypervisor.

5 Benefits of Virtual Machines (and by extension, Virtualization)

1. Resource utilization and improved ROI (return of investment): Because multiple VM run on a single physical computer, customers don’t have to buy a new server every time they want to run another OS, and they can get more return from each piece of hardware they already own. 2. Scale: With cloud computing, it’s easy to deploy multiple copies of the same virtual machine to better serve increases in load. 3. Portability: VMs can be relocated as needed among the physical computers in a network. This makes it possible to allocate workloads to servers that have spare computing power. 4. Flexibility: Creating a VM is faster and easier than installing an OS on a physical server because you can clone a VM with the OS already installed. Developers and software testers can create new environments on demand to handle new tasks as they arise. 5. Security: VMs improve security in several ways when compared to OS running directly on hardware. A VM is a file that can be scanned for malicious software by an external program. You can create an entire snapshot of the VM at any point in time and then restore it to that state if it becomes infected with malware, effectively taking the VM back in time. The fast, easy creation of VMs also makes it possible to completely delete a compromised VM and then recreate it quickly, hastening recovery from malware infections. The 3 Service Models IaaS – Infrastructure as a Service (servers, storage, networking): I am using the hardware of somebody else and install there the apps that I want to use. Capability of making available some infrastructure as a service through hypervisor. The capability provided to the consumer is to provision processing, storage, networks , and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include OS and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over OS, storage, and deployed applications and possibly limited control of select networking components (host firewalls). The users can use it through an internet connection on a pay-as-you- use basis. The cloud providers manage the hypervisor. PaaS – Platform as a Service (Middleware, development tools, runtimes): provides a complete cloud-based platform for developing, running and managing applications without the cost, complexity and inflexibility of building and maintaining that platform on-premises. The PaaS provider hosts everything (servers, networks, storage, OS, databases) at its data centre. Development teams can use all of it for a monthly fee based on usage, and can purchase more resources on demand, as needed. In this way, PaaS lets development teams to build, test, deploy, maintain, update, and scale applications (and to innovate in response

7 Runtime

  1. PaaS.
  2. Applications containing business logic.
  3. Custom code (Java, Node.js). A runtime is a set of resources that is used to run an application. They can be composed of the binaries that need to be installed in order to execute the code written by the developers. Compute models: four kinds of runtimes
  • Virtual servers / Virtual machines.
  • Containers – Kubernetes : is an open-source container orchestration and management system. Initially developed by Google, it is now maintained by the Cloud Native Computing Foundation. It works with many containerisation systems, including Docker.
  • Instant runtimes: Cloud Foundry (example of PaaS).
  • Serverless computing – OpenWhisk: is an open source, distributed Serverless platform that executes functions in response to events at any scale. OpenWhisk manages the infrastructure, servers and scaling using Docker containers so you can focus on building applications. Three Key Enabling Technologies
  1. Fast Wide Area Networks.
  2. Powerful, inexpensive server computer.
  3. High performance virtualization for commodity Hardware. SLA – Service Level Agreement Light, standard, premium plans define the amount of resource I can use. If I select light plan, there’s no commitment from the cloud provider, so it will be free. It’s a pay as you go, but you can also pay differently in relation to the amount of services you need. The cloud provider can ask you for a fee in order to provide you more services. I can filter by choosing a location, and I’ll see the part of the application that is located there. I can invite other people or be invited. I can modify and work on application that are not mine. I can

8 create applications: from the catalogue I select create app, I select in which research group I want to put it, select the programming language. What is Cloud Computing?

  • An organization without Cloud Computing: they will have some services in house, with a certain amount of resources (computer, storage, network). Part of the application will be hosted in virtual machines and other applications will be installed on the physical hardware.
  • An organization using Cloud Computing: they manage some physical machine in the enterprise. But there is a new pillar. Some applications can be managed from the layer of the Private Cloud. The user can use some functionalities that do not are within the walls of the enterprise but are on the Cloud Platform. The 3 Deployment models From where am I taking my resources that are available on the data center? A cloud system (IaaS, PaaS, and SaaS) can be deployed using the following three main models:
    • Public Cloud: public cloud is a multi-tenant cloud environment, where the same computing resources are shared among multiple customers, sometimes hundreds or thousands of them. In public cloud, an independent cloud services provider owns and maintains the infrastructure, and access to resources is offered on a subscription basis or via pay-per-use pricing. The model is analogous to the way we purchase utility services, such as access to a municipal water supply or electric power in our homes. It offers instant access to SaaS business applications, IaaS computing and storage resources, and PaaS for application deployment and development. Public cloud sacrifices much of the control and security of private cloud.
    • Private Cloud: it’s a cloud infrastructure operated exclusively for one company. It’s managed by the company or a third party (or both), and is hosted primarily on-premises, but can also be hosted on dedicated cloud-provider. Private cloud enables a company to take advantage of cloud efficiencies while providing greater control over resources, data security and regulatory compliance, and avoiding the potential impact of sharing resources with another cloud customer (called “ shared tenancy ”). Private cloud combines many of the benefits of cloud computing (elasticity, scalability, and ease of service delivery) with the access control, security, and resource customization of on-premises infrastructure. Many companies choose private cloud over public cloud because it’s an easier way (or the only way) to meet their regulatory compliance requirements. Others choose private cloud because their workloads deal with confidential documents, medical records or other sensitive data. These technologies include the following: o Virtualization : enables IT resources to be abstracted from their underlying physical hardware and pooled into unbounded resource pools. By removing the constraints of physical hardware, virtualization enables maximum utilization of hardware, allows hardware to be shared efficiently across multiple users and applications, and makes possible the scalability and elasticity of the cloud. o Provisioning : Automation speeds tasks such as server provisioning and integrations, that would otherwise need to be performed manually and repeatedly. Automation reduces the need for human intervention, making self-service resource delivery possible. o Orchestration : Management software gives administrators centralized control over the infrastructure and applications running on it. This makes it possible to optimize security, availability, and resource utilization in the private cloud environment.
    • Hybrid Cloud: is an IT infrastructure that connects at least one public cloud and at least one private cloud, and provides orchestration between them to create a single, flexible, optimal cloud infrastructure for running a company’s computing workloads. For example, hybrid cloud enables a company to keep sensitive data and mission-critical legacy applications on-premises, while leveraging public cloud for SaaS applications, PaaS for rapid deployment of new applications, and IaaS for additional storage or compute capacity on demand.

10

  • Easier upgrades: with no on-premises software to update. Risks
  • Requires trusting a SaaS provider: for availability and data security.
  • Can raise legal/regulatory concerns : with storing data outside customer premises.
  • Can limit customization : if customers share a multi-tenant application.
  • Can be harder to integrate : with on-premises applications.
  • Can have lower performance: than on-premises applications. Cloud Platforms Shortage of machines on the on-premises and move a part of them by using public resources. In this case there are 2 scenarios: IaaS (users create VMs on demand) and PaaS (developers provide an application, which the platform runs. They don’t directly create VMs). Evaluating Cloud Platforms Benefits
  1. Faster deployment: because there’s no wait for local computing resources.
  2. Pay as you go.
  3. Less financial risks: with lower up-front investment in hardware and software.
  4. Reduced need for on-premises resources: such as servers and IT staff.
  5. Easier upgrades: with no on-premises software to update Risks
  6. Requires trusting a cloud platform provider: for availability and data security.
  7. Can raise legal/regulatory concerns: with storing data outside customer premises.
  8. Can be harder to integrate : with on-premises software.
  9. Can have lower performance: than on-premises platforms.
  10. Can give developers less control: than on-premises platforms. The Benefits of PaaS
  • It’s faster: there’s less work for developers to do. Benefit: Applications can go from idea to availability more quickly. With PaaS, there’s no need to purchase and install the hardware and software that will be used to build and maintain your application development platform and neither to wait. Simply tap in the cloud service providers resources and begin developing instantly.
  • It’s cheaper: there’s less admin and management work to do and organization spend fewer supporting applications. Because there’s no infrastructure to build, upfront costs are lower. Costs are also lower because most PaaS providers charge customers based on usage.
  • It has lower risks: the platform does more, leaving fewer opportunities for error (monitoring, security). Benefit: creating and running applications gets more reliable. PaaS typically include access to a greater variety of choices up and down the application development stack (OS, middleware, databases, and tools such as code libraries and app components) than the ones that can affordably or practically be maintained on-premises. It also lets test new OS, languages, and tools without risk, that is, without having to invest in the infrastructure required to run them. With PaaS, it’s possible to scale on-demand by purchasing just the amount of capacity you need. The Risks of PaaS
  • PaaS is less familiar to developers: it’s harder to adopt because they must learn the PaaS platform.
  • PaaS gives developers less control: they must work within the constraints of the PaaS Technology.
  • PaaS supports fewer useful scenarios than IaaS.

Cloud Computing and AI

11 What is AI? There’s not a proper definition, there are many. AI is trying to teach the computer to do something like the human. They started talking about it in 1950, but there were limitations. From the hardware point of view, there was not enough computer power to perform the tasks. These are many examples of what AI can be considered:

  • Making computers that think?
  • The automation of activities we associate with human thinking, like decision making, learning?
  • The art of creating machines that perform functions that require intelligence when performed by people (Kurzweil).
  • The study of how to make computers do things at which people are better (Rich and Knight).
  • The study of mental faculties using computational models?
  • The study of computations that make it possible to perceive, reason and act?
  • A branch of computer science that is concerned with the automation of intelligent behaviour?
  • Anything in Computing Science that we don't yet know how to do properly? It’s all based on the data we provide. If you teach to a child in the wrong way, he will not learn the right things. The same happens with computers. We try to define the AI system in a matrix form, with the distinction between thoughts and behaviours, and human (including emotional) and rational. 1) Systems that act like humans There is a theoretical test ( Turing test ) to try to understand if a machine is able to act like a human: you enter a room which has a computer terminal. You have a fixed period of time to type what you want into the terminal, and then you study the replies. At the other part of the line is either a human being or a computer system. If it’s a computer system, and at the end of the period you cannot reliably determine whether it’s a system or a human, then the system is deemed to be intelligent. A human questioner cannot tell if there is a computer or a human answering his question. There must be intelligent behaviour to achieve human-level performance in all cognitive tasks. It’s difficult to create a machine able to exceed the human capacity to perform a task. These cognitive tasks include:
  • Natural language processing: for communicating with human. Capability to interpret words, paragraphs, books, news, something written, in the same way that humans do.
  • Knowledge representation: to store information effectively and efficiently.
  • Automated reasoning: to retrieve and answer questions using the stored information.
  • Machine learning: to adapt to new circumstances. It can be used to do predictions. The total Turing test includes two issue :
  • Computer vision: to perceive objects (seeing).
  • Robotics: to move objects (acting). 2) Systems that think like humans – Cognitive modelling This is related to the study of how humans perceive reality, how human’s brain works, how does it store information. It’s more related to psychology. “The exciting new effort to make computers think: machines with minds in the full and literal sense” (Haugeland). “The automation of activities that we associate with human thinking, activities such as decision-making, problem solving, learning” (Bellman). 3) Systems that think rationally – Laws of thoughts The machine sometimes could be required to take decisions by their own. There are some examples that show various scenarios in a dangerous situation in which the machine is involved (self-driving car). Sometimes is useful to have a machine that is able to think rationally, but sometimes we want the human being to take the decision. If the self-car kills someone, who is to blame? The company who produces it or the person who wrote the algorithm. There are many issues related to this aspect:
  • Humans are not always rational. In addition, is rationality defined in terms of logic?
  • Logic can’t express everything (uncertainty).
  • Logical approach is often not feasible in terms of computation time (needs ‘guidance’).

13

  • Search problems (including Game Playing).
  • Representing knowledge and reasoning with it.
  • Planning and Learning.
  • Natural language processing (virtual assistant, Alexa, Google Home, Siri).
  • Expert systems: systems that can leverage knowledge base provided by all the documentation about a specific topic. Humans can interact with this system to obtain relevant information.
  • Interacting with the Environment (Vision, Speech recognition, robotics). Interacting with the Environment In order to enable intelligent behaviour, we will have to interact with our environment, so the device should have sensors to interact. This is related to the IoT. Properly intelligent systems may be expected to:
  • Accept sensory input: vision, sound, ecc.
  • Interact with humans: understand language, recognize speech, generate text and graphics.
  • Modify the environment: robotics.
  • Communicate the collected informations. AI Applications
  1. Autonomous Planning & Scheduling: Autonomous rovers, Telescope scheduling, Analysis of data.
  2. Medicine: Image guided surgery, Image analysis and enhancement: x-rays, visual information.
  3. Transportation: Autonomous vehicle control, Pedestrian detection.
  4. Games: the most famous application of AI are games.
  5. Bioinformatics: Gene expression data analysis, Prediction of protein structure.
  6. Text classification, document sorting: Natural Language Processing. What are AI, Machine Learning and Cognitive Computing? Machine Learning is related to AI and AI incapsulates it. Not everything of AI is made by machine learning. Within machine learning there’s also the concept of deep learning. “AIs are only as good as the data we train them with.”In 1997 IBM’s Deep Blue defeated the reigning world chess champion in tournament conditions. A powerful computer whose evaluation function was learned from thousands of human master games. How does it work? Until now, computing has been deterministic. AI, instead, is probabilistic. Human brains contain around 100 billion neurons, each with an average of 7.000 synaptic connections to other neurons. Estimates for the number of synapses range from 10^15 for a three-year-old child down to 1014 for an adult. Deep neural networks Neural networks can take many shapes and sizes and vary in the number and configuration of connections. A deep neural network is one with multiple hidden layers. The computer is not able to recognize what is happening, but it can recognize some objects within the picture. Sometimes I want more details and create some relations among the things on the picture. This is something that the human does in a really easy way. The first problem is recognition, so we need to teach the system to "recognize" the objects. Binary classificatory: it’s a classificatory that says yes or no. There are also multiclass classificatory. I can start

14 working with shapes that can be found in an image. After that I can put some rules: if you see these shapes, then you recognize it as a cat. But if the cat has a different position? The rule I created before is not applicable anymore. I have to update the rule. The problem is that there are infinitely images of cats. With the AI and machine learning we try to change the perspective of the problem. I don’t want to create a mathematic representation of the cat: I want to tell the machine which are some examples of pictures of cats as inputs, and let the machine find what are the specific characteristics to recognize a cat. If the system does not recognize the subject of the picture, you have to send the same picture again to train the machine. Feedback is another aspect. Artificial Intelligence AI is an intelligence demonstrated by machines. It can reason about the world and give rise to intelligent behaviour to achieve a certain goal. It’s a mimic cognitive function of the human mind, such as learning and problem solving. Machine Learning Machine Learning is one subset of AI. It’s a developed systems that can perform a specific task without using explicit instructions. It’s able to find patterns in massive amounts of data. It uses learning algorithms to build models that can decide or predict about something. Machine learning is not only Neural Network. An example of machine learning is Linear Regression (you have a series of data, you plot them and then try to find the linear equation that approximate all the values). Deep Learning Deep Learning is one subset of machine learning. It’s a class of algorithms inspired by the human brain: neural networks. Deep because it has many, many layers of simple computational nodes that work together. It’s great at processing unstructured data such as images, sound, and natural language. Supervised learning It’s one of the approaches you can use based on the industry you attend in order to teach something to the system. I provide input data but also tell the system how the data are related to each other. After the model has been trained, we give a new input to the model and ask him what it is. Through a prediction, the model will give an answer. Example: Regression (population, estimating life expectancy, market and weather forecasting) and Classification (identity Fraud detection, image classification, customer retention). Unsupervised learning It’s used when we deal with many information and data that come from different sources but there is a correlation between them (classification models, clustering). You ask the system if he sees some correlation among the data you provide. This approach is more statistical, the model will try to give you some categories (fruit, vegetables). Example: Dimensionality reduction (big data visualization, meaningful compression) and Clustering (recommender systems, targeted marketing, customer segmentation). Reinforcement Learning Reinforcement learning is a machine learning technique that aims to create autonomous agents capable of choosing actions to achieve certain goals through interaction with their environment. Reinforcement learning is one of the three main paradigms of machine learning, together with supervised and unsupervised learning. Unlike the other two, this paradigm deals with sequential decision problems, in which the action to be taken depends on the current state of the system and determines its future state. Example: Game AI, skill Acquisition, learning tasks, real-time decisions.