|
import streamlit as st
|
|
|
|
import streamlit as st
|
|
|
|
st.header("π Brake System Fault Detection")
|
|
|
|
|
|
|
|
feature_desc = {
|
|
'Brake_Pressure': "Pressure applied to the brake pedal.",
|
|
'Pad_Wear_Level': "Indicates the wear level of brake pads.",
|
|
'ABS_Status': "1 if Anti-lock Braking System is active, else 0.",
|
|
'Wheel_Speed_FL': "Speed of the front-left wheel.",
|
|
'Wheel_Speed_FR': "Speed of the front-right wheel.",
|
|
'Wheel_Speed_RL': "Speed of the rear-left wheel.",
|
|
'Wheel_Speed_RR': "Speed of the rear-right wheel.",
|
|
'Fluid_Temperature': "Temperature of the brake fluid.",
|
|
'Pedal_Position': "How far the brake pedal is pressed."
|
|
}
|
|
|
|
selected = st.selectbox("Select a feature to understand:", list(feature_desc.keys()))
|
|
st.info(f"π **{selected}**: {feature_desc[selected]}")
|
|
|
|
|
|
|
|
|
|
|
|
st.markdown("### π― Goal")
|
|
st.markdown("""
|
|
Build a data-driven model that detects braking system faults using sensor data such as brake pressure, wheel speeds, fluid temperature, and pedal position.
|
|
""")
|
|
|
|
|
|
st.markdown("### π Business Objective")
|
|
st.markdown("""
|
|
- Detect faults early to reduce vehicle failure risks.
|
|
- Analyze sensor behavior during fault vs non-fault conditions.
|
|
- Support preventive maintenance using historical data patterns.
|
|
""")
|
|
st.markdown("### π Data Understanding")
|
|
|
|
st.markdown("""
|
|
The dataset contains **real-time sensor readings** collected from a vehicle's braking system to detect faults. Below are the details of each feature:
|
|
|
|
#### π’ Numerical Features:
|
|
|
|
- **Brake_Pressure**: Pressure applied to the braking system (in bar or psi).
|
|
- **Pad_Wear_Level**: Indicates how much the brake pads have worn down (in % or mm).
|
|
- **Wheel_Speed_FL**: Speed of the **front-left** wheel (in km/h).
|
|
- **Wheel_Speed_FR**: Speed of the **front-right** wheel (in km/h).
|
|
- **Wheel_Speed_RL**: Speed of the **rear-left** wheel (in km/h).
|
|
- **Wheel_Speed_RR**: Speed of the **rear-right** wheel (in km/h).
|
|
- **Fluid_Temperature**: Temperature of the brake fluid (in Β°C).
|
|
- **Pedal_Position**: Position of the brake pedal, indicating how far it is pressed (0β100%).
|
|
|
|
#### π Categorical Feature:
|
|
|
|
- **ABS_Status**: Anti-lock Braking System status β
|
|
- `1`: Active
|
|
- `0`: Inactive
|
|
|
|
#### π― Target Variable:
|
|
|
|
- **Fault**:
|
|
- `0`: Normal (No issue detected)
|
|
- `1`: Fault Detected (Brake system problem)
|
|
""")
|
|
|