- Use cases: IoT, Artificial Intelligence
- Industries: Energy and Environmental, Manufacturing and Mobility
- Products: Atlas, Atlas Vector Search
The renewable energy sector is rapidly evolving with advancements in AI and machine learning, offering significant potential for efficiency gains and cost reductions, yet much innovation remains untapped. By integrating AI into renewable energy systems, new opportunities for efficiency gains and cost reductions emerge.
Companies are increasingly turning to predictive maintenance to increase efficiency and reduce costs. However, this strategy comes with significant challenges:
Our solution explores the application of AI in real-time anomaly detection using sound input, highlighting the impact of MongoDB Atlas Vector Search. This approach offers several benefits:
Manufacturing: Implementing real-time anomaly detection in manufacturing plants to predict equipment failures and optimize production processes, leading to reduced downtime and increased productivity.
Transportation: Utilizing AI and Atlas Vector Search for predictive maintenance in vehicles, aircraft, and logistics equipment to anticipate maintenance needs, minimize disruptions, and improve fleet management.
Healthcare: Applying real-time anomaly detection in medical devices and equipment to identify potential issues early, ensuring patient safety, and optimizing healthcare operations.
With MongoDB: The solution demo is divided in two parts:
We begin by capturing the audio from the equipment in different situations (normal operation, high/low load, equipment obstructed, not operating).
Once each sound is collected, we use an embedding model to process the audio data and convert it to vector embeddings (numerical representations of data). This step is crucial — by generating embeddings for each audio track, which are high-dimensional vector representations, we are essentially capturing the unique characteristics of the sound.
We then upload these vectors to MongoDB Atlas, which is where the vector search magic begins. With just a few examples of sounds in our database, they are ready to be searched (and essentially compared) with the sound emitted by our equipment during its operation in real-time.
Next we put our equipment through normal operation and start capturing the sound it is making in real time. In this demonstration we capture one-second clips of audio. Then, with the same embedding model used before, we take our audio clips and convert them to vector embeddings in real-time. This process happens in milliseconds, allowing us to have real-time monitoring of the audio. The one-second audio clips now converted to vector embeddings are then sent to MongoDB Atlas Vector Search. At this step, the Atlas Vector Search algorithm searches for what is the most similar sound from the ones we previously recorded in our audio preparation phase. The result is given back with a percentage of similarity and it enables a very accurate diagnosis of the current status of the operation of the wind turbine.
These steps are performed repeatedly every second, leveraging fast embedding of vector data and quick searches, allowing for real-time monitoring based on sound.
The data model for the vectorized audio collection is simple, we have our audio preparation collection called “sounds,” which contains documents including a status and the url of the related GIF to be displayed on the UI. Once the reference audio for each status is vectorized, the embedding is added to the document as an array alongside existing fields.
On the reading end, the one-second audio clips we record in real-time are vectorized and sent to MongoDB Atlas Vector Search to be compared against embeddings from the “sounds” collection above.
Step 1: MongoDB Atlas Connection
Create a file called .env in the main directory alongside the add_audio.py file and add your atlas connection string in the following format:
MONGO_CONNECTIO_STRING="mongodb+srv://connectionstringfromatlas"
Then copy this file into the nodeUI directory.
Step 2: Install Python Modules
Install the required python modules listed in the Github repo.
Step 3: Record Audio Files
Step 4: Create a Search Index
Go to MongoDB Atlas and create an Atlas Search Index in the audio database sounds collection using the content of searchindex.json.
Step 5: Query the Database
Run python3 live_query.py and place your microphone next to the fan.
Step 6: Run the Frontend
MongoDB developer data platform:
Partner technologies:
Create this demo for yourself by following the instructions in this solution’s repository.
A fun and quick demo of MongoDB's Vector Search capabilities for anomaly detection through sound input, using a basic handheld fan as our makeshift wind turbine.
Discover how Atlas Vector Search enables real-time audio diagnostics.