Moon rockfall rotating target detection method and device based on yolk-R model
Through the lunar rockfall rotation target detection method based on the yolo-R model, the four-point label training model is used to solve the problem of misdetection of complex rockfall characteristics detection on the lunar surface rotation angle, improve the detection accuracy and speed, and provide more reliable data support for the study of the lunar geological environment.
Patent Information
- Application Number
- CN202510536216.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2045-04-27
AI Technical Summary
Existing target detection algorithms are difficult to accurately detect rockfall characteristics with complex and variable rotation angles on the moon surface, and there are error detection problems, which affects model performance and accuracy.
The lunar rockfall rotation target detection method based on the yolo-R model is adopted. By obtaining the lunar remote sensing image data training set, the improved yolo-R model is trained, and the loss function is constructed using four-point labels to improve the model's rotation target detection ability.
It improves the accuracy of target detection, reduces the false detection of ordinary lunar surface rocks as lunar rockfalls, and achieves higher detection speeds and more reliable data support.
Smart Images

Figure CN120047758A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of deep space exploration technology, and particularly to a method, device, storage medium, and electronic device for detecting rotating lunar rock targets based on the yolo-R model. Background Art
[0002] Lunar rocks are important surface features on the lunar surface. Collecting and detecting lunar rocks is of great significance for studying deep space topics such as the composition of extraterrestrial matter and the lunar geological environment. In recent years, with the development of artificial intelligence, the advantages of deep learning have gradually emerged. Neural networks have broad application prospects in the fields of object detection and image recognition.
[0003] The YOLO (You Only Look Once) model is a representative algorithm in the field of object detection in recent years. Its unique architecture enables it to have the ability of real-time detection while maintaining relatively high detection accuracy. It performs excellently in real-time object recognition and localization tasks. This model realizes efficient feature extraction and fast inference through a fully convolutional neural network (CNN) architecture. The YOLO model has been trained on multiple datasets and can accurately detect and classify various targets. However, applying this model to the recognition of lunar rocks in lunar remote sensing images still faces many challenges.
[0004] However, previous object detection algorithms perform well in dealing with targets with regular shapes and fixed angles, but it is difficult for them to accurately detect the features of lunar rocks on the lunar surface with complex and variable rotation angles. Traditional lunar rock object detection algorithms have certain misdetections, which affect the model performance and reduce the accuracy rate. Summary of the Invention
[0005] Embodiments of this application provide a method, device, storage medium, and electronic device for detecting rotating lunar rock targets based on the yolo-R model, which can improve the accuracy of object detection.
[0006] Embodiments of this application provide a method for detecting rotating lunar rock targets based on the yolo-R model, including: Obtaining a training set of lunar remote sensing image data; wherein, the lunar remote sensing image training dataset includes sliced images of lunar remote sensing images and four-point labels of lunar rocks; Inputting the sliced images of the lunar remote sensing images into an improved yolo-R model to obtain a prediction result of the rotating target; Constructing a loss function based on the prediction result of the rotating target and the four-point labels of the lunar rocks, and training the improved yolo-R model based on the loss function; Obtain the sliced images of the lunar remote sensing images to be detected, and input the sliced images of the lunar remote sensing images to be detected into the trained improved yolo-R model to obtain the rotation target prediction results of the sliced images of the lunar remote sensing images to be detected.
[0007] As a further improvement of the present invention, in the above-mentioned lunar rockfall rotation target detection method based on the yolo-R model, wherein, the obtaining of the lunar remote sensing image data training set includes: Obtain lunar remote sensing image data; Perform orthogonal projection on the lunar remote sensing image data, and slice the orthogonally projected lunar remote sensing image data to obtain sliced images of the lunar remote sensing images; Based on the longitude, latitude and diameter information of the lunar rockfall, obtain the four-point label of the lunar rockfall; Construct a lunar remote sensing image data training set based on the sliced images of the lunar remote sensing images and the four-point labels of the lunar rockfall.
[0008] As a further improvement of the present invention, in the above-mentioned lunar rockfall rotation target detection method based on the yolo-R model, wherein, the improved yolo-R model includes a backbone network module, a feature extraction module and an improved head output module; The inputting the sliced images of the lunar remote sensing images into the improved yolo-R model to obtain the rotation target prediction results includes: Input the sliced images of the lunar remote sensing images into the backbone network module for feature extraction to obtain a first feature map; Input the first feature map into the feature extraction module to perform multi-scale feature extraction and feature fusion to obtain a second feature map; Input the second feature map into the improved head output module to obtain a plurality of rotation target candidate boxes; Calculate the confidence of the plurality of rotation target candidate boxes, and use the rotation target candidate box with the highest confidence as the rotation target prediction result.
[0009] As a further improvement of the present invention, in the above-mentioned lunar rockfall rotation target detection method based on the yolo-R model, wherein, the improved head output module includes a raw convolutional layer, an improved convolutional layer, a pooling layer and a connection layer connected in sequence; The inputting the second feature map into the improved head output module to obtain a plurality of rotation target candidate boxes includes: Input the second feature map into the raw convolutional layer to obtain prediction candidate boxes; Input the prediction candidate boxes into the improved convolutional layer to extract angle information, and obtain rotation target candidate boxes based on the angle information and the prediction candidate boxes; Input the rotation target candidate box into the pooling layer for classification; Input the classified rotation target candidate box into the connection layer for regression to obtain the final rotation target candidate box.
[0010] As a further improvement of the present invention, in the above-mentioned lunar rockfall rotation target detection method based on the yolo-R model, wherein, constructing a loss function based on the rotation target prediction result and the four-point label of the lunar rockfall includes: Calculate the label area based on the four-point label of the lunar rockfall; Calculate the predicted area based on the rotation target prediction result; Calculate the overlapping area of the label area and the predicted area; Calculate the loss function based on the label area, the predicted area and the overlapping area.
[0011] As a further improvement of the present invention, in the above-mentioned lunar rockfall rotation target detection method based on the yolo-R model, wherein, the loss function is:
[0012] Wherein, is the loss function, is the label area, is the predicted area, is the overlapping area.
[0013] As a further improvement of the present invention, in the above-mentioned lunar rockfall rotation target detection method based on the yolo-R model, wherein, as a further improvement of the present invention, in the above-mentioned lunar rockfall rotation target detection method based on the yolo-R model, wherein, calculating the overlapping area of the label area and the predicted area includes: Calculate the left boundary, right boundary, upper boundary and lower boundary of the four-point label and the rotation target prediction result respectively; Calculate the overlapping area through the left boundary, the right boundary, the upper boundary and the lower boundary, which can be expressed as:
[0014] Wherein, is the overlapping area, L is the left boundary, R is the right boundary, U is the upper boundary, D is the lower boundary.
[0015] The embodiment of the present application further provides a lunar rockfall rotation target detection device based on the yolo-R model, including: An acquisition module, configured to acquire a training set of lunar remote sensing image data; wherein, the lunar remote sensing image training data set includes sliced images of lunar remote sensing images and four-point labels of lunar rockfalls; A processing module, configured to input the sliced images of the lunar remote sensing images into an improved yolo-R model to obtain a rotation target prediction result; A training module, configured to construct a loss function based on the rotation target prediction result and the four-point labels of the lunar rockfalls, and train the improved yolo-R model based on the loss function; A rotation target detection module, configured to acquire sliced images of a lunar remote sensing image to be detected, and input the sliced images of the lunar remote sensing image to be detected into the trained improved yolo-R model to obtain a rotation target prediction result of the sliced images of the lunar remote sensing image to be detected.
[0016] The embodiment of the present application further provides a computer-readable storage medium, in which multiple instructions are stored, and the instructions are adapted to be loaded by a processor to execute any one of the above-mentioned lunar rockfall rotation target detection methods based on the yolo-R model.
[0017] The embodiment of the present application further provides an electronic device, including a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used for the steps in any one of the above-mentioned lunar rockfall rotation target detection methods based on the yolo-R model.
[0018] For the lunar rockfall rotation target detection method, device, storage medium and electronic device provided by the present application, the present application introduces four-point labels as true labels to train the yolo-R model to obtain a rotation target prediction result. The present application improves the yolo-R model, so that the yolo-R model can capture the rotation features in uncertain directions around the target, reduce the misdetection of ordinary lunar surface rocks as lunar rockfalls, and improve the accuracy of target detection. At the same time, the present application has a higher detection speed, can quickly respond to the requirements under different observation conditions, and provides more reliable data support for research in aspects such as the composition of extraterrestrial substances and the lunar geological environment. Description of the Drawings
[0019] The following will make the technical solutions and other beneficial effects of the present application obvious by describing the specific embodiments of the present application in detail in conjunction with the drawings.
[0020] Figure 1Flowchart of the lunar rock rotation target detection method based on the yolo-R model provided by the embodiments of the present application.
[0021] Figure 2 Schematic structural diagram of the improved yolo-R model provided by the embodiments of the present application.
[0022] Figure 3 Marked lunar remote sensing image provided by the embodiments of the present application.
[0023] Figure 4 Schematic structural diagram of the lunar rock rotation target detection device based on the yolo-R model provided by the embodiments of the present application.
[0024] Figure 5 Schematic structural diagram of the electronic device provided by the embodiments of the present application. Detailed implementation manners
[0025] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0026] Previous target detection algorithms perform well in dealing with targets with regular shapes and fixed angles, but it is difficult for them to accurately detect the characteristics of lunar rocks with complex and variable rotation angles on the lunar surface. This is because all the prediction boxes in the previous lunar rock target detection algorithms are horizontal prediction boxes and do not consider the rotation characteristics of the targets. Therefore, it is difficult for the neural network of traditional algorithms to learn the rotation characteristics of the targets during training, and at the same time, the rotation characteristics of the targets are not considered during output. However, the main difference between lunar surface rocks and lunar rocks is that there are traces left by the collision with the lunar surface around the lunar rocks, which is obviously a rotation characteristic in an indefinite direction.
[0027] To solve the above problems, the embodiments of the present application provide a lunar rock rotation target detection method, device, storage medium and electronic device based on the yolo-R model. A lunar rock rotation target detection device based on the yolo-R model provided by the embodiments of the present application can be integrated in an electronic device, and the electronic device can be a device such as a terminal or a server. Among them, the terminal can include a tablet computer, a notebook computer, a personal computer (PC), a micro processing box, or other devices, etc.
[0028] Please refer to Figure 1 , Figure 1The flowchart of the lunar rock rotation target detection method based on the yolo-R model provided by the embodiments of the present application is applied to an electronic device. The lunar rock rotation target detection method based on the yolo-R model includes the following steps: S1. Obtain a training set of lunar remote sensing image data. The lunar remote sensing image training data set includes sliced images of lunar remote sensing images and four-point labels of lunar rocks.
[0029] In one embodiment, step S1 includes the following steps: S11. Obtain lunar remote sensing image data.
[0030] S12. Perform orthogonal projection on the lunar remote sensing image data, and slice the orthogonally projected lunar remote sensing image data to obtain sliced images of lunar remote sensing images.
[0031] S13. Based on the longitude, latitude, and diameter information of lunar rocks, obtain four-point labels of lunar rocks.
[0032] S14. Construct a training set of lunar remote sensing image data based on the sliced images of lunar remote sensing images and the four-point labels of lunar rocks.
[0033] Specifically, crop the lunar remote sensing image into training samples of appropriate size, then perform orthogonal projection to reduce image distortion, and slice the image to segment and complete the lunar remote sensing image into a square of 1024×1024 size. Use the published authoritative manually recognized lunar rock catalog, which contains the longitude, latitude, and diameter information of lunar rocks. First, convert it into data in the pixel coordinate system, and then label it in the lunar rock samples. Divide the sliced lunar remote sensing images and corresponding data labels into two sets: a training set for training the model and a test set for testing the model after training.
[0034] The ordinary image data set is in two-point coordinates, and the label is a horizontal rectangle. The lunar rock label provided by the embodiments of the present application is a four-point label, marking four points, which is a rectangle that can rotate at any angle.
[0035] S2. Input the sliced images of lunar remote sensing images into the improved yolo-R model to obtain the rotation target prediction result.
[0036] Figure 2 The structural schematic diagram of the improved yolo-R model provided by the embodiments of the present application is as Figure 2 shown. The improved yolo-R model includes a backbone network module, a feature extraction module, and an improved head output module. Step S2 specifically includes the following steps: S21. Input the sliced images of lunar remote sensing images into the backbone network module for feature extraction to obtain the first feature map.
[0037] S22. Input the first feature map into the feature extraction module to perform multi-scale feature extraction and feature fusion to obtain the second feature map.
[0038] S23. Input the second feature map into the improved head output module to obtain multiple rotation target candidate boxes.
[0039] Specifically, the improved head output module includes a raw convolutional layer, an improved convolutional layer, a pooling layer, and a connection layer connected in sequence. Step S23 specifically includes the following steps: S231. Input the second feature map into the raw convolutional layer to obtain prediction candidate boxes; S232. Input the prediction candidate boxes into the improved convolutional layer to extract angle information, and based on the angle information and the prediction candidate boxes, obtain rotation target candidate boxes; S233. Input the rotation target candidate boxes into the pooling layer for classification; S234. Input the classified rotation target candidate boxes into the connection layer for regression to obtain the final rotation target candidate boxes.
[0040] S24. Calculate the confidence of multiple rotation target candidate boxes, and take the rotation target candidate box with the highest confidence as the rotation target prediction result.
[0041] S3. Based on the rotation target prediction result and the four-point label of lunar falling rocks, construct a loss function, and based on the loss function, train the improved yolo-R model.
[0042] Specifically, constructing the loss function based on the rotation target prediction result and the four-point label of lunar falling rocks in step S3 includes: S31. Calculate the area of the label region based on the four-point label of lunar falling rocks.
[0043] S32. Calculate the area of the prediction region based on the rotation target prediction result.
[0044]
[0045]
[0046] Through the input four-point label , calculate the area of the label region . In the label respectively represent the coordinates of the four points of the label rectangle after normalization processing. Through the rotation target prediction result , calculate the area of the prediction region , where respectively represent the coordinates of the four points of the predicted rectangle after normalization.
[0047] S33. Calculate the overlapping area of the label area and the predicted area.
[0048] Specifically, step S33 includes the following steps: S331. Calculate the left boundary, right boundary, upper boundary, and lower boundary of the four-point label and the rotated object prediction result respectively.
[0049] Specifically, to calculate the overlapping area based on the coordinate information, first calculate the boundary positions of the two rectangles. In the following formula represents taking the maximum value of the values in the parentheses, represents taking the minimum value of the values in the parentheses.
[0050] Left boundary of the label rectangle: .
[0051] Right boundary of the label rectangle: .
[0052] Upper boundary of the label rectangle: .
[0053] Lower boundary of the label rectangle: .
[0054] Left boundary of the predicted rectangle: .
[0055] Right boundary of the predicted rectangle: .
[0056] Upper boundary of the predicted rectangle: .
[0057] Lower boundary of the label rectangle: .
[0058] Calculate the boundary of the overlapping area.
[0059] Left boundary of the label rectangle: .
[0060] Right boundary of the label rectangle: .
[0061] Upper boundary of the label rectangle: .
[0062] Lower boundary of the label rectangle: .
[0063] S332. Calculate the overlapping area through the left boundary, right boundary, upper boundary, and lower boundary, which can be expressed as:
[0064] Among them, is the area of the overlapping region, L is the left boundary, R is the right boundary, U is the upper boundary, D is the lower boundary.
[0065] S34. Calculate the loss function based on the label region area, the predicted region area, and the overlapping region area.
[0066] The loss function is:
[0067] Among them, is the loss function, is the label region area, is the predicted region area, is the overlapping region area.
[0068] Furthermore, use the moon meteorite data identified by authoritative manual means to verify the potential moon meteorite regions, identify the potential moon meteorites that meet the preset requirements, and mark them on the lunar remote sensing images.
[0069] Figure 3 This is the marked lunar remote sensing image provided by the embodiment of the present application, as Figure 3 shown. Use the moon meteorite data identified by authoritative manual means to conduct a comparative analysis with the predicted potential moon meteorite regions, count the number of matching moon meteorite regions between the two, and the coincidence degree of the moon meteorite regions between the two, and evaluate the model.
[0070] S4. Obtain the sliced images of the lunar remote sensing image to be detected, input the sliced images of the lunar remote sensing image to be detected into the trained improved yolo-R model, and obtain the rotation target prediction results of the sliced images of the lunar remote sensing image to be detected.
[0071] The present application introduces a four-point label as the true label, trains an improved yolo-R model to obtain rotation target prediction results. The present application improves the yolo-R model, enabling the yolo-R model to capture the rotation features in uncertain directions around the target, improving the model accuracy. At the same time, the present application has a higher detection speed, can quickly respond to the requirements under different observation conditions, and provides more reliable data support for research in aspects such as the composition of extraterrestrial substances and the lunar geological environment.
[0072] Compared with the prior art, the beneficial effects of the present invention also lie in: 1. The present invention uses an improved YOLO-R model to achieve efficient lunar rockfall recognition: The improved YOLO-R model can maintain efficient object detection performance when processing large-scale remote sensing images, and its fast feature extraction and detection capabilities are particularly suitable for the lunar rockfall recognition task. It has good application prospects in real-time object detection related to future detector landings.
[0073] 2. The present invention uses the method of rotating object detection for lunar rockfall detection. Compared with the previous horizontal object detection, rotating object detection can effectively capture the rotation features of the object in uncertain directions, specifically manifested as the traces left on the lunar surface by the collision around the lunar rockfall, thereby reducing the misdetection of the model that identifies ordinary lunar surface rocks as lunar rockfalls and improving the accuracy of object detection.
[0074] According to the method described in the above embodiments, this embodiment will further describe from the perspective of a lunar rockfall rotating object detection device based on the YOLO-R model. The lunar rockfall rotating object detection device based on the YOLO-R model can be specifically implemented as an independent entity or integrated in an electronic device, which can be a device such as a terminal, a server, etc. Among them, the terminal can include a tablet computer, a notebook computer, a personal computer (PC), a microprocessing box, or other devices, etc.
[0075] Please refer to Figure 4 , Figure 4 Specifically describes the lunar rockfall rotating object detection device based on the YOLO-R model provided by the embodiments of the present application, which is applied to an electronic device. The lunar rockfall rotating object detection device based on the YOLO-R model may include: An acquisition module, configured to acquire a lunar remote sensing image data training set; wherein, the lunar remote sensing image training data set includes sliced images of lunar remote sensing images and four-point labels of lunar rockfalls; A processing module, configured to input the sliced images of the lunar remote sensing images into the improved YOLO-R model to obtain a rotating object prediction result; A training module, configured to construct a loss function based on the rotating object prediction result and the four-point labels of the lunar rockfalls, and train the improved YOLO-R model based on the loss function; A rotating object detection module, configured to acquire sliced images of the lunar remote sensing image to be detected, input the sliced images of the lunar remote sensing image to be detected into the trained improved YOLO-R model, and obtain a rotating object prediction result of the sliced images of the lunar remote sensing image to be detected.
[0076] In specific implementation, each of the above modules and / or units can be implemented as an independent entity, or can be arbitrarily combined and implemented as the same or several entities. For the specific implementation of each of the above modules and / or units, please refer to the foregoing method embodiments. For the specific beneficial effects that can be achieved, please also refer to the beneficial effects in the foregoing method embodiments, which will not be elaborated herein.
[0077] In addition, an embodiment of the present application further provides an electronic device, which can be a device such as a computer or a tablet computer. The electronic device can implement the steps in any embodiment of the method for detecting rotating lunar rockfall targets based on the yolo-R model provided by the embodiments of the present application. Therefore, the beneficial effects that can be achieved by any method for detecting rotating lunar rockfall targets based on the yolo-R model provided by the embodiments of the present invention can be realized. For details, please refer to the foregoing embodiments, which will not be elaborated herein.
[0078] Figure 5 The specific structural block diagram of the electronic device provided by the embodiment of the present invention is shown. The electronic device can be used to implement the method for detecting rotating lunar rockfall targets based on the yolo-R model provided in the above embodiments. The electronic device 500 can be a device such as a terminal or a server. Among them, the terminal can include a tablet computer, a notebook computer, a personal computer (PC), a microprocessing box, or other devices, etc.
[0079] The RF circuit 510 is used to receive and transmit electromagnetic waves, realizing the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuit 510 may include various existing circuit components for performing these functions. For example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and so on. The RF circuit 510 can communicate with various networks such as the Internet, an enterprise intranet, a wireless network or communicate with other devices through a wireless network. The above-mentioned wireless network may include a cellular phone network, a wireless local area network or a metropolitan area network. The above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE 802.11g and / or IEEE 802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, and may even include those protocols that have not yet been developed currently.
[0080] The memory 520 can be used to store software programs and modules, such as the corresponding program instructions / modules in the above embodiments. The processor 580 executes various functional applications and data processing by running the software programs and modules stored in the memory 520, that is, to implement functions such as taking pictures with the front camera, processing the captured images, and switching the display colors of the display content on the display screen. The memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 520 may further include a memory remotely disposed relative to the processor 580, and these remote memories can be connected to the electronic device 500 through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0081] The input unit 530 can be used to receive input digital or character information, and generate a keyboard and a mouse related to user settings and function controls. The display unit 540 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces, and these graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof. The display unit 540 may include a display panel 541. Optionally, the display panel 541 can be configured in the form of an LCD (Liquid Crystal Display) or an OLED (Organic Light-Emitting Diode).
[0082] The audio circuit 560, the speaker 561, and the microphone 562 can provide an audio interface between the user and the electronic device 500. The audio circuit 560 can transmit the electrical signal converted from the received audio data to the speaker 561, and the speaker 561 converts it into a sound signal for output; on the other hand, the microphone 562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 560 and then converted into audio data. After the audio data is output to the processor 580 for processing, it is sent to another terminal, for example, through the RF circuit 510, or the audio data is output to the memory 520 for further processing. The audio circuit 560 may further include an earphone jack to provide communication between the peripheral earphone and the electronic device 500.
[0083] The electronic device 500 can help the user receive requests, send information, etc. through the transmission module 570 (such as a Wi-Fi module), and it provides the user with wireless broadband Internet access. Although the transmission module 570 is shown in the figure, it can be understood that it does not belong to the essential composition of the electronic device 500 and can be omitted completely within the scope of not changing the essence of the invention according to needs.
[0084] The processor 580 is the control center of the electronic device 500, connecting various parts of the entire mobile phone through various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 520, and calling the data stored in the memory 520, it executes various functions of the electronic device 500 and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 580 may include one or more processing cores; in some embodiments, the processor 580 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 580 either.
[0085] The electronic device 500 also includes a power supply 590 (such as a battery) for supplying power to each component. In some embodiments, the power supply can be logically connected to the processor 580 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 590 may also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.
[0086] Although not shown, the electronic device 500 also includes a camera (such as a front camera and a rear camera), a Bluetooth module, etc., which will not be elaborated here. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, where one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: Obtain a training set of lunar remote sensing image data; wherein, the lunar remote sensing image training data set includes sliced images of lunar remote sensing images and four-point labels of lunar rockfalls; Input the sliced images of the lunar remote sensing images into the improved yolo-R model to obtain a rotated target prediction result; Construct a loss function based on the rotated target prediction result and the four-point labels of the lunar rockfalls, and train the improved yolo-R model based on the loss function; Obtain sliced images of the lunar remote sensing image to be detected, and input the sliced images of the lunar remote sensing image to be detected into the trained improved yolo-R model to obtain a rotated target prediction result of the sliced images of the lunar remote sensing image to be detected.
[0087] In specific implementation, each of the above modules can be implemented as an independent entity, or can be combined arbitrarily and implemented as the same or several entities. For the specific implementation of each of the above modules, reference can be made to the method embodiments described above, which will not be elaborated here.
[0088] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. For this purpose, an embodiment of the present invention provides a storage medium, in which multiple instructions are stored, and these instructions can be loaded by a processor to execute the steps of any one of the embodiments of the lunar rockfall rotation target detection method based on the yolo-R model provided by the embodiments of the present invention.
[0089] Among them, the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc.
[0090] Since the instructions stored in this storage medium can execute the steps of any one of the embodiments of the lunar rockfall rotation target detection method based on the yolo-R model provided by the embodiments of the present invention, the beneficial effects achievable by any of the lunar rockfall rotation target detection methods based on the yolo-R model provided by the embodiments of the present invention can be realized. For details, refer to the embodiments described above, which will not be elaborated here.
[0091] The above has introduced in detail a lunar rockfall rotation target detection method, device, storage medium, and electronic device based on the yolo-R model provided by the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A method for detecting rotating targets of falling rocks on the moon based on the yolo-R model, characterized in that: The method comprises: Acquire a lunar remote sensing image data training set; wherein the lunar remote sensing image training data set includes slice images of lunar remote sensing images and four-point labels of lunar rockfalls; Inputting the slice image of the lunar remote sensing image into the improved yolo-R model to obtain a rotating target prediction result; Constructing a loss function based on the rotating target prediction result and the four-point label of the lunar rockfall, and training the improved YOLO-R model based on the loss function; A slice image of a lunar remote sensing image to be detected is obtained, and the slice image of the lunar remote sensing image to be detected is input into a trained improved yolo-R model to obtain a rotation target prediction result of the slice image of the lunar remote sensing image to be detected.
2. The method for detecting rotating targets of falling rocks from the moon based on the yolo-R model according to claim 1, characterized in that: The step of obtaining a lunar remote sensing image data training set includes: Acquire lunar remote sensing image data; Orthogonally projecting the lunar remote sensing image data, and slicing the lunar remote sensing image data after the orthogonal projection to obtain a slice image of the lunar remote sensing image; Based on the latitude, longitude and diameter information of the lunar rockfall, a four-point label of the lunar rockfall is obtained; A lunar remote sensing image data training set is constructed based on slice images of lunar remote sensing images and four-point labels of lunar rockfalls.
3. The method for detecting rotating targets of falling rocks from the moon based on the yolo-R model according to claim 1, characterized in that: The improved yolo-R model includes a skeleton network module, a feature extraction module and an improved head output module; The step of inputting the slice image of the lunar remote sensing image into the improved yolo-R model to obtain the rotating target prediction result includes: Inputting the slice image of the lunar remote sensing image into the skeleton network module for feature extraction to obtain a first feature map; Inputting the first feature map into a feature extraction module to perform multi-scale feature extraction and feature fusion to obtain a second feature map; Inputting the second feature map into an improved head output module to obtain multiple rotated target candidate boxes; The confidence levels of the multiple rotated target candidate frames are calculated, and the rotated target candidate frame with the highest confidence level is used as the rotated target prediction result.
4. The method for detecting rotating targets of falling rocks from the moon based on the yolo-R model according to claim 3, characterized in that: The improved head output module includes an original convolution layer, an improved convolution layer, a pooling layer and a connection layer connected in sequence; The predicted candidate frame is input into the improved head output module to obtain multiple rotated target candidate frames, including: Inputting the second feature map into the original convolutional layer to obtain a predicted candidate box; Inputting the predicted candidate frame into the improved convolution layer to extract angle information, and obtaining a rotated target candidate frame based on the angle information and the predicted candidate frame; Inputting the rotated target candidate box into the pooling layer for classification; The classified rotated target candidate box is input into the connection layer for regression to obtain the final rotated target candidate box.
5. The method for detecting rotating targets of falling rocks from the moon based on the yolo-R model according to claim 1, characterized in that: The loss function is constructed based on the prediction result of the rotating target and the four-point label of the lunar rockfall, including: Calculate the label area based on the four-point label of the lunar rockfall; Calculate the predicted area based on the prediction result of the rotating target; Calculating the overlapping area of the label area and the predicted area; A loss function is calculated based on the label region area, the prediction region area and the overlap region area.
6. The method for detecting rotating targets of falling rocks from the moon based on the yolo-R model according to claim 5, characterized in that: The loss function is: in, is the loss function, is the label area, To predict the area, is the area of the overlapped region.
7. The method for detecting rotating targets of falling rocks from the moon based on the yolo-R model according to claim 5, characterized in that: The calculating the overlapping area of the label area and the predicted area includes: Calculate the left boundary, right boundary, upper boundary and lower boundary of the four-point label and the rotation target prediction result respectively; The area of the overlapped region is calculated by the left boundary, the right boundary, the upper boundary and the lower boundary, which can be expressed as: in, is the overlapping area, L is the left border, R For the right border, U is the upper boundary, D is the lower boundary.
8. A lunar rockfall rotating target detection device based on the yolo-R model, characterized in that: include: An acquisition module is used to acquire a lunar remote sensing image data training set; wherein the lunar remote sensing image training data set includes slice images of lunar remote sensing images and four-point labels of lunar rockfalls; A processing module, used for inputting the slice image of the lunar remote sensing image into the improved yolo-R model to obtain a rotating target prediction result; A training module, used to construct a loss function based on the rotating target prediction result and the four-point label of the lunar rockfall, and train the improved YOLO-R model based on the loss function; The rotating target detection module is used to obtain a slice image of the lunar remote sensing image to be detected, input the slice image of the lunar remote sensing image to be detected into the trained improved yolo-R model, and obtain a rotating target prediction result of the slice image of the lunar remote sensing image to be detected.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, which are suitable for being loaded by a processor to execute the lunar rockfall rotating target detection method based on the yolo-R model as described in any one of claims 1 to 7.
10. An electronic device, characterized in that: It includes a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in the lunar rockfall rotating target detection method based on the yolo-R model as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Yolov5-based remote sensing directed target detection method
CN113920443A
Lunar surface landing meteorite crater obstacle detection method, storage medium and electronic equipment
CN114241296A
Improved YOLO V5-based heading machine working tooth number identification method
CN116030024A
Greenhouse intelligent extraction method based on aerial photo and improved inclined frame detection
CN118470526A
Airport runway remote sensing image target detection and segmentation method based on improved Mask R-CNN
CN118587600A