Downloads · 30 days
0
alfiinyang/GBdegradation
GBdegradation is a machine learning model from alfiinyang. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model predicts machine failure events based on industrial sensor telemetry.
Downloads · 30 days
0
Access
Public
Updated Sep 12, 2026
Repo size
44.6 KB
Likes
0
Public
Click a slice to open those files.
.joblib44.6 KB · 92%
From the Hugging Face model README
This model predicts machine failure events based on industrial sensor telemetry.
model.joblib: The HistGradientBoosting champion model.preprocessing.py: Python function to transform raw sensor JSON/CSV into features.pop_stats.joblib: Baseline statistics for anomaly detection.To get a prediction from raw telemetry, you must use the preprocess_sensor_data function:
import joblib
import pandas as pd
from preprocessing import preprocess_sensor_data
# 1. Load Model and Stats
model = joblib.load('model.joblib')
stats = joblib.load('pop_stats.joblib')
features = joblib.load('feature_list.joblib')
# 2. Raw Data Input (Must have: temperature_c, vibration_mm_s, run_hours_since_maintenance)
raw_df = pd.read_csv('telemetry.csv')
# 3. Preprocess (Requires 12h history for rolling windows)
processed_df = preprocess_sensor_data(raw_df, population_stats=stats)
# 4. Predict
risk_probs = model.predict_proba(processed_df[features])[:, 1]