New UPSC Foundation, Optional and TGPSC/APPSC batches are open — book your counselling slot.Today's Current AffairsToday's Daily QuizCall 98804 87071

Prelims GS-I · Emerging technology · Digital and frontier technologies

Machine learning

Machine learning is a branch of artificial intelligence in which computational systems learn patterns from data to make predictions, classify information or support decisions. For UPSC Prelims, the key areas are learning methods, applications, distinctions from conventional programming, relationships with deep learning and generative AI, and concerns involving bias, privacy, explainability and regulation.

GPU blade with glycol cooling from the MareNostrum 5 at the Barcelona Supercomputing Center (BSC)

GPU blade with glycol cooling from the MareNostrum 5 at the Barcelona Supercomputing Center (BSC)

Credit: Steve Jurvetson · CC BY 4.0 · source

Color fundus photograph of the left eye shows occlusion of the superotemporal branch of retinal vein resulting in intraretinal hemorrhages and retinal exudates in the corresponding sector of retina.

Color fundus photograph of the left eye shows occlusion of the superotemporal branch of retinal vein resulting in intraretinal hemorrhages and retinal exudates in the corresponding sector of retina.

Credit: Ku C Yong, Tan A Kah, Yeap T Ghee, Lim C Siang and Mae-Lynn C Bastion, Department of Ophthalmology, Universiti Kebangsaa · CC BY 2.0 · source

1. Meaning and conceptual foundations

Machine learning, or ML, develops computational models whose performance improves through learning from data or experience rather than through manually written rules for every situation. Conventional software typically applies explicit instructions to inputs. An ML system instead estimates patterns from examples and applies those patterns to unfamiliar inputs. Both approaches can coexist: a bank may combine fixed transaction limits with an ML model that detects unusual payment behaviour.

Artificial intelligence is the broader endeavour of building systems capable of tasks associated with intelligence, including perception, reasoning, language processing and planning. Not all AI uses machine learning: rule-based expert systems are an important counterexample. Deep learning is a subset of ML that uses neural networks with multiple processing layers to learn increasingly complex representations of information.

A feature is an input attribute, such as rainfall, transaction value or a pixel intensity. A label is the target associated with a training example, such as whether a transaction was fraudulent. Model parameters are internal quantities adjusted during learning. A loss function measures error relative to a training objective, and an optimisation procedure adjusts parameters to reduce that error. The learned relationship is not necessarily a causal explanation of the underlying phenomenon.

  • Algorithm: the computational procedure used for learning or prediction.
  • Model: the learned mathematical representation produced through training.
  • Dataset: a collection of examples used for training, validation or testing.

2. Main learning approaches

Supervised learning uses examples containing both inputs and desired outputs. Classification predicts a category, such as spam or non-spam email. Regression predicts a numerical value, such as crop yield or electricity demand. Common methods include linear regression, logistic regression, decision trees, random forests and support vector machines. Despite its name, logistic regression is generally used for classification.

Unsupervised learning analyses data without predefined target labels. Clustering groups similar observations, such as consumers with comparable purchasing patterns. Dimensionality reduction represents data using fewer variables while retaining important information. Anomaly detection identifies unusual observations and can use supervised, semi-supervised or unsupervised approaches depending on the availability of labels.

Semi-supervised learning combines a relatively small labelled dataset with a larger unlabelled dataset. Self-supervised learning derives training targets from the data themselves: a language model may learn by predicting missing or subsequent text. It is important in modern foundation models because large quantities of unlabelled text, images and audio are available.

Reinforcement learning involves an agent acting in an environment, receiving feedback through rewards and learning a policy that seeks higher cumulative reward. Applications include game-playing, robotic control and resource allocation. It differs from ordinary supervised learning because a correct answer need not be supplied for each action, and the consequences of an action may emerge much later.

Typical machine-learning lifecycle

  1. 1. Define the problem, intended users and acceptable risks
  2. 2. Collect and prepare representative data lawfully
  3. 3. Separate training, validation and test data
  4. 4. Train and tune the model
  5. 5. Evaluate performance, subgroup bias and robustness
  6. 6. Deploy for inference with appropriate human oversight
  7. 7. Monitor outcomes, investigate errors and update when needed

3. Model development and performance

An ML project begins with a clearly defined problem and representative data. Data preparation may involve correcting errors, handling missing values, removing duplicates and creating suitable features. Data are commonly separated into training, validation and test sets. Training fits the model; validation guides model selection and tuning; the test set provides a separate assessment of performance. Repeatedly tuning against test results weakens this assessment.

Overfitting occurs when a model learns peculiarities or noise in training data and performs poorly on new examples. Underfitting occurs when it fails to capture important patterns even in the training data. Regularisation, appropriately chosen model complexity, additional representative data and cross-validation can help improve generalisation. Data leakage occurs when information unavailable at the time of real prediction improperly enters training or evaluation.

Performance must be assessed using measures suited to the task. Accuracy alone can be misleading when classes are imbalanced: if only one per cent of transactions are fraudulent, predicting every transaction as legitimate produces 99 per cent accuracy but detects no fraud. Precision measures how many predicted positives are actually positive; recall measures how many actual positives are detected. Medical screening often places strong emphasis on avoiding missed cases.

After deployment, the trained model performs inference on new inputs. Its performance can deteriorate as populations, behaviours or operating conditions change, requiring monitoring and possible retraining. Training large models can demand substantial computing capacity, electricity and cooling. Inference also consumes resources, while smaller models can operate on mobile phones or sensors through edge AI.

Comparison of major machine-learning approaches
ApproachLearning signalTypical task or example
Supervised learningInputs paired with target labelsClassifying labelled emails as spam or non-spam
Unsupervised learningPatterns within data without target labelsClustering similar customers
Semi-supervised learningA mixture of labelled and unlabelled examplesImage classification with limited expert annotation
Self-supervised learningTargets derived from the data themselvesPredicting the next token in text
Reinforcement learningRewards from interaction with an environmentLearning a robot-control policy

4. Deep learning, generative AI and applications

Deep neural networks are particularly useful for complex, high-dimensional information such as images, speech and text. Convolutional neural networks are strongly associated with image analysis, while transformer architectures underpin many contemporary language and multimodal models. Graphics processing units, or GPUs, accelerate many ML operations because they support extensive parallel computation; they are not mandatory for every ML task.

Generative AI produces content such as text, images, audio or computer code. Predictive and discriminative systems instead commonly estimate outcomes or distinguish categories. A large language model generates text based on patterns learned during training and its current context. Fluent output does not establish factual correctness: models may generate plausible but false statements, often called hallucinations. Foundation models can be adapted to multiple downstream tasks rather than being built exclusively for one narrow application.

Indian applications include satellite-image analysis for crop monitoring, disease screening from medical images, fraud detection in digital payments, electricity-load forecasting and speech recognition for public services. BHASHINI, the National Language Translation Mission launched in 2022, supports language technologies for Indian languages. Such systems can widen access, but performance must be checked across dialects, accents and user groups.

ML differs from several associated technologies. Big data concerns the scale and complexity of datasets and their management; cloud computing supplies shared computing resources; and the Internet of Things connects physical devices that collect or exchange data. These technologies can support ML, but none is synonymous with it. Nor does an ordinary ML system require quantum computing or a blockchain.

5. Risks, safeguards and Indian policy context

Biased or unrepresentative data can produce discriminatory outcomes in lending, recruitment or welfare administration. Historical decisions used as labels may themselves embody exclusion. Explainability concerns whether humans can understand the factors behind an output, while accountability concerns who bears responsibility for its use. Human oversight is particularly important when errors can affect health, liberty or access to essential services.

Privacy risks arise from collecting sensitive data, combining datasets and possible disclosure of training information. Security threats include data poisoning, which manipulates training data, and adversarial inputs designed to mislead a model. Federated learning allows distributed participants to train without centrally pooling all raw data, but does not by itself guarantee privacy. Differential privacy can provide quantified protection under specified assumptions by introducing carefully calibrated randomness.

India's National Strategy for Artificial Intelligence, released by NITI Aayog in 2018, emphasised AI for All and applications in healthcare, agriculture, education, smart cities and mobility. The IndiaAI Mission supports computing access, datasets, indigenous AI capabilities, skills, applications, startup financing and safe and trusted AI. The Digital Personal Data Protection Act, 2023 provides a statutory framework relevant to digital personal-data processing; it is not a comprehensive AI-specific law. Responsible adoption requires purpose-appropriate data, independent evaluation, security safeguards and accessible grievance mechanisms.

Real-world case studies

AlphaFold and protein-structure prediction

DeepMind's AlphaFold2 demonstrated a major advance in protein-structure prediction at CASP14 in 2020. The AlphaFold Protein Structure Database, developed with EMBL-EBI, subsequently expanded to over 200 million predictions in 2022. It illustrates ML's contribution to scientific research. However, predicted structures have varying confidence and do not automatically establish protein function or replace experimental validation.

AI-assisted diabetic-retinopathy screening in India

Research involving Indian eye-care institutions, including Aravind Eye Hospital and Sankara Nethralaya, has examined deep learning for identifying diabetic retinopathy from retinal photographs. The public-health benefit is wider screening and earlier referral. Safe deployment still requires suitable image quality, validation in the intended population and reliable pathways for specialist assessment and treatment.

Previous year questions

No source-linked PYQ is available here yet. Use the practice questions below.

Practice questions

Practice MCQ 1

Consider the following statements: 1. Logistic regression is commonly used for classification. 2. Unsupervised learning requires a target label for every training example. 3. Reinforcement learning may involve rewards received long after an action. Which of the statements given above are correct?

  • A. 1 and 2 only
  • B. 1 and 3 only
  • C. 2 and 3 only
  • D. 1, 2 and 3

Practice MCQ 2

A disease affects 2 per cent of a screening population. A model classifies every person as disease-free. Which one of the following correctly describes its performance?

  • A. Its accuracy is 98 per cent, but its recall for disease cases is zero.
  • B. Its accuracy and recall for disease cases are both 98 per cent.
  • C. Its accuracy is zero, but its recall for disease cases is 98 per cent.
  • D. Its high accuracy proves its suitability for screening.

Practice MCQ 3

With reference to machine learning, consider the following statements: 1. Federated learning can avoid centrally pooling all raw training data. 2. Every machine-learning system requires a GPU. 3. A model's predictive success does not necessarily establish causation. Which of the statements given above are correct?

  • A. 1 only
  • B. 2 and 3 only
  • C. 1 and 3 only
  • D. 1, 2 and 3
Mains practice · Machine learning can improve public-service delivery, but technical accuracy alone cannot ensure public trust. Discuss with reference to India. Answer in 250 words.
  • Define ML and illustrate applications in health screening, agriculture, language access and fraud detection.
  • Explain why representative data and subgroup-level evaluation matter.
  • Discuss privacy, discrimination, explainability, security and accountability.
  • Refer to BHASHINI, the IndiaAI Mission and the personal-data protection framework.
  • Recommend proportionate human oversight, independent audits, monitoring and grievance redress.
  • Conclude that public value depends on institutional safeguards as well as model performance.

Further reading

  • NITI Aayog: National Strategy for Artificial Intelligence, 2018.
  • NITI Aayog: Responsible AI for All, Approach Document for India, Parts 1 and 2, 2021.
  • Press Information Bureau: Cabinet approval of the IndiaAI Mission, 7 March 2024.
  • IndiaAI and BHASHINI official portals.
  • India Code: Digital Personal Data Protection Act, 2023.
  • EMBL-EBI: AlphaFold Protein Structure Database documentation.
  • NCERT: Artificial Intelligence teaching-learning resources for school education.

Preparing for UPSC Civil Services? Get classroom teaching, answer-writing evaluation and mentorship at Pragnya IAS Academy, Ashok Nagar — see why aspirants choose us for IAS coaching in Hyderabad.

Talk to a counsellor

Tell us your preparation stage and preferred programme — a counsellor will call back with batch timings and a study plan.

Or call 98804 87071 · Mon–Sat 9 am–7 pm

Free UPSC daily current affairs quiz — 10 questions, new every day at 8 am IST.

Call nowWhatsApp