Prepstellar

AIF-C01 · AI Use Cases and Services

21 cards

ML Techniques and Real-World Use Cases

Swipe, scroll or use ← →
  1. Start with the shape of the answer

    Most "which technique?" questions are decided before any algorithm is named, by looking at what the answer has to look like. A number, a known label, or a group nobody has named yet — those are three different shapes, and each one belongs to a different family.

    Start with the numeric shape. Regression predicts a numeric value, such as a house price. Choose regression when the target is a quantity on a numeric scale rather than a named category.

    A demand estimate, temperature estimate, or predicted delivery time has this shape. Notice what they share: the answer could be 12, or 12.4, or 340, and every value in between is meaningful.

    1 / 21
  2. Start with the shape of the answer

    Now the categorical shape. Classification predicts a category, such as spam or not spam. Choose classification when the allowed output is a class label.

    Image classification, sentiment categories, and a potentially fraudulent transaction label are classification-shaped problems. The set of possible answers is written down in advance, and the model's job is to pick from that set.

    The answer is… Family Example
    A quantity on a scale Regression The sale price of a house
    One of a known set of labels Classification Spam or not spam
    2 / 21
  3. Quick check

    A property portal must predict the sale price of a listed home. Which technique fits the target?

    1. AClustering, because similar homes fall into groups with no labels

      Clustering discovers groups instead of producing the specific price the portal has to show.

    2. BClassification, because a price is a predefined class

      A price is a quantity rather than one of a fixed set of labels, so the classification shape does not fit.

    3. CRegression, because the target is a value on a numeric scale

      Right. The target is a quantity on a numeric scale, which is exactly the regression shape.

    3 / 21

  4. Discover groups that nobody labeled

    The third shape is the one people forget, because it does not predict anything at all. Clustering groups similar observations without requiring predefined class labels. Choose clustering when the task is to discover natural segments, such as groups of customers with similar behavior, rather than predict a known number or label.

    The absence of labels is the giveaway. If a retailer already had a list of segments and wanted new customers sorted into them, that would be classification. When the segments themselves are the deliverable, it is clustering.

    4 / 21
  5. Discover groups that nobody labeled

    Put the three together and the rule is short. Select regression for a number, classification for a predefined label, and clustering for discovered groups.

    The business wording is decisive: estimate how much, decide which known class, or discover which observations belong together. Those three verbs — estimate, decide, discover — usually appear verbatim in the requirement, and they are more reliable than any hint about the data or the tooling.

    Wording in the requirement Technique
    "estimate how much / how many / how long" Regression
    "decide which of these known classes" Classification
    "discover which items belong together" Clustering
    5 / 21
  6. Quick check

    A retailer wants to find natural customer segments and has no segment labels of any kind. Which technique fits?

    1. ARegression, because each customer needs a numeric target

      No quantity is being estimated here; the deliverable is a set of groups, not a number per customer.

    2. BClustering, because the groups have to be discovered

      Right. Clustering groups similar observations without requiring predefined class labels.

    3. CClassification, because customers fall into predefined labels

      Classification needs the labels to exist beforehand, and the scenario says they do not.

    6 / 21

  7. Applications that see and read

    Above the technique families sit the application types, and those are chosen by the kind of data going in. Start with pictures.

    Computer vision extracts information from images or video and supports tasks such as object detection, image classification, and visual anomaly detection. Visual inspection of manufactured products is a computer vision application: a camera on the line, and a model that reports what is present, what is missing, or what looks wrong.

    Vision is not one task but a family of them. Object detection says what is in the frame and where; image classification labels the whole image; visual anomaly detection reports that something departs from the normal appearance without necessarily naming it.

    7 / 21
  8. Applications that see and read

    Then text. Natural language processing helps computers understand human language for tasks such as translation, intelligent search, and text analysis. Extracting entities, key phrases, topics, or sentiment from documents is an NLP application.

    That last list is worth memorizing as a group, because it is what "analyze this text" usually means in practice:

    • Entities — the people, places, products and dates a document mentions.
    • Key phrases — the expressions that carry the document's substance.
    • Topics — the themes that let a pile of files be organized.
    • Sentiment — whether the writer is positive or negative.
    8 / 21
  9. Quick check

    A factory camera must spot units with a missing component, and the same company wants entities and sentiment pulled from written reviews. Which pairing is right?

    1. AComputer vision for the units; NLP for the reviews

      Right. Vision inspects the images from the line, and NLP extracts entities and sentiment from written language.

    2. BSpeech recognition for the units; forecasting for reviews

      Speech recognition needs audio input, and forecasting estimates future values rather than analyzing review text.

    3. CForecasting for units; recommendations per review

      Forecasting does not inspect images, and a recommendation ranks items instead of extracting sentiment.

    9 / 21

  10. Keep your progress in the app

    That’s 3 of 8 quick checks. In the app they stay answered, and every lesson remembers where you left off.

  11. Applications that listen

    Speech recognition converts spoken audio into text. Transcribing a recorded call or producing a real-time transcript is a speech-recognition application; generating audio from text is a different direction.

    Direction is the whole point here, and it is the detail scenarios are built on. Audio arrives, text comes out. The reverse trip — text arrives, audio comes out — is speech synthesis, a separate capability that happens to sit next to it in every service catalog.

    Input Output Application
    Spoken audio Written text Speech recognition
    Written text Spoken audio Speech synthesis

    Both a recorded file and a live stream count as audio input, so "real time" changes the latency requirement, not the family of the application.

    10 / 21
  12. Quick check

    Which statement describes the direction of speech recognition?

    1. AIt turns written text into a spoken audio stream

      That is speech synthesis, which runs in the opposite direction from recognition.

    2. BIt turns spoken audio into written text

      Right. Speech recognition takes spoken audio, from a file or a live stream, and produces written text.

    3. CIt turns customer activity into a ranked list of items

      Turning activity into ranked items describes a recommendation system, which does not involve audio at all.

    11 / 21

  13. Applications that personalize and flag

    Recommendation systems use activity and item information to produce personalized product or content suggestions. Two inputs are needed, not one: what this user has done, and what the catalog contains.

    The required output is a ranked or tailored set of items for a user, not a demand forecast for the whole business. That contrast is the trap in most scenarios: both a recommender and a forecaster look at historical behavior, but one answers "what should this person see next" and the other answers "how much will everyone buy".

    12 / 21
  14. Applications that personalize and flag

    Fraud detection identifies potentially fraudulent activity so that suspicious events can be caught or reviewed. Its output commonly supports a fraud label or risk score for an event.

    The unit of the answer is the event: this payment, this login, this claim. A fraud application does not personalize anything and does not project a total; it scores what just happened so that it can be blocked, queued or waved through.

    13 / 21
  15. Quick check

    A media service has viewing activity and an item catalog, and must personalize which videos each user sees next. Which application fits?

    1. AA forecasting system that predicts the total future demand

      A total-demand forecast is a business-wide number and does not decide what an individual viewer sees next.

    2. BA fraud system that flags suspicious payment events

      Fraud detection scores events for suspicion, which is not the personalization the service is asking for.

    3. CA recommendation system that ranks items for each user

      Right. Recommendations combine user activity with item information to produce personalized suggestions.

    14 / 21

  16. Applications that look ahead and look up

    Forecasting predicts future business outcomes from time-series data and relevant variables. Product demand, resource needs, and financial performance are forecasting examples.

    Two ingredients define it: a series of values recorded over time, and a horizon in the future. If the requirement mentions "next quarter", "next year" or "the coming season" together with a quantity, forecasting is almost always the answer.

    15 / 21
  17. Applications that look ahead and look up

    Knowledge-base applications retrieve relevant information from an organized body of content to answer a user's information need.

    The result already exists somewhere; the work is finding and returning it. This differs from forecasting a future value and from discovering unlabeled customer segments — nothing is being estimated and nothing is being grouped.

    Requirement Application
    "How much will we sell next quarter?" Forecasting
    "What does our policy say about refunds?" Knowledge base
    "Which customers behave alike?" Clustering
    16 / 21
  18. Quick check

    Which outcome is characteristic of a knowledge-base application?

    1. ARetrieving the relevant information from organized content

      Right. A knowledge base answers an information need by retrieving relevant content that already exists.

    2. BEstimating next quarter's demand from time-series data

      Estimating a future quantity from a time series is forecasting, not retrieval of existing content.

    3. CGrouping customers with no predefined segment labels

      Grouping unlabeled customers is clustering, which discovers segments rather than answering a question.

    17 / 21

  19. Coordinate the whole task

    Agentic AI manages intent, completes multi-step work, and can validate progress toward a goal. It is appropriate when the application must orchestrate actions across a task rather than return a single classification, forecast, transcript, or recommendation.

    The tell is the plural. One prediction is not agentic, however sophisticated it is; a sequence of actions chosen and checked against an objective is. A tool that reads a request, edits several files, runs the tests and confirms that the goal was met is doing work no single classifier or forecaster does.

    18 / 21
  20. Quick check

    A development tool must manage intent, carry out a sequence of repository tasks and then validate its own work. Which application type fits?

    1. AClassification returning one predefined repository label

      A classifier returns a single label and does not carry out or check a sequence of tasks.

    2. BForecasting a future repository metric from its history

      Forecasting estimates a future value and has nothing to do with performing repository work.

    3. CAgentic AI coordinating and validating multi-step work

      Right. Agentic AI manages intent, completes multi-step work and can validate progress toward the goal.

    19 / 21

  21. Key takeaways

    Start with the data type, then identify the required output; similar business domains can still require different applications. Vision consumes visual content, NLP analyzes language, speech recognition transcribes audio, recommendations personalize items, fraud detection flags suspicious activity, forecasting estimates future outcomes, knowledge bases retrieve grounded information, and agentic AI coordinates actions.

    • Use regression for numeric targets, classification for predefined labels, and clustering for discovered groups.
    • Vision handles visual content, NLP handles language, and speech recognition maps audio to text.
    • Recommendations personalize items, fraud detection flags suspicious events, and forecasting predicts future outcomes.
    • Knowledge bases retrieve information, while agentic AI coordinates multi-step actions.
    20 / 21
  22. Quick check

    A finance team has two needs: flag suspicious card transactions now, and estimate monthly transaction volume next year. Which mapping is correct?

    1. AForecasting for the flags; computer vision for the volume

      Forecasting looks ahead rather than judging a transaction that just happened, and images are not involved anywhere.

    2. BFraud detection for the flags; forecasting for future volume

      Right. Fraud detection scores individual suspicious events, while forecasting estimates a future time-series outcome.

    3. CKnowledge retrieval for flags; clustering for the volume

      Retrieval returns existing content and clustering discovers groups, so neither produces a flag or a future volume.

    21 / 21

  23. 8 quick checks · then the test

    In the app, finishing the quick checks opens this lesson’s 10-question test, and the ones you miss come back exactly when you’re about to forget them.

The whole course, on your phone

Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.