Open-Window: A Sound Event Dataset for Window State Detection and Recognition

Saeid Safavi, Turab Iqbal, Wenwu Wang, Philip Coleman, Mark D. Plumbley

Introduction

Urban noise pollution is a significant public health concern, yet mapping how noise penetrates residential spaces remains a challenge due to the intrusive nature of physical sensors. While humans can intuitively distinguish between indoor and outdoor acoustic environments, identifying the specific state of a window—whether it is open, closed, or in transition—presents a subtle machine learning problem. This "lack of specificity" arises because few sounds originate exclusively from one side of a window. To address this, researchers have introduced Open-Window, the first dedicated audio dataset designed to detect window states based solely on acoustic cues.

Methodology

The study employs a baseline machine recognition system centered on a six-layer Convolutional Neural Network (CNN).

  • Feature Extraction: Audio signals are converted into log-mel spectrograms. The audio is segmented into 15-second blocks, transformed into the frequency domain, and scaled logarithmically to approximate human auditory perception.
  • Architecture: The CNN architecture includes five convolutional layers—each integrated with batch normalization, ReLU activation, and max-pooling—followed by a global average pooling layer and a final fully-connected layer with a Softmax output for four-way classification.
  • Human Benchmarking: To establish a performance baseline, eight participants underwent listening tests. They were tasked with identifying window states in both static (60s) and transitional (15s) audio clips after being trained on samples from various locations.

The Open-Window Dataset

The Open-Window dataset, hosted on Zenodo, comprises approximately 3.5 hours of 44.1 kHz audio recorded across three distinct UK environments: a quiet rural farm, a high-traffic office (Office 1), and a medium-traffic office (Office 2).

Experimental setup for audio recording at the window.

The recordings capture four primary states: Stationary Open (O), Stationary Closed (C), Open-to-Close (OC), and Close-to-Open (CO). As shown in the setup above, a Behringer ECM 8000 microphone was positioned 10cm from the window and connected to a Focusrite Clarett 4pre interface.

Results and Analysis

The experimental results highlight a significant performance gap between static and transitional state detection. Both the CNN and human listeners found transitional states (opening or closing) considerably easier to identify than stationary states.

Classification accuracy across different window states.

In a closed-set scenario, the CNN achieved an overall accuracy of 79.2%. However, as illustrated in the figure above, accuracy for transitional states (OC at 88.7% and CO at 84.4%) far exceeded that of the stationary closed state (61.1%). Humans followed a similar trend, averaging 68.33% for static states but improving to 88.75% for transitions. Notably, humans achieved 96.25% accuracy for transitions in the noisy office environment, suggesting a superior ability to filter meaningful external cues from internal chatter.

The study also underscored the importance of data volume; halving the training set resulted in a nearly 20% decrease in accuracy, indicating that window state detection relies on learning very subtle acoustic patterns. Furthermore, cross-location generalization remains a hurdle. When the AI was trained on office environments and tested on the rural farm, accuracy dropped to 35.4%, highlighting the impact of background noise levels. In quiet environments, the lack of external acoustic cues makes it difficult for the model to signal an open state.

Conclusion and Future Directions

While the Open-Window dataset provides a foundational resource, its current scale (3.5 hours across three locations) limits the model's ability to generalize to diverse architectural settings. The "Closed" state remains particularly elusive due to minimal acoustic activity.

Future research will focus on:

  1. Sequential Modeling: Implementing architectures like RNNs or Transformers to better capture temporal dependencies during window transitions.
  2. Acoustic Feature Engineering: Integrating room-specific metrics such as reverberation time (RT60) and clarity to help models distinguish between internal and external sound sources more effectively.

Summary updated

BibTeX
@inproceedings{safavi2020open,
  author = {Saeid Safavi and Turab Iqbal and Wenwu Wang and Philip Coleman and Mark D. Plumbley},
  title = {{Open-Window: A Sound Event Dataset for Window State Detection and Recognition}},
  booktitle = {DCASE},
  year = {2020},
}
Figure