1. Home
  2. Explore
  3. Computer Science
  4. AI and Machine Learning Overview

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

AI and Machine Learning Overview

Speaker 1Speaker 2

AI and Machine Learning Overview

19:36
0:00-19:36
  1. Michael

    Welcome to the episode. Today we're building a shared foundation for artificial intelligence and machine learning. We'll move from the broad definition of AI, through the architecture of an AI system, and then into supervised, unsupervised, and reinforcement learning.

  2. Anna

    And because this is an overview, we won't explore every algorithm in depth. The goal is to establish common language and highlight the ideas that matter when you're designing or evaluating an AI system.

  3. Michael

    Let's begin with a distinction that is easy to miss: narrow AI versus general AI. Narrow AI is the theory and development of computer systems that perform tasks augmenting human intelligence, such as perceiving, classifying, learning, abstracting, reasoning, or acting.

  4. Anna

    General AI is a much stronger idea: full autonomy. So when people casually say AI, they may be mixing practical systems designed for specific tasks with the much broader concept of a fully autonomous intelligence.

  5. Michael

    Why has AI become such a major topic now, when researchers have worked on it for decades? The recent resurgence comes from the convergence of three technical communities: big data, computing technologies, and advances in machine learning algorithms.

  6. Anna

    There is also an economic factor. Organizations have found ways to make money from AI-related activities, including advertising and large-scale data labeling. But technically, the important point is that data, computation, and algorithms have matured together.

  7. Michael

    A useful way to understand an AI system is through a canonical, end-to-end architecture. It begins with sensors and other data sources and ends with an end user or mission. AI is not just an algorithm sitting in isolation.

  8. Anna

    The pipeline starts with structured or unstructured data. That data goes through conditioning and curation, where it is organized and prepared. It is then converted into information and passed to one or more algorithms.

  9. Michael

    The algorithms turn information into knowledge. That knowledge interacts with a human, an end user, or a mission in a human-machine teaming step. When the machine's knowledge is combined with human judgment, the result can become insight used to execute the mission.

  10. Anna

    All of this rests on modern computing infrastructure. And surrounding the entire system is what we can call robust AI: explainability, metrics, bias assessment, verification and validation, security, policy, ethics, safety, and training.

  11. Michael

    AI also has a rich history, with important work going back to the 1950s, further developments in the 1980s and 1990s, and a more recent resurgence. One helpful framework describes several waves of AI based on how well systems perceive, learn, abstract, and reason.

  12. Anna

    The first wave was reasoning-based systems built from handcrafted knowledge. Expert systems are the classic example: a human expert writes rules, and the system applies those rules. Tax software can encode rules supplied by tax experts, and early autonomous vehicles used handcrafted states and transitions in finite-state systems.

  13. Michael

    These expert systems remain useful. They can work when data or computing power is limited, and they are especially valuable when explainability matters, because the system can point to the human-written rules behind its decision.

  14. Anna

    The next wave is the learning wave, enabled by larger amounts of data and statistical learning. Instead of encoding every rule, developers provide some high-level knowledge and allow the system to learn the details from data.

  15. Michael

    Speech processing provides an example. A developer might encode statistical knowledge such as a Gaussian mixture model, while allowing the system to learn the precise details. In autonomous vehicles, high-level states could be specified while the algorithm learns when transitions between states occur.

  16. Anna

    Compared with expert systems, learning-wave systems generally improve perception and learning, but their ability to abstract and reason remains limited. In this context, reasoning includes being able to explain what is happening when the system produces an output.

  17. Michael

    A later wave is contextual learning, or contextual adaptation. The idea is that a system can automatically use context to abstract and reason. For example, if you recognize an object as a chair in one setting, you can still recognize it as a chair in another setting by using surrounding context.

  18. Anna

    Beyond that is a more future-oriented wave involving abstraction itself. An abstract system would not merely memorize that a table has legs. It might learn that a table is something people put things on, and then transfer that knowledge across domains.

  19. Michael

    None of these waves is automatically better than the others. The right choice depends on three practical dials: how much computing power you have, how much data you have, and how much expert knowledge you can embed in the algorithm.

  20. Anna

    If computing and labeled data are scarce but expert knowledge is abundant, an expert system may be appropriate. If you have large amounts of data and computing power but want to encode little human knowledge, techniques such as neural networks may be a better fit.

  21. Michael

    Data deserves special emphasis. Public attention often focuses on algorithms, but a good, canonical, well-structured, well-labeled, and well-documented data set can be just as important, or even more important, for an AI breakthrough.

  22. Anna

    So when developing an AI problem, work with stakeholders to obtain and prepare the data. Making a strong data set available to the wider AI community can benefit both the original project and other researchers.

  23. Michael

    The first practical stage is data conditioning. Structured sources might include sensor data, network logs, sensor metadata, or signals collected according to a known pattern. Unstructured sources might include internet content, social media material, reports, or data without a strong internal organization.

  24. Anna

    Infrastructure helps organize those sources. Databases and related technologies can provide indexing, structure, domain-specific ways to query data, high-performance access, and declarative interfaces where you request the data without specifying every detail of how it is retrieved.

  25. Michael

    Data curation is another major part of preparation, and it can take a long time because it requires understanding both the data and the intended task. It may involve unsupervised learning, dimensionality reduction, clustering, pattern recognition, outlier detection, and identifying missing values.

  26. Anna

    Data exploration and labeling are also essential. You might begin by inspecting the rows and columns, looking for incomplete values or obvious errors, and checking with the data provider when something seems suspicious. If a sensor reports exactly the same value every time, for instance, you need to determine whether that is real or a sensor problem.

  27. Michael

    Curation and labeling should also look for collection errors and bias. Labels identify the phenomena you want a machine-learning algorithm to learn, but labels are only useful if the underlying data is accurate and representative.

  28. Anna

    A striking practical observation is that unstructured data may account for around 90 percent of the volume in some data sets, while structured metadata accounts for the remaining 10 percent. Yet much of the value often comes from structured data because it is easier to analyze.

  29. Michael

    That means converting unstructured data into structured or semi-structured form can unlock substantial value. Data can also come from multiple modalities, such as audio and text, although combining information collected by different systems creates integration challenges. Some sources, such as speech, can fall between structured and unstructured depending on how they are acquired and what metadata they include.

  30. Anna

    Once data is prepared, the next question is which algorithm to use. Neural networks are important, but they are only one part of machine learning, and machine learning is only one part of artificial intelligence.

  31. Michael

    One taxonomy describes five tribes of machine learning. Symbolists include expert systems, Bayesian methods include naive Bayes, analogizers include support vector machines, connectionists include deep neural networks, and evolutionary approaches include genetic programming.

  32. Anna

    The lesson is not to choose an algorithm because it is fashionable. Choose according to the application, the available data, the computing resources, and the amount of expert knowledge that can be encoded reliably.

  33. Michael

    Computing platforms are part of that decision. CPUs and GPUs are widely used, but as traditional scaling reaches limits associated with the end of Moore's Law, custom architectures are becoming increasingly important.

  34. Anna

    Examples include Google's Tensor Processing Unit, or TPU, neuromorphic computing, and specialized processors such as graph processors. Neuromorphic systems are described as brain-inspired; they may use clockless operation and different memory architectures. Quantum computing is also being explored, although its practical role in AI remains uncertain and unproven.

  35. Michael

    There is no universal winner among processors. A GPU is not simply better than a CPU; the answer depends on the task and the goals. An embedded system, such as one on a drone, may prioritize low power, while a data center may accept greater power use in exchange for higher performance.

  36. Anna

    That brings us to robust AI. Robustness matters because the consequences of an incorrect AI action can range from trivial to life-threatening. Two useful dimensions are the consequence of action and the confidence we have in the machine's decision.

  37. Michael

    Low-consequence tasks with high machine confidence are strong candidates for automation. Assembly-line processes and spam filtering are examples. When the consequence is high and confidence is low, humans should be heavily involved, particularly in situations involving health, national security, or life and death.

  38. Anna

    Between those extremes is augmentation. A machine might reduce a thousand documents to ten for a human to review, or provide information that helps a person make the final decision. As confidence improves, the boundary may shift toward more automation, with humans taking a supervisory role.

  39. Michael

    Autonomous vehicles illustrate why this is difficult. A mistake can have serious consequences, while confidence in the decision-making has historically been described as medium at best. Yet people still accept some degree of automation, showing that the balance between risk, confidence, and human involvement is a practical and social question.

  40. Anna

    Robust AI includes explainable AI, meaning the system can describe what it is doing in an interpretable way. It also includes appropriate metrics beyond simple accuracy, plus verification and validation to test whether known inputs produce expected outputs.

  41. Michael

    Security is broader than simply protecting access. It includes protecting the confidentiality, integrity, and availability of the algorithm, data sets, outputs, weights, and biases. Policy, ethics, safety, and training are especially important when machines and humans share responsibility.

  42. Anna

    Human-machine teaming depends on the application. Sometimes the machine performs most of the work and the human supervises. In other cases, the human leads and the machine performs a narrowly targeted task.

  43. Michael

    Another useful comparison considers application complexity and scale. Machines are especially effective when a task is relatively manageable but must be repeated at very high volume, such as spam filtering. Humans may be more effective when the task is highly complex but occurs only occasionally, such as reviewing information for a potential company acquisition.

  44. Anna

    Now let's define machine learning. It is the study of algorithms that improve their performance at a task through experience, where experience generally means data. The algorithm optimizes according to a performance criterion using examples or past experience.

  45. Michael

    Machine learning draws on statistics, computer science, and computing. A helpful contrast is traditional programming: you provide data and explicitly written instructions, and the computer produces an output.

  46. Anna

    In machine learning, you provide data and, in many cases, the desired outputs, then ask the computer to infer the program or model that connects them. Common tasks include classification, regression, prediction, and clustering.

  47. Michael

    The three broad learning paradigms are supervised, unsupervised, and reinforcement learning. Supervised learning uses labels, unsupervised learning generally uses no labels, and reinforcement learning uses reward information rather than a label for every individual data point.

  48. Anna

    In supervised learning, you start with labeled data, sometimes called ground truth, and build a model that predicts labels for new data. Regression predicts a continuous variable, while classification predicts a class or category.

  49. Michael

    The usual workflow separates data into training and test portions. Training data, containing inputs and labels, is used to build the model. Then the trained model is applied to unseen or test data, a process called inference, to evaluate how well it generalizes.

  50. Anna

    A major pitfall is overfitting. A model can perform extremely well on training data yet perform poorly on test data because it learned the training examples rather than a pattern that generalizes. Underfitting is another problem: the chosen model may be too limited to represent the behavior in the data.

  51. Michael

    Other causes of poor results include noisy, missing, or biased data; choosing the wrong model, such as a linear model for a nonlinear phenomenon; and failing to separate training and testing data properly.

  52. Anna

    Neural networks are one important family of machine-learning algorithms. They are computing systems inspired by biological networks that learn through repeated training on examples. Their basic components include inputs, layers, outputs, weights, and biases.

  53. Michael

    A deep neural network has many hidden layers, although definitions of deep vary. Neural-network families include convolutional neural networks, recurrent or recursive networks, and deep belief networks. Their popularity is helped by the availability of tools that make it relatively easy to create and train a network.

  54. Anna

    Inputs can be many things. For an image, they might be RGB pixel values, spatial positions, or distances between pixels. For a time-series signal, they might include amplitude or magnitude at a particular time or frequency. Designing useful inputs is known as feature engineering.

  55. Michael

    Features can also come from multiple sources, such as combining audio and text. In a neural network, each layer generally applies a nonlinear function to a weighted combination of the previous layer's outputs, plus a bias. During training, the system learns the weights and biases that define the model.

  56. Anna

    For a simple numerical example, suppose a node has weights of 2.7, 8.6, and 0.002, and inputs of negative 0.06, 2.5, and 1.4. The weighted sum is formed by multiplying corresponding inputs and weights and adding them, producing about 21.34 in the example.

  57. Michael

    That value is then passed through an activation function, such as a sigmoid. A sigmoid applied to a large positive value is approximately 1. The calculation is repeated throughout the network, layer by layer.

  58. Anna

    Training adjusts the weights iteratively to reduce error. The network starts with an initial set of weights, processes data, compares its output with what is desired, changes the weights, and repeats the process until the results become reasonable.

  59. Michael

    Real networks may contain hundreds of layers, thousands of inputs, and millions or billions of weight changes per iteration. Activation functions matter too. Sigmoid is one option, while ReLU is another; ReLU avoids limiting values to the zero-to-one range and can avoid the vanishing-gradient problem mentioned in the lecture.

  60. Anna

    Designing a network involves choosing its inputs, depth, network type, layer types, training algorithm, and performance metrics. In practice, people often start with an architecture that worked on a similar application, because designing and training a network from scratch can be expensive.

  61. Michael

    Training can also be parallelized. With data parallelism, different nodes process different portions of the data and synchronize their learned models. With model parallelism, different parts of a model are distributed across processing elements because the whole model may not fit on one node.

  62. Anna

    Unsupervised learning takes a different approach. It tries to describe hidden structure in unlabeled data. Rather than providing the correct answer for every example, you ask the algorithm to discover patterns, subgroups, clusters, or useful dimensions.

  63. Michael

    Common unsupervised tasks include clustering, dimensionality reduction, data projection, and preprocessing. Clustering groups objects so that members of the same cluster are more similar to one another than to members of other clusters.

  64. Anna

    A clustering algorithm may begin with a chosen number of clusters and an initial assignment, then repeatedly adjust membership according to a measure such as squared error. Unlike supervised learning, there is no single obvious label-based performance target, so choosing an appropriate metric can itself be difficult.

  65. Michael

    Dimensionality reduction decreases the number of variables under consideration. A data set may contain hundreds or thousands of features, some of which are unchanging or not very useful. Reducing dimensions can support feature selection, feature extraction, compression, and visualization in two or three dimensions.

  66. Anna

    Unsupervised learning is valuable when labeling is too difficult or expensive. In cybersecurity, for example, collecting billions of network packets makes it unrealistic to label every packet as good or bad. An unsupervised method can first identify relevant patterns, after which selected data may be labeled for supervised learning.

  67. Michael

    Neural networks can also support unsupervised learning, especially when the goal is to find better representations, clusters, or lower-dimensional descriptions. Their nonlinear capabilities can be useful even without labeled examples.

  68. Anna

    An autoencoder illustrates this. It compresses input data through a narrower internal representation and then tries to reconstruct the original input. The system is judged by the difference between the reconstructed output and the original input, while the narrow internal representation acts as a reduced-dimensionality version of the data.

  69. Michael

    Finally, reinforcement learning is based on rewards rather than labels for each input. An agent takes actions, receives positive or negative feedback, and tries to maximize its accumulated reward. The feedback may be delayed, time matters, and the agent's actions can change the data or situation it encounters next.

  70. Anna

    Flying helicopter stunt maneuvers provide an example. If the helicopter remains upright, the system receives encouragement to continue useful behavior. If it tips over, the system receives negative feedback and should avoid repeating the actions that caused the problem.

  71. Michael

    You could try to formulate that as supervised learning by labeling every helicopter configuration as upright or not upright, but collecting all those examples would be extremely expensive and difficult. Reinforcement learning is useful when the system is too complex to label every situation directly, and it can resemble the way people learn through consequences.

  72. Anna

    So the central picture is an ecosystem. Successful AI depends on suitable data, computing infrastructure, algorithms, and domain expertise, all connected through a full system architecture.

  73. Michael

    And a responsible system also needs robust AI: explainability, meaningful metrics, validation, verification, security, bias assessment, policy, ethics, safety, and training. The level of human involvement should reflect both the system's confidence and the consequences of its actions.

  74. Anna

    If you remember the learning paradigms, supervised learning learns from labeled examples, unsupervised learning discovers structure without labels, and reinforcement learning learns from rewards over time. Choosing among them depends on the problem, the data you can obtain, and the resources available.

  75. Michael

    That gives us the foundation: AI is broader than neural networks, machine learning is broader than deep learning, and building a useful AI system requires far more than selecting an algorithm. The strongest results come when data, computation, technical methods, and human expertise are brought together deliberately.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent