Back to homeTechnology and Engineering II · 2nd Bach. Science · Change subject
Start for free
BAC2 tech · Technology and Engineering II
Emerging computer systems · Emerging technologies

Artificial intelligence and big data

A spam filter does not contain a written list of suspicious phrases, word for word: it has learned to recognise them from thousands of emails that were already classified. That is the fundamental difference between programming a system and training it, and it is the basis of the artificial intelligence you use every day without seeing it.

Before you start, make sure you know: Contingency tables (1st Bachillerato CCSS)
Before you start, make sure you know: The structures of a program (1st Bachillerato)

From rules to data: machine learning

Comparison of the flows in traditional programming (the rules written by a person produce the output) and machine learning (the example data produce a model that generates predictions). Traditional programming rules (person) output Machine learning example data model prediction
Practice★☆☆Not started
Explain in your own words the difference between traditional programming (rules written by a person) and machine learning (rules learned from examples), and give an…

Explain in your own words the difference between traditional programming (rules written by a person) and machine learning (rules learned from examples), and give an application where each approach is more suitable.

Solve
Practice★☆☆Not started
Explain with a simple analogy what an artificial neural network is: layers of 'neurons' that combine inputs with adjustable weights. What is adjusted during training and…

Explain with a simple analogy what an artificial neural network is: layers of 'neurons' that combine inputs with adjustable weights. What is adjusted during training and what does it mean for the network to 'learn'?

Solve
Practice★☆☆Not started
Order these three terms from most general to most specific: deep learning, artificial intelligence, machine learning. Explain the inclusion relationship between them…

Order these three terms from most general to most specific: deep learning, artificial intelligence, machine learning. Explain the inclusion relationship between them with an example of each level.

Solve

Types of learning: supervised, unsupervised and reinforcement

Diagram of the three types of machine learning: supervised with labelled data (spam and not spam), unsupervised with points that group together without a label, and reinforcement, where an agent acts on an environment and receives a reward. supervised spam not spam with label unsupervised groups without label reinforcement agent environment action reward
Practice★☆☆Not started
In supervised learning, what is the label of a data point? Give three examples of labelled datasets (photo → cat/dog, email → spam/not spam, sensor → healthy/faulty) and…

In supervised learning, what is the label of a data point? Give three examples of labelled datasets (photo → cat/dog, email → spam/not spam, sensor → healthy/faulty) and explain who usually produces the labels and what cost it entails.

Solve
Practice★★☆Not started
Explain the difference between supervised, unsupervised, and reinforcement learning, and classify these applications: a spam filter trained with labelled emails,…

Explain the difference between supervised, unsupervised, and reinforcement learning, and classify these applications: a spam filter trained with labelled emails, customer segmentation by buying habits without labels, and a robot learning to walk by trial and error.

Solve
Practice★★☆Not started
Distinguish between a classification problem (predicting a category) and a regression problem (predicting a number). Classify these tasks: estimating the price of a…

Distinguish between a classification problem (predicting a category) and a regression problem (predicting a number). Classify these tasks: estimating the price of a house, deciding whether an X-ray shows a fracture, predicting tomorrow's temperature, and grouping news articles by topic.

Solve

Evaluating a model: overfitting and the confusion matrix

Two-by-two confusion matrix comparing reality with the model's prediction: true negatives and true positives (correct predictions, in green) and false positives and false negatives (errors, in pink). confusion matrix model's prediction negative positive reality negative positive true negative false positive false negative true positive green: correct · pink: error
Practice★★☆Not started
A system learns with $80\,\%$ of the data and is evaluated with the remaining $20\,\%$. Explain what the training set and test set are, what overfitting is, and how it…

A system learns with $80\,\%$ of the data and is evaluated with the remaining $20\,\%$. Explain what the training set and test set are, what overfitting is, and how it is detected by comparing errors in both sets.

Solve
Practice★★☆Not started
A fault classifier evaluated on $200$ machines yields the confusion matrix shown in the figure. a) Calculate the precision ($\frac{VP}{VP + FP}$) and recall or…

A fault classifier evaluated on $200$ machines yields the confusion matrix shown in the figure. a) Calculate the precision ($\frac{VP}{VP + FP}$) and recall or sensitivity ($\frac{VP}{VP + FN}$). b) Explain which error is more serious in maintenance (a false negative: an undetected fault) and how you would change the model threshold to reduce it at the expense of more false alarms.

predicts healthy predicts faulty actually healthy actually faulty 140 true negatives 18 false positives 6 false negatives 36 true positives
Solve
Practice★★☆Not started
In bank fraud detection, only one in a thousand transactions is fraudulent. Explain what an imbalanced dataset is, why a model that classifies everything as 'legitimate'…

In bank fraud detection, only one in a thousand transactions is fraudulent. Explain what an imbalanced dataset is, why a model that classifies everything as 'legitimate' achieves $99{,}9\,\%$ accuracy and is completely useless, and what metrics and techniques are used instead (recall, oversampling the minority class, class weighting).

Solve

Big data: volume, velocity, variety and their cost

The three Vs of big data: a huge database with thousands of millions of rows (volume), a clock and a stream of data packets that arrive non-stop (velocity), and a text document, an image and a sensor as different formats (variety). volume thousands of millions of rows velocity data every second variety text, image, sensor
Practice★☆☆Not started
Define 'big data' and explain the three classic 'Vs' (volume, velocity, and variety) with an example of each in the context of an urban transport application.

Define 'big data' and explain the three classic 'Vs' (volume, velocity, and variety) with an example of each in the context of an urban transport application.

Solve
Practice★★☆Not started
A local council installs traffic sensors at $200$ junctions that send a reading every $5$ seconds. a) Estimate the number of readings generated per day and per year. b)…

A local council installs traffic sensors at $200$ junctions that send a reading every $5$ seconds. a) Estimate the number of readings generated per day and per year. b) Reason what storage and processing problems they pose and why conventional single-server databases might fall short.

Solve
Practice★★★Not started
A tech company decides to train its own 70-billion-parameter language model from scratch in a data centre connected to a grid with an emission factor of 0,26 kg CO₂/kWh.…

A tech company decides to train its own 70-billion-parameter language model from scratch in a data centre connected to a grid with an emission factor of 0,26 kg CO₂/kWh. The training process requires 1,5 GWh of electrical energy. Once deployed, the service is estimated to handle 20 million queries per day, consuming an additional 0,5 GWh per month during the inference phase.

  1. a) Analyse the three lifecycle phases of this AI system that contribute to its environmental footprint and justify why, over one year of operation, the impact of daily inference can significantly exceed that of the initial training.
  2. b) Calculate the mass of CO₂ (in tonnes) emitted solely during the training phase and compare it with the emissions generated by the first full year of inference.
  3. c) Design three technical engineering measures (at the level of model architecture, weight reuse, and infrastructure selection) that drastically reduce energy consumption without unacceptably degrading the quality of the responses.
Solve

Summary

See all the exercises in this section