Skip to main content
QMSQMS
QMS
  • Welcome to your QMS
  • Quality Manual
  • Procedures
  • Records
  • Legit.Health Plus Version 1.1.0.0
    • CAPA Plan - BSI CE Mark Closeout
    • Index
    • Overview and Device Description
    • Information provided by the Manufacturer
    • Design and Manufacturing Information
      • R-TF-012-019 SOUPs
        • Aioboto3
        • Albumentations
        • Argon2-CFFI
        • Authlib
        • Boto3
        • Dependency Injector
        • Dill
        • FastAPI
        • PyTorch Grad-CAM
        • Httpx
        • NumPy
        • PyNVML
        • OpenCV
        • Pillow
        • Psutil
        • Pydantic
        • Pydantic Settings
        • PyYAML
        • Segmentation Models PyTorch
        • Starlette
        • Timm
        • PyTorch
        • TorchVision
        • Ultralytics YOLO
        • Uvicorn
      • R-TF-012-028 Software Requirement Specification
      • R-TF-012-029 Software Architecture Description
      • R-TF-012-030 Software Configuration Management Plan
      • R-TF-012-031 Product requirements specification
      • R-TF-012-037 Labeling and IFU Requirements
      • R-TF-012-040 Documentation level FDA
      • R-TF-012-041 Software Classification 62304
      • R-TF-012-043 Traceability Matrix
      • Review meetings
    • GSPR
    • Benefit-Risk Analysis and Risk Management
    • Product Verification and Validation
    • Post-Market Surveillance
  • Legit.Health Plus Version 1.1.0.1
  • Legit.Health Utilities
  • Licenses and accreditations
  • Applicable Standards and Regulations
  • Pricing
  • Public tenders
  • Legit.Health Plus Version 1.1.0.0
  • Design and Manufacturing Information
  • R-TF-012-019 SOUPs

R-TF-012-019 SOUPs

This document provides a comprehensive list of all Software of Unknown Provenance (SOUP) components used in the medical device software. Each SOUP has been evaluated for its functional requirements, performance characteristics, and regulatory compliance.

SOUP Summary Table​

PackageCategoryLicenseVersionPrimary Use
Aioboto3LibraryApache 2.0≥15.4.0Async AWS DynamoDB access for user auth, lockout, and audit logging
AlbumentationsLibraryMIT≥2.0.0Image preprocessing and augmentation for AI inference pipelines
Argon2-CFFILibraryMIT≥25.1.0Secure password hashing using Argon2id algorithm
AuthlibLibraryBSD-3-Clause≥1.6.4JWT token generation and validation for API authentication
Boto3LibraryApache 2.0≥1.41.0AWS SDK for S3 storage, SSM config, and DynamoDB operations
Dependency InjectorFrameworkBSD-3-Clause≥4.48.0Dependency injection and IoC container management
DillLibraryBSD-3-Clause≥0.4.0Extended serialization for YOLO model checkpoints (indirect)
FastAPIFrameworkMIT≥0.124.0Primary HTTP/REST API framework for all microservices
Grad-CAMLibraryMIT≥1.5.0Explainable AI saliency maps for clinical transparency
HTTPXLibraryBSD-3-Clause≥0.28.0Async HTTP client for inter-service communication
NumPyLibraryBSD-3-Clause≥1.26.0Foundational numerical computing and array operations
PyNVMLLibraryBSD-3-Clause≥12.560.30GPU monitoring and resource detection via NVIDIA NVML
OpenCVLibraryMIT/Apache 2.0≥4.12.0Computer vision preprocessing, contour extraction, visualization
PillowLibraryMIT-CMU≥12.0.0Image decoding/encoding and ICC color space management
PsutilLibraryBSD-3-Clause≥7.1.0System resource monitoring (CPU, memory, disk)
PydanticLibraryMIT≥2.12.0Data validation and domain model definitions
Pydantic SettingsLibraryMIT≥2.12.0Environment-based configuration management
PyYAMLLibraryMIT≥6.0.2YAML configuration file parsing
Segmentation Models PyTorchLibraryMIT≥0.4.0Semantic segmentation architectures (UNet, DeepLabV3+)
StarletteFrameworkBSD-3-Clause≥0.49.0ASGI middleware for correlation ID and request tracking
TimmLibraryApache 2.0≥1.0.9Pre-trained image classification backbones (ConvNeXt, EfficientNet)
PyTorchFrameworkBSD≥2.0.0Deep learning framework for all AI/ML inference
TorchVisionLibraryBSD-3-Clause≥0.15.0Image transforms and preprocessing for PyTorch models
Ultralytics YOLOLibraryAGPL-3.0≥8.3.50Object detection for lesion localization (YOLOv8)
UvicornFrameworkBSD-3-Clause≥0.38.0Production ASGI server for all FastAPI services

SOUP Categories Overview​

Deep Learning & AI Framework​

PackageDescription
PyTorchCore deep learning framework powering all neural network inference. Provides tensor computation, GPU acceleration, and the torch.nn.Module API used by all AI models.
TorchVisionOfficial computer vision library for PyTorch. Used for image preprocessing transforms (Resize, Normalize, ToTensor) in classification and segmentation pipelines.
TimmPyTorch Image Models with 1,200+ pre-trained architectures. Provides ConvNeXt and EfficientNet backbones for clinical condition and quality classification.
Segmentation Models PyTorchEncoder-decoder architectures for semantic segmentation. Powers pixel-level clinical sign detection using UNet, DeepLabV3+, and FPN models with EfficientNet/ResNet encoders.
Ultralytics YOLOState-of-the-art object detection (YOLOv8). Used for lesion detection including acneiform lesions, hair follicles, hives, and inflammatory nodules with oriented bounding box support.
Grad-CAMExplainable AI library for generating saliency maps. Produces GradCAM++ visualizations showing which image regions influenced AI predictions for regulatory compliance.

Web Framework & HTTP​

PackageDescription
FastAPIHigh-performance async web framework. Serves as the primary REST API layer for the API Gateway, Control Plane, Expert Orchestrator, Report Builder, and all 50+ expert microservices.
StarletteASGI toolkit underlying FastAPI. Provides BaseHTTPMiddleware for correlation ID propagation and audit logging across the distributed microservice architecture.
UvicornLightning-fast ASGI server. Runs all production FastAPI services with multi-worker support, graceful shutdown, and custom logging integration for request tracing.
HTTPXModern async HTTP client. Powers the AsyncHttpClient wrapper for all inter-service communication with connection pooling, timeouts, and distributed tracing support.

Data Validation & Configuration​

PackageDescription
PydanticData validation library using Python type hints. Defines all domain models, API contracts, and medical device compliance data with strict validation and immutability.
Pydantic SettingsEnvironment-based configuration. Manages settings for all 60+ microservices including JWT parameters, storage credentials, expert registry URLs, and inference device specs.
PyYAMLYAML parsing library. Provides safe configuration file loading via yaml.safe_load() for microservice initialization and operational parameters.
Dependency InjectorIoC container framework. Centralizes dependency management across 68+ Python modules with lifecycle control, factory patterns, and FastAPI integration.

Image Processing & Computer Vision​

PackageDescription
PillowPython Imaging Library fork. Handles image decoding/encoding, Base64 conversion, and ICC profile-based color space normalization to sRGB for consistent model inference.
OpenCVComputer vision library (headless variant). Provides image resizing, color space conversion, CLAHE, geometric transforms, contour extraction, and overlay visualization.
AlbumentationsFast image augmentation library. Builds deterministic preprocessing pipelines with LongestMaxSize, PadIfNeeded, Normalize, and ToTensorV2 transforms.
NumPyFoundational numerical computing. Represents images as NDArray[np.uint8], handles mask operations, probability aggregations, and array interoperability with PIL/PyTorch.

AWS Cloud Infrastructure​

PackageDescription
Boto3Official AWS SDK. Provides S3 access for model weights and device labeling, SSM Parameter Store for centralized configuration, and synchronous DynamoDB operations.
Aioboto3Async AWS SDK wrapper. Enables non-blocking DynamoDB operations in the API Gateway for user authentication, account lockout tracking, and API call audit logging.

Authentication & Security​

PackageDescription
AuthlibOAuth/JOSE library. Implements JWT token generation with HMAC-SHA256 signing and token validation with expiration claim enforcement for protected API endpoints.
Argon2-CFFIPassword hashing library. Provides Argon2id hashing (Password Hashing Competition winner) for secure credential storage with configurable memory-hard parameters.

System Monitoring & GPU​

PackageDescription
PsutilCross-platform system utilities. Monitors CPU utilization, memory usage, and disk capacity for operational health endpoints exposed via GET /system/resources.
PyNVMLNVIDIA Management Library bindings. Provides GPU detection, memory monitoring, utilization tracking, and temperature sensing for the distributed AI inference platform.

Serialization​

PackageDescription
DillExtended pickle library. Indirect dependency used by Ultralytics YOLO for serializing model checkpoints containing lambda functions and complex Python objects.

Regulatory Considerations​

All SOUP components have been evaluated for:

  1. License Compliance: All packages use permissive licenses (MIT, BSD, Apache 2.0) compatible with commercial medical device software, except Ultralytics which requires an enterprise license for commercial use.

  2. Active Maintenance: Each SOUP is actively maintained with regular security updates and responsive maintainer teams.

  3. Security Assessment: Known vulnerabilities are tracked and assessed for applicability to the medical device software context.

  4. Functional Documentation: Each SOUP document includes detailed functional requirements, performance expectations, and hardware/software dependencies.

For detailed documentation of each SOUP component including functional requirements, performance criteria, and known anomaly assessments, refer to the individual SOUP pages linked in the table above.

Previous
Design and Manufacturing Information
Next
Aioboto3
  • SOUP Summary Table
  • SOUP Categories Overview
    • Deep Learning & AI Framework
    • Web Framework & HTTP
    • Data Validation & Configuration
    • Image Processing & Computer Vision
    • AWS Cloud Infrastructure
    • Authentication & Security
    • System Monitoring & GPU
    • Serialization
  • Regulatory Considerations
All the information contained in this QMS is confidential. The recipient agrees not to transmit or reproduce the information, neither by himself nor by third parties, through whichever means, without obtaining the prior written permission of Legit.Health (AI Labs Group S.L.)