Skip to content
View lightleaping's full-sized avatar

    Block or report lightleaping

    Block user

    Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

    You must be logged in to block users.

    Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
    Report abuse

    Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

    Report abuse
    lightleaping/README.md
    배너



    PythonPyTorchVision AINLP & AgentFastAPI

    Core Strengths

    Vision AIPredictive ModelingNLP & AI AgentAI Service Backend
    이미지 분류, 객체 탐지, OpenCV, Grad-CAM, 실패 사례 분석불균형 데이터 대응 · MLP · SHAP · 센서 이상 탐지RAG · Intent · Router · Tool · Evidence · LangGraph · MCPPyTorch Model · FastAPI · Streamlit · SQLite · Docker · API 테스트

    **데이터를 분석하고 모델과 AI Workflow를 구현한 뒤, 결과를 FastAPI API와 사용자 화면으로 연결했습니다.


    Project Map

    AI Project Map


    Representative Projects

    ProjectProblemTech StackProject ScopeEvidence
    제조 표면 결함 Vision AI
    Manufacturing Vision Defect Analysis System
    정상과 불량을 판정하고 결함 종류와 위치를 함께 확인Python, PyTorch, ResNet18, Faster R-CNN, OpenCV, FastAPI, Streamlit기간: 2026.07
    형태: 개인 프로젝트
    범위: 이미지 분석, 분류 모델, 객체 탐지 모델, 성능 평가, 실패 사례 분석, API, Dashboard, 테스트, 문서화
    DEFECT-class F1 97.92%
    mAP@0.50 0.7077
    AI4I 기반 설비 고장 예측
    Manufacturing AI Quality Agent
    불균형한 설비 고장 데이터를 예측하고 판단 근거와 실행 이력을 함께 제공Python, PyTorch MLP, SHAP, LangGraph, FastAPI, SQLite, Streamlit기간: 2026.05–07
    형태: 개인 프로젝트
    범위: 데이터 처리, 고장 예측 모델, 설명 정보, Agent, Trace, API, Dashboard, 평가, 테스트
    Recall 82.35%
    Agent 평가 6/6 PASS
    제조 품질 분석 NLP Agent
    Manufacturing MCP Agent
    제조 질문에 맞는 분석 Tool을 선택하고 결과 근거를 반환Python, FastAPI, Intent, Router, Tool, Evidence, Docker기간: 2026.04–05
    형태: 개인 프로젝트
    범위: 제조 데이터, Intent 분류, Router, 4개 Tool, Evidence 응답, 모델 Endpoint, API, CI
    4 Intents, 4 Tools
    2 Core POST Endpoints
    다변량 센서 이상 탐지
    Sensor Anomaly Model Pipeline
    Scale이 다른 센서값을 하나의 이상 탐지 흐름으로 연결Python, PyTorch, AutoEncoder, StandardScaler, FastAPI기간: 2026.05
    형태: 개인 프로젝트
    범위: 데이터 생성, 결측치 처리, Split, Scaler, AutoEncoder 구조, 학습 코드와 평가 코드, Threshold, CLI, API
    합성 Held-out Test
    Recall 96.67% · F1 86.57%
    공정거래 의결서 NLP 검색
    Fair Decision RAG
    긴 의결서에서 질문 관련 근거 Top-5와 근거 기반 답변을 제공Python, BM25, Dense Retrieval, Section Boost, FastAPI, Docker기간: 2026.05–07
    형태: 공모전 팀 프로젝트
    본인 기여: Team Lead, 질문 분류, Dense Baseline, Section Boost, 검색 평가, 일정·범위·통합 관리
    Silver QA Recall@5 0.9850
    Offline Docker 200/200 PASS
    임상 의학 논문 NLP 동향 분석
    Clinical Medical Paper NLP Trend Analysis
    임상 의학 논문 데이터를 활용해 연도별 동향을 분석Python, Web Scraping, WordCloud기간: 2025.03–06
    형태: 전공 팀 프로젝트
    본인 기여: 개인 Scraping 코드, 주제 선정 논의, 보고서 결론 파트
    연도별 분석과 WordCloud를 포함한 팀 보고서 제출

    Project Details

    01 | 제조 표면 결함 Vision AI(Manufacturing Vision Defect Analysis System) — F1 97.92%, mAP@0.50 0.7077

    Problem

    이미지 전체의 정상 여부와 불량 여부뿐 아니라, 개별 결함의 종류와 위치까지 확인할 수 있는 제조 Vision 흐름이 필요했습니다.

    Implementation

    이미지 데이터 분석
    → CNN Baseline / ResNet18 분류
    → 오분류 분석 및 Grad-CAM 확인
    → Faster R-CNN 객체 탐지
    → FastAPI 분류 API와 검출 API
    → Streamlit 결과 확인
    
    • Casting Product Image Data 7,348장 분석
    • CNN Baseline과 ResNet18 전이학습 비교
    • False Positive와 False Negative 오분류 분석
    • NEU Surface Defect 1,800장, 6개 Class 객체 탐지
    • 분류와 검출 결과를 독립된 API Endpoint로 제공

    Evidence

    • ResNet18 Test Accuracy 97.34%
    • DEFECT-class F1 97.92%
    • Detection mAP@0.50 0.707726
    • Mean Matched IoU 0.752338

    Project Scope

    항목내용
    일정2026.07
    형태개인 프로젝트
    프로젝트 범위이미지 데이터 분석, CNN Baseline과 ResNet18 분류, Faster R-CNN 객체 탐지, 오분류 분석, Grad-CAM, FastAPI 분류 API와 검출 API, Streamlit Dashboard, 테스트, 문서화
    02 | AI4I 기반 설비 고장 예측(Manufacturing AI Quality Agent) — Recall 82.35%, Agent 6/6 PASS

    Problem

    고장 Class가 적은 설비 데이터에서 고장 위험을 탐지하고, 예측 결과와 함께 주요 입력 특성, 처리 경로, 실행 이력을 확인할 필요가 있었습니다.

    Implementation

    AI4I 설비 Feature
    → PyTorch MLP 고장 예측
    → Rule / SHAP Evidence
    → LangGraph Agent
    → Trace / SQLite History
    → FastAPI / Streamlit
    
    • StandardScaler와 pos_weight를 적용한 PyTorch MLP
    • Threshold 비교를 통한 고장 위험 단계 구성
    • SHAP Local과 Permutation Importance 기반 Evidence
    • LangGraph Routing과 Trace Event
    • SQLite 실행 이력과 Streamlit 4개 페이지

    Evidence

    • Recall 82.35%
    • Agent Evaluation 6/6 PASS
    • 실제 OpenAI E2E 시나리오 PASS
    • 전체 회귀 테스트 307 passed

    Project Scope

    항목내용
    일정2026.05–07
    형태개인 프로젝트
    프로젝트 범위AI4I 데이터 처리, PyTorch MLP 고장 예측, 클래스 불균형 대응, SHAP과 Permutation Importance, LangGraph Agent, Trace와 SQLite 이력, FastAPI, Streamlit Dashboard, 평가, 테스트
    03 | 제조 품질 분석 NLP Agent(Manufacturing MCP Agent) — 4 Intents, 4 Tools, 2 Core POST Endpoints

    Problem

    불량률, 센서 이상, 라인 성능, 원인 후보처럼 제조 질문마다 필요한 데이터와 분석 기능이 달랐습니다.

    Implementation

    사용자 질문
    → Intent
    → Router
    → 제조 Tool
    → Answer + Evidence
    
    • defect_rate
    • sensor_anomaly
    • line_performance
    • quality_issue_candidates
    • /agent/query
    • /model/sensor-anomaly
    • Docker, GitHub Actions, pytest

    Evidence

    • 4 Intents
    • 4 Tools
    • 2 Core POST Endpoints
    • 9 핵심 테스트

    Project Scope

    항목내용
    일정2026.04–05
    형태개인 프로젝트
    프로젝트 범위제조 데이터 처리, Intent 분류, Router, 4개 제조 Tool, Answer와 Evidence 응답, Sensor Anomaly 모델 Endpoint, FastAPI, Docker, GitHub Actions, pytest
    04 | 다변량 센서 이상 탐지(Sensor Anomaly Model Pipeline) — Recall 96.67%, F1 86.57%

    Problem

    온도, 진동, 압력, 습도처럼 Scale이 다른 센서값을 동일한 전처리, 학습, 평가, 추론 구조로 연결할 필요가 있었습니다.

    Implementation

    센서 데이터
    → 결측치 처리 / Split / StandardScaler
    → 4→8→2→8→4 AutoEncoder
    → Reconstruction Error
    → Validation Threshold
    → CLI / FastAPI
    
    • 데이터 생성과 전처리 모듈
    • PyTorch AutoEncoder 구조
    • MSE Loss와 Adam 기반 학습/검증 Loop 코드
    • Reconstruction Error와 Percentile Threshold
    • CLI와 FastAPI /predict 응답 구조

    Evidence

    • 합성 Held-out Test Accuracy 95.00%
    • Anomaly Recall 96.67%
    • F1 Score 86.57%
    • Confusion Matrix TN 284, FP 16, FN 2, TP 58
    • Validation 데이터로 Threshold를 정하고, 분리된 Test 데이터로 최종 성능 평가

    Project Scope

    항목내용
    일정2026.05
    형태개인 프로젝트
    프로젝트 범위합성 센서 데이터 생성, Train·Validation·Test 분리, Train 기준 StandardScaler, 정상 데이터 기반 AutoEncoder 학습, Early Stopping, Validation Threshold, Held-out Test 평가, Checkpoint, Model Card, CLI, FastAPI, pytest, GitHub Actions
    05 | 공정거래 의결서 NLP 검색(Fair Decision RAG) — Team Lead, Silver Recall@5 0.9850

    Problem

    긴 공정거래 의결서에서 질문과 관련된 근거를 찾고, 중복 없이 원문 위치를 추적할 필요가 있었습니다.

    Implementation

    공개 의결서 31,877개 청크
    → BM25 / Dense Retrieval
    → Query Classification
    → Weighted Score Fusion / Section Boost
    → Unique and Valid Top-5
    → Grounded Extractive Answer
    → FastAPI / Offline Docker
    
    • 공정거래위원회 공개 의결서 청크 31,877개 처리
    • BM25와 다국어 MiniLM Dense Retrieval 결과를 가중 결합
    • Query Classification과 Section Boost로 질문 유형별 순위 보정
    • 원본 chunk_id 유효성 검사와 중복 없는 Top-5 반환
    • 검색된 Top-5 범위 안에서 추출형 Answer와 Evidence Trace 구성
    • FastAPI와 외부 네트워크 없는 Docker 실행 환경 구현

    Evidence

    • 자체 생성 Silver QA 500개 기준 Recall@5 0.9850
    • Silver QA 기준 MRR 0.9810
    • Offline Docker HTTP 요청 200/200 PASS
    • 평균 응답시간 1.4503초, 최대 13.3913초
    • Generation Token F1은 0.0595로 답변 선택과 압축에 개선 필요
    • 공식 비공개 Gold Set 평가 결과가 아닌 개발·회귀 검증용 수치

    Project Scope

    항목내용
    일정2026.05–07
    형태공모전 팀 프로젝트
    프로젝트 범위공개 의결서 31,877개 청크 처리, BM25와 Dense Retrieval, Query Classification, Score Fusion, Section Boost, 원본 ID 검증, Top-5 Evidence, 추출형 Answer, FastAPI, Offline Docker, Silver QA 평가와 HTTP 안정성 검증
    본인 기여Team Lead로서 질문 분류, Dense Baseline, Section Boost, Top-K 검증, 검색 결과 평가, Sprint 운영, 일정과 MVP 범위 조정, 지연 작업 지원, GitHub 통합 상태 확인
    06 | 임상 의학 논문 NLP 동향 분석(Clinical Medical Paper NLP Trend Analysis) — Web Scraping, Yearly Trend, WordCloud

    Problem

    임상 의학 관련 논문 데이터를 활용해 연도에 따른 연구 동향을 살펴보는 전공 팀 프로젝트를 수행했습니다.

    Implementation

    팀원별 Web Scraping 코드 구현
    → 분석 주제 논의
    → 임상 의학 선정
    → 연도별 동향 분석
    → WordCloud 시각화
    → 팀 보고서 작성 및 제출
    

    Evidence

    • 임상 의학 관련 논문 데이터의 연도별 동향 분석
    • WordCloud 기반 결과 시각화
    • 분석 결과를 정리한 팀 보고서 제출

    Project Scope

    항목내용
    일정2025.03–06
    형태동양미래대학교 전공 팀 프로젝트
    프로젝트 범위팀원별 Web Scraping 코드 작성, 분석 주제 선정, 임상 의학 논문의 연도별 동향 분석, WordCloud 시각화, 팀 보고서 작성
    본인 기여개인 Web Scraping 코드 구현, 주제 선정 논의 참여, 보고서 결론 파트 작성

    Core Stack

    영역기술
    Language & DataPython, SQL, pandas, NumPy, scikit-learn
    Deep Learning & VisionPyTorch, torchvision, CNN, ResNet18, Faster R-CNN, MLP, AutoEncoder, OpenCV, Grad-CAM
    NLP & AgentWeb Scraping, Keyword Analysis, Intent, Router, Tool, Evidence, LangGraph, MCP
    RetrievalBM25, Dense Retrieval, FAISS, Section Boost, Top-K Evidence
    Backend & ServiceFastAPI, Pydantic, Streamlit, SQLite, REST API
    Verification & Developmentpytest, Git, GitHub, Docker, GitHub Actions

    Contact

    Pinned Loading

    1. manufacturing-vision-defect-analysis-systemmanufacturing-vision-defect-analysis-systemPublic

      PyTorch 기반 제조 이미지 분류·표면 결함 탐지와 FastAPI·Streamlit 통합 프로젝트

      Python

    2. manufacturing-ai-quality-agentmanufacturing-ai-quality-agentPublic

      AI4I 설비 고장 예측과 SHAP Evidence·Agent Trace를 연결한 제조 AI 프로젝트

      Python

    3. fair-decision-ragfair-decision-ragPublic

      공정거래 공개 의결서 질의에 대해 BM25/Dense Retrieval, section boost, 중복 없는 Top-5 chunk_id 반환을 수행하는 로컬 RAG 검색 모듈

      Python

    4. manufacturing-mcp-agentmanufacturing-mcp-agentPublic

      규칙 기반 Intent·LangGraph·MCP Tool·FastAPI로 제조 질문을 분석 기능과 Evidence에 연결한 NLP Agent 프로젝트

      Python

    5. sensor-anomaly-model-pipelinesensor-anomaly-model-pipelinePublic

      PyTorch AutoEncoder 기반 센서 데이터 이상탐지 모델 개발 및 FastAPI 추론 API 프로젝트

      Python 1

    6. clinical-medical-paper-nlp-trend-analysisclinical-medical-paper-nlp-trend-analysisPublic

      임상 의학 기술 발전 관련 논문을 수집하고 카테고리별 키워드와 연구 동향을 분석한 전공 팀 프로젝트 사례 저장소