Data fuels the intelligence of AI—but keeping data secure and reliable is a complex challenge. Protecting data integrity, not just privacy, is essential for meaningful results. Data is most valuable when it’s accessible, but exposure introduces risks. Understanding these risks is crucial for anyone working with AI.
COMPAS, an algorithm used in criminal sentencing, has been widely criticized for amplifying biases in legal data—leading to calls for its complete redesign.
Understanding Purposefully Biased Data
Bias appears in nearly every dataset available today, even custom-created datasets. The dataset is often biased because the collection methods are biased, the analysis methods are biased, and the data itself is biased. You often see articles online with titles like “8 Types of Bias in Data Analysis and How to Avoid Them,” which means that people recognize the existence of bias and want to mitigate it as much as possible. However, sometimes you find that the opposite is true: The people using the dataset purposely bias it in some manner. Here are some areas in which data becomes purposely biased:
- Political: Political maneuvering can become the source of data bias. Two groups with opposing opinions will use the same dataset and obtain two completely different outcomes that support their particular perspective. At issue are the records selected and the dataset features used to create an outcome. In other cases, a group will resort to techniques like using bogus respondents in polls (
pewresearch.org). - Medical: When medical groups advertise for people to participate in trials of medications, procedures, and other needs, the group they get often doesn’t represent the population as a whole, so the data is biased.
- Legal: The use of COMPAS software (Correctional Offender Management Profiling for Alternative Sanctions) to predict the potential for recidivism is another example of data and algorithm bias, as explained in “Injustice Ex Machina: Predictive Algorithms in Criminal Sentencing,” (
uclalawreview.org). - Hiring: The use of datasets and well-rounded algorithms supposedly reduces the risk of bias in hiring and promoting individuals within an organization. According to “All the Ways Hiring Algorithms Can Introduce Bias” (
hbr.org), the opposite is too often true. The datasets become an amplification of biased hiring practices within an organization or within society as a whole. - Other: Anytime a dataset and its associated algorithms become influenced by bias, the outcome is less than ideal. The term machine learning fairness presents the idea that the outcome of any analysis should correctly represent the actual conditions within. If the outcome of an analysis doesn’t match the result received afterward, the analysis is flawed and the data usually receives a lion’s share of the blame.
What are the potential consequences of biased data in AI-driven decisions, especially in fields like hiring and criminal justice?
Bias in datasets is always accidental and can be easily fixed with better data collection methods.
Bias is often intentionally introduced for political, legal, or commercial reasons, and can permeate both collection and analysis methods, requiring more than just technical fixes.
The principle that AI analysis outcomes should accurately reflect true conditions, minimizing bias that distorts results.
Want to go deeper? The science behind bias in AI data
Bias in AI systems can originate from selection bias (how data is chosen), measurement bias (how features are defined and captured), and algorithmic bias (how models interpret data). Addressing bias requires careful consideration of each stage in the data pipeline, including regular audits for fairness, diverse training data, and transparent model design. Researchers are now developing frameworks to quantify and mitigate bias, but social and ethical challenges remain significant.
Dealing with Data-Source Corruption
Even if people don’t cherry-pick data or use data sources that fail to reflect the actual conditions in the world, as described in the previous section, data sources can become corrupt. For example, when seeing product reviews on a website, you can’t be certain that:
- Real people created reviews.
- Some people haven’t voted more than once.
- The person wasn’t simply having an exceptionally bad (or less likely, good) day.
- The person actually used the product and has no ulterior motive, for example, if they sell the product or are a competitor.
- The reviews reflect a fair segment of society.
In fact, the reviews are likely so biased and corrupt that believing them at all becomes nearly impossible. Unfortunately, data-source corruption comes from many other sources:
- A sensor might be bad, producing erroneous results.
- A virus attack might cause data errors.
- The database or other software contains a flaw.
- Humans enter the data incorrectly into the database.
- Acts of nature, such as lightning, cause momentary glitches in data collection.
You can rely on a number of approaches to deal with all sorts of data corruption. Storing data in the cloud tends to reduce problems associated with hardware, weather, or other issues that cause data loss. Ensuring that you have procedures and training in place, plus constant monitoring, can help reduce human errors. Active administrator participation and the use of firewalls can reduce other sorts of data-source corruption.
All these measures reflect what you can do locally. When performing screen scraping and other techniques to obtain data from online sources, data scientists must employ other measures to ensure that the data remains pure. Vouching for an online source isn’t possible unless the source is vetted every time it’s used.
How can data scientists verify the integrity of data from online sources, especially when screen scraping?
Online product reviews are frequently manipulated by botnets, fake users, and competitors, making it difficult for consumers—and AI systems—to trust the data.
The assurance that data remains accurate, consistent, and uncorrupted throughout its lifecycle in an AI system.
Handling Botnets
Botnets are coordinated groups of computers that focus on performing specific tasks, most of them nefarious. This short section focuses on botnets that feed a dataset erroneous data or take over accounts to modify the account information in certain ways. Whatever means is used, whatever the intent, botnets generally corrupt or bias data in ways that cause any kind of analysis to fail.
Botnets represent a significant concern in AI for several reasons, primarily due to their evolving capabilities and the scale and speed of attacks they can launch. Here are three key reasons that botnets are a particular concern:
- AI-enhanced botnets: With advances in AI and machine learning, botnets have become more sophisticated, capable of automating and rapidly expanding cyberattacks. AI can enable botnets to analyze network behavior, adapt attack patterns to bypass cyberdefenses, and execute attacks with increased efficiency and stealth. This adaptability makes AI-enhanced botnets formidable adversaries, capable of evading traditional detection mechanisms and launching potent and destructive attacks.
- Scale and magnitude of attacks: AI-powered botnets can harness the computational power of numerous compromised devices, including the internet of things (IoT), creating massive bot armies. With these vast networks, AI-powered botnets can launch coordinated attacks that overwhelm even the most robust systems.
- Corruption of data sources: These botnets can manipulate datasets, flood AI systems with false information, and undermine the integrity of digital platforms. Such attacks can cripple the trustworthiness of AI-driven analysis and decision-making.
Practitioners often deploy anomaly detection algorithms to identify botnet activity, but attackers use AI to continually evolve and evade these defenses.
Examine a small dataset (such as a sample of product reviews or trial results) and identify signs of possible bias or corruption.
- Look for patterns that suggest non-representative sampling or unusually positive/negative responses.
- List three ways the dataset could be manipulated by humans or botnets.
Why is protecting data integrity more challenging in modern, cloud-based and interconnected environments?
What is a botnet?
Tap to revealA botnet is a coordinated group of computers used to perform tasks—often malicious—such as corrupting data or launching cyberattacks.
Define data integrity.
Tap to revealData integrity means that information stays accurate, consistent, and uncorrupted throughout its lifecycle.
What is machine learning fairness?
Tap to revealMachine learning fairness is the principle that AI outcomes should accurately reflect real-world conditions and minimize bias.
- Bias in datasets can be intentional and has broad impacts.
- Data-source corruption arises from both technical flaws and deliberate manipulation.
Which of the following is a major concern when using online product reviews as data sources for AI analysis?
Reflect on a situation where you encountered questionable data—such as biased survey results, manipulated reviews, or flawed trial outcomes. How would you apply strategies from this lesson to evaluate and protect data integrity?
Protecting data integrity in AI requires vigilance against both intentional and accidental bias, data-source corruption, and evolving threats like AI-powered botnets.
Mitigating data bias and corruption is a continuous process that demands transparent practices, strong technical controls, and critical evaluation of all data sources.
Data is useful only when it’s accessible. Of course, the need to make data accessible means taking a risk that someone will do something you don’t want done with the data.
The Shift
- Intentional and accidental bias can undermine AI results, demanding careful dataset evaluation.
- Data-source corruption—from technical failures to botnet attacks—poses serious risks to AI integrity.
- Ensuring trustworthy AI requires constant vigilance, robust procedures, and critical thinking about every data source.