Welcome to Module 4. In our last lesson, we finalized your plan for a pilot annotation study, a crucial step to ensure the quality and consistency of your labels. This marks the completion of our deep dive into "Designing the Ground Truth." Now that you have a solid framework for creating high-quality labels, we must turn our attention to the raw material you'll be labeling: the messy, unpredictable data scraped from the internet.
This lesson kicks off the "Data Strategy for Real-World Messiness" module. Our goal is to address a fundamental challenge in any real-world project: not all data is created equal. When you scrape images and text from social media, you get a torrent of information, but much of it is either irrelevant or of poor quality. Our task today is to identify the common types of noise and irrelevance you will encounter.
Think of your useful data—a clear image of a deficient meal or a specific complaint from a parent—as a signal. Everything else is noise that obscures this signal.

By the end of this lesson, you will have a practical taxonomy of the data quality issues you can expect to find in both the text and image data for your mid-day meal project. This will lay the groundwork for our next lesson, where we'll design strategies to filter this unwanted data out.
The Signal vs. the Noise in Text Data
For your project, the most valuable textual data will likely be first-hand accounts from parents or community members describing problems with the meals. However, social media is flooded with related but less useful content, such as news reports, political commentary, or general discussions about the scheme's policies. How do we systematically separate the high-value signal from the low-value noise?
To develop a framework for this, we can draw an analogy from a different domain: public health surveillance. The following research paper analyzes how to find predictive signals for a pandemic within millions of social media posts. The principles they uncover are directly applicable to your goal of finding signals of meal quality violations.
This paper from Humanities and Social Sciences Communications investigates which types of users and content on social media are most effective at predicting real-world events. It provides an excellent, data-driven framework for identifying the most valuable sources of information.
As you read, focus on how the authors systematically dissect the data to find the true signal. Start with the "Role of social media users during pandemic" subsection in the Hypothesis section. Read the discussions on public users vs. opinion leaders and government and media accounts. Think about who the equivalent user types are in your project. Next, read the "Role of social media sentiments during pandemic" subsection. Pay attention to the argument for why negative sentiment is a particularly strong signal. Then, read the "Predictive capability of social media data for pandemic" subsection, which argues that the signal originates from self-reporting of illness. Finally, look at the Results section. Skim the tables and text in the "User type empirical result" and "Sentiment type empirical result" subsections to see how their hypotheses were confirmed. Notice how public users and negative blogs from public users were the most significant predictors. Also, review the "Topic model result" which confirms that topics related to self-reported symptoms had the strongest correlation with reality.
This paper provides a powerful, three-dimensional framework for identifying relevant text data: by source, by sentiment, and by content type. Let's translate this to your project:
| Category | High-Value Signal (Relevant) | Low-Value Signal (Irrelevant/Noise) |
|---|---|---|
| Source | Parents, students, community members ("Public"): First-hand accounts. | News outlets, government agencies, activists ("Media/Government/Opinion Leader"): Second-hand reports, policy discussions, activism. |
| Sentiment | Negative: Complaints, anger, frustration about a specific meal. This indicates a problem. | Neutral/Positive: General statements, praise, or objective descriptions without a complaint. |
| Content Type | Specific, self-reported violations: "The rice had stones in it today." "They only gave us one small chapati." | General statements: "The mid-day meal scheme is important." "I am worried about nutrition." |
In addition to these high-level categories of relevance, you'll also encounter basic structural noise within the text itself. As mentioned in the paper's "Data" section, this includes things like:
- Hyperlinks and email addresses
- Social media artifacts (e.g., hashtags, retweet symbols like 'RT', user mentions)
- Spam content and bot-generated posts
- Duplicate or near-duplicate posts
Your first data cleaning pass will involve stripping away this structural noise and then applying the three-dimensional framework to filter for relevance.
A Rogues' Gallery of Image Noise
Just as with text, the images you scrape will be a mix of signal and noise. A clear, well-framed photo of a meal plate is a strong signal. However, user-submitted photos are notoriously messy. These are not just "bad photos"; they introduce spurious correlations—patterns that are accidentally associated with a class and can mislead your model.
For example, if many photos of "insufficient quantity" meals happen to be taken in dark rooms, your model might incorrectly learn that "dark image = insufficient quantity" instead of learning to assess the food on the plate. The following article provides an excellent catalog of these common image issues.
Automatically catching spurious correlations in ML datasets
This blog post from Cleanlab clearly explains what spurious correlations are and provides a visual guide to common types of noise found in image datasets.
Focus on building a mental checklist of visual problems to look for in your data. First, read the introduction to understand the concept of spurious correlations. Next, study the section "Detecting Image-Specific Spurious Correlations with Datalab." This section serves as a practical checklist. Pay attention to the examples for each type of issue: dark, bright, low-information, odd aspect ratio/size, grayscale, and blurry images. Finally, read "How ML Performance is Impacted by Spurious Correlations" to understand why this is so important. The scenario comparing darkened chicken wings to normal ones is a perfect illustration of how a model can fail to generalize when trained on noisy data.
This gives us a concrete checklist for identifying noisy and irrelevant images. For your mid-day meal project, these issues will manifest in very predictable ways:
- Dark/Bright Images: Photos taken in poorly lit school canteens or with harsh backlighting from a window.
- Blurry Images: The most common issue. Photos are often taken quickly on low-end mobile phones, resulting in motion blur or out-of-focus shots.
- Low-Information Images:
- The photo only captures a small, unidentifiable corner of the meal.
- The user's thumb is covering most of the lens.
- The plate is too far away to see the contents clearly.
- Odd Aspect Ratios/Sizes: Photos that have been heavily cropped or are screenshots from other apps (like WhatsApp), which may include UI elements.
- Irrelevant Content: The image itself is high-quality, but it's not of a meal. Examples include:
- Photos of the school building or classroom.
- Group photos of children.
- Memes or graphics related to the mid-day meal scheme.
Your task during data cleaning will be to identify and flag these images so they don't corrupt your training set.
Conclusion
In this lesson, we have moved from the clean, structured world of annotation guidelines to the messy reality of scraped data. You've learned that dealing with this mess begins with systematically identifying and categorizing the different types of noise and irrelevance you will encounter.
Key Takeaways:
- Signal vs. Noise: The core task of early-stage data preparation is to separate the valuable signal (evidence of meal violations) from the noise (poor quality or irrelevant data).
- Text Data Relevance: Valuable text data is best identified by its source (public), sentiment (negative), and content (specific, self-reported incidents).
- Image Data Noise: Common image issues like poor lighting, blurriness, and bad framing are not just "low quality"; they are sources of spurious correlations that can teach your model the wrong patterns.
- Noise vs. Irrelevance: It's useful to distinguish between noise (on-topic but poor quality) and irrelevance (high quality but off-topic).
You now have a robust mental model for auditing the quality of your raw data. In our next lesson, we will build directly on this foundation. We will discuss how to move from identifying these issues to acting on them by defining and applying concrete filtering criteria to automatically clean your dataset.