Supervised Learning with a Neural Network (C1W1L03)

A single-speaker YouTube lecture that introduces supervised learning (learning a mapping from inputs X to outputs Y) and surveys where neural networks have delivered value: housing price prediction, online advertising (highlighted as highly lucrative), computer vision, speech recognition, machine translation, and autonomous driving. The speaker contrasts common architectures (standard feedforward nets, convolutional neural networks for images, recurrent neural networks for sequence data, and hybrids for multi-sensor tasks), explains structured vs. unstructured data, and notes that although core neural-net ideas are older, recent advances (teased for the next video) explain why they are now so effective.
Chapters
There's been a lot of hype about neural networks, and perhaps some of that hype is justified given how well they're working. But it turns out that so far, almost all the economic value created by neural networks has been through one type of machine learning called supervised learning. Let's see what that means, and let's go over some examples. In supervised learning, you have some input X and you want to learn a function mapping to some output Y. So, for example, just now we saw the housing price prediction application, where you input some features of a home and try to output or estimate the price Y. Here are some other examples that neural networks have been applied to very effectively. Possibly the single most lucrative application of deep learning today is online advertising. Maybe not the most inspiring, but certainly very lucrative, in which by inputting an ad, information about an ad that a website is thinking of showing you, and some information about the user, neural networks have gotten very good at predicting whether or not you click on an ad and by showing you and showing users the ads that you're most likely to click on. This has been an incredibly lucrative application of neural networks at multiple companies, because the ability to show you ads that you're more likely to click on has a direct impact on the bottom line of some of the very large online advertising. Computer vision has also made huge strides in the last several years, mostly due to deep learning. So you might input an image and want to output an index, say, from one to a thousand, trying to tell you if this picture might be any one of, say, a thousand different images. So you might use that for photo tagging. I think the recent progress in speech recognition has also been very exciting, where you can now input an audio clip to a neural network and have it output a text transcript. Machine translation has also made huge strides thanks to deep learning, where now you can have a neural network input an English sentence and directly output, say, a Chinese sentence. And in autonomous driving, you might input an image, say a picture of what's in front of your car, as well as some information from a radar. And based on that, maybe a neural network can be trained to tell you the position of the other cars on the road. So this becomes a key component in autonomous driving systems. So a lot of the value creation through neural networks has been through, you know, cleverly selecting what should be X and what should be Y for your particular problem, and then fitting this supervised learning component into often a bigger system, such as an autonomous vehicle. It turns out that slightly different types of neural networks are useful for different applications. For example, in the real estate application that we saw in the previous video, we use a relatively standard neural network architecture, maybe for real estate and online advertising, might be a relatively standard neural network like the one that we saw. For image applications, we'll often use convolutional neural networks, often abbreviated cnn. And for sequence data. So for example, audio has a temporal component, right? Audio is played out over time. So audio is most naturally represented as a one dimensional time series, as a one dimensional temporal sequence. And so for sequence data, you often use an RNN or recurrent neural network language, you know, English and Chinese, the alphabets of the words come one at a time. So language is also most naturally represented as the sequence data. And so more complex versions of RNNs are often used for these applications. And then for more complex applications like autonomous driving, where you have an image that might suggest more of a CNN convolutional neural net structure, and radar info, which is, you know, something, something quite different, you might end up with a more custom or some more complex hybrid neural network architecture. So just to be a bit more concrete about what are the standard CNN and RNN architectures. So in the literature you might have seen pictures like this. So that's a standard neural net. You might have seen pictures like this. This is an example of a convolutional neural network. And we'll see in a later course exactly what this picture means and how you can implement this. But convolutional networks are often used for image data. And you might also have seen pictures like this and you learn how to implement this in a later course. Recurrent neural networks are, you know, very good for this type of one dimensional right sequence data that has a, maybe a temporal component. You might also have heard about applications of machine learning to both structured data and unstructured data. Here's what the terms mean. Structured data means basically, you know, databases of data data. So for example, in housing price prediction, you might have a database with a column that tells you the size and the number of bedrooms. So this is structured data. Or, you know, in predicting whether or not a user will click on an ad, you might have information about the user, such as the age, some information of the ad, and then labels Y that you're trying to predict. So that's structured data, meaning that each of the features such as size of a house or number of bedrooms, or the age of a user has a very well defined meaning. In contrast, unstructured data refers to things like audio, raw audio, or images where you might want to recognize what's in the image or text. Here the features might be the pixel values in an image or the individual words in a piece of text. Historically, it's been much harder for computers to make sense of unstructured data compared to structured data. And in fact, the human race has evolved to be very good at understanding audio cues as well as images. And then text was a more recent invention. But people are just really good at interpreting unstructured data. And so one of the most exciting things about the rise of neural networks is that thanks to deep learning, thanks to neural networks, computers are now much better at interpreting unstructured data as well, compared to, compared to just a few years ago. And this creates opportunities for many new, exciting applications that use speech recognition, image recognition, natural language processing on text, much more than was possible even just two or three years ago. I think because people have a natural empathy to understanding unstructured data. You might hear about neural network successes on unstructured data more in the media, because it's just cool when a neural network recognizes a cat. And we all like that, and we all know what that means. But it turns out that a lot of the short term economic value that neural networks are creating has also been on structured data, such as much better advertising systems, much better product recommendations, and just a much better ability to process the giant databases that many companies have to make accurate predictions from them. So in this course, a lot of the techniques we'll go over will apply to both structured data and to unstructured data. For the purposes of explaining the algorithms, we will draw a little bit more on examples that use unstructured data. But as you think through applications of neural networks within your own team, I hope you find both uses for them in both structured and unstructured data. So neural networks have transformed supervised learning and are creating tremendous economic value. It turns out, though, that the basic technical ideas behind neural networks have mostly been around sometimes for many decades. So why is it then that they're only just now taking off and working so well? In the next video, we'll talk about why it's only quite recently that neural networks have become this incredibly powerful tool that you can use.










