1 Introduction

In recent years, the development of nuclear radiation detection based on CMOS technology has notably increased. However, improvements are still necessary to deploy accurate remote measurement systems for low-energy radiation. In fact, the traditional CMOS radiation detection technology is limited for remote detection, as the electrophysical characteristics of the detector single crystals, CdZnTe and CdTe, and radiation monitoring of the gaseous electron multiplier muon detectors are difficult remote measurements and demand high amounts of power [1,2,3]. In contrast, ZigBee modules are affordable, have low power consumption, and simplify networking and remote communication, and hence, they can be suitable for remote measurement systems of low-energy radiation [4, 5]. Unlike the traditional radiation detection systems, we propose the combination of an ARM board and ZigBee wireless transmission to achieve remote measurement of low-energy radiation. Moreover, we evaluated different methods to improve the calculation of the grayscale value and developed the subtraction–summation algorithm based on gradient multiplication and edge detection. Consequently, we improved the measurement accuracy of low-energy radiation. Furthermore, the combination of ARM technology and ZigBee communication not only allows the remote measurement of low-energy radiation, but also improves the reliability and stability of the system.

2 Experimental setup

The block diagram of the system hardware is illustrated in Fig. 1. We used the PA2 and PA3 pins from the serial port of the STM32F103 board. In the transmitter, the data (highlight positions and sum of the corresponding pixel grayscale values) are processed in MATLAB and stored in the STM32F103 board and then sent through the STM32F103 serial port 2 (pins PA2 and PA3). Specifically, for data processing, the data are transmitted through the external RS232 interface of pins PA2 and PA3. Then, the STM32F103 board and ZigBee module communicate through an interface that converts the RS232 signal into TTL communication (Tx–Rx, Rx–Tx, GND, Vcc), and the received data are stored in the ZigBee module. Finally, an LCD in the ZigBee module displays the coordinates and measurement outcomes.

Fig. 1
figure 1

System hardware diagram

2.1 Wireless transmission

By using the STM32F103 board as main controller, the acquired digital image is sent from an OV7670 camera module to the LCD [6]. In addition, the image data are processed using the proposed subtraction–summation algorithm based on gradient multiplication and edge detection. Finally, a transparent transmission module converts RS232 into TTL communication to send data.

2.2 Wireless reception

ZigBee modules feature low power consumption, strong anti-interference ability, and low cost. Moreover, in the specialized mode of low power consumption, the ZigBee communication data rate is low, which further contributes to shorten the transmission and reception time. The radiation source consists of low-energy gamma waves, so it meets the measurement requirements in the working mode. ZigBee technology is also embedded with anti-jamming characteristics that are 1000 times stronger than those of Bluetooth, WLAN, and FSK protocols and thus improves the reliability of data measurements. Furthermore, its simple protocols allow reducing the requirements for the storage and computing power in the nodes [7]. Consequently, data reception based on ZigBee technology is reliable and affordable.

3 Materials and methods

We first analyzed the max grayscale value algorithm and found that it does not contain all the pixel grayscale values of the highlights. Next, we analyzed the subtraction–summation algorithm that consists of three steps: (1) image graying; (2) background removal from the grayscale image; (3) grayscale value sum of the whole image. We found that in the subtraction process, the error to determine the background grayscale value affects the calculation accuracy and does not produce suitable outcomes.

Hence, we evaluated the whole summation algorithm that has a higher calculation accuracy compared to both the max grayscale value and the subtraction–summation algorithms. The implementation of this algorithm is detailed as follows.

  1. (1)

    Image graying. According to the YUV color space, the Y component corresponds to the brightness of a pixel. The relationship between the RGB and YUV color space allows to establish a transformation from the RGB color components to the Y brightness component as

    $$ Y = 0.3R + 0.59G + 0.11B. $$
    (1)

    This brightness value is used as the gray value of the pixel, which is denoted as x i.

  2. (2)

    Binarization of the gray image. We considered 256 brightness levels in the gray image, and the binarization threshold was set using the MATLAB automatic threshold selection function. The resulting binary image still reflects general and local features [8]. In this step, the grayscale value corresponding to each pixel is denoted as y i.

  3. (3)

    A new image is obtained by multiplying the binary and grayscale images, and each resulting pixel value is denoted as z i.

  4. (4)

    Finally, each pixel value of the multiplied image is summed up. The sum of the pixel grayscale values for overall highlights can be determined by

    $$ {\text{sum = }}\sum {Z_{i} = \sum {x_{i} y_{i} } } .$$
    (2)

After applying this algorithm, we found that it is sensitive to noise and hence more suitable for applications having either weak or no noise.

Furthermore, the three above-mentioned algorithms have a limited anti-interference ability, and the algorithm taking an n × n square as the boundary [9] presents some accuracy errors. Thus, we used edge detection and summed the pixel grayscale values within the boundaries to introduce a method for calculating the radiation dose based on the grayscale value of the corresponding images. Traditional edge detection algorithms are based on the first derivative to improve robustness against noise, but the edge location is not accurate. In contrast, other edge detection algorithms based on the second derivative results in high accuracy, but they are sensitive to noise. Hence, we propose a method based on gradient multiplication for edge detection. This method suitably and accurately locates the edges and is robust against noise, and the resulting detection provides more complete edges than traditional algorithms. We first employed the whole summation algorithm based on gradient multiplication and edge detection to improve the calculation method of the binarization threshold. For this method, the background grayscale value is determined using the following process: (1) determine the image gradient map using the Sobel operator; (2) determine the image gradient map using the Laplacian operator; (3) multiply the two maps to obtain another gradient map; (4) the image obtained from the new gradient map is binarized and then used as mask image; (5) determine the background grayscale value by obtaining the average grayscale value of the edge pixels. The mask image in the fourth step and the original image were multiplied to obtain an image that only retains the grayscale values of edge pixels. The sum of the grayscale values in this image and the mask image are denoted by P and Q, respectively. Thus, the background grayscale value is given by B = P/Q, which is considered as the binarization threshold. This threshold mitigates the error related to that from the original whole summation algorithm and improves the anti-interference ability and consequently the stability of the system.

However, this algorithm does not remove the background grayscale value and thus generates error in determining the radiation dose. To solve this problem, we propose using the subtraction–summation algorithm based on gradient multiplication and edge detection. This algorithm improves the method for determining the background grayscale value in the second step of the above-mentioned subtraction–summation algorithm. In fact, for this improved algorithm, we use the background grayscale value obtained from the whole summation algorithm based on gradient multiplication and edge detection. Consequently, we obtained higher accuracy, better consistency to determine the radiation dose, stronger anti-interference ability, and easier operation if compared to all the other algorithms mentioned in this section. Hence, we used the subtraction–summation algorithm based on gradient multiplication and edge detection to implement the proposed system.

4 Results and discussion

4.1 Analysis of radiation image algorithms

Compared with both the max grayscale value and the subtraction–summation algorithms, the whole summation algorithm features characteristics such as high speed, accurate positioning, low error, and simple operation. First, the grayscale image is obtained by applying image graying. Next, the binary image is obtained from the gray image. Finally, another image is obtained by multiplying the binary and grayscale images. In the original image, the bright spot cannot be clearly observed, whereas it is clearly visible after the image processing. A three-dimensional view of the image pixels can help to better visualize the location of the bright spot. The grayscale image before processing is shown in Fig. 2a, whereas the corresponding result after applying the whole summation algorithm is shown in Fig. 2b. When the CMOS image sensor acquires an image, a γ photon usually hits several neighboring pixels and forms an irregular shape and hence causes an error in the max grayscale value algorithm. However, the whole summation algorithm can consider the grayscale value of the whole photon, thus avoiding leakage and improving the measurement accuracy.

Fig. 2
figure 2

(Color online) Three-dimensional pixel intensity image corresponding to the radiation image of 60Co. a Original radiation image of 60Co. b Image processed using the whole summation algorithm

We also compared the image processing capabilities between the max grayscale value, subtraction–summation, and whole summation algorithms. For this comparison, we applied the algorithms to the radiation image of the same cobalt source acquired over 9 consecutive frames. The normalized grayscale values for the images are shown in Table 1. A fourth-degree polynomial curve fitting was used in the data of Table 1, whose results are shown in Fig. 3. The curves clearly describe the variation of radiation dose over time. In addition, it is clear that the curve corresponding to the max grayscale value algorithm is very wide, which indicates a high sensitivity and causes a poor anti-interference ability. In contrast, the curve corresponding to the subtraction–summation algorithm is very narrow, which indicates a low sensitivity and a difficulty to detect small changes in radiation dose. Finally, the curve corresponding to the whole summation algorithm lies between those of the two other algorithms. Thus, this algorithm can detect small changes and has a suitable anti-interference ability in the presence of either weak or no noise.

Table 1 Normalized grayscale value of a 60Co source over consecutive frames
Fig. 3
figure 3

(Color online) Curve for the data in Table 1

Given the limited anti-interference ability of the whole summation algorithm, we used the subtraction–summation algorithm based on gradient multiplication and edge detection. To verify this method, we processed the same image using the original and improved versions of both the subtraction–summation and whole summation algorithms. The corresponding background grayscale value and the binarization threshold are listed in Table 2.

Table 2 Background grayscale value and binarization threshold of the original and improved versions of the subtraction–summation and whole summation algorithms

Next, we processed the radiation detection images of the same cobalt source acquired over 9 consecutive frames using the subtraction–summation and whole summation algorithms, both based on gradient multiplication and edge detection. The original and min–max normalization data of the cobalt source radiation are listed in Table 3, and we employed a fourth-degree polynomial curve fitting for the normalized data in Table 3, which is shown in Fig. 4. From the graph, we can see that the amplitude obtained from the subtraction–summation algorithm is higher than that obtained from the whole summation algorithm. Moreover, this amplitude shows an increasing value over time, which is consistent with the change in radiation dose. In addition, the subtraction–summation algorithm shows higher precision and robustness against noise. Furthermore, it suitably meets the design requirements of the ZigBee-based hardware and can retrieve more stable and reliable measurement data for the system.

Table 3 Original and normalized data of a 60Co source radiation over consecutive frames
Fig. 4
figure 4

(Color online) Curve for the data in Table 3 (Data 1 and Data 2 represent the normalized data from the subtraction–summation and the whole summation algorithms, respectively. Both algorithms were based on gradient multiplication and edge detection)

4.2 Hardware tests

Design and applications based on ARM, ZigBee, and smart phone architectures are currently widespread. For instance, there is research on robot vision based on ARM and digital signal processing to develop an assistant robot for elderly and disabled individuals [10], as well as the design and implementation of a gray LED controller based on ARM architecture and FPGAs [11]. Other developments include a ZigBee and Bluetooth protocol converter based on a multi-sinks wireless sensor network [12], a ubiquitous healthcare service using ZigBee and smart phones for elderly patients [13], and an application to survey surrounding ionizing radiations with a smart phone that provides low cost and convenience for the general public [14]. However, research on the combination of ARM and ZigBee technologies for remote measurements is scarce. Thus, we propose a system for remote measurement of low-energy radiation by combining ZigBee wireless transmission and ARM data processing.

To guarantee accuracy of data transmission and reception, we first established the corresponding parameters (e.g., baud rate, parity bit, and data bits). Considering the coordination between modules, we set a 9600 baud rate and even parity. The received data are stored in the ZigBee module, and at this receiving end, we display data on the LCD corresponding to the coordinates and summation results. The results listed in Table 4 clearly show that the combination of the ARM STM32F103 board and ZigBee communication allows to be achieved stable and reliable remote data transmission. Furthermore, ZigBee provides a strong anti-jamming performance in low signal-to-noise ratio (SNR) environments, which is 1000 times higher than that of Bluetooth, WLAN, and FSK. In fact, experimental results show that the symbol error rate (SER) resulting from the ZigBee protocol with a SNR of 4 dB can reach 10−9. To achieve the same SER, the SNR of the Bluetooth protocol should be of 16 dB and that of the WLAN 802.11b protocol should be of 10 dB. By using the ZigBee module, the system not only performs remote measurements, but also ensures data transmission without distortion. Moreover, the remote measurement of low-energy radiation can be stably realized by combining ARM and ZigBee architectures.

Table 4 Hardware test for the system combining ARM and ZigBee technologies

5 Summary

We designed and implemented a remote radiation-detection system based on an ARM board and a ZigBee module. In addition, we verified that the subtraction–summation algorithm based on gradient multiplication and edge detection improves the measurement accuracy. Then, we combined the data processing capabilities of the ARM STM32F103 board and the remote transmission function of the ZigBee module to perform remote data transmission of undistorted measurements of gamma waves irradiated from a cobalt source. The experimental results verified the effectiveness of employing the proposed algorithm and the feasibility of the system that combines ARM and ZigBee architectures. Furthermore, the system can be used for accurate and stable remote measurements to monitor low-energy radiation.