Machine Learning Introduction


Machine Learning Introduction

Michael
Welcome to Machine Learning for Engineering and Science Applications. This opening episode introduces the course and gives us a brief history of artificial intelligence. Simon, perhaps the best place to begin is with something familiar: where are we already using machine learning in everyday life?

Simon
A good example is Amazon's recommendation system. After you buy or browse certain products, it can recommend books or other items you might like. Amazon Echo combines speech recognition with searches and other services, and Google's spam filter decides whether incoming mail is likely to be unwanted. These systems look very different, but machine learning is an essential part of all of them.

Michael
Self-driving cars provide another example. Google's Lexus, and more recent autonomous-driving projects, use machine learning as part of the system that helps a vehicle interpret its surroundings and make driving decisions. So machine learning is not restricted to one kind of product; it appears in recommendations, speech, email classification, and vehicles.

Simon
Very simply, machine learning is a method, or a collection of algorithms, used to replicate activities that normally require human cognition. Humans recognize speech quickly, identify spam almost instantly, and—when trained—drive vehicles fairly seamlessly. The challenge is that encoding those abilities as a complete list of rules is extremely difficult.

Michael
Right. You could write rules such as, 'If an email comes from a particular country, or mentions money, mark it as spam.' But those rules would produce mistakes, and the number of special cases would grow rapidly. Human judgment depends on many subtle patterns, so instead of trying to write every rule explicitly, we use a broad collection of machine learning models.

Simon
Those models are not all new. Some important machine learning techniques are at least half a century old, and certain ideas go back even further. This course will study both foundational algorithms and newer methods, with the emphasis placed on engineering and science applications.

Michael
Medical diagnosis is one important application. A radiologist examines an X-ray or MRI and makes judgments such as whether a tumor appears cancerous or noncancerous. The course asks whether machine learning can replicate or assist with that kind of expert decision-making.

Simon
Another application comes from fluid mechanics. Imagine flow passing around a cylinder, producing velocity contours. Traditionally, engineers use computational fluid dynamics, or CFD, along with solid-mechanics models and other continuum or partial-differential-equation-based models. Machine learning may be able to produce useful models more rapidly in at least some parts of that process.

Michael
The broad aim is to understand basic machine learning models thoroughly, especially deep learning. The course also covers fundamental methods that have been used for around fifty years, as well as modern techniques developed during the last decade and, in some cases, only in the last few years. Because the field is moving quickly, the focus is on understanding methods in the context of practical engineering problems.

Simon
And this is intended to be hands-on. The video course can introduce coding paradigms and demonstrate examples, but students are expected to program for themselves to get the maximum benefit. Suggested exercises will include areas such as medical image diagnosis, turbulence modeling, and CFD-related problems.

Michael
Another major goal is learning to read applied machine learning research papers. You may not immediately understand the most advanced theoretical papers, but you should be able to follow a paper that applies machine learning to a practical problem. Much of the newest development appears in research papers and repositories such as arXiv rather than in established textbooks.

Simon
So the course overlaps with other machine learning courses, but its emphasis is more applied. It aims to provide an overview, a basic understanding of the models in use, and enough practical ability to apply them to engineering and scientific questions.

Michael
What preparation is needed? One requirement is mathematical sophistication—not necessarily mastery of every area of mathematics, but comfort with quantitative and mathematical thinking. The course introduces essential ideas from linear algebra, probability, statistics, numerical computation, and optimization, but students need to be comfortable reasoning in that framework.

Simon
Programming is the other major prerequisite. Examples use Python and MATLAB, so students should at least be able to understand their syntax. However, the course is most useful if students are comfortable writing programs and carrying out hands-on exercises rather than only watching demonstrations.

Michael
The syllabus has three broad parts. The first concerns artificial neural networks and deep learning, including simple artificial neural networks, convolutional neural networks, or CNNs, and recurrent neural networks, or RNNs. CNNs are particularly associated with vision problems, while RNNs are commonly used for sequential data.

Simon
The second part covers classical techniques that have been used for a long time and are still valuable. These include tree-based methods, support vector machines, probabilistic methods, and unsupervised learning techniques such as Gaussian mixture models. Classical methods are also often used alongside deep learning and neural networks.

Michael
The final part looks at more modern approaches, including generative adversarial networks and, if time permits, reinforcement learning. Applications will be discussed within each module rather than treated as completely separate from the algorithms.

Simon
The first three weeks establish the foundations. Week one focuses primarily on linear algebra, week two on probability and statistics, and week three on numerical computation, optimization, and an overview of popular machine learning packages. These topics supply the language and tools needed for the later material.

Michael
Weeks four and five introduce neural networks through linear regression and logistic regression, which can be viewed as very simplified neural-network algorithms. After that come more complex and multilayer neural networks. The next three weeks develop variations such as convolutional networks for vision and recurrent networks for sequences and time-series analysis.

Simon
The remaining material turns to classical and probabilistic techniques, followed by advanced methods. The exact later syllabus may change depending on how the class progresses, and reinforcement learning may be added if time allows.

Michael
Three reference books support the course. Deep Learning by Goodfellow and Bengio is treated as a classic text despite being published in 2016. Christopher Bishop's Pattern Recognition and Machine Learning is exceptionally thorough, although dense and more difficult to read.

Simon
For practical implementation, the course recommends Deep Learning with Python by François Chollet. The first two books are legally available online for free because the publishers made them available, so students are encouraged to use those resources as the course develops.

Michael
Now let's move to the historical question: why study the history of artificial intelligence? The idea is very old. Humans have always created tools to extend physical abilities—wheels for transportation, hands or tools for working, and levers for lifting. The related dream is to create thinking tools that ease or replicate mental activities.

Simon
One early example is the work of Raja Bhoj of Parmar, who speculated about machines that could imitate human speech and motion. The source presents this as speculation, not as evidence that he actually built such a machine. Across different regions and periods, people also created or imagined automatons—objects that moved automatically and sometimes appeared to imitate human actions.

Michael
The Mechanical Turk is a famous cautionary example. It was presented as a machine capable of playing chess, but in reality a person hidden inside controlled it. Even though it was fraudulent, it reflects the long fascination with constructing machines that seem to reproduce human intelligence.

Simon
Leibniz proposed another influential idea: that human thoughts might be combinations of a small number of basic, axiomatic units. That resembles, at a broad level, the way modern computers represent everything using zeros and ones. A central question for machine learning is whether thinking and creativity can similarly be represented through elemental processes.

Michael
Charles Babbage conceptualized the Analytical Engine in 1837, and modern computers are remarkably similar in broad concept to that design. The first computers were built in the 1940s. A single computer can now book a ticket, record speech, play music, and show videos, which can look like artificial intelligence in a broad sense.

Simon
But ordinary computation is not necessarily learning or thinking. The distinctive goal here is to develop algorithms that can learn from experience or data. That distinction becomes especially important when we compare explicitly programmed systems with machine learning.

Michael
There were several important milestones before the modern boom. In 1914, a chess-playing machine handled a king-and-rook versus king endgame. In 1925, a driverless car was demonstrated with the help of the US Army, although it was radio-controlled. During the 1940s, researchers developed ideas about artificial neurons, while Alan Turing advanced the theory of computation and the concept of a universal computer.

Simon
A universal computer is one machine capable of performing every computable task. That may seem obvious now, but it was not obvious when the idea was introduced. Claude Shannon also developed information theory, which later became important in machine learning as well as in fields such as signal processing.

Michael
The 1950s brought strong optimism. Norbert Wiener developed cybernetics, and researchers built early neural-network and theorem-proving machines. In 1956, at the Dartmouth conference, the term artificial intelligence was coined. Rosenblatt then developed the perceptron, a two-layer artificial neural network, while researchers such as Simon and Newell worked on automated theorem proving.

Simon
Arthur Samuel gave a more precise description of machine learning as a field that gives computers the ability to learn without being explicitly programmed. That phrase highlights the key difference from an expert system, where people try to encode the relevant rules directly.

Michael
Consider grammar correction. An expert system might be given rules about singular and plural forms or about which words should follow others. But natural language contains so many exceptions and contextual patterns that writing every rule becomes extremely difficult. Humans can switch between the grammars of multiple languages with little conscious effort, yet it is not clear how to list all the rules that enable this.

Simon
Rule-based systems work well when the rules are clear. They can handle simple games such as tic-tac-toe by explicitly describing successful moves. But complex games such as chess and Go, as well as natural-language understanding and many scientific problems, contain too many possibilities for a separate rule to be written for every case.

Michael
The difficulty is often called combinatorial explosion. As a problem grows, the number of possible choices can grow extremely rapidly—through factorial or power-law-like behavior—making exhaustive rule-based reasoning impractical. Backpropagation, an important method for training neural networks, was already available as a theoretical idea in 1969, but using multilayer networks effectively was still difficult.

Simon
This led to the first AI winter, roughly from 1974 to 1980. Early achievements were often limited to simple toy problems, and computational power was extremely low compared with today. Researchers also encountered the limitations of simple single-layer neural networks and difficulties in training multilayer networks, which contributed to reduced enthusiasm and government funding.

Michael
The deeper issue was commonsense. A baby can recognize a parent's face despite changes in clothing, expression, voice, age, or facial hair. Explicitly programming every one of those variations is extraordinarily difficult. This is why machine learning seeks patterns from examples instead of requiring humans to specify every possible situation.

Simon
There was another boom from about 1980 to 1987. Expert systems became popular, backpropagation gained attention, and a Mercedes project produced an early driverless car. Large amounts of funding were invested in autonomous driving, but the promised results did not arrive, and another period of funding cuts and reduced ambition followed from about 1987 to 1993.

Michael
From 1994 to 2000, the field entered a period of consolidation. IBM's Deep Blue defeated Garry Kasparov in chess in 1997, although Deep Blue was a rule-based system rather than a machine-learning system. At the same time, probability theory, information theory, optimization, and better optimization algorithms were developing.

Simon
Computational power also increased dramatically. Moore's law describes the approximate doubling of transistor numbers every two years, and computing power per unit cost grew exponentially for a long period. GPUs made certain computations much cheaper, and new computational approaches, including proposed quantum computing, attracted attention.

Michael
The years from about 2000 to 2012 were relatively quiet in public AI excitement, but they were extremely important technically. The growth of the internet and search engines produced huge quantities of text, images, video, and other data. Machine learning is data-hungry, so this expanding supply of data created much better conditions for training statistical models.

Simon
Researchers also became more pragmatic. Rather than attempting to build a generally intelligent machine all at once, they targeted specific outcomes: reading the digits on a postcard, recognizing images in a defined task, or filtering spam. Narrow, measurable goals made it easier to collect suitable data and compare which model performed best.

Michael
There were notable demonstrations during this period. In 2005, an autonomous vehicle traveled roughly 135 miles without interruption. Around 2011 or 2012, IBM's Watson defeated a Jeopardy champion in a quiz involving knowledge, language, puns, and wordplay. These results showed how far specialized systems had progressed.

Simon
The modern boom is often associated with the 2012 ImageNet challenge. Systems had to classify images among one thousand categories, such as cats, dogs, and buildings. AlexNet, a convolutional neural network, produced a major improvement over the traditional computer-vision methods that had previously dominated the competition.

Michael
After AlexNet, machine-learning approaches won the ImageNet challenge every year. That dramatic improvement made many researchers and companies take deep learning seriously, and the field expanded rapidly. It also explains why this course relies partly on recent research papers: many important methods were developed only in the last several years.

Simon
Two widely discussed achievements reinforced the excitement. IBM Watson demonstrated strong performance on Jeopardy, and Google's AlphaGo defeated the Go champion Lee Sedol. Go has relatively simple rules but a much larger combinatorial search space than chess, so the result surprised many people who had thought that a machine defeat of a top Go player was still years away.

Michael
Why does the current boom differ from earlier hype cycles? There is much greater computational power, including GPUs, much larger datasets, and better algorithms. Resources have also been democratized: powerful laptops, open-source software, and packages from organizations such as Google, Facebook, IBM, and Microsoft allow many more people to experiment.

Simon
Data has come from many sources, including online services, image-tagging activities, games, and even some CAPTCHA tasks. When people identify letters or numbers in images, those labels can help train recognition systems. Together, private investment, government interest, hardware improvements, software availability, and large datasets have driven the current growth.

Michael
The course ultimately treats algorithms as models. Engineers already use models for fluid behavior, turbulence, stress and strain, ideal gases, and electrical relationships such as Ohm's law. A machine-learning algorithm can be viewed in the same spirit: it models a relationship between inputs and outputs.

Simon
For example, an email is the input and the label—spam or not spam—is the output. The central questions are: what kind of model should represent that relationship, how should it be trained, and under what circumstances will it work well? For a vision problem or a time-sequence problem, the suitable range of models may be different.

Michael
That is the organizing idea for the rest of the course. We will compare models, understand how they work, identify the kinds of problems they suit, and apply them to engineering and science. The goal is not just to recognize fashionable techniques, but to choose and use models thoughtfully.

Simon
So by the end, students should have foundations in mathematics and programming, familiarity with neural networks, deep learning, classical and modern methods, experience with applications, and the ability to read relevant research papers. The field will continue changing, but understanding algorithms as models gives us a stable way to keep learning.

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