High-Risk AI
High-Risk AI
AI defined in the EU AI Act as posing a high risk to safety or fundamental rights. Includes areas such as healthcare, education, and employment.
High-Risk AI
AI defined in the EU AI Act as posing a high risk to safety or fundamental rights. Includes areas such as healthcare, education, and employment.
High-Risk AI is a classification defined in the EU AI Act, referring to AI systems that may pose a significant risk to people's safety or fundamental rights. Such AI systems must meet strict requirements before being placed on the market, and continuous monitoring and regulation apply even during use.
The EU AI Act officially entered into force on August 1, 2024, and serves as a benchmark for AI regulation worldwide as the world's first comprehensive AI regulation law. High-Risk AI is classified through two pathways:
The 8 areas of Annex III classified as High-Risk AI:
Establishing processes for identifying, analyzing, evaluating, and mitigating risks across the entire lifecycle of an AI system
A framework for managing the quality, representativeness, and bias of training/validation/testing datasets
Preparing and maintaining detailed documentation of system design, development, and testing information
Automatic recording of events during operation, ensuring traceability
Providing sufficient information to deployers and users, and ensuring interpretability of results
A framework enabling humans to monitor and intervene in AI systems
Appropriate level of accuracy, resilience against errors and attacks
Measures to prevent unauthorized access, manipulation, and data leakage
| Violation Type | Maximum Fine | Percentage of Turnover |
|---|---|---|
| Violation of Prohibited AI Practices | €35 million | 7% of worldwide annual turnover |
| Violation of High-Risk AI Requirements | €15 million | 3% of worldwide annual turnover |
| Violation of Other Obligations | €7.5 million | 1.5% of worldwide annual turnover |
| Provision of False Information | €7.5 million | 1% of worldwide annual turnover |
※ Reduction provisions may apply to SMEs (small and medium-sized enterprises) and startups.
# EU AI Act 고위험 AI 분류 체커 (Python) from dataclasses import dataclass, field from enum import Enum from typing import List, Optional class AnnexIIICategory(Enum): BIOMETRICS = "1. 생체 인식" CRITICAL_INFRASTRUCTURE = "2. 중요 인프라" EDUCATION = "3. 교육·직업훈련" EMPLOYMENT = "4. 고용" ESSENTIAL_SERVICES = "5. 필수 서비스" LAW_ENFORCEMENT = "6. 법 집행" MIGRATION = "7. 이민·망명" JUSTICE = "8. 사법" class RiskLevel(Enum): PROHIBITED = "금지" HIGH_RISK = "고위험" LIMITED_RISK = "제한적 위험" MINIMAL_RISK = "최소 위험" @dataclass class HighRiskAIClassifier: """EU AI Act 고위험 AI 분류기""" system_name: str system_description: str deployment_region: str intended_purpose: str def check_prohibited_practices(self) -> List[str]: """금지된 AI 관행 체크""" prohibited_indicators = [] checks = { "subliminal": "무의식적 조작 기법 사용", "exploit_vulnerable": "취약 계층 착취", "social_scoring": "소셜 스코어링 (공공기관)", "predictive_policing": "개인 대상 범죄 예측", "emotion_workplace": "직장/교육 감정 인식", "facial_scraping": "무차별 얼굴 데이터 수집", "real_time_biometric": "실시간 원격 생체인식 (법집행)", } # 실제 구현에서는 NLP/규칙 기반으로 판단 purpose_lower = self.intended_purpose.lower() for key, desc in checks.items(): if key.replace("_", " ") in purpose_lower: prohibited_indicators.append(desc) return prohibited_indicators def check_annex_iii_category(self) -> Optional[AnnexIIICategory]: """Annex III 고위험 영역 해당 여부""" purpose = self.intended_purpose.lower() category_keywords = { AnnexIIICategory.BIOMETRICS: ["생체", "얼굴 인식", "지문", "감정 인식"], AnnexIIICategory.CRITICAL_INFRASTRUCTURE: ["전력", "가스", "수도", "교통 관제"], AnnexIIICategory.EDUCATION: ["입학", "학습 평가", "시험", "부정행위"], AnnexIIICategory.EMPLOYMENT: ["채용", "이력서", "면접", "인사 평가", "해고"], AnnexIIICategory.ESSENTIAL_SERVICES: ["대출", "신용", "보험", "응급"], AnnexIIICategory.LAW_ENFORCEMENT: ["범죄", "수사", "증거", "경찰"], AnnexIIICategory.MIGRATION: ["비자", "이민", "망명", "국경"], AnnexIIICategory.JUSTICE: ["판결", "법원", "재판", "분쟁 해결"], } for category, keywords in category_keywords.items(): if any(kw in purpose for kw in keywords): return category return None def classify(self) -> dict: """AI 시스템 위험 분류 수행""" result = { "system_name": self.system_name, "risk_level": RiskLevel.MINIMAL_RISK, "prohibited_practices": [], "annex_iii_category": None, "eu_market_applicable": "EU" in self.deployment_region.upper(), "obligations": [], "deadline": None, } # Step 1: 금지된 관행 체크 prohibited = self.check_prohibited_practices() if prohibited: result["risk_level"] = RiskLevel.PROHIBITED result["prohibited_practices"] = prohibited result["deadline"] = "2025-02-02 (이미 시행 중)" return result # Step 2: Annex III 고위험 체크 category = self.check_annex_iii_category() if category: result["risk_level"] = RiskLevel.HIGH_RISK result["annex_iii_category"] = category.value result["deadline"] = "2027-08-02" result["obligations"] = [ "위험 관리 시스템 구축 (Art. 9)", "데이터 거버넌스 수립 (Art. 10)", "기술 문서 작성 (Art. 11)", "자동 로깅 구현 (Art. 12)", "투명성 보장 (Art. 13)", "인간 감독 체계 (Art. 14)", "정확성·견고성·보안 (Art. 15)", "적합성 평가 및 CE 마킹", ] return result def generate_report(self) -> str: """분류 결과 보고서 생성""" result = self.classify() report = f""" ╔══════════════════════════════════════════════════════════════╗ ║ EU AI Act 고위험 AI 분류 보고서 ║ ╠══════════════════════════════════════════════════════════════╣ ║ 시스템명: {result['system_name']:<44}║ ║ 위험 등급: {result['risk_level'].value:<43}║ ║ EU 시장 적용: {'예' if result['eu_market_applicable'] else '아니오':<40}║ ╚══════════════════════════════════════════════════════════════╝ """ if result["risk_level"] == RiskLevel.PROHIBITED: report += """ ⛔ [금지된 AI 관행 해당] 다음 금지 조항에 해당될 수 있습니다: """ for p in result["prohibited_practices"]: report += f" • {p}\n" elif result["risk_level"] == RiskLevel.HIGH_RISK: report += f""" ⚠️ [고위험 AI 해당] 분류 영역: {result['annex_iii_category']} 준수 마감: {result['deadline']} 필수 의무 사항: """ for ob in result["obligations"]: report += f" ✓ {ob}\n" else: report += """ ✅ [고위험 AI 비해당] 별도의 강제 의무 없이 자율 규제 적용 """ return report # 사용 예시 classifier = HighRiskAIClassifier( system_name="AI 채용 심사 시스템", system_description="이력서 분석 및 면접 평가 AI", deployment_region="EU, 한국", intended_purpose="채용 프로세스에서 이력서 심사 및 면접 평가 지원" ) print(classifier.generate_report())
# EU AI Act 기술 문서 생성기 (Art. 11 준수) from dataclasses import dataclass, field from typing import List, Dict, Optional from datetime import datetime import json @dataclass class TechnicalDocumentation: """EU AI Act Article 11 기술 문서 템플릿""" # 1. 일반 정보 system_name: str version: str provider_name: str provider_address: str intended_purpose: str high_risk_category: str # 2. 시스템 설명 general_description: str = "" interaction_with_hardware: str = "" software_version: str = "" input_data_types: List[str] = field(default_factory=list) output_data_types: List[str] = field(default_factory=list) # 3. 개발 과정 design_specifications: str = "" development_methodology: str = "" training_approach: str = "" # 4. 데이터셋 정보 training_data_description: str = "" training_data_source: str = "" data_preparation_methods: str = "" data_labeling_info: str = "" bias_examination: str = "" # 5. 성능 메트릭 performance_metrics: Dict[str, float] = field(default_factory=dict) validation_methodology: str = "" known_limitations: List[str] = field(default_factory=list) # 6. 위험 관리 identified_risks: List[str] = field(default_factory=list) risk_mitigation_measures: List[str] = field(default_factory=list) # 7. 인간 감독 human_oversight_measures: str = "" operator_instructions: str = "" def generate_document(self) -> str: """기술 문서 생성""" doc = f""" ════════════════════════════════════════════════════════════════════ 기술 문서 (TECHNICAL DOCUMENTATION) EU AI Act Article 11 준수 ════════════════════════════════════════════════════════════════════ 문서 생성일: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} 문서 버전: {self.version} ──────────────────────────────────────────────────────────────────── 1. 일반 정보 (GENERAL INFORMATION) ──────────────────────────────────────────────────────────────────── 시스템명: {self.system_name} 공급자: {self.provider_name} 주소: {self.provider_address} 고위험 분류: {self.high_risk_category} 의도된 목적: {self.intended_purpose} ──────────────────────────────────────────────────────────────────── 2. 시스템 설명 (SYSTEM DESCRIPTION) ──────────────────────────────────────────────────────────────────── 일반 설명: {self.general_description} 소프트웨어 버전: {self.software_version} 입력 데이터 유형: {chr(10).join(f' • {t}' for t in self.input_data_types)} 출력 데이터 유형: {chr(10).join(f' • {t}' for t in self.output_data_types)} 하드웨어 상호작용: {self.interaction_with_hardware} ──────────────────────────────────────────────────────────────────── 3. 개발 과정 (DEVELOPMENT PROCESS) ──────────────────────────────────────────────────────────────────── 설계 사양: {self.design_specifications} 개발 방법론: {self.development_methodology} 학습 접근법: {self.training_approach} ──────────────────────────────────────────────────────────────────── 4. 데이터셋 정보 (DATA INFORMATION) ──────────────────────────────────────────────────────────────────── 학습 데이터 설명: {self.training_data_description} 데이터 출처: {self.training_data_source} 데이터 준비 방법: {self.data_preparation_methods} 레이블링 정보: {self.data_labeling_info} 편향성 검토: {self.bias_examination} ──────────────────────────────────────────────────────────────────── 5. 성능 지표 (PERFORMANCE METRICS) ──────────────────────────────────────────────────────────────────── """ for metric, value in self.performance_metrics.items(): doc += f" {metric}: {value}\n" doc += f""" 검증 방법론: {self.validation_methodology} 알려진 제한사항: {chr(10).join(f' • {l}' for l in self.known_limitations)} ──────────────────────────────────────────────────────────────────── 6. 위험 관리 (RISK MANAGEMENT) ──────────────────────────────────────────────────────────────────── 식별된 위험: {chr(10).join(f' • {r}' for r in self.identified_risks)} 완화 조치: {chr(10).join(f' • {m}' for m in self.risk_mitigation_measures)} ──────────────────────────────────────────────────────────────────── 7. 인간 감독 (HUMAN OVERSIGHT) ──────────────────────────────────────────────────────────────────── 감독 조치: {self.human_oversight_measures} 운영자 지침: {self.operator_instructions} ════════════════════════════════════════════════════════════════════ [문서 끝] ════════════════════════════════════════════════════════════════════ """ return doc def to_json(self) -> str: """JSON 형식으로 내보내기""" data = { "document_version": self.version, "generated_at": datetime.now().isoformat(), "general_info": { "system_name": self.system_name, "provider": self.provider_name, "high_risk_category": self.high_risk_category, }, "performance": self.performance_metrics, "risks": self.identified_risks, "limitations": self.known_limitations, } return json.dumps(data, indent=2, ensure_ascii=False) # 사용 예시 doc = TechnicalDocumentation( system_name="AI 채용 심사 시스템 v2.0", version="2.0.1", provider_name="KAITRUST Corp.", provider_address="서울특별시 강남구", intended_purpose="채용 과정에서 이력서 분석 및 초기 심사 지원", high_risk_category="Annex III - 4. 고용", general_description="NLP 기반 이력서 분석 및 직무 적합도 점수 산출", input_data_types=["PDF 이력서", "텍스트 자기소개서"], output_data_types=["적합도 점수 (0-100)", "핵심 역량 추출"], performance_metrics={"Accuracy": 0.87, "F1-Score": 0.84}, identified_risks=["성별 편향", "학력 편향", "연령 편향"], risk_mitigation_measures=["공정성 감사", "편향성 테스트", "인간 최종 검토"], ) print(doc.generate_document())
# EU AI Act 자동 로깅 시스템 (Art. 12 준수) from dataclasses import dataclass, field from datetime import datetime from typing import Any, Dict, List, Optional from enum import Enum import hashlib import json import uuid class EventType(Enum): SYSTEM_START = "system_start" SYSTEM_STOP = "system_stop" PREDICTION_REQUEST = "prediction_request" PREDICTION_RESPONSE = "prediction_response" HUMAN_OVERRIDE = "human_override" ERROR = "error" CONFIG_CHANGE = "config_change" DATA_ACCESS = "data_access" @dataclass class LogEntry: """EU AI Act 준수 로그 엔트리""" event_id: str timestamp: str event_type: EventType system_version: str operator_id: Optional[str] input_hash: Optional[str] # 입력 데이터 해시 (개인정보 보호) output_summary: Optional[str] confidence_score: Optional[float] human_verified: bool metadata: Dict[str, Any] class HighRiskAILogger: """EU AI Act Article 12 자동 로깅 시스템""" def __init__(self, system_name: str, system_version: str): self.system_name = system_name self.system_version = system_version self.logs: List[LogEntry] = [] self.retention_period_days = 365 * 5 # 5년 보관 (Art. 12(4)) def _generate_event_id(self) -> str: return str(uuid.uuid4()) def _hash_input(self, input_data: Any) -> str: """입력 데이터 해시화 (개인정보 보호)""" data_str = json.dumps(input_data, sort_keys=True, default=str) return hashlib.sha256(data_str.encode()).hexdigest()[:16] def log_prediction(self, input_data: Any, output: Any, confidence: float, operator_id: Optional[str] = None, human_verified: bool = False) -> str: """예측 요청/응답 로깅""" event_id = self._generate_event_id() # 요청 로그 request_log = LogEntry( event_id=event_id, timestamp=datetime.utcnow().isoformat() + "Z", event_type=EventType.PREDICTION_REQUEST, system_version=self.system_version, operator_id=operator_id, input_hash=self._hash_input(input_data), output_summary=None, confidence_score=None, human_verified=False, metadata={"input_type": type(input_data).__name__} ) self.logs.append(request_log) # 응답 로그 response_log = LogEntry( event_id=event_id, timestamp=datetime.utcnow().isoformat() + "Z", event_type=EventType.PREDICTION_RESPONSE, system_version=self.system_version, operator_id=operator_id, input_hash=self._hash_input(input_data), output_summary=str(output)[:200], confidence_score=confidence, human_verified=human_verified, metadata={"output_type": type(output).__name__} ) self.logs.append(response_log) return event_id def log_human_override(self, event_id: str, operator_id: str, original_output: Any, overridden_output: Any, reason: str): """인간 개입/오버라이드 로깅""" override_log = LogEntry( event_id=event_id, timestamp=datetime.utcnow().isoformat() + "Z", event_type=EventType.HUMAN_OVERRIDE, system_version=self.system_version, operator_id=operator_id, input_hash=None, output_summary=f"Original: {str(original_output)[:50]}, Overridden: {str(overridden_output)[:50]}", confidence_score=None, human_verified=True, metadata={"reason": reason} ) self.logs.append(override_log) def log_error(self, error_type: str, error_message: str, operator_id: Optional[str] = None): """에러 로깅""" error_log = LogEntry( event_id=self._generate_event_id(), timestamp=datetime.utcnow().isoformat() + "Z", event_type=EventType.ERROR, system_version=self.system_version, operator_id=operator_id, input_hash=None, output_summary=None, confidence_score=None, human_verified=False, metadata={"error_type": error_type, "message": error_message} ) self.logs.append(error_log) def export_logs(self, format: str = "json") -> str: """로그 내보내기 (감사용)""" log_data = [] for log in self.logs: log_data.append({ "event_id": log.event_id, "timestamp": log.timestamp, "event_type": log.event_type.value, "system_version": log.system_version, "operator_id": log.operator_id, "input_hash": log.input_hash, "output_summary": log.output_summary, "confidence_score": log.confidence_score, "human_verified": log.human_verified, "metadata": log.metadata, }) return json.dumps(log_data, indent=2, ensure_ascii=False) def get_audit_summary(self) -> str: """감사 요약 생성""" total = len(self.logs) predictions = len([l for l in self.logs if l.event_type == EventType.PREDICTION_RESPONSE]) overrides = len([l for l in self.logs if l.event_type == EventType.HUMAN_OVERRIDE]) errors = len([l for l in self.logs if l.event_type == EventType.ERROR]) return f""" ╔═══════════════════════════════════════════════╗ ║ EU AI Act 로깅 감사 요약 ║ ╠═══════════════════════════════════════════════╣ ║ 시스템: {self.system_name:<30}║ ║ 버전: {self.system_version:<32}║ ╠═══════════════════════════════════════════════╣ ║ 총 로그 수: {total:<28}║ ║ 예측 건수: {predictions:<29}║ ║ 인간 개입: {overrides:<29}║ ║ 에러 발생: {errors:<29}║ ║ 개입 비율: {(overrides/max(predictions,1)*100):.1f}%{' '*23}║ ╚═══════════════════════════════════════════════╝ """ # 사용 예시 logger = HighRiskAILogger("AI-Hiring-System", "2.0.1") # 예측 로깅 event_id = logger.log_prediction( input_data={"resume_id": "R-12345", "position": "Engineer"}, output={"score": 85, "recommendation": "Interview"}, confidence=0.92, operator_id="OP-001" ) # 인간 오버라이드 로깅 logger.log_human_override( event_id=event_id, operator_id="HR-MANAGER-01", original_output={"score": 85}, overridden_output={"score": 75}, reason="직무 경험 부족 고려" ) print(logger.get_audit_summary())
"If our hiring AI is offered in the EU, it will be classified as High-Risk AI. It falls under the 'Employment' category of Annex III, and we must complete CE marking and conformity assessment by August 2027. In case of violation, a fine of up to €15 million will be imposed."
"High-Risk AI must meet the 7 core requirements of Articles 9 through 15. In particular, the automatic logging in Article 12 carries a 5-year retention obligation, so we also need to consider storage costs."
"The core of High-Risk AI is 'traceability.' We must log every decision-making process and be able to explain why a given result was produced. XAI libraries such as SHAP or LIME are essential."
"There are two pathways for High-Risk AI conformity assessment. Most can be handled through self-assessment, but sensitive areas such as biometrics require third-party assessment by a Notified Body."
"I have experience analyzing the High-Risk AI requirements of the EU AI Act and identifying gaps in our AI systems. In particular, data governance and human oversight functions were the largest areas needing improvement, and I applied compliance-by-design to the MLOps pipeline."
Take a mock interview on this topic → WIA SOOM AI Interview · Start for free
Even if you do not provide services directly in the EU, the Act may apply if you process the data of EU citizens or supply AI systems to EU companies. It is an extraterritorial application principle similar to the GDPR.
Full application is in 2027, but prohibited practices apply from February 2025. In addition, there is a transitional measure under which existing systems must also comply by 2030.
Enterprise AI is regulated in the same way if it is used in high-risk areas (hiring, credit scoring, etc.). The end-use purpose is the criterion.
When AI is used as part of a safety product (medical devices, machinery, etc.), it can also become High-Risk AI through the Annex I pathway.
Determine whether each AI system falls under Annex I/III, and establish a documented risk assessment framework. Reflecting the requirements from the early stages of development under the 'Compliance by Design' principle is cost-effective.
The Italian data protection authority (Garante) temporarily banned OpenAI's ChatGPT service. The issues included inadequate child protection, lack of a legal basis for training data, and insufficient transparency. OpenAI resumed the service after promising to verify age, improve transparency in personal data processing, and guarantee the rights of EU data subjects.
US facial recognition company Clearview AI was hit with large fines for GDPR violations in several EU countries. France's CNIL (€20 million), Italy's Garante (€20 million), the UK's ICO (£7.5 million), and others imposed sanctions for unauthorized collection and processing of biometric data.
HireVue, an AI-based interview evaluation system, was criticized for evaluations based on facial expression analysis. The EPIC (Electronic Privacy Information Center) asked the FTC to investigate, and HireVue ultimately discontinued its facial analysis feature. Lack of transparency and the potential for bias were the main issues.
✅ Answer: A) High-Risk AI is classified through two pathways. Annex I covers cases where AI is applied under existing EU product safety legislation such as medical devices and machinery, while Annex III covers 8 stand-alone high-risk areas including hiring, education, and finance.
✅ Answer: D) Annex III-based High-Risk AI (hiring, education, finance, etc.) fully applies from August 2, 2027. However, Prohibited AI Practices apply earlier, from February 2025, and Annex I-based High-Risk AI from August 2026.
✅ Answer: B) For violating High-Risk AI requirements, a fine of up to €15 million or 3% of worldwide annual turnover, whichever is higher, is imposed. €35 million/7% applies to violations of Prohibited AI Practices.