Skip to Main Content
Back to website
Read previous article: What are Large Language Models
10 mins read

What is Machine Learning

Machine learning is a branch of computer science that aims to enable computers to “learn” from data and improve their performance at tasks without being explicitly programmed for each specific task. It involves developing algorithms that allow computers to identify patterns, make decisions, and predict outcomes based on data inputs. 

The essence of machine learning is in its ability to adapt and improve over time through exposure to data, which is analogous to gaining experience. It is one of today’s most rapidly growing technical fields, lying at the intersection of computer science and statistics, and at the core of artificial intelligence and data science- (Jordan, 2015)

To understand how machine learning works, it is important to develop familiarity with some fundamental terminologies that are commonly used in this field. Please have a look at them below. 

  • Features: Features, also known as input variables, are the individual measurable properties or characteristics of a phenomenon being observed. In a dataset, features are used by machine learning algorithms to make predictions or classifications. 
  • Label: The label, also known as the target variable or output variable represents the desired output or outcome for a given set of features. In the case of spam detection, the label could be “spam” or “not spam” for each email. 
  • Algorithm: A procedure or a set of rules followed to perform a specific task. In the context of machine learning, it refers to the mathematical and computational techniques used to train a machine learning model on data. The algorithm processes data and iteratively adjusts its parameters to minimize errors and improve its performance on the given task. Examples include Linear regression, Logistic regression, Decision tree, SVM algorithm, Naive Bayes algorithm, KNN algorithm, etc.
  • Model: A machine learning model is the result of training a machine learning algorithm on a dataset. It represents the learned patterns, parameters, and structures that can be used to make predictions or classifications on new data. The model applies the learned patterns and relationships from the training process to make predictions or decisions on new, unseen data. Examples include Trained Linear Regression Model, Trained SVM Model, and Trained KNN Model. 
  • Training Data: Training data is a collection of labeled examples used to train a machine learning model. This data consists of input features and their corresponding labels. During the training phase, the model learns the underlying patterns in the data by adjusting its internal parameters. The model’s performance is evaluated using a separate dataset called the test set, which contains examples not used during training.

Origin & History

The history of machine learning is marked by significant theoretical and practical advancements, driven by interdisciplinary collaboration and technological progress. The details discussed in this section are based on the detailed historical account provided by Alexander L. Fradkov in his paper “Early History of Machine Learning“.  

I. Early Years (1950s-1960s)

A. Frank Rosenblatt and the Perceptron

The modern concept of machine learning began with psychologist Frank Rosenblatt from Cornell University. In the late 1950s, Rosenblatt developed the “perceptron,” a machine designed to recognize letters of the alphabet by mimicking the neural processes of the human brain. 

The perceptron used both analog and discrete signals and included a threshold element that converted analog signals into discrete ones. This work laid the foundation for modern artificial neural networks (ANNs) and was closely related to models of animal and human learning in psychology.

B. Mathematical Foundations

The Novikoff theorem, formulated in 1962, provided conditions for the convergence of a perceptron learning algorithm in a finite number of steps. This period also saw the development of various deterministic and probabilistic approaches to pattern recognition by researchers such as Mark Aizerman, Vladimir Vapnik, and Alexey Chervonenkis.

II. The 1960s: First Boom of Machine Learning

A. Deterministic and Probabilistic Approaches

In the early 1960s, multiple research groups worked on the design and testing of learning recognition systems. Researchers such as Widrow, Bongard, and Braverman contributed to the development of deterministic approaches, while Aizerman, Braverman, and Rozonoer proposed probabilistic statements of the machine learning problem.

B. Gradient-Type Algorithms and Support Vector Machines

During this period, gradient-type algorithms for perceptron learning were developed, constructing separating hyperplanes to classify data. This work led to the development of support vector machines (SVM), a significant advancement in the field.

III. The 1980s: Second Boom of Machine Learning

A. Backpropagation & Neural Networks

The 1980s marked a resurgence in interest in machine learning, driven by the invention of the backpropagation learning algorithm by researchers such as Rumelhart, Hinton, and Williams. This algorithm allowed for the training of multilayer neural networks, significantly improving their learning capabilities. .

B. Convolutional Neural Networks

Kunihiko Fukushima proposed the neocognitron, a hierarchical multilayered convolutional neural network, in 1980. This architecture laid the groundwork for modern convolutional neural networks (CNNs) used in image recognition tasks.

IV. The 2000s: The Rise of Big Data & Deep Learning

A. Big Data & Computational Advances

The early 2000s saw the emergence of Big Data, the reduction in the cost of parallel computing, and advancements in hardware such as GPUs. Technologies like Google’s MapReduce and its open-source counterpart Hadoop facilitated the processing of large datasets, enabling more sophisticated machine learning applications.

B. Deep Learning

The concept of deep neural networks (DNNs) gained prominence, with significant contributions from researchers such as Geoffrey Hinton, Yann LeCun, and Yoshua Bengio. This period saw the development of deep learning techniques that could handle complex data and achieve remarkable performance in tasks like image and speech recognition. 

Machine Learning Categories  

Machine learning is broadly categorized into four main types: supervised learning, semi-supervised learning, unsupervised learning, and reinforcement learning. Each type addresses different kinds of tasks and uses various approaches to achieve learning.

I. Supervised Learning

Supervised learning involves using labeled datasets to train algorithms for accurate data classification and outcome prediction. As input data is fed into the model, it adjusts its weights to fit the data appropriately. This process includes cross-validation to prevent overfitting or underfitting, ensuring the model’s reliability.

Supervised learning enables organizations to address various real-world problems at scale, such as classifying spam emails into a separate folder from the inbox. By leveraging this approach, highly accurate machine-learning models can be developed to meet diverse needs- (IBM, 2024).

Common machine learning algorithms used in supervised learning: 

  • Linear Regression
  • Decision Trees
  • Random Forests
  • Support Vector Machines (SVM)
  • Neural Networks

II. Unsupervised Learning

Unsupervised learning employs machine learning algorithms to analyze and cluster unlabeled datasets into subsets called clusters. These algorithms identify hidden patterns or groupings in the data without human intervention.

The ability of unsupervised learning to uncover similarities and differences within information makes it ideal for exploratory data analysis, cross-selling strategies, customer segmentation, and image and pattern recognition.

For instance, Google News utilizes unsupervised learning to categorize articles on the same topic from various online news outlets. An example is grouping articles about a presidential election under the “US” news label. 

Common machine learning algorithms used in unsupervised learning: 

  • K-Means Clustering
  • Hierarchical Clustering
  • Principal Component Analysis (PCA)
  • Anomaly Detection Algorithms

III. Semi-Supervised Learning

Combines aspects of supervised and unsupervised learning by using a small amount of labeled data along with a large amount of unlabeled data to improve learning accuracy.  

It is not wrong to say that semi-supervised learning can address the issue of insufficient labeled data for a supervised learning algorithm. Additionally, it is beneficial when labeling a large amount of data is too expensive – (IBM, 2024)

Common machine learning algorithms used in semi-supervised learning: 

  • Semi-Supervised SVM
  • Graph-Based Methods
  • Self-Training Algorithms

IV. Reinforcement Learning

This machine learning model is similar to supervised learning, but the algorithm isn’t trained using sample data. This model learns as it goes by using trial and error. A sequence of successful outcomes will be reinforced to develop the best recommendation or policy for a given problem.

Reinforcement learning involves training an agent to make a sequence of decisions by rewarding desirable behaviors and penalizing undesirable ones. This method is often used in robotics and game-playing- (Fradkov, 2020). 

Common machine learning algorithms used in reinforcement learning: 

  • Q-Learning
  • Deep Q-Networks (DQN)
  • Policy Gradient Methods
  • Actor-Critic Methods

Machine Learning Tasks/Techniques

Machine learning tasks refer to the specific problems that machine learning models aim to solve. These tasks can be broadly categorized into several types, each addressing different kinds of problems and data. Here are the primary machine-learning tasks:

I. Classification

The Classification task is a Supervised Learning technique that is used to identify the category of new observations on the basis of training data. In Classification, a program learns from the given dataset or observations and then classifies new observations into a number of classes or groups. Example- Yes or No, 0 or 1, Spam or Not Spam, cat or dog, etc. Classes can be called targets/labels or categories. The best example of an ML classification algorithm is an Email Spam Detector. 

Related:

  • How Machine Learning Works

    Training Machine Learning Models 

    Model training is a fundamental process in machine learning where an algorithm is fed with training data to learn patterns and optimize its parameters. The ultimate goal is to develop a model that can make accurate predictions by minimizing the difference between the model’s outputs and the true labels in the training data. This involves …
    Read article: Training Machine Learning Models
Read previous article: What are Large Language Models