The Air Pressure System (APS) is a critical component of a heavy-duty vehicle that uses compressed air to force a piston to provide pressure to the brake pads, slowing the vehicle down. The benefits of using an APS instead of a hydraulic system are the easy availability and long-term sustainability of natural air.
This is a Binary Classification problem, in which the affirmative class indicates that the failure was caused by a certain component of the APS, while the negative class indicates that the failure was caused by something else.
In this project, the system in focus is the Air Pressure system (APS) which generates pressurized air that are utilized in various functions in a truck, such as braking and gear changes. The datasets positive class corresponds to component failures for a specific component of the APS system. The negative class corresponds to trucks with failures for components not related to the APS system.
The problem is to reduce the cost due to unnecessary repairs. So it is required to minimize the false predictions.
- Python
- FastAPI
- Machine learning algorithms
- Docker
- MongoDB
- Git Actions
Before we run the project, make sure that you are having MongoDB in your local system, with Compass since we are using MongoDB for data storage.
git clone https://github.com/Kirtimaanwani/sensor-fault-detection.git
conda create -p venv/ python=3.8 -y
conda activate venv/
pip install -r requirements.txt
export MONGODB_URL="Paste your mongoDB Url here"
sample_url = mongodb+srv://<user_name>:<password>@cluster0.1p6mzvm.mongodb.net/test
python main.py
http://localhost:8080/train
http://localhost:8080/predict
-
Check if the Dockerfile is available in the project directory
-
Build the Docker image
docker build --build-arg MONGODB_URL=<MONGODB_URL>
- Run the Docker image
docker run -d -p 8080:8080 <IMAGE_NAME>