1. Introduction
According to the United Nations, 55% of the world’s population currently resides in urban areas, with this percentage projected to reach 66% by 2050 [
1]. This rapid urban growth has caused environmental impacts, including environmental noise exposure to citizens. Noise pollution is one of the most important environmental health concerns around world. Environmental noise is produced by a variety of sources and is widely present in urban environments. Among the adverse effects produced by environmental noise exposure are those that threaten the well-being of human populations, deteriorate health, and decrease the ability of children to learn properly at school, leading to high economic costs for society [
2].
In 2018, the World Health Organization (WHO) Regional Office for Europe published Environmental Noise Guidelines for the European Region. Compared to previous WHO guidelines on noise, there are some significant developments in the new version, among which the following should be highlighted: the inclusion of leisure noise in addition to noise from transportation (aircraft, rail and road traffic), and the use of long-term average noise exposure indicators to better predict adverse health outcomes compared to short-term noise exposure measures [
3,
4]. Both leisure noise and long-term average noise exposure indicators are issues to be considered in the management of noise in urban environments.
The Environmental Noise Directive (END) provides mechanisms for annoyance and sleep disturbance assessment, which if exceeded require action plans to be drawn that are designed to reduce exposure and protect areas not yet polluted by noise [
5]. One of the most important evaluation mechanisms of the END is strategic noise mapping. At present, only industrial noise sources and noise from means of transport are taken into account (roads, railways, and airports) for strategic noise mapping. Meanwhile, there are many other sources of noise within urban environments not covered by strategic noise maps, such as citizen behavior, festive and cultural events, public works, urban maintenance and cleaning, and leisure noise, including night-life activities.
In order to carry out a comprehensive assessment of all the noise sources present in an area, one of the options that many cities usually use is environmental noise monitoring networks [
6]. Environmental noise monitoring systems consist of a network of discrete sensor stations, usually integrated with an averaging sound level meter using an outdoor microphone. One of the main advantages of environmental noise monitoring systems lies in their ability to use the required time evolution data. On the other hand, the main drawback of environmental noise monitoring systems is that the discrete number of points implies weaknesses in the representativeness of spatial data. Different approaches have been proposed in recent times to solve the problems related to spatial representativeness. Examples of this are proposals to perform environmental noise measurements based on smart phones [
7,
8,
9] and mobile monitoring networks using means of transport [
10,
11]. As a general rule, the lower the cost of the sensor, the more sensors can be used and the more spatially accurate the data will be.
Traditionally, professional systems used for noise measurement are designed to comply with very high-quality measurement requirements and are manufactured under strict international standards, such as IEC 61672 and IEC 61260 [
12,
13,
14,
15,
16,
17]. This situation makes this kind of equipment unsuitable for creating wide grids of measurement points in smart cities due to its high cost, large size, and other factors.
Recent technological developments related to the availability of cheaper and smaller equipment and innovations in communication networks and acoustic signal processing have led to the emergence of low-cost environmental noise sensor networks [
18]. In recent years, several projects based on low-cost environmental noise sensor networks have been developed [
19,
20,
21,
22].
These solutions show different approaches for implementing noise monitoring systems in smart acoustic sensor networks. In each reference, we can see that different open topics in noise measurement are covered. However, there are several common elements. These solutions use commercial hardware to produce a test concept of the proposed architecture. Not all references use exhaustive tests to measure quality characterization, and when these tests are implemented, they are only implemented from an acoustic point of view; no electrical tests are used, as suggested by the standard IEC 61672-3. In addition, these solutions measure only a few acoustic parameters, mainly the equivalent continuous sound level (Leq). Although some of these solutions point toward future trends in the application of algorithms for source identification, the equipment used is mono-channel, which reduces the possibility of implementing algorithms for source localization, one of the open topics for future noise measurement in cities.
To address these points, in this paper, a low-cost instrument to measure outdoor noise is presented. The equipment has been designed to form an electronics–microphone set, which allows it to be seen and used as a sensor device to be connected to microprocessor systems, thereby increasing its versatility and ease of use. The electronic device has been designed keeping in mind some of the challenges to be covered by future environmental noise monitoring networks. For this reason, the equipment incorporates two measurement channels, which together with a digital signal processor (DSP) will allow the future implementation of algorithms for detecting and locating noise sources. Likewise, noise measurement algorithms have been designed to meet the measurement requirements of type 1 instruments, so in the future, different types of microphones can be connected, thereby covering the different degrees of precision needed.
The equipment has been designed with fully digital implementation capability to increase its quality and reliability and to reduce its cost. The system has been designed around a Texas Instruments C5000 DSP, due to its low power consumption and high performance. Our instrument implements two fully functional measuring channels, having the basic functionalities of a sound level meter together with the ability to perform octave-level and one-third octave-level frequency analyses.
One of the key elements in sound level meters is a condenser microphone, which has exceptional characteristics for measuring noise, such as a flat frequency response, a large dynamic range, high precision, and repetitiveness [
23]. However, these characteristics make this type of instrument more expensive, hindering the widespread use of this type of microphone in the implementation of monitoring networks with a large number of nodes in smart cities.
One of the open challenges in environmental noise sensor networks is to build mixed networks where low-cost instruments can be used without the overall quality of the network measures being substantially affected. To comply with these requirements, the use of condenser microphones must be heavily restricted. However, the equipment used must be subjected to the tests indicated by the standard for sound level meters to assure the quality of their measurements [
12,
13,
14,
15,
16,
17]. For this reason, and to characterize the quality and usability of the equipment, a set of exhaustive tests have been performed. These tests were mostly laboratory tests similar to those applied to sound level meters, including electric and acoustic tests [
14,
17]. One of the main objectives of the designed equipment is its capability to be used as a sensor in any acoustic sensor network. For this reason, the device has a simple interface for connection to microprocessor systems. The designed equipment was connected to a NRG2 panStamp wireless module. This module is based on the CC430F5137 system-on-chip (SoC) design, which provides a communication radio channel at free industrial, scientific and medical (ISM) bands (868 MHz). With this configuration, a set of eight instruments were built to be connected to an existing acoustic sensor network in the city of Málaga in Spain. Málaga is a city that is very concerned about the quality of life of its citizens [
24] and has the infrastructure to carry out an outdoors test with the units we built.
2. System Description
Figure 1 shows a block diagram of the designed instrument and the form factor of the implemented module. The set formed by the microphone and the designed card was implemented as an original equipment manufacturer (OEM) module, allowing it to be easily integrated into any monitoring network. The core of the system is a digital signal processor that digitally implements all acoustic functions in order to achieve a more robust, economical, and adjustment-free architecture. Power consumption is a very important issue in systems designed for monitoring purposes. Usually, these systems are installed in remote or isolated places and are powered by solar panels. Thus, a family of fixed-point and low power consumption DSPs has been chosen. The use of a DSP allows us to implement many parameters without an increase in hardware cost, requiring only firmware upgrades. This system is capable of measuring, in real time, the following parameters for both channels simultaneously: the equivalent continuous sound level (Leq) (with Z, C, and A frequency weightings); the peak level (with Z, C, and A frequency weightings); the maximum and minimum levels with (Z, C, and A frequency weightings); the impulse, fast, and slow time weightings; seven percentiles (1%, 5%, 10%, 50%, 90%, 95%, and 99%); as well as continuous equivalent sound pressure levels in the one-third octave and octave frequency bands.
2.1. Hardware Solution
One of the most import elements in a noise measurement system is the microphone, which determines the overall quality of the equipment. In order to build cost-effective solutions, condenser microphones must be avoided due to their high price. The microphone used is an electret Panasonic WM 63-PR [
25], whose frequency response is shown in
Figure 2. The frequency response and dynamic range of the microphone suggest that it can be used to design an instrument with characteristics similar to type 2 sound level meters, according to the IEC 61672 standard [
13], with a frequency range of 63 HZ to 8 kHz.
The first block in
Figure 1a shows the signal conditioning stage, which is used to adapt the signal from the microphone to the analog to digital converter (ADC). This stage is formed by two active filters. One of them is a high-pass filter with a cutoff frequency of 5 Hz, and the other is a low-pass filter with a cutoff frequency of 22.7 kHz; both feature a unity gain. To adapt the microphone’s signal level to the dynamic input range of the ADC, a gain stage was added. To minimize the noise and protect the equipment against electrostatic discharge (ESD) and electromagnetic interference (EMI), a front end circuit was added between the microphone and the first filter.
Figure 3 shows this circuit.
The ADC used is a CS5344 from Cirrus Logic [
26], whose main features are a 24-bit sigma–delta converter, a sample rate up to 108 kHz, a dynamic range of 98 dB at 5V, a power consumption less than 40 mW at 3.3V, and a single power supply. The ADC is connected to the DSP using an multichannel buffered serial port (MCBSP) interface and left-justified with 256x speed. The transfers are managed using a direct memory access (DMA) channel; the block transfer includes 2048 samples for the two channels.
Figure 4 shows the ADC connection.
The core of the system is a Texas Instruments fixed-point DSP (TMS320VC5502) in a low-profile quad flat package (LQFP) [
27]. To optimize the system, all algorithms are executed in the internal RAM of the DSP, so only flash memory is connected to the DSP itself, which is used to store the code with the algorithms. This code is downloaded to the RAM at boot time. All algorithms are implemented through cycle optimization and have been coded in assembly language to reduce the code size and improve run time. In this way, the code can be allocated in the internal RAM of the DSP, and a lower main frequency can be used for the DSP, thereby reducing the overall power consumption [
28].
The system is designed to be used similarly to an OEM module to measure environmental noise; it can be managed by an external control unit using a serial peripheral interface (SPI) interface. This equipment can be connected to a microprocessor system to manage it using a simple interface. In this interface, there are four SPI signals, four control lines (these lines are used for the microprocessor system to reset the instrument, to send a configuration command, to start the measurements, and for when the equipment sends data to the microprocessor), and two lines for the power supply.
2.2. Software Implementation
Software for non-time-critical tasks, such as system initialization, commands parsing, and flow control, were implemented in the C language. However, the audio signal processing was coded in assembly language to improve its run time.
Figure 5 shows the main flowchart of the code.
For the time weighting processing (impulsive, fast, and slow), the following formula is used:
where T
m is 0.125 seconds for fast weighting, 1 second for slow weighting, and 0.035 seconds for impulse weighting [
12]. As divisions are computationally expensive for fixed point DSPs, the values (Fs·Tm – 1) and 1/(Fs·Tm) are pre-calculated to optimize run time. In the few places where a division cannot be pre-computed, the Newton–Raphson method is used to quickly obtain the reciprocal and perform a multiplication instead of a division. The impulse time weighting detector also requires an additional filter at the output, with a maximum drop slope of 2.9 dB.
The frequency weighting filters A and C were calculated using MATLAB [
29]. First, the analog filters have been designed using the poles shown in
Table 1 [
12]. Then, the analog filters were transformed into digital filters using the impulse invariance method [
30].
The IEC 61260-1 standard allows two methods for design of the octave and one-third octave filters in base 10 (preferred) and in base 2 (allowed) modes [
15]. For optimization and computational efficiency, the filters were implemented in base 2. A multirate filter structure was used for the design of the third octave filter bank. This allowed us to simplify the design process; instead of designing 30 filters, it was only necessary to design the three corresponding to the octave of greatest frequency, with a central frequency of 16 kHz, in addition to the anti-aliasing filter for the decimator.
Figure 6 shows the base block used to build the bank filter. This block consists of a down sampler (by 2), an anti-aliasing filter, and three filters with normalized center frequencies of 0.388, 0.488, and 0.615 [
31].
The final frequencies obtained in the real domain have slight differences compared to the nominal values. However, this situation is understood and allowed in the IEC 61260 standards [
15,
16,
17].
Figure 7 shows the complete filter bank that was implemented. This kind of implementation reduces the workload because only four filters are designed. This methodology also has two additional advantages: avoiding the cutoff frequencies to get close to the limit frequency’s minimum and maximum (0 and 32,768 Hz), and reducing the processing power required by the DSP. Due to the successive decimation performed at each stage, the processing load required to compute the whole filter bank is about twice that required to calculate the basic building block shown in
Figure 6.
To obtain the response of the octave band filter bank from the one-third octave band filter bank, it is sufficient to add (in linear magnitude, not in dB) the values obtained from the three adjacent one-third octave filters in the octave of interest.
4. Results: Deployment in Málaga City
Once it was verified that the equipment offers sufficient quality to measure the noise in cities, the next step was to test the OEM module design in a real environment. The Spanish city of Málaga had optimal conditions to carry out this experiment. Málaga is a modern city concerned about the problem of outdoor noise; it has an operational data monitoring platform with the ability to insert new nodes, and it is possible to access these data to analyze them. For these reasons, eight units were deployed in the city to verify their behavior under real operating conditions over three months. The noise monitoring systems were located on the façades of residential buildings, in areas affected by night-time leisure noise located on pedestrian streets, and near bars, pubs, restaurants, and terraces [
32]. To help to verify the quality of the measurements of these units, the equipment was installed in places where type 1 monitors were available. To keep the power consumption as low as possible, the equipment under study was configured to provide data every minute to reduce the power used for communication. In this way, the equipment used batteries, making the installation process easier. Unlike the network of type I monitors, where the equipment sends data directly to the central server through a general packet radio service (GPRS) connection, the terminals under study send their data via radio (868 MHz) to several access points, which then send the data to the same central server through a GPRS connection.
Figure 11 shows the architecture used. The implemented OEM module was connected to a NRG2 panStamp-based CPU, and the code was developed using Arduino. This CPU obtained data from the OEM module and sent it by radio to the access point, which transformed it into frames for the existing architecture.
In addition, to verify the evolution of the equipment, three tests measurements were carried out in situ to determine the evolution of the operation of the units. One was performed after the outdoor installation using an acoustic calibrator (94 db).
Table 6 shows the results for the eight devices and their locations.
The second verification was carried out a month later; in this case, a type 1 instrument was placed next to the microphone of the equipment under study to measure the same noise at the same time. A three-step cycle of about ten minutes was performed. First, the background noise was measured for three minutes. Then, a five-minute stationary measurement was taken using a speaker placed above the vertical axis of the microphones with white noise. Then, the background noise was measured again for three minutes. Finally, at the end of the measurement period, another comparison was made using an acoustic calibrator for the eight devices used. After analyzing the data from these three tests, two of the units presented important errors, so they were removed for the final analysis under suspicion that they had been damaged during the measurement period.
The data from the central server can be remotely consulted and downloaded using a web browser. After three months of the campaign, an exhaustive analysis of the data stored on the central server was performed. The downloaded data were analyzed and a report was made.
Figure 12 shows the information for each monitor. The top part shows a view of the equipment installation, along with its localization on the city map. The equivalent noise levels for the day (Ld), evening (Le), and night (Ln) were then calculated. Using a semaphore color code, the obtained noise levels were classified. A figure with a calendar shows the percentage of measurements received for each day. Days that received less than 30% data were deleted for the calculation.
The report also shows box plot figures with the measurement difference between a type 1 instrument and a low-cost instrument.
Figure 13 shows a diagram for the equipment placed on Plutarco Street. We can see that there is a greater dispersion in sound levels at night, which is due to the minimum value of the dynamic input range of the instrument. The figure also shows the outlier values, where one can see the low outlier numbers over three months.
Table 7 shows the average values (day, afternoon, and night) measured during the 84 campaign days for type 1 and low-cost instruments.
The device installed on Plutarco Street 57 shows a great difference in the night’s equivalent noise level. After a deeper analysis of the data, this deviation was found to be due to the measurements made during the Christmas season. The Christmas lights installed near the devices produced some interference in the measurements.
5. Discussion
When the design started, the main objective was to obtain a noise measurement device with the following features:
Quality and characteristics comparable to the sound level meters that are used today to measure this type of magnitude, according to the standards and regulations that apply to them;
Low cost required to build a large-scale monitoring network;
Processing capabilities for the detection of target sources and their spatial localization;
Easy integration into sensor networks.
All these objectives, also mentioned by other authors, have been covered [
19], and the developed equipment was conceived as a generic OEM card. The unit can be controlled by two serial interfaces: SPI or USB. These interfaces are widely used in microprocessor-based systems, which allows this device to be easily integrated, and thus can be used to build noise measurement equipment in a simple way. The developed equipment has the ability to measure two channels simultaneously and implement the basic functions of an integrating sound level meter, carrying out measurements simultaneously for A, C, fast, slow, and impulsive weights. It also allows one to obtain the maximum and minimum values, perform an analysis in the octave and one-third octave frequency bands, and calculate the percentiles of the measurements, resulting in eighty-six parameters being measured for each channel in real time. All these parameters are calculated digitally; the code optimization allows the DSP to compute all these parameters for both channels in real time using a clock frequency of 60 MHz. As the DSP allows one to raise the clock speed to 300 MHz, further algorithms for tasks such as noise source identification and pattern recognition of acoustic footprints can be implemented in the future using this equipment after a software upgrade.
The electrical tests applied to the equipment show that the electronics and algorithms implemented have the behavior of a type 1 sound level meter for an input frequency range spanning from 10 Hz to 20 KHz and a linear dynamic range of 80 dB. However, the use of an electret microphone instead of a condenser microphone reduces the electric performance of the equipment, limiting its characteristics to those of a type 1 instrument for a frequency range up to 8 kHz (
Table 5). For type 2 instruments, the tolerance allowed at 8 kHz increases to ± 5.6 dB. Thus, the equipment complies with the requirements of a type 2 instrument according to IEC61672-3 [
14]. The use of the electret microphone also reduces the acoustic features of the equipment. However, this error can be assumed for the application of acoustic noise measurement in cities, as has been shown with the correlation analysis using the measurements of type 1 equipment installed as a reference in the measurement sites.
Eight units were deployed in the city of Málaga from November to January to verify their operation under real conditions of outdoor noise measurement. Some very interesting conclusions were obtained when analyzing the data uploaded by the units compared to the type 1 equipment used to contrast the results. Finally, only six devices could be used for the final results, since two of them were damaged and suffered large deviations in their measurements after the three months of the measurement campaign. The results obtained for four of the devices were very good; however, two of them presented a deviation in their data right at the limit of what is acceptable for a measurement, with quality similar to that provided by type 2 instruments. A detailed study of these data showed that the devices were more influenced by meteorological phenomena, such as rain, than type 1 monitors. In addition, it was possible to verify how—coinciding with the installation and lighting of the streets for Christmas—some measurements were affected by electromagnetic interference.
To summarize, the designed equipment can easily be integrated by third party users into any wireless sensor network due to the available digital interface. The device is designed to have SLM functionality and is capable of measuring 86 parameters by channel, including frequency analysis. This creates new possibilities for low-cost sensor networks, where traditionally only the equivalent continuous sound level (Leq) is measured. The designed instrument had an input linear range of 80 dB and passed the electrical test according to the standards applied to a type 1 SLM, although the use of an electret microphone reduced the quality of the measurements to those indicated for type 2 instruments. However, this is an important point. If the device was to be built with a better microphone (at present, microelectromechanical (MEMS) microphones possess good features similar to those of traditional condenser microphones [
19,
32]), the instrument could be a very good solution for creating low-cost sensor networks with high measurement quality.
The results have shown that there are two aspects to need to be improved in the proposed solution. One is the vulnerability that some units showed to electromagnetic interference. The case used to house the equipment was a standard plastic case. To improve this feature, a metal case or plastic cases with anti-EMI treatments must be used. The other major change would be the use of new technological advances in MEMS microphones to achieve better measurement quality. Thus, the next step will be to modify the signal conditioning stage to use MEMS microphones [
33].