The Air Pressure System (APS) is an essential part of heavy-duty vehicles, employing compressed air to apply pressure to brake pads and decelerate the vehicle. APS offers advantages such as the accessibility and sustainability of natural air. This problem involves Binary Classification, where the positive class signifies APS failure due to a specific component, while the negative class represents failure caused by other factors.
This project focuses on the Air Pressure System (APS) in trucks, which generates pressurized air for braking and gear changes. The dataset distinguishes component failures specific to APS (positive class) and failures unrelated to APS (negative class).
The goal is to reduce costs by minimizing false predictions and unnecessary repairs.
- Python
- FastAPI
- Machine learning algorithms
- Docker
- MongoDB
- AWS S3
- AWS EC2
- AWS ECR
- Git Actions
- Terraform
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. You also need AWS account to access the service like S3, ECR and EC2 instances.
git clone https://github.com/sethusaim/Sensor-Fault-Detection.git
conda create -n sensor python=3.7.6 -y
conda activate sensor
pip install -r requirements.txt
export AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID>
export AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>
export AWS_DEFAULT_REGION=<AWS_DEFAULT_REGION>
export MONGODB_URL="mongodb+srv://arkintea:<password>@sensor.cwezzhe.mongodb.net/?retryWrites=true&w=majority"
python app.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 AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID> --build-arg AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY> --build-arg AWS_DEFAULT_REGION=<AWS_DEFAULT_REGION> --build-arg MONGODB_URL=<MONGODB_URL> .
- Run the Docker image
docker run -d -p 8080:8080 <IMAGE_NAME>
To run the project first execute the below commmand. MONGO DB URL:
mongodb+srv://arkintea:<password>@sensor.cwezzhe.mongodb.net/?retryWrites=true&w=majority
then run
python main.py