The present disclosure relates to the field of communication measurement, and more particularly, to a method for measuring an antenna downtilt based on linear regression fitting.
In the field of communications, an antenna downtilt needs to be adjusted frequently. As one of the important parameters determining a coverage area of signals of base stations, the antenna downtilt needs to be accurately designed in the initial stage of network planning. Furthermore, after the base stations are put into operation, with the development of services and changes of users and surrounding signal environments, it is also required to accurately adjust the downtilt.
At present, a slope meter is generally used to measure a mechanical downtilt of an antenna of a base station. When measuring the mechanical downtilt of the antenna using the slope meter, a measurer need to climb up an iron tower or hold a pole to get close to the antenna to measure, which is not only dangerous and troublesome, but also affects the accuracy of the measurement. With the development of technologies, a GSM-R system has emerged. The system is a measurement tool allowing the measurer to accurately measure the antenna downtilt without getting close to the antenna, the measurement of the antenna downtilt of the base station could be carried out without climbing up a tower, test points of the base station could be networked to monitor the downtilt of the base station in real-time. However, installation of sensors is time-consuming and is high in cost. Moreover, there exist differences between new towers and old towers, the number of towers of base stations and the number of the base stations, etc. Therefore, this method is of low practicability, long operational cycle, and difficult to be implemented. Therefore, it is necessary to design an angle measurement method which is simple in operation and reliable in performance.
To solve the above problems, an objective of embodiments of the present disclosure is to provide a method for measuring an antenna downtilt based on linear regression fitting, so as to safely, efficiently, quickly and accurately measure an antenna downtilt.
In order to solve the above problems, the embodiments of the present disclosure adopt following technical solution.
A method for measuring an antenna downtilt based on linear regression fitting includes: performing image instance segmentation on an inputted original antenna image using a deep learning method to obtain a segmented image; performing mask processing on the segmented image; performing mathematically linear modeling and fitting on the segmented image subjected to mask processing; and the performing mathematically linear modeling and fitting on the segmented image subjected to mask processing includes: extracting pixel value coordinates of an antenna edge contour from the segmented image subjected to mask processing, and capturing a pixel value of a right-end edge on an antenna plane located in a front side; and fitting the pixel value coordinates into a straight line by using a mathematically linear modeling and fitting method and obtaining a slope of the straight line to obtain an angle of the antenna downtilt.
Further, the performing image instance segmentation on an inputted antenna image using a deep learning method to obtain a segmented image includes: obtaining an antenna candidate box and an antenna characteristic diagram by using a convolutional neural network; and generating a region of interest from the antenna candidate box and obtaining a characteristic diagram of the region of interest with reference to the antenna characteristic diagram to perform pixel correction on the region of interest.
Further, the performing image instance segmentation on an inputted antenna image using a deep learning method to obtain a segmented image further includes: predicting the region of interest, to obtain a regression bounding box mapped from the antenna characteristic diagram, and predicting a class of a pixel in the region of interest to obtain the segmented image.
Further, the pixel correction is performing alignment processing by using a residual network; and the pixel correction includes two quantization processes, which are mapping from the region of interest to the antenna characteristic diagram and mapping from the antenna characteristic diagram to the original antenna image respectively.
Further, the performing mask processing on the segmented image includes: extracting image coordinates of a contour of the antenna from the segmented image; mapping the image coordinates to a pixel coordinate system, and transforming into binarization coordinates through Bohr operation, convoluting with mask coordinates set to generate a new mask; and filling up the new mask by using a color generator.
Further, the mapping the image coordinates to a pixel coordinate system includes transforming the coordinates system.
Preferably, an operation formula for generating the new mask is as below:
I(i, j)=5*I(i, j)−[I(i−1, j)+I(i+1, j)+I(i, j−1)+I(i, j+1)]; wherein I(i, j) represents an image center element.
Further, the mathematically linear modeling and fitting include implementing optimization of a data sample by using a gradient descent least square method.
Preferably, a model for fitting the straight line is f(x)=wTx+b; wherein wT represents a transpose of a weight matrix, and b represents an offset; and a formula for calculating the antenna downtilt is ⊖=arc tan(|k|); wherein k represents the slope of the straight line fitted by the gradient descent least square method.
Beneficial effects of embodiments of the present disclosure are as below: The embodiments of the present disclosure adopt a method for measuring an antenna downtilt based on linear regression fitting. An angle of the antenna downtilt is directly outputted and obtained after being processed by a deep learning network. Meanwhile, a segmented image obtained through mask instance segmentation allows a straight line obtained by mathematically linear modeling to be more fit to a true value of the antenna, ensuring the angle of the antenna downtilt to be more accurate. The method provided by the embodiments of the present disclosure avoids the danger of climbing measurement and reduces costs of installation sensors, and can more efficiently, safely and accurately obtain data of an antenna downtilt at low cost.
The present disclosure is further described below with reference to the accompanying drawings and examples.
An embodiment of the present disclosure discloses a method for measuring an antenna downtilt based on linear regression fitting, including: performing image instance segmentation on an inputted original antenna image using a deep learning method to obtain a segmented image; performing mask processing on the segmented image; performing mathematically linear modeling and fitting on the segmented image subjected to mask processing; and the performing mathematically linear modeling and fitting on the segmented image subjected to mask processing including: extracting pixel value coordinates of an antenna edge contour from the segmented image subjected to mask processing, and capturing a pixel value of a right-end edge on an antenna plane located in a front side; and fitting the pixel value coordinates into a straight line by using a mathematically linear modeling and fitting method and obtaining a slope of the straight line to obtain an angle of the antenna downtilt.
Referring to
Further, the performing image instance segmentation on an inputted antenna image using a deep learning method to obtain a segmented image further includes: predicting the region of interest to obtain a regression bounding box mapped by the antenna characteristic diagram, and predicting a class of a pixel in the region of interest to obtain the segmented image.
Referring to
Referring to
Preferably, an operation formula for generating the new mask is as below:
I(i, j)=5*I(i, j)−[I(i−1, j)+I(i+1, j)+I(i, j−1)+I(i, j+1)]; wherein I(i, j) represents an image center element.
Referring to
wherein u0 and v0 respectively represent an abscissa and an ordinate of the center point of the image coordinate system; R represents a 3×3 orthogonal present matrix; and T represents a three-dimensional translation vector.
The segmented image needs to be masked by a mask branch network. As a convolutional network, the mask branch network takes a positive region selected by a region of interest classifier as input and generates a mask of the positive region. The generated mask corresponds to a low resolution of 28×28 pixels. As a soft mask represented by a floating point number, the generated mask has more details than a binary mask. The small size attribute of the mask contributes to keeping the light weight of the masked branch network. During the inference process, the predicted mask is enlarged to the size of a bounding box of the region of interest to provide final mask results.
Referring to
In one embodiment, the calculation process is as follows: yi represents a true value of the ith point; f(xi) represents a predicted value obtained after being processed by a model function f; and an expression of Euclidean distance is obtained as below: distance=(yi−f(xi))2. From the perspective of a loss function, this formula is a square error, i.e., J(⊖)=½(Y−⊖X)2;
and a fitted objective function is obtained as:
J(⊖) is calculated through a vector operation:
A partial derivative calculation is performed on ⊖:
By making the partial derivative be equal to zero and fitting the sample points onto an approximate straight line, the slope of the straight line may be obtained by least square error, and then the downtilt of an antenna of a base station is accurately obtained. As can be seen from the following arc tangent formula: ⊖=arc tan(|k|), wherein ⊖ represents the antenna downtilt, and k represents the slope of the straight line fitted by the gradient descent least square method.
The above descriptions are merely preferred embodiments of the present disclosure, but the present disclosure is not limited to the above embodiments. Any embodiment should fall within the protection scope of the present disclosure as long as it achieves the technical effects of the present disclosure by the same means.
Number | Date | Country | Kind |
---|---|---|---|
201811363450.1 | Nov 2018 | CN | national |
This application is a national stage application under 35 U.S.C. 371 of PCT Application No. PCT/CN2019/076720, filed on 1 Mar. 2019, which PCT application claimed the benefit of Chinese Patent Application No. 2018113634501, filed on 15 Nov. 2018, the entire disclosure of each of which are hereby incorporated herein by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2019/076720 | 3/1/2019 | WO | 00 |