Logo Ai Bias Special Category

Ai Bias Special Category

Cộng đồng
mukul975
ai-bias-special-category

Assesses AI bias risks for GDPR Art. 9 special category data and AI Act Art. 10 data governance. Covers fairness metrics, bias detection methods, mitigation strategies, and documentation requirements for protected characteristics. Keywords: AI bias, special category, fairness metrics, discrimination, Art. 9, Art. 10.

Tổng quan

Nhà phát hànhmukul975
Kho mãPrivacy-Data-Protection-Skills
Tên kỹ năngai-bias-special-category
Sao
279
Bản fork
59
Tệp đi kèm
4
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 4 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được mukul975 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ai Bias Special Category trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/ai-privacy-governance-skills/skills/ai-bias-special-category
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mukul975/Privacy-Data-Protection-Skills.git /tmp/Privacy-Data-Protection-Skills
mkdir -p .claude/skills
cp -r /tmp/Privacy-Data-Protection-Skills/plugins/ai-privacy-governance-skills/skills/ai-bias-special-category .claude/skills/ai-bias-special-category
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ai Bias Special Category trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Ai Bias Special Category ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Ai Bias Special Category với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

AI Bias Assessment for Special Category Data

Overview

AI systems can amplify, perpetuate, or introduce bias against protected groups defined by GDPR Art. 9 special categories (race, ethnicity, political opinion, religion, trade union membership, genetic data, biometric data, health, sexual orientation) and by EU equality law (gender, age, disability). The AI Act Art. 10 requires data governance practices for training data that address bias, while Art. 5 prohibits AI-based social scoring. This skill provides the methodology for detecting, measuring, and mitigating bias in AI systems that process or infer special category data, with documentation requirements meeting both GDPR and AI Act obligations.

Art. 9 Special Categories and AI Bias

Direct Processing of Special Category Data

When AI systems directly process Art. 9 data:

CategoryAI Bias RiskExample
Racial or ethnic originDiscrimination in hiring, credit, policingCV screening penalising names associated with ethnic minorities
Political opinionsPolitical profiling, content suppressionNews recommendation amplifying or suppressing political viewpoints
Religious beliefsService denial, discriminatory targetingInsurance pricing varying by religious affiliation
Trade union membershipEmployment discriminationPerformance scoring penalising union activity
Genetic dataGenetic discrimination in insurance/employmentHealth insurance pricing based on genetic predisposition
Biometric dataDifferential accuracy across demographicsFacial recognition with higher error rates for darker skin tones
Health dataHealth-based discriminationHiring algorithms penalising disability or mental health history
Sexual orientationDiscrimination, outingContent recommendation inadvertently revealing sexual orientation

Proxy Inference of Special Categories

AI models frequently infer Art. 9 data from non-sensitive features:

Proxy FeatureInferred CategoryMechanism
Postcode/zip codeRace/ethnicity, incomeResidential segregation patterns
First/last nameRace/ethnicity, religionName-ethnicity correlations
Browsing historyPolitical opinion, religion, healthContent consumption patterns
Purchase historyHealth status, religionMedication purchases, dietary products
Language patternsNational origin, educationDialect, vocabulary, grammar patterns
Device/app usageAge, income, disabilityAccessibility features, device type

EDPB position: inferring Art. 9 data from non-sensitive inputs constitutes processing of special category data — the same protections apply.

Fairness Metrics

Group Fairness Metrics

MetricDefinitionWhen to Use
Demographic parityP(positive outcomegroup A) = P(positive outcome
Equalized oddsTPR and FPR equal across groupsWhen accuracy should be equal across groups
Equal opportunityTPR equal across groups (relaxed equalized odds)When true positive detection should be equal
CalibrationP(Y=1score=s, group=A) = P(Y=1
Predictive parityPPV equal across groupsWhen positive predictions should be equally reliable

Individual Fairness Metrics

MetricDefinition
ConsistencySimilar individuals receive similar outcomes
Counterfactual fairnessOutcome would be the same if protected attribute were different
Causal fairnessNo causal path from protected attribute to outcome

Metric Selection Guidance

Decision ContextRecommended MetricJustification
Hiring/admissionsEqualized odds or equal opportunityEqual detection of qualified candidates across groups
Credit scoringCalibrationScore should mean the same probability regardless of group
Criminal riskEqualized oddsBoth FPR and TPR should be equal to avoid disproportionate impact
HealthcareEqual opportunity + calibrationEqual detection of conditions; equal meaning of risk scores
Content moderationDemographic parityContent removal should not disproportionately affect groups

Note: Mathematical impossibility results show that demographic parity, equalized odds, and calibration cannot all be satisfied simultaneously when base rates differ across groups. Document the trade-off explicitly.

Bias Detection Methodology

Phase 1: Data Audit

  1. Profile training data demographics against target population
  2. Identify underrepresented groups that may have lower model performance
  3. Check for historical bias in labelled data (e.g., biased hiring decisions used as ground truth)
  4. Identify label noise differential across groups
  5. Assess feature distributions across groups for proxy discrimination potential

Phase 2: Model Testing

  1. Evaluate model performance disaggregated by protected groups
  2. Compute selected fairness metrics for each protected group pair
  3. Run counterfactual testing: change protected attributes, observe output changes
  4. Test for intersectional bias (combinations of protected attributes)
  5. Evaluate model performance on edge cases and adversarial examples per group

Phase 3: Output Analysis

  1. Analyse decision distribution across groups
  2. Identify threshold effects that disproportionately impact specific groups
  3. Test for feedback loop amplification over time
  4. Assess output explanation fairness (are explanations equally informative across groups?)

Bias Mitigation Strategies

Pre-processing (Data-Level)

StrategyDescriptionTrade-off
ResamplingOver-sample underrepresented groups, under-sample overrepresentedMay reduce data diversity or introduce duplicates
ReweightingAssign higher weights to underrepresented group samplesComputationally simple; may not address structural bias
RelabellingCorrect historically biased labelsRequires domain expertise; may be subjective
Fair representation learningLearn latent representation that removes protected attribute informationMay lose legitimate correlations

In-processing (Algorithm-Level)

StrategyDescriptionTrade-off
Adversarial debiasingTrain adversary to predict protected attribute from model; penalise successAccuracy-fairness trade-off; requires protected attribute data
Fairness constraintsAdd fairness metric as training constraintMay reduce overall accuracy; constraint satisfaction varies
RegularisationAdd fairness-related regularisation term to loss functionBalances accuracy and fairness; requires tuning
Causal modellingUse causal graph to block discriminatory pathsRequires causal knowledge; complex to implement

Post-processing (Output-Level)

StrategyDescriptionTrade-off
Threshold adjustmentDifferent decision thresholds per group to equalise metricsMay be perceived as unfair; legally complex
Score calibrationCalibrate scores per groupRequires sufficient group data; may reduce discrimination
Reject optionAbstain from decision for borderline cases across groupsReduces coverage; requires human fallback

AI Act Art. 10 Data Governance

Art. 10 requires for high-risk AI training data:

RequirementImplementation
Relevant dataTraining data must be relevant to the intended purpose
Sufficiently representativeData must represent the population the system will be deployed on
Free of errorsData quality assessment and cleaning processes
CompleteSufficient coverage of deployment scenarios
Appropriate statistical propertiesDistribution analysis including demographic representation
Bias examinationExamine training data for possible biases, especially related to Art. 10(2)(f)

Art. 10(5): Processing of special category data for bias detection is permitted for high-risk AI if:

  • Strictly necessary for bias monitoring, detection, and correction
  • Subject to appropriate safeguards (pseudonymisation, access controls)
  • Data is not used for other purposes
  • Deleted after bias assessment unless retention is required for compliance documentation

Documentation Requirements

Bias Assessment Report

SectionContent
System descriptionModel, purpose, affected groups
Protected attributes assessedArt. 9 categories + equality law characteristics
Fairness metrics selectedWith justification for selection
Data audit resultsTraining data demographics, representation gaps
Model testing resultsPer-group performance, fairness metrics, counterfactual results
Bias findingsIdentified disparities with severity assessment
Mitigation measuresApplied strategies with effectiveness evidence
Residual biasRemaining disparities after mitigation
Trade-off documentationAccuracy-fairness trade-offs, metric impossibility acknowledgement
Ongoing monitoring planPost-deployment fairness monitoring

Enforcement Precedents

  • Dutch Tax Authority (SyRI, 2020): Court struck down algorithmic fraud detection for discriminatory profiling — system disproportionately targeted residents of low-income, immigrant-background neighbourhoods.
  • Italian DPA v. Deliveroo (2021): Algorithmic worker management found to discriminate based on protected characteristics — Art. 22 and equality law violations.
  • Austrian DPA v. AMS Algorithm (2020): Austrian employment service algorithm that scored job seekers lower based on gender, age, disability, and citizenship — DPA found processing unlawful.
  • AEPD guidance (2021): Spanish DPA issued guidance on algorithmic discrimination, emphasising DPIA requirement for AI systems processing protected characteristics.
  • CNIL (2024): AI bias assessment framework published requiring fairness testing for high-impact AI systems.

Integration Points

  • ai-dpia: Bias assessment feeds into DPIA risk assessment for discrimination harms
  • ai-automated-decisions: Biased automated decisions trigger Art. 22 and equality law violations
  • ai-training-lawfulness: Art. 10(5) processing of special category data for bias detection requires documentation
  • ai-transparency-reqs: Bias findings should be disclosed in model cards and transparency documentation
  • ai-act-high-risk-docs: Art. 10 data governance documentation is part of conformity assessment

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Ai Bias Special Category làm được gì?

Assesses AI bias risks for GDPR Art. 9 special category data and AI Act Art. 10 data governance. Covers fairness metrics, bias detection methods, mitigation strategies, and documentation requirements for protected characteristics. Keywords: AI bias, special category, fairness metrics, discrimination, Art. 9, Art. 10.

Vì sao nên dùng Ai Bias Special Category trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ai Bias Special Category là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ai Bias Special Category trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/ai-privacy-governance-skills/skills/ai-bias-special-category. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ai Bias Special Category?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Ai Bias Special Category với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ai Bias Special Category với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ai Bias Special Category có miễn phí không?

Có. Kỹ năng này được mukul975 phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇