AI video analytics for automated office cleaning
3 months
Offices
Video Analytics / Computer Vision
Monitoring
Automation
Web
[ Описание ]
BPA Tech has developed an intelligent video analytics system to monitor office environments and automate cleaning processes. The system analyzes common office areas—workspaces, meeting rooms, lounge areas, and other monitored zones—to automatically identify abandoned items and potential trash. The AI-powered video analytics considers the context of the scene, such as the presence of people near an object, the specific features of the zone, and repeat detections. Event information is sent to a centralized web interface, and the system automatically notifies the responsible staff member when cleaning is required.
[ Ключевая ценность ]
The system shifts the management of office and public space maintenance from periodic manual rounds to an event-driven service model. Cleaning staff receive information not based on a pre-set schedule, but at the moment a potential need for cleaning arises in a monitored zone. Furthermore, the AI video analytics evaluates not just the presence of an object in the frame, but the context: whether a person is nearby, whether the area is a designated monitoring zone, and whether the event is new. This approach demonstrates a broader application of video analytics for business: cameras become more than just a surveillance tool; they become a data source for automating operational processes.
Распознавание мусора ИИ
[
MSU Science and Technology Park "Vorobyovy Gory"
]
The Lomonosov Cluster is the flagship site of the MSU "Vorobyovy Gory" Innovation Science and Technology Center. The building, covering approximately 65,000 square meters, houses office and laboratory spaces, coworking areas, conference halls, and exhibition and service infrastructure.
[
Задача
]
The goal was to develop a computer vision system that automatically identifies potentially abandoned trash in office and public areas using CCTV footage and transmits this information to cleaning staff. The solution had to operate on existing camera infrastructure, distinguish between several types of objects, account for scene context, and integrate detection results into a unified digital workflow. The camera was intended to serve not just as a surveillance tool, but as a data source for automating the cleaning process.
[ Решение ]

Collecting a custom dataset in a real-world environment

Off-the-shelf, open-source datasets did not meet the project's requirements. Most available trash-related datasets are focused on streets and urban environments, whereas an office differs significantly in terms of background, object scale, and the context of their use.

Therefore, data was collected directly within the Lomonosov Cluster. Bottles, cups, napkins, bags, and other items that could potentially be interpreted as abandoned trash were placed in the monitored zones. Their positions were changed regularly so that the model could capture various combinations of angles, distances, and surrounding objects.

‍

Обучение нейросети для видеоаналитики офисных помещений

Filming was conducted simultaneously from multiple cameras. This allowed for the collection of approximately 10,000 frames and ensured the dataset included real-world characteristics: different viewing angles, lighting conditions, perspective distortions, and partial occlusions.

Unlike training on a universal dataset, this approach allowed us to adapt the computer vision model directly to the environment in which it was intended to operate.

Training the object recognition model

The collected images were labeled by object class and then used to train the detector. The dataset included bottles, cups, backpacks, and other items commonly found in an office space.

A separate technical challenge involved handling small objects. The source images came from Full HD cameras, while the model operated at a resolution of 640 × 640 pixels. Simply downscaling the full frame would have led to a loss of detail: a small bottle or cup might occupy too few pixels for reliable detection.

‍

Компьютерное зрение для распознавания людей и объектов в офисе

‍

Therefore, the source frame was divided into six sections, each of which was analyzed separately. After processing, the results were merged. This mechanism allowed us to maintain the necessary level of detail without resorting to more computationally intensive processing of the entire Full HD frame.

Detecting trash with context awareness

The main algorithmic complexity of the project lay not in detecting an object, but in interpreting the situation surrounding it.

‍

Автоматизация клининга с помощью искусственного интеллекта

‍

A plastic cup on an empty table might be abandoned trash. The same cup next to a person sitting at the table is most likely in use. If the system relied solely on the object class, it would frequently generate false alarms.

To solve this problem, two neural networks were used: one identifies potential trash, and the other identifies people. After detection, the system analyzes the relative positioning of the objects. If potential trash is located within an extended area around a person, the event is not flagged as a cleaning requirement.

It is this layer of application logic that transforms object recognition into computer vision for a specific business process: the model's output is further interpreted based on what is happening in the room.

Excluding zones with a high risk of false positives

Not all areas of the room needed to be analyzed in the same way. For example, near a coffee station, cups may temporarily be on a surface as part of normal staff operations. Formally, the model sees the target object class, but it would be incorrect to create a cleaning task based on that.

‍

Интеллектуальная видеоаналитика с фильтрацией ложных срабатываний

Spatial masks were implemented for such areas. When setting up the camera, regions are defined within the frame where events are excluded from analysis.

Because of this, computer vision systems can be adapted not only to a specific facility but also to the operational rules of individual zones within the same room.

Working with multiple cameras

At the facility, the same zone could simultaneously fall within the field of view of several cameras. This increased space coverage but created another problem: a single physical object could be detected from different angles, generating multiple identical events.

When configuring the system, the priority of data from different cameras was taken into account. Additionally, filtering for duplicate events was implemented: if an item remains in one place for a long time and the situation does not change, the system does not create new records for each subsequent detection.

As a result, the stream of detections is transformed into a set of meaningful events that maintenance staff can act upon.

Unified video analytics framework

A backend was developed for the project using FastAPI, deployed in a Docker container. The system receives video streams from existing cameras via RTSP, sends images for neural network processing, and saves information about significant events in PostgreSQL.

The backend further verifies recognition results and filters out repeat detections. If an item remains in one place and the situation does not change, the system does not create new records for each subsequent detection.

This architecture allowed for the implementation of video analytics based on existing camera infrastructure and the creation of a unified framework that can be expanded with new cameras, control zones, and computer vision scenarios.

Web interface and notifications

A web client was implemented to work with the accumulated data. It provides detection statistics by day, camera, and category, allowing camera data to be used not only for reacting to individual events but also for subsequent analysis of space utilization.

‍

ИИ-видеоаналитика для автоматического обнаружения мусора в офисе

‍

A separate Telegram notification system was implemented. When the system determines that cleaning is required, an employee can receive a message with information about where and what object was detected.

Thus, applied video analytics is integrated directly into the workflow: from the camera image to a specific event and the transmission of information to the responsible employee.

‍

Вызовы и решения
[ Вызов ]
There was no existing dataset for office spaces that reflected the necessary object classes and real-world observation conditions.
[ Решение ]
A custom dataset of approximately 10,000 frames from different cameras, angles, and zones was created at the facility, after which the data was labeled and used to train the model.
[ Вызов ]
Depending on the situation, the same object can be either trash or a useful item.
[ Решение ]
We have added dedicated human detection and spatial proximity logic to the analysis. The solution considers not only the class of the detected object but also its position relative to a person.
[ Вызов ]
Small objects lost detail when Full HD images were downscaled to the neural network's input resolution.
[ Решение ]
The frame is divided into six parts, which are analyzed sequentially by the model, after which the processing results are combined.
[ Технологический стек ]
Python
FastAPI
Docker
PostgreSQL
[ Решение ]
BPA Tech has developed an intelligent video analytics system for the automated monitoring of office and public spaces. The solution identifies potentially abandoned items, accounts for the presence of people and the specific features of individual zones, filters out duplicate events, and transmits results to a centralized web interface. The system goes beyond simple object detection: application logic is built around the neural network model, allowing it to interpret events in the context of a real-world space and translate computer vision results into specific actions for maintenance staff. The project has established an approach that can be scaled to other commercial real estate management scenarios, such as monitoring the condition of common areas, analyzing space utilization, and automating service processes using existing video surveillance infrastructure.
Другие проекты
/ Все проекты /