Telescope pose monitoring method based on improved FSANET
Through the improved FSANET technology, the TPEN and TPES systems are constructed, which solves the problem of attitude monitoring of the telescope encoder under abnormal conditions, achieves precise monitoring and automatic control of the telescope's attitude, and improves the reliability and safety of the system.
Patent Information
- Application Number
- CN202410722332.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-10
AI Technical Summary
The encoders of existing astronomical telescopes cannot accurately reflect the pointing attitude of the telescope under abnormal circumstances, which may lead to serious accidents, especially when initialization is not completed, counting errors or decoding card abnormalities.
The Telescope Pose Estimation Network ( TPEN) and Telescope Pose Estimation System (TPES) to realize automated pose monitoring of the telescope.
It improves the accuracy and reliability of telescope posture monitoring, enables timely detection of abnormalities, ensures the correctness of the telescope pointing, and reduces the risk of accidents.
Smart Images

Figure CN118628564A
Abstract
Description
Technical Field
[0001] The invention relates to a method for monitoring the posture of a telescope, and in particular to a method for monitoring the posture of a telescope based on a single-stage computer vision. Background Art
[0002] The frame of an astronomical telescope is used to support the telescope tube and realize the rotation of the tube during pointing and tracking. There are usually basic types such as equatorial, horizontal, and horizontal, with two perpendicular rotation axes. For ground-based telescopes, the direction of each rotation axis can be determined by a coaxially mounted encoder. As the two axes rotate, the encoder has different readings, the telescope points to different areas of the sky, and the telescope has different attitudes. In some abnormal cases, the encoder reading cannot correctly reflect the telescope pointing. For example, when the incremental encoder that can only provide differential positioning measurement has not been initialized and cannot provide absolute position measurement; or when the encoder has abnormalities such as counting errors due to dust, oil or vibration; or when the decoding card has an abnormality, etc. During the operation of the telescope, if the abnormality is not discovered in time, it may cause a serious accident. Summary of the invention
[0003] In view of the above problems existing in the prior art, the present invention provides a telescope posture monitoring method based on an improved FSANET (FineSoft Aggregation Network).
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] A telescope posture monitoring method based on improved FSANET includes the following steps:
[0006] Step 1: Deploy the camera, collect telescope images in different postures, and obtain raw image data;
[0007] Step 2: Perform data enhancement on the image;
[0008] Step 3: Build an attitude estimation model, and improve the design of the telescope attitude estimation model TPEN based on the FSANET model. The improvement includes feature extraction network, feature fusion network, and prediction network.
[0009] Step 4: Based on the model described in step 3, a telescope posture monitoring system TPES is designed to realize automatic monitoring of the telescope posture.
[0010] Furthermore, in step 2, the image is subjected to a variety of data enhancement processing to simulate different lighting conditions; the data enhancement processing includes random contrast adjustment, random brightness adjustment, and adding salt and pepper noise and Gaussian noise; the random brightness adjustment is achieved by adjusting the numerical value of the image pixels, and the random contrast adjustment is performed by operating different pixel values through gamma transformation; the introduction of Gaussian noise and salt and pepper noise is intended to simulate the noise characteristics of the image under low light conditions and the noise generated by the sensor during image transmission.
[0011] Furthermore, in step 2, the data augmented dataset is divided into training set: test set: validation set = 8:1:1 to enhance the accuracy of the experimental results.
[0012] Furthermore, step 3 includes:
[0013] Step 3.1: Improve the model feature extraction network; reconstruct the submodules of the backbone feature extraction network, and use multi-scale dilated convolution and attention mechanism to improve the feature extraction capability; improve the submodule structure to {dilated convolution-BN-pooling-CA} structure to improve the accuracy of model output; BN stands for batch normalization, and CA stands for CA attention mechanism;
[0014] Step 3.2: Improve the feature fusion network; perform feature fusion on feature maps at different levels of the network. The specific fusion method is: [Stage1], [Stage1, Stage2], [Stage1, Stage2, Stage3];
[0015] Step 3.3: Improve the prediction module and add the CBAM attention mechanism to the front end of the prediction module to enhance the network's ability to extract important information.
[0016] Furthermore, in step 3, the backbone feature extraction network has two heterogeneous data streams, each of which is divided into three stages. Each stage consists of an AAMa or AAMb convolution module. In the AAMa module, multi-scale dilated convolution is used for feature extraction. First, the receptive field of the convolution module is expanded by adjusting the expansion coefficient, and after the feature map is extracted, it is processed into standardized network parameters through batch normalization. Then, the feature map is nonlinearly activated through the ReLU activation function. Finally, the CA attention mechanism performs global average pooling in the horizontal and vertical directions of the output features to capture and fuse spatial information and highlight the key areas in the input feature map.
[0017] Furthermore, in step 3, the feature map after information extraction by the feature extraction network undergoes convolution, batch normalization, and maximum pooling in the feature fusion network to achieve the fusion of information at different stages, obtain deeper information of the image, and achieve the fusion of different stages of the output feature map.
[0018] Furthermore, a 1*1 convolution kernel is used to achieve linear combination of features of different input channels without changing the spatial size of the feature map.
[0019] Furthermore, step 3 includes training the telescope attitude estimation model TPEN, and the optimizer used in the training is the Nadam optimizer, and the Nadam optimizer gradient update is:
[0020]
[0021] Where: g t is the parameter gradient at time t; is the first-order moment estimate after bias correction; θ t is the parameter vector at time t; the β1 coefficient is the exponential decay rate; v t is the second-order moment estimate of momentum; η is the default learning rate; ε is a constant added to prevent division by zero.
[0022] Furthermore, step 4 includes:
[0023] Step 4.1: The interface layout of the system is mainly divided into three functional areas: image display area, numerical display and LED warning area, and function button area;
[0024] Step 4.2: The system functions mainly include: current screen display, data enhancement, attitude estimation, attitude warning, and automatic monitoring.
[0025] The present invention has the following beneficial effects:
[0026] 1) A multi-scale hole convolutional neural network was constructed to solve the problem of insufficient feature extraction;
[0027] 2) The Coordinate Attention module is introduced to reduce model parameters, and the CA attention mechanism is used to highlight the key features in the global space, thereby improving the efficiency of model information extraction;
[0028] 3) A multi-stage feature fusion strategy is adopted to enrich the information of the output feature map and improve the accuracy of model prediction;
[0029] 4) During the operation of the telescope, it can correctly reflect the telescope's pointing direction, accurately monitor the telescope's position and posture, and thus detect abnormalities in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is the TPEN network structure diagram;
[0031] Figure 2This is the TPEN feature extraction network structure diagram;
[0032] Figure 3 This is the TPEN feature fusion network structure diagram;
[0033] Figure 4 It is the loss change during the model training process;
[0034] Figure 5 This is the initial interface diagram of TPES;
[0035] Figure 6 This is the TPES interface test picture. DETAILED DESCRIPTION
[0036] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0037] The present invention provides a method for improving the telescope posture monitoring of FSANET, comprising the following steps:
[0038] 1) Deploy cameras to collect telescope images in different postures and obtain raw image data;
[0039] 2) Data enhancement: In order to simulate different lighting conditions, the images were subjected to various data enhancement processes, including random contrast adjustment, random brightness adjustment, and the addition of salt and pepper noise and Gaussian noise.
[0040] 3) Build a posture estimation model and improve the telescope posture estimation model TPEN (Telescope Pose Estimation Network) based on the FSANET model. The improvements include feature extraction network, feature fusion network and prediction network.
[0041] 4) Design a telescope posture monitoring system. Based on this model, a telescope posture monitoring system TPES (Telescope Pose Estimation Network) was designed, which realizes automatic monitoring of the telescope posture.
[0042] The further step 2) specifically comprises:
[0043] The data augmented dataset is divided into training set: test set and validation set = 8:1:1 to enhance the accuracy of the experimental results.
[0044] The further step 3) specifically comprises:
[0045] 3.1) Improve the model feature extraction network. Reconstruct the submodules of the backbone feature extraction network and use multi-scale dilated convolution and attention mechanism (CA, Coordinate Attention) to improve feature extraction capabilities. The submodule structure is improved to {dilated convolution-BN-pooling-CA} structure to improve the accuracy of model output.
[0046] 3.2) Improve the feature fusion network. In order to increase the information richness of the output feature map, feature fusion is performed on feature maps at different levels of the network. The specific fusion method is: [Stage1], [Stage1, Stage2], [Stage1, Stage2, Stage3].
[0047] 3.3) Improve the prediction module and add the CBAM (Convolutional Block Attention Module) attention mechanism to the front end of the prediction module to enhance the network's ability to extract important information.
[0048] The further step 4) specifically comprises:
[0049] 4.1) The interface layout of the system is mainly divided into three functional areas: image display area, numerical display and LED warning area, and function button area.
[0050] 4.2) The main functions of the system include: current screen display, data enhancement, attitude estimation, attitude warning, and automatic monitoring.
[0051] The present invention designs a TPEN (Telescope Pose Estimation Network) model to realize telescope pose estimation, including feature extraction, feature fusion and prediction modules. In the feature extraction module, a multi-scale hole convolution module is used to increase the receptive field of the convolution layer. After the multi-scale hole convolution module, a coordinate attention (CA) mechanism is embedded to highlight more spatial information in the feature map. In the feature fusion stage, the feature fusion method is used to fuse the output feature maps of different stages to obtain richer information content. Before the prediction module, a CBAM module is added to suppress the secondary information in the feature map by evaluating the importance of the channel and current local information of the current feature map, thereby improving the network calculation efficiency. In order to enhance the operability of the model, a telescope intelligent monitoring system TPES (Telescope Pose Estimation System) is designed based on the TPEN model. The overall process includes the following steps: ( Figure 1 ):
[0052] Step 1: Deploy multiple cameras in the dome of the telescope. The deployment position is at the edge of the dome and about x from the ground, so that the telescope is completely in the image. The interval angle between the cameras is about 30°, which is conducive to multi-angle monitoring.
[0053] Step 2: Data enhancement. In order to simulate different lighting conditions, the image was subjected to a variety of data enhancement processes, including random contrast adjustment, random brightness adjustment, and the addition of salt and pepper noise and Gaussian noise. Random brightness adjustment is achieved by adjusting the value of image pixels, random contrast adjustment operates on different pixel values through gamma transformation, and the introduction of Gaussian noise and salt and pepper noise is intended to simulate the noise characteristics of images under low light conditions, as well as the noise generated by the sensor during image transmission.
[0054] Step 3: Construct a feature extraction network. The structure of the backbone feature extraction network in TPEN is as follows: The network has two heterogeneous data streams, each of which is divided into three stages, realizing feature extraction from coarse to fine. Each stage consists of AAMa or AAMb convolutional modules, and their basic structures are shown in Formulas 1 and 2.
[0055] AAMa={Atrousconv(K,C,atrous_rate)-BN-Relu-CA} (1)
[0057] AAMb={Atrousconv(K,C,atrous_rate)-BN-tanh-CA} (2)
[0059] In the AAMa module, multi-scale dilated convolution is used for feature extraction. Adjusting the expansion coefficient to expand the receptive field of the convolution module can capture a wider range of contextual information. Where K represents the convolution kernel, C represents the number of channels of the convolution kernel, and atrous_rate represents the convolution kernel expansion coefficient, which can change the receptive field of the convolution module. After the feature map is extracted, it is processed into standardized network parameters through batch normalization (BN) to accelerate the learning efficiency of the regression task. Next, these feature maps are nonlinearly activated through the ReLU activation function to enhance the expressiveness of the model. Finally, the CA attention mechanism performs global average pooling in the horizontal and vertical directions of the output features to capture and fuse spatial information, highlight the key areas in the input feature map, and improve the accuracy of network prediction. The improved backbone feature extraction network is shown in Figure 2. Figure 2 shown.
[0060] Step 4: Construct a feature fusion network. After the image is extracted by the feature extraction network, it is input into the feature fusion network. Figure 3As shown. In the network, Stage1, Stage2, and Stage3 represent the output feature maps from the feature extraction network. The feature maps are subjected to convolution, batch normalization (BN), and maximum pooling (Maxpooling) in the feature fusion network to achieve the fusion of information at different stages and obtain deeper information of the image. The final output feature map achieves the fusion of different stages [Stage1], [Stage1, Stage2], [Stage1, Stage2, Stage3]. The convolution module uses a convolution kernel of 1*1 to achieve a linear combination of features of different input channels (depths) without changing the spatial size of the feature map.
[0061] Step 5, training model. The present invention adopts Windows 11 operating system, the hardware environment adopts 12th Gen lntel (R) Core (TM) i7-12700H processor, 16GB memory, GPU is NVIDIA GeForce GTX 3060, kears and Tenseflow learning framework are used, Python version is 3.7, and the optimizer selects Nesterov-Accelerated AdaptiveMoment Estimation (Nadam). The initial learning rate is set to 0.001, and the model is trained for a total of 100 cycles.
[0062] The Nadam optimizer is a new optimizer that adds Nesterov momentum to the Adam optimizer. In the learning process of the model training process, the gradient-based moving average is used to achieve an exponential decay rate, solving the problem of loss being difficult to converge or missing the global optimal solution during training. The Nadam optimizer gradient update is shown in the following formula.
[0063] m t =β1m t-1 +(1-β1)g t (3)
[0065]
[0066] Where: m t is the exponential moving mean of the updated gradient, estimated by the first moment of the gradient; g t is the parameter gradient at time t; is the first-order moment estimate after bias correction; θ t is the parameter vector at time t; the β1 coefficient is the exponential decay rate; v t is the second-order moment estimate of momentum; η is the default learning rate; ε is a small constant added to prevent division by zero.
[0067] like Figure 4 As shown in the figure, the present invention trains TPEN and conducts comparative experiments with FSANET and Ssrnet networks; the three networks use Nadam optimizer and Adam optimizer to optimize the loss respectively. Figure 4 It can be seen that the network using Nadam can accelerate the convergence of loss compared to the network using Adam optimizer due to the advantage of Nesterov accelerated gradient (NAG). In the initial stage between 0-20, the loss decreases faster than Adam. In addition, the introduction of Nesterov momentum can refer to the information of future gradients, which helps the convergence of loss and makes the model fitting effect better. The results show that the loss convergence value of TPEN is reduced from 0.013 to 0.010. In summary, the Nadam optimizer has better performance in this network.
[0068] Figure 5 This is the effect comparison before and after image enhancement. Figure 6 The grayscale histogram comparison before and after image enhancement. From the grayscale histogram, we can see that the histogram of the image has been stretched and the distribution is more balanced.
[0069] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A telescope posture monitoring method based on improved FSANET, characterized in that: The steps include: Step 1: Deploy the camera, collect telescope images in different postures, and obtain raw image data; Step 2: Perform data enhancement on the image; Step 3: Build an attitude estimation model, and improve the design of the telescope attitude estimation model TPEN based on the FSANET model. The improvement includes feature extraction network, feature fusion network, and prediction network. Step 4: Based on the model described in step 3, a telescope posture monitoring system TPES is designed to realize automatic monitoring of the telescope posture.
2. The telescope posture monitoring method based on improved FSANET according to claim 1, characterized in that: In step 2, the image is subjected to a variety of data enhancement processing to simulate different lighting conditions; the data enhancement processing includes random contrast adjustment, random brightness adjustment, and adding salt and pepper noise and Gaussian noise; the random brightness adjustment is achieved by adjusting the numerical value of the image pixels, and the random contrast adjustment is performed by operating different pixel values through gamma transformation; the introduction of Gaussian noise and salt and pepper noise is intended to simulate the noise characteristics of the image under low light conditions and the noise generated by the sensor during image transmission.
3. The telescope posture monitoring method based on improved FSANET according to claim 1, characterized in that: In step 2, the data-augmented dataset is divided into training set: test set: validation set = 8:1:1 to enhance the accuracy of the experimental results.
4. The telescope posture monitoring method based on improved FSANET according to claim 1, characterized in that: Step 3 includes: Step 3.1: Improve the model feature extraction network; reconstruct the submodules of the backbone feature extraction network, and use multi-scale dilated convolution and attention mechanism to improve the feature extraction capability; improve the submodule structure to {dilated convolution-BN-pooling-CA} structure to improve the accuracy of model output; BN stands for batch normalization, and CA stands for CA attention mechanism; Step 3.2: Improve the feature fusion network; perform feature fusion on feature maps at different levels of the network. The specific fusion method is: [Stage1], [Stage1, Stage2], [Stage1, Stage2, Stage3]; Step 3.3: Improve the prediction module and add the CBAM attention mechanism to the front end of the prediction module to enhance the network's ability to extract important information.
5. The telescope posture monitoring method based on improved FSANET according to claim 1, characterized in that: In step 3, the backbone feature extraction network has two heterogeneous data streams, each of which is divided into three stages. Each stage consists of an AAMa or AAMb convolution module. In the AAMa module, multi-scale dilated convolution is used for feature extraction. First, the receptive field of the convolution module is expanded by adjusting the expansion coefficient. After the feature map is extracted, it is processed into standardized network parameters through batch normalization. Then, the feature map is nonlinearly activated through the ReLU activation function. Finally, the CA attention mechanism performs global average pooling in the horizontal and vertical directions of the output features to capture and fuse spatial information and highlight the key areas in the input feature map.
6. The telescope posture monitoring method based on improved FSANET according to claim 1, characterized in that: In step 3, the feature map after information extraction by the feature extraction network undergoes convolution, batch normalization, and maximum pooling in the feature fusion network to achieve the fusion of information at different stages, obtain deeper information of the image, and realize the fusion of different stages of the output feature map.
7. The telescope posture monitoring method based on improved FSANET according to claim 6, characterized in that: A 1*1 convolution kernel is used to achieve linear combination of features of different input channels without changing the spatial size of the feature map.
8. The telescope posture monitoring method based on improved FSANET according to claim 1, characterized in that: The step 3 includes training the telescope attitude estimation model TPEN, and the optimizer used in the training is the Nadam optimizer, and the Nadam optimizer gradient update is: Where: g t is the parameter gradient at time t; is the first-order moment estimate after bias correction; θ t is the parameter vector at time t; the β1 coefficient is the exponential decay rate; v t is the second-order moment estimate of momentum; η is the default learning rate; ε is a constant added to prevent division by zero.
9. The telescope posture monitoring method based on improved FSANET according to claim 1, characterized in that: Step 4 includes: Step 4.1: The interface layout of the system is mainly divided into three functional areas: image display area, numerical display and LED warning area, and function button area; Step 4.2: The system functions mainly include: current screen display, data enhancement, attitude estimation, attitude warning, and automatic monitoring.
Citation Information
Patent Citations
SAR image seismic landslide boundary detection method and system based on deep learning
CN116246066A
Training method of human body posture estimation model
CN116434278A
Telescope pose monitoring method based on computer vision
CN116843756A
