{
  "generated_by": "physical-process-engine 0.1.0",
  "input": {
    "video": "out/demo/input/process.mp4",
    "telemetry": "out/demo/input/telemetry.csv",
    "ground_truth": "out/demo/input/ground_truth.json",
    "synthetic": true
  },
  "process_config": {
    "physics": {
      "duration_s": 30.0,
      "telemetry_hz": 50.0,
      "inertia": 0.05,
      "sync_speed_rads": 45.0,
      "stall_torque": 6.0,
      "viscous_friction": 0.02,
      "coulomb_friction": 0.03,
      "wear_viscous_gain": 4.0,
      "wear_coulomb_gain": 3.0,
      "wear_rate": 0.033,
      "friction_power_ref": 45.0,
      "ambient_temp_c": 22.0,
      "thermal_capacity": 12.0,
      "cooling_coeff": 1.2,
      "vib_base": 0.35,
      "vib_wear_gain": 5.0,
      "vib_freq_hz": 5.0,
      "current_base_a": 0.4,
      "current_gain": 1.1,
      "noise_omega": 0.25,
      "noise_temp": 0.15,
      "noise_vib": 0.05,
      "noise_current": 0.03,
      "nominal_wear_max": 0.3,
      "anomalous_wear_max": 0.65,
      "fail_temp_c": 85.0,
      "fail_omega_rads": 12.0,
      "seed": 7
    },
    "render": {
      "fps": 30.0,
      "frame_size": 256,
      "disk_radius": 92.0,
      "disk_gray": 70,
      "bg_gray": 205,
      "marker_radius": 16.0,
      "marker_orbit": 0.66,
      "marker_hsv": [
        12,
        230,
        255
      ],
      "vib_pixels_max": 4.0,
      "noise_sigma": 5.0,
      "blur_ksize": 3,
      "codec": "mp4v",
      "container": "mp4"
    }
  },
  "extraction_config": {
    "marker": {
      "hue_low": 0,
      "hue_high": 28,
      "sat_min": 120,
      "val_min": 120,
      "disk_val_max": 120,
      "min_blob_area": 80,
      "smooth_frames": 5,
      "vib_band_hz": 1.5
    },
    "window": {
      "window_s": 2.0,
      "stride_s": 0.5
    },
    "fusion": {
      "video_weight": 0.5,
      "sensor_weight": 0.5,
      "health_temp_c": 60.0,
      "health_vib": 4.0,
      "health_current_a": 2.4,
      "health_omega_ref": 12.0
    },
    "labels": {
      "temp_anom_c": 47.88,
      "vib_anom": 2.09,
      "omega_drop_anom": 0.141,
      "temp_fail_c": 62.27,
      "vib_fail": 3.892,
      "omega_drop_fail": 0.381
    },
    "compute": {
      "assumed_gpu_frames_per_s": 180.0,
      "assumed_gpu_hourly_usd": 2.5,
      "price_per_1k_input_usd": 0.00015,
      "price_per_1k_output_usd": 0.0006
    },
    "agent": {
      "enabled": true,
      "max_iterations": 5,
      "target_objective": 0.97,
      "base_url": null,
      "model": null
    }
  },
  "fusion_metrics": {
    "omega_rmse_rad_s": 0.807892351102911,
    "omega_corr": 0.9845793546150206,
    "vib_corr": 0.978727658886532,
    "agreement": 0.9786791591885972,
    "baseline_omega_rad_s": 37.89214310304463,
    "video_weight": 0.5,
    "sensor_weight": 0.5,
    "health_start": 0.904189433629921,
    "health_end": 0.1771726143844134
  },
  "compute": {
    "frames": 900,
    "telemetry_samples": 1501,
    "video_wall_s": 0.217517833923921,
    "video_cpu_s": 0.31515499999999985,
    "video_fps": 4137.591772428113,
    "video_fps_source": "measured",
    "gpu_backend": "none",
    "gpu_hours_measured": 0.0,
    "gpu_hours_measured_source": "not-measured (no accelerator backend used by this pipeline)",
    "gpu_hours_projected": 0.001388888888888889,
    "gpu_hours_projected_source": "projected (assumed accelerator throughput)",
    "gpu_hours_projected_per_hour_video": 0.16666666666666666,
    "gpu_cost_projected_usd": 0.0034722222222222225,
    "agent_backend": "rule",
    "agent_input_tokens": 1329,
    "agent_output_tokens": 121,
    "agent_tokens_source": "estimated",
    "agent_token_cost_usd": 0.00027194999999999997,
    "notes": [
      "video_fps is wall-clock throughput of the OpenCV stage on this machine",
      "gpu_hours_projected assumes 180 frames/s on a reference accelerator - an estimate, not a measurement",
      "no torch/CUDA/MPS backend detected; GPU figures are projections only"
    ]
  },
  "fps": 30.0,
  "stage_times_s": {
    "ingest": 1.5583032499998808,
    "extract": 0.2861986248753965,
    "agent": 0.9800181670580059,
    "export": 0.02520949998870492
  },
  "agent": {
    "backend": "rule",
    "token_source": "estimated",
    "iterations": 2,
    "initial_objective": 0.9368421052631579,
    "final_objective": 0.9894736842105263,
    "trace": "out/demo/agent/agent_trace.json"
  },
  "windows": 57,
  "feature_names": [
    "current_mean",
    "health_mean",
    "health_min",
    "health_slope",
    "omega_drop_rel",
    "omega_mean",
    "omega_min",
    "omega_video_mean",
    "temp_max",
    "temp_mean",
    "vib_max",
    "vib_mean",
    "vib_video_mean"
  ],
  "label_counts": {
    "nominal": 18,
    "anomalous": 17,
    "end_of_life": 22
  },
  "validation": {
    "n_windows": 57,
    "label_counts": {
      "nominal": 18,
      "anomalous": 17,
      "end_of_life": 22
    },
    "coverage": 1.0,
    "coherence": 1.0,
    "label_sequence": [
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "nominal",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "anomalous",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life",
      "end_of_life"
    ],
    "accuracy": 0.9824561403508771,
    "confusion": [
      [
        18,
        0,
        0
      ],
      [
        0,
        16,
        0
      ],
      [
        0,
        1,
        22
      ]
    ],
    "macro_f1": 0.9824915824915825,
    "objective": 0.9894736842105263
  },
  "splits": {
    "strategy": "temporal",
    "train_frac": 0.7,
    "train_ids": [
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      11,
      12,
      13,
      14,
      15,
      16,
      17,
      18,
      19,
      20,
      21,
      22,
      23,
      24,
      25,
      26,
      27,
      28,
      29,
      30,
      31,
      32,
      33,
      34,
      35,
      36,
      37,
      38,
      39
    ],
    "val_ids": [
      40,
      41,
      42,
      43,
      44,
      45,
      46,
      47,
      48,
      49,
      50,
      51,
      52,
      53,
      54,
      55,
      56
    ]
  }
}