This section shows the results of testing the prototype in the laboratory and the industrial scenario.
Scenario 1
The fast Fourier transform was used to calculate the amplitude spectrum (0 to 2500 Hz) in both multi-sensor (edge layer) and gateway (fog layer) devices to assess the maximum resolution achieved and the resources consumed. Figure 7 shows the lowest 500 Hz of the amplitude spectra computed by the multi-sensor module, the gateway and a popular portable vibration analyser (model COMMTEST VB8). Although the spectra in Fig. 7 are not directly comparable as they correspond to different times of the motor operation, all the graphs show three relevant amplitudes in frequency bins around 100, 200 and 300 Hz. These frequencies are harmonics of the double line frequency (2XLF), which is 50 Hz in Europe.
The resolution of the spectrum computed in the gateway is 0.076 Hz, but higher resolutions are also possible at the cost of longer capturing and transmission times. In contrast, the maximum resolution achieved in the spectra computed in the multi-sensor module is 0.61 Hz due to limitations of the CMSIS DSP library. In most conditions this resolution is enough. However, on occasions a higher resolution spectra may be necessary to differentiate close frequency components or sidebands.
Figure 8 shows the time needed to run the FFT algorithm in the multi-sensor module and the gateway. FFT sizes over 8192 samples are not possible in the multi-sensor module due to CMSIS DSP library limitations. In the case of the gateway, it is possible to compute FFTs of 65536 samples. The figure shows that the higher computing power of the gateway causes the time difference to increase with the FFT size. Nevertheless, the processing times in both the multi-sensor module and the gateway are adequate for most applications.
Table 1 Components of data latency Depending on where the spectrum is computed, the total latency until the captured signal is transformed into the frequency domain and available at the gateway may vary. This latency has two components (see Fig. 9): the time to compute the FFT (either at the multi-sensor module or the gateway) and the transmission time of data from the multi-sensor to the gateway. There are two situations to consider for the transmission time. When the FFT is computed at the multi-sensor module, this time corresponds to the transmission of the resulting FFT bin amplitudes (see Fig. 9a), while when the FFT is computed at the gateway, this time corresponds to the transmission of the raw acceleration samples (see Fig. 9b). The times indicated in Fig. 9 are defined in Table 1.
The capture of acceleration samples is carried out using two memory buffers, so that while one of them is being filled the other is transmitted. Thus, most of the transmission time of the raw data to the gateway is overlapped with the capture (\(t_{t1}\)). However, the BLE link limits the transfer speed, so the transmission time grows dramatically with large FFT sizes, since large numbers of raw samples must be transmitted.
Figure 10 shows the contribution of each component to the latency when processing FFTs of different sizes at the multi-sensor module and gateway. In both cases, the transmission time is the factor that contributes to the latency the most. Latencies reduce in the gateway due mainly to lower transmission times. Depending on the application, latency may be critical. Long-term detection of operation anomalies in the motor due to component wear do not benefit from low latency processing. However, low latency is necessary to achieve real-time monitoring and fast short-term detection of operation anomalies. Immediate identification of loose, imbalanced or incorrect mounting of motors bearings after a scheduled maintenance shutdown is essential to prevent personal or equipment damage.
Transmission speed mainly depends on the network link strength. A study was carried out to determine the maximum distance possible between the multi-sensor module and the gateway. A gateway was positioned at a fixed point and a multi-sensor module was moved progressively further from the gateway, with no obstacles between them, taking the RSSI level between the devices for each position. In order for a signal to be considered good, providing reliable packet forwarding, it must have an RSSI level above -80 dBm [25]. According to the results shown in Fig. 11, the RSSI level is above -80 dBm for distances under 11 meters.
In addition to a maximum distance, BLE imposes some restrictions on the number of multi-sensor modules that can be handled by a single gateway. As empirically tested, the maximum number of multi-sensor modules that can be managed at the same time by a gateway is 15. Additional modules fail to connect to the gateway. Therefore, a gateway can handle up to 15 multi-sensor modules simultaneously as long as they are within a range of 10 meters.
The gateway has to deal with most of the computational workload in the case that FFTs are computed at the gateway. Figure 12 shows the average time needed to compute the FFT in the worst case, when the gateway is computing the FFTs of all the multi-sensor modules simultaneously. The computation time depends on the sizes of the FFTs and the number of modules. The figure shows that time increases linearly with the size of the FFTs.
Scenario 2
The spectra from the two pumps in the dairy plant exhibit peaks at close frequencies and sidebands, so high precision spectra are necessary. Thus, FFTs are only computed at the gateway (fog layer) in this scenario: the multi-sensor modules periodically send raw acceleration samples to the gateways.
Wireless communications are challenging in the industrial dairy plant, not only because there are metal pipes all over the plant, but also because the pumps where the multi-sensor modules were deployed, as well as the gateways, are placed in metallic cabinets to protect them from frequent floor cleaning operations with water (see Fig. 6) . Therefore, although the distances separating multi-sensor modules and gateways are within the optimal range (around 5 meters), obstacles between them significantly reduce the maximum transfer speed. As a result, the latency of communications dramatically increases.
Figure 13 shows the components of the latency when computing FFTs of different sizes at the gateway for a single axis. The processing time corresponds to 2 concurrent FFTs, one for each multi-sensor module, and its contribution to latency is negligible. As expected, the transmission time is prevalent because the period between packet transmissions must be enlarged to avoid packet loss. Comparing this figure with Fig. 10, latency is seen to increase 8-10 times, reaching the order of minutes for the highest FFT size. This information is essential when taking a decision about the FFT size. A trade-off between latency and resolution of the spectrum must be considered. According to this analysis, spectra with the highest resolution (using 65536 acceleration samples) can be computed for the three axes every 6 minutes.
A visualization dashboard has been built in Grafana for continuous monitoring of the front and back vibration (at the three axes) of the two pumps in the dairy plant. Figure 14 shows one of the windows in dashboard corresponding to the front broadband RMS vibration amplitudes, at the three axes, for pump 1. The temporal resolution in the window is 6 minutes and the whole period represented corresponds to one operation cycle of the pump (40 hours approximately). The coloured horizontal lines correspond to thresholds established by International Standard 20916-1:2016 [24] to indicate the severity level of vibrations. The dashboard helps monitor the health of the pumps throughout their operating cycles and detect possible anomalies in the operation, such as the peak observed close to the centre of the window.
The vibration spectrum at every point in the dashboard window can also be computed to further analyse the vibration signal. This can be used to look for anomalies during pump operation. Figure 15 shows the spectrum of the vibration signal corresponding to one of the samples depicted in Fig. 14. Feature extraction techniques can be used to select important frequency bins from the spectrum. The amplitude and the evolution of the amplitude for these bins during pump operation is critical. As an example, two relevant frequency bins in the spectrum shown in Fig. 15 are those around 49.2 Hz and 246 Hz. The first bin corresponds to the running speed of the pump motor (1X) and the second bin corresponds to the vane pass frequency (VPF) of the pump. As the pump impeller has 5 vanes, the VPF is 5 times the 1X frequency. The actual amplitudes of the frequency bins can be calculated based on the amplitudes of close bins around the peak (\(A_j\)) and the noise power bandwidth of the window used (1.5 for the Hanning window) with Eq. 1.
$$\begin{aligned} A_\text {estimated} = \frac{\sum _{i = j - 3}^{j + 3}\text {A}_i}{\text {noise power bandwidth of window}} \end{aligned}$$
(1)
Figure 16 shows the variation of amplitude corresponding to 1X and VPF peaks during an operation cycle of pump 1. The variations in amplitude during the cycle are due to changes in the pressure of the milk rather than to changes in the pump state. This spectrum analysis can be used for automatic detection and diagnosis of anomalies during the pump operation.