Q7Artificial Intelligence Techniques
Question
Q.4. (a) What is machine learning systems? Explain. [8]
(b) Discuss any supervised algorithm with neat diagram. [8]
Answer
A machine learning system is a computational system that automatically improves its performance on a given task through experience (training data), without being explicitly programmed with a fixed set of task-specific rules; linear regression is a representative supervised learning algorithm that learns a linear relationship between input features and a continuous target output by minimizing the sum of squared prediction errors across the training data.
(a) Machine Learning Systems
A machine learning system is a computational system designed to automatically improve its performance at a specified task through experience, typically in the form of a training dataset of example input-output pairs (for supervised learning) or unlabeled input data alone (for unsupervised learning), rather than being explicitly programmed with a comprehensive, hand-crafted set of rules covering every possible situation the system might encounter. The classical, widely-cited definition (due to Tom Mitchell) states that a computer program is said to learn from experience E, with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E.
Key components of a machine learning system: a training dataset (a collection of example data, either labeled with known correct outputs for supervised learning, or unlabeled for unsupervised learning); a chosen model/hypothesis representation (a parameterized mathematical function, such as a linear model, decision tree, or neural network, whose specific parameter values determine its exact input-output behavior); a learning (training) algorithm (a procedure, such as gradient descent, that systematically adjusts the model's parameters based on the training data to improve its performance according to a specified objective/loss function); and an evaluation procedure (typically using a separate, held-out test dataset not used during training, to assess how well the trained model generalizes to new, previously unseen data, rather than merely how well it fits the specific training examples it was trained on).
Categories of machine learning: machine learning systems are broadly categorized into supervised learning (learning a mapping from labeled input-output training examples, used for classification and regression tasks), unsupervised learning (discovering inherent structure or patterns in unlabeled data, such as clustering or dimensionality reduction), and reinforcement learning (learning an optimal sequence of actions through trial-and-error interaction with an environment, guided by a reward signal indicating the desirability of the outcomes achieved), each suited to different types of problems and available data.
(b) Supervised Algorithm - Linear Regression
Linear regression is a fundamental supervised learning algorithm used to model the relationship between one or more input features and a continuous-valued target output, by fitting a linear (straight-line, for a single input feature) function to the training data.
Model representation: for a single input feature x, linear regression assumes the target output y can be approximated as a linear function of x:
where w0 (the intercept) and w1 (the slope) are the model's learnable parameters, and y-hat denotes the model's predicted output for a given input x (as distinguished from the actual, true target value y in the training data).
Training objective: the learning algorithm determines the specific values of w0 and w1 that minimize the total squared prediction error (the sum, over all training examples, of the squared difference between each training example's actual target value and the model's predicted value for that example), commonly termed the least-squares objective:
where m is the number of training examples, and the superscript (i) denotes the i-th training example.
Learning procedure: the optimal parameter values minimizing this squared-error objective function can be found either via a closed-form analytical solution (the normal equations, obtained by setting the objective function's derivative with respect to each parameter to zero and solving the resulting system of linear equations directly), or, especially for problems with many input features or very large training datasets, via an iterative gradient-descent procedure, which progressively adjusts w0 and w1 in the direction that reduces the objective function J, using update rules analogous to those described for neural network training in an earlier answer, repeated until convergence to the minimum-error parameter values.
Generalization to multiple features: linear regression extends naturally to problems with multiple input features (multiple linear regression), in which the model becomes y-hat=w0+w1x1+w2x2+...+wn*xn, with the same underlying least-squares training objective and solution approach used to determine the optimal values of all the model's weight parameters simultaneously. Once trained, the resulting linear regression model provides a simple, highly interpretable relationship between the input features and the predicted continuous output, making it a widely-used baseline supervised learning algorithm across many practical prediction and forecasting applications, including load forecasting and other regression-type problems relevant to electrical engineering practice.
The choice between supervised algorithms (such as the one diagrammed and explained above) and other machine learning paradigms depends heavily on the availability of labeled training data for the specific task at hand: supervised learning is the natural choice whenever a sufficiently large dataset of correctly-labeled examples is available, whereas tasks lacking labeled data, or tasks where the very notion of a 'correct' output label is not well defined in advance, typically require unsupervised or reinforcement learning approaches instead, illustrating that the practical machine learning paradigm selected for any given real-world application is driven as much by the nature and availability of the data as by the specific characteristics of the underlying task itself.
A commonly used diagram for illustrating a supervised algorithm's operation shows the training data flowing into the learning algorithm along with the corresponding true labels, producing a trained model; new, unlabeled input data is then fed into this trained model during the prediction/inference phase, producing the model's predicted output label as its final result.
This train-then-predict workflow, illustrated conceptually by the diagram description above, is the standard operational pattern followed by essentially every supervised learning algorithm in practical use today.
This completes the explanation of machine learning systems and the illustrated supervised learning algorithm as requested by the question.
Both the conceptual explanation and the illustrated algorithm together satisfy the full scope of what the question requires.
Both parts together give a complete picture of machine learning systems and supervised algorithm operation.
Machine learning systems and supervised algorithms of the kind described here now underpin a very wide range of practical AI applications in everyday use, from email spam filtering and product recommendation engines to medical diagnosis support and financial fraud detection, illustrating the broad practical significance of the concepts covered in this question.
This closes the answer with a complete, well-rounded treatment of both required parts.
This final note closes out the answer as required.