File size: 6,489 Bytes
038ee19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{
    "batch_info": {
        "batch_id": "T001",
        "timestamp": "2026-03-05T15:08:19.303250",
        "status": "GO"
    },
    "quality_intelligence": {
        "Hardness": {
            "median": 89.82181200521184,
            "lower": 67.78041433062712,
            "upper": 107.13026495321763
        },
        "Friability": {
            "median": 0.9347456277459403,
            "lower": 0.6007745463725883,
            "upper": 1.3296718634651477
        },
        "Disintegration_Time": {
            "median": 6.828158282434108,
            "lower": 5.934659845522102,
            "upper": 10.85819602943674
        },
        "Dissolution_Rate": {
            "median": 90.25890830480158,
            "lower": 88.27540025855768,
            "upper": 95.03862789914373
        },
        "Content_Uniformity": {
            "median": 97.45100890604749,
            "lower": 93.98173277768804,
            "upper": 101.06766941979558
        }
    },
    "sustainability_metrics": {
        "total_kwh": -0.2990677146445373,
        "carbon_kg": -0.24523552600852058,
        "energy_cost_inr": -2.3925417171562984
    },
    "anomaly_report": {
        "batch_id": "T001",
        "phases": {
            "Preparation": {
                "power_discord": 22.643245166364668,
                "vibration_discord": 20.108431205218928,
                "combined_risk_score": 21.3758381857918,
                "anomaly_minute": 5,
                "risk_level": "LOW",
                "asset": "Feed Conveyor System"
            },
            "Granulation": {
                "combined_risk_score": 0.0,
                "risk_level": "INSUFFICIENT_DATA",
                "asset": "Granulator Motor",
                "anomaly_minute": null
            },
            "Drying": {
                "power_discord": 17.554249461899904,
                "vibration_discord": 30.873232733563157,
                "combined_risk_score": 24.21374109773153,
                "anomaly_minute": 45,
                "risk_level": "LOW",
                "asset": "Dryer Heater Element"
            },
            "Milling": {
                "combined_risk_score": 0.0,
                "risk_level": "INSUFFICIENT_DATA",
                "asset": "Mill Drive",
                "anomaly_minute": null
            },
            "Blending": {
                "power_discord": 21.368357122903184,
                "vibration_discord": 29.159355979443305,
                "combined_risk_score": 25.263856551173244,
                "anomaly_minute": 85,
                "risk_level": "LOW",
                "asset": "Blender Drive Motor"
            },
            "Compression": {
                "power_discord": 33.00097988722951,
                "vibration_discord": 22.023304397034256,
                "combined_risk_score": 27.512142142131886,
                "anomaly_minute": 107,
                "risk_level": "LOW",
                "asset": "Tablet Press"
            },
            "Coating": {
                "power_discord": 23.809097638010492,
                "vibration_discord": 20.894903467854,
                "combined_risk_score": 22.352000552932246,
                "anomaly_minute": 159,
                "risk_level": "LOW",
                "asset": "Coating Pan Drive"
            },
            "Quality_Testing": {
                "power_discord": 23.5667570470429,
                "vibration_discord": 21.233650260076764,
                "combined_risk_score": 22.40020365355983,
                "anomaly_minute": 179,
                "risk_level": "LOW",
                "asset": "Inspection System"
            }
        },
        "summary": {
            "overall_risk": "LOW",
            "n_high_phases": 0,
            "n_medium_phases": 0,
            "top_concern": "Compression"
        },
        "alerts": []
    },
    "drift_report": {
        "feature_drift": true,
        "details": {
            "Power_Consumption_kW": {
                "ks_stat": 0.95260663507109,
                "p_value": 2.1088430408785768e-106,
                "drift_detected": true
            },
            "Vibration_mm_s": {
                "ks_stat": 0.6350710900473934,
                "p_value": 2.8362738915096554e-40,
                "drift_detected": true
            }
        }
    },
    "governance": {
        "action": "GO",
        "reason": "No specific instruction detected, proceeding with defaults",
        "threshold_adjustment": null,
        "optimization_goal": "balanced"
    },
    "signature_delta": {
        "Granulation_Time": {
            "current": 15.0,
            "recommended": 15.0,
            "delta": 0.0,
            "pct_change": 0.0,
            "direction": "=",
            "within_tolerance": true
        },
        "Binder_Amount": {
            "current": 8.5,
            "recommended": 15.0,
            "delta": -6.5,
            "pct_change": -43.333333333333336,
            "direction": "\u25bc",
            "within_tolerance": false
        },
        "Drying_Temp": {
            "current": 60.0,
            "recommended": 15.0,
            "delta": 45.0,
            "pct_change": 300.0,
            "direction": "\u25b2",
            "within_tolerance": false
        },
        "Drying_Time": {
            "current": 25.0,
            "recommended": 15.0,
            "delta": 10.0,
            "pct_change": 66.66666666666666,
            "direction": "\u25b2",
            "within_tolerance": false
        },
        "Compression_Force": {
            "current": 12.5,
            "recommended": 15.0,
            "delta": -2.5,
            "pct_change": -16.666666666666664,
            "direction": "\u25bc",
            "within_tolerance": false
        },
        "Machine_Speed": {
            "current": 150.0,
            "recommended": 15.0,
            "delta": 135.0,
            "pct_change": 900.0,
            "direction": "\u25b2",
            "within_tolerance": false
        },
        "Lubricant_Conc": {
            "current": 1.0,
            "recommended": 15.0,
            "delta": -14.0,
            "pct_change": -93.33333333333333,
            "direction": "\u25bc",
            "within_tolerance": false
        },
        "Moisture_Content": {
            "current": 2.1,
            "recommended": 15.0,
            "delta": -12.9,
            "pct_change": -86.0,
            "direction": "\u25bc",
            "within_tolerance": false
        }
    },
    "optimization": null
}