Field base station site selection method and device
Recognizing landform information through UAV aerial photography and aerial semantic segmentation models solves the problem of low efficiency in field base station site selection, achieves a more accurate and efficient site selection process, and reduces costs and the need to rely on expert experience.
Patent Information
- Application Number
- CN202410787624.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, field communication base station site selection efficiency is low, reliance on manual survey results in limited information acquisition, and factors such as complex terrain and inconvenient transportation affect construction quality and cost.
The aerial semantic segmentation model trained using UAV aerial image input, combined with the spatial pyramid pooling module of the large window attention mechanism, generates multi-scale image fusion features for identifying landform information and achieving more accurate base station site selection.
Through drone aerial photography and artificial intelligence analysis, semantic segmentation images are generated in real time, saving time and costs, improving processing efficiency, reducing reliance on expert experience, enhancing scalability in different scenarios, obtaining more accurate landform information, and ensuring base stations Precision in site selection.
Smart Images

Figure CN118799752A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a method and device for selecting a site for a field base station. Background Art
[0002] In order to ensure the coverage of mobile communication services, there is also a need to build communication base stations in the wild. However, building communication base stations in the wild has high requirements for the environment and terrain, and relies on high-quality exploration reports provided by the base station site selection staff. First of all, the site selection conditions for outdoor communication base stations are very harsh. The base station must be in a moderate position and can cover as many villages as possible to reduce economic costs. Secondly, there are relatively high requirements for topography and landforms. For example, it is necessary to give priority to high-lying, flat, rocky and non-forested landforms, while river valleys, woodlands, swamps and other landforms cannot be used as the address of communication base stations. For base station construction, special attention should be paid to local traffic conditions. Whether large equipment such as commercial concrete mixers, cranes, and drilling rigs can be easily reached is particularly important for ensuring the quality of the construction of outdoor communication base stations, construction speed and reducing the construction cost. Therefore, it is also necessary to combine the specific distribution of local roads, paths, and wild roads for investigation.
[0003] At present, the site selection of outdoor communication base stations mainly relies on a large number of manual field surveys by surveyors, so the effective information that can be obtained from one survey is very limited. The area of forests, grasslands, and rivers will change, new roads, buildings, and agricultural land will appear, and factors such as high mountains, dense forests, complex terrain, and inconvenient transportation will lead to low efficiency in site selection and survey of outdoor communication base stations.
[0004] Therefore, how to more effectively select outdoor base station sites has become a problem that needs to be solved urgently. Summary of the invention
[0005] The present invention provides a method and device for selecting a site for a field base station, which are used to solve the problem of how to more effectively select a site for a field base station in the prior art.
[0006] The present invention provides a method for selecting a site for a field base station, comprising: Input the field aerial images into the encoder of the trained aerial semantic segmentation model and output the fused image features; Inputting the fused image features into the spatial pyramid pooling module based on the large window attention mechanism in the trained aerial photography semantic segmentation model, processing through multiple large window attention layers connected in series in the spatial pyramid pooling module, and outputting multi-scale image fusion features; The multi-scale image fusion features are input into the decoder of the trained aerial photography semantic segmentation model, and the topographic information in the field aerial photography image is output, so as to select the site of the field base station according to the topographic information.
[0007] According to a method for selecting a site for a base station in the wild provided by the present invention, the method of inputting a wild aerial image into an encoder in a trained aerial semantic segmentation model and outputting fused image features comprises: Input the outputs of each Swin Transformer module in the encoder into the multi-layer perceptrons corresponding to the Swin Transformer modules at different stages, and output each image feature; Each of the image features is spliced together to obtain a fused image feature.
[0008] According to a method for selecting a site for a base station in the wild provided by the present invention, the spatial pyramid pooling module includes three layers of large window attention layers, the fused image features are input into the spatial pyramid pooling module based on the large window attention mechanism in the trained aerial photography semantic segmentation model, and processed by multiple large window attention layers connected in series in the spatial pyramid pooling module to output multi-scale image fusion features, including: The fused image features are input into a first large window attention layer, and a first receptive field image feature is output; Inputting the first receptive field image feature into a second large window attention layer connected in series with the first large window attention layer, and outputting a second receptive field image feature; Input the second receptive field image feature into a third large window attention layer connected in series with the second large window attention layer, and output a third receptive field image feature; The first receptive field image feature, the second receptive field image feature and the third receptive field image feature are spliced to obtain a multi-scale image fusion feature.
[0009] According to a method for selecting a site for a base station in the wild provided by the present invention, before the step of inputting the wild aerial image into an encoder of a trained aerial semantic segmentation model and outputting fused image features, the method further includes: Acquire multiple field aerial photography sample images and landform information labels corresponding to the field aerial photography sample images; The combination of each of the field aerial photography sample images and the landform information label is used as a training sample to obtain multiple training samples; and the aerial photography semantic segmentation model is trained using the multiple training samples.
[0010] According to a method for selecting a site for a base station in the wild provided by the present invention, a plurality of training samples are used to train an aerial photography semantic segmentation model, including: For any training sample, the training sample is input into the aerial photography semantic segmentation model, and the landform information corresponding to the training sample is output; Using a preset loss function, a loss value is calculated according to the landform information label corresponding to the training sample and the landform information corresponding to the training sample; When the loss value is less than a preset threshold, the training is stopped to obtain the trained aerial photography semantic segmentation model.
[0011] The present invention also provides a field base station site selection device, comprising: The first output module is used to input the field aerial image into the encoder of the trained aerial semantic segmentation model and output the fused image features; A second output module is used to input the fused image features into a spatial pyramid pooling module based on a large window attention mechanism in the trained aerial photography semantic segmentation model, process the fused image features through a plurality of large window attention layers connected in series in the spatial pyramid pooling module, and output a multi-scale image fusion feature; The site selection module is used to input the multi-scale image fusion features into the decoder of the trained aerial photography semantic segmentation model, and output the terrain information in the field aerial image to select the site of the field base station according to the terrain information.
[0012] According to a field base station site selection device provided by the present invention, the device is also used for: The fused image features are input into a first large window attention layer, and a first receptive field image feature is output; Inputting the first receptive field image feature into a second large window attention layer connected in series with the first large window attention layer, and outputting a second receptive field image feature; Input the second receptive field image feature into a third large window attention layer connected in series with the second large window attention layer, and output a third receptive field image feature; The first receptive field image feature, the second receptive field image feature and the third receptive field image feature are spliced to obtain a multi-scale image fusion feature.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned methods for selecting a site for a field base station is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for selecting a site for a field base station as described in any one of the above is implemented.
[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for selecting a site for a field base station as described above is implemented.
[0016] The method and device for selecting a site for a base station in the wild provided by the present invention replace manual visits with photos taken by unmanned aerial vehicles, and adopt an artificial intelligence network to replace manual analysis of terrain and landform plot features, directly generate specific semantic segmentation aerial images in real time, provide more image information, save a lot of calculation and time costs, improve processing real-time performance, reduce dependence on expert experience, and enhance the scalability of migration between different scenes. At the same time, a spatial pyramid pooling module based on a large window attention mechanism is introduced in the aerial semantic segmentation model to replace the CNN module, which has a good segmentation effect on small targets and object edge information in aerial images, which is better than the current mainstream segmentation method. And it is possible to obtain more sufficient contour information of the image, capture sufficient long-range semantic information, solve the problem of uneven and insignificant distribution of objects in aerial images, more accurately identify landform information, and thus more accurately perform site selection for base stations in the wild. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A schematic diagram of a method for selecting a site for a field base station provided in an embodiment of the present application; Figure 2 This is a structural diagram of the Swin Transformer module provided in the embodiments of the present application; Figure 3 Schematic diagram of a large window attention mechanism provided for an embodiment of the present application; Figure 4 A schematic diagram of the structure of a field base station site selection device provided in an embodiment of the present application; Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] Figure 1 A schematic diagram of a method for selecting a site for a field base station provided in an embodiment of the present application is shown in FIG. Figure 1As shown, including: Step 110, input the field aerial image into the encoder of the trained aerial semantic segmentation model, and output the fused image features; the field aerial image described in the embodiment of the present application can specifically be an image of the field environment taken by an unmanned aerial vehicle, and the field aerial image may contain landform information such as woodlands, grasslands, rivers, roads, and buildings.
[0021] In the embodiment of the present application, both the encoder and decoder in the aerial photography semantic segmentation model include Swin Transformer modules. The Swin Transformer module is constructed based on the shift window, and each Swin transformer module consists of a normalization layer (LN), a multi-head self-attention (MSA) module, a residual connection, and a multi-layer perceptron (MLP) with a Gaussian error linear unit activation function (GELU).
[0022] Figure 2 This is a Swin Transformer module structure diagram provided in the embodiment of the present application, such as Figure 2 As shown, the window-based MSA (W-MSA) module and the shifted window-based MSA (SW-MSA) module are applied in two consecutive Transformer modules, respectively.
[0023] In the encoder module, in order to convert the input image into a sequence embedding, the aerial image is segmented into non-overlapping blocks of size 4×4. With this segmentation method, the feature size of each block becomes 4×4×3=48. In addition, a linear embedding layer is applied to project the feature size to an arbitrary size (denoted as C). The transformed blocks pass through several Swin Transformer modules and block fusion layers to generate hierarchical image features.
[0024] Optionally, the encoder consists of multiple Swin Transformer modules, each of which is responsible for extracting local features and contextual information of the image.
[0025] The output of each Swin Transformer module is fed into a corresponding MLP. These MLPs can be feed-forward networks for further processing and refining features. Each MLP outputs a transformed feature representation that captures different aspects and levels of information about the input data.
[0026] The output feature maps of each MLP are concatenated together. The concatenation can be performed on the feature dimension to form a more comprehensive image feature representation. The concatenated features constitute the fused image feature, which integrates the information from different SwinTransformer modules.
[0027] If the Swin Transformer module is designed to process multi-scale information, the fused features will naturally contain information at these scales. The fused image features are richer and more comprehensive than the output of a single stage because they combine information from multiple processing stages.
[0028] Step 120, inputting the fused image features into the trained spatial pyramid pooling module based on the large window attention mechanism in the aerial photography semantic segmentation model, processing them through a plurality of large window attention layers connected in series in the spatial pyramid pooling module, and outputting multi-scale image fusion features; In this application and Forty Miles, the fused image features output by the encoder, which already contain rich image information, are input into the Spatial Pyramid Pooling (SPPF) module. The SPPF module uses a large window attention mechanism to replace the traditional pooling operation to capture a wider range of contextual information.
[0029] The SPPF module contains multiple large-window attention layers in series, which gradually process the input features. Each large-window attention layer may focus on a different receptive field, thereby capturing multi-scale features from local to global.
[0030] The input features are processed in the first large window attention layer and then passed to the next layer, and so on. Each layer may use a different window size or stride to capture features at different scales. After being processed by multiple large window attention layers, the model outputs a set of multi-scale image fusion features.
[0031] Optionally, the spatial pyramid pooling module includes three large window attention layers, and the fused image features are input into the spatial pyramid pooling module based on the large window attention mechanism in the trained aerial photography semantic segmentation model, and processed by multiple large window attention layers connected in series in the spatial pyramid pooling module to output multi-scale image fusion features, including: The fused image features are input into a first large window attention layer, and a first receptive field image feature is output; Inputting the first receptive field image feature into a second large window attention layer connected in series with the first large window attention layer, and outputting a second receptive field image feature; Input the second receptive field image feature into a third large window attention layer connected in series with the second large window attention layer, and output a third receptive field image feature; The first receptive field image feature, the second receptive field image feature and the third receptive field image feature are spliced to obtain a multi-scale image fusion feature.
[0032] In an embodiment of the present application, in the improved SPPF module, in order to obtain the multi-scale features of the field map, the convolution operation in the SPPF is replaced by a large window attention mechanism, thereby combining the spatial pyramid pooling module with the large window attention mechanism to obtain an improved SPPF module, which is composed of three R=2 large window attention layers connected in series.
[0033] The fused image features output by the encoder are input into the SPPF module. These features already contain multi-scale and multi-faceted information extracted from the original image.
[0034] The fused image features are first input to the first large window attention layer. This layer processes the features and outputs the first receptive field image features, which capture the local information in the image.
[0035] The first receptive field image features are then input into the second largest window attention layer connected in series with it.
[0036] The second layer expands the receptive field and outputs the second receptive field image features, which contain more extensive context information. The second receptive field image features are then input to the third large window attention layer. This layer further expands the receptive field and outputs the third receptive field image features, capturing more global features.
[0037] The features output by each large window attention layer represent contextual information at different scales. The first, second, and third receptive field image features are concatenated to form multi-scale image fusion features. The concatenation can be performed in the feature channel dimension to integrate feature information from different receptive fields. Ultimately, the model outputs a feature representation that integrates multi-scale information from local to global.
[0038] Figure 3 A schematic diagram of a large window attention mechanism provided in an embodiment of the present application is shown in FIG. Figure 3 As shown in the figure, the large window attention mechanism evenly divides the entire feature map into several blocks. The red block A represents the query block, and the blue block B represents the queried context block. The context is reshaped and input into the position mixture MLP, and the output context C p is the location mixed context. When the large window of attention slides across the image, it allows the current block to query a larger area. For simplicity, the query block is represented as The queried context block is represented as Where R is the ratio of the query block size to the queried context block size, P 2 is the area of the block.
[0039] Based on the fact that the label mixing MLP and the channel mixing MLP in the MLP mixer are complementary in collecting spatial information, a set of head-specific position mixing MLPs = {MLP1, MLP2, ..., MLPh}.like Figure 3 As shown, each head of the pooled context block is pushed into its corresponding tag (position) mixed MLP, and the spatial positions within the same head communicate with each other in the same behavior. The generated context is called a position mixed context block and is denoted as C p , and its calculation formula is as follows: C P =Reshape(C,P 2 )(concat[C1;C2;...;C h ])
[0040] In the formula, express and The h-th head of is the h-th transformation that strengthens the spatial representation of the h-th head, and φ represents the average pooling operation.
[0041] For the positional mixed context C p , we can reformulate the above equation as follows: MHA=concat[A1;A2;..;A h ]W ma
[0042] The image features after the win Transformer module and the block fusion operation are spliced, and the fused image features are connected in series through three large window attention branches with R=2, thereby providing three levels of receptive fields for the local window. The block size of the local window is set to 8, so the receptive field provided is (16, 32, 64). Then the image branches with different receptive fields are spliced to achieve top-down multi-scale feature fusion.
[0043] Step 130, input the multi-scale image fusion features into the decoder of the trained aerial photography semantic segmentation model, output the terrain information in the field aerial photography image, so as to select the site of the field base station according to the terrain information.
[0044] In the embodiment of the present application, the multi-scale image fusion features output by the encoder are used as the input of the decoder. These features already contain rich multi-scale information extracted from the original image. The decoder is part of the aerial photography semantic segmentation model, which is responsible for upsampling and refining the output of the encoder and gradually restoring the spatial resolution of the image.
[0045] Through transposed convolution (also called deconvolution) or upsampling techniques, the spatial dimension of the features is gradually increased to restore the details of the image. During the upsampling process, the decoder may also introduce additional convolutional layers or attention mechanisms to refine the features and enhance the semantic information.
[0046] In order to preserve more detailed information, the decoder may use skip connections to directly introduce low-level features from the encoder.
[0047] The decoder may contain multi-scale feature fusion technology to integrate features from different levels to enhance the semantic information of the final output. The final output of the decoder is a high-resolution semantic segmentation map, in which each pixel is classified as a specific landform category. Using the landform information output by the decoder, the site selection analysis of the field base station can be performed. The selection of a suitable location takes into account factors such as terrain, landform, and accessibility.
[0048] In the embodiment of the present application, key geomorphic features are extracted from the semantic segmentation map obtained by the decoder, such as terrain undulations, vegetation cover, water bodies, roads, etc. The extracted geomorphic features are analyzed to evaluate the geographical and environmental conditions of different regions and determine their suitability for base station construction.
[0049] There are many factors to consider when selecting a site, including but not limited to terrain stability, vegetation disturbance, accessibility, ease of maintenance, environmental impact, cost effectiveness, etc. Utilize Geographic Information Systems (GIS) and other automated tools to aid in the analysis and decision-making process.
[0050] Based on the analysis results, a list of potential base station construction sites is generated. A comprehensive evaluation of the candidate sites is conducted, which may include field visits, cost analysis, technical requirements, etc. The final base station location is determined, and the best location that meets technical, economic and environmental requirements is selected. After the site selection is completed, detailed planning for base station construction is carried out.
[0051] In an embodiment of the present application, UAV flying in the sky replaces manual survey, and a survey has a wider atmosphere, shorter time and higher efficiency. And the improved Transformer aerial image semantic segmentation technology run by the onboard computer obtains a large amount of terrain image information at one time, and outputs it in real time, providing a reference for field communication base station site selection survey personnel. The improved Transformer aerial image semantic segmentation technology can obtain richer image information, has a better segmentation effect on object edge information, and greatly saves the time and labor cost of the staff. Therefore, when selecting the site of the base station in the field scene, the UAV hardware system design of the present invention is adopted, and the semantic segmentation software algorithm design based on Transformer is combined, which can assist the staff in performing efficient base station site selection.
[0052] Optionally, before the step of inputting the outdoor aerial image into an encoder in the trained aerial semantic segmentation model and outputting fused image features, the method further includes: Acquire multiple field aerial photography sample images and landform information labels corresponding to the field aerial photography sample images; The combination of each of the field aerial photography sample images and the landform information label is used as a training sample to obtain multiple training samples; and the aerial photography semantic segmentation model is trained using the multiple training samples.
[0053] The aerial photography semantic segmentation model is trained using a plurality of the training samples, including: For any training sample, the training sample is input into the aerial photography semantic segmentation model, and the landform information corresponding to the training sample is output; Using a preset loss function, a loss value is calculated according to the landform information label corresponding to the training sample and the landform information corresponding to the training sample; When the loss value is less than a preset threshold, the training is stopped to obtain the trained aerial photography semantic segmentation model.
[0054] In an embodiment of the present application, a plurality of field aerial sample images are collected, and these images are acquired from a target area and cover different terrain and landform features.
[0055] Each aerial sample image is analyzed and a corresponding landform information label is provided. These labels describe in detail the landform categories in the image, such as woodland, water, road, etc.
[0056] Each aerial sample image and its corresponding landform information label are combined into a training sample to create a dataset for model training.
[0057] These training samples are used to train the aerial photography semantic segmentation model, with the goal of allowing the model to learn how to extract and predict terrain information from images.
[0058] For each training sample, it is input into the aerial photography semantic segmentation model, and the model outputs the predicted terrain information.
[0059] Use the preset loss function (such as cross entropy loss, Dice loss, etc.) to calculate the loss value based on the predicted landform information and the actual landform information label.
[0060] The loss function is used to measure the difference between the model prediction and the actual label and guide the training of the model.
[0061] When the loss value decreases below the preset threshold, the model is considered to have fully learned the landform features in the training data, and training is stopped at this time. The threshold is set based on the performance on the validation set to avoid overfitting.
[0062] After training, a well-trained aerial photography semantic segmentation model is obtained, which can accurately predict landform information from field aerial images.
[0063] After training is completed, it is usually necessary to evaluate the performance of the model on the test set to ensure that the model has good generalization ability. Finally, the trained model is applied to new aerial images to output fused image features and use them to select base station sites in the field.
[0064] Through model training, it is possible to ensure that the aerial photography semantic segmentation model has efficient and accurate performance in the field base station site selection task. This method can significantly improve the automation level of base station site selection and reduce costs while taking into account the impact of terrain on the performance of communication base stations.
[0065] The following is a description of the field base station site selection device provided by the present invention. The field base station site selection device described below and the field base station site selection method described above can be referenced to each other.
[0066] Figure 4 A schematic diagram of the structure of a field base station site selection device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, including: The first output module 410 is used to input the field aerial image into the encoder of the trained aerial semantic segmentation model and output the fused image features; The second output module 420 is used to input the fused image features into the spatial pyramid pooling module based on the large window attention mechanism in the trained aerial photography semantic segmentation model, process them through multiple large window attention layers connected in series in the spatial pyramid pooling module, and output multi-scale image fusion features; The site selection module 430 is used to input the multi-scale image fusion features into the decoder of the trained aerial photography semantic segmentation model, and output the terrain information in the field aerial photography image to select the site of the field base station according to the terrain information.
[0067] Optionally, the device is also used for: The fused image features are input into a first large window attention layer, and a first receptive field image feature is output; Inputting the first receptive field image feature into a second large window attention layer connected in series with the first large window attention layer, and outputting a second receptive field image feature; Input the second receptive field image feature into a third large window attention layer connected in series with the second large window attention layer, and output a third receptive field image feature; The first receptive field image feature, the second receptive field image feature and the third receptive field image feature are spliced to obtain a multi-scale image fusion feature.
[0068] In the embodiment of the present application, drone aerial photos are used to replace human visits, and artificial intelligence networks are used to replace manual analysis of terrain and landform features, directly generating specific semantic segmentation aerial images in real time, giving more image information, saving a lot of computing and time costs, improving processing real-time, and reducing dependence on expert experience, enhancing the scalability of migration between different scenes. At the same time, a spatial pyramid pooling module based on a large window attention mechanism is introduced in the aerial semantic segmentation model to replace the CNN module, which has a good segmentation effect on small targets and object edge information in aerial images, which is better than the current mainstream segmentation method. And it is possible to obtain more sufficient contour information of the image, capture sufficient long-range semantic information, solve the problem of uneven and insignificant distribution of objects in aerial images, and more accurately identify landform information, so as to more accurately select the site for field base stations.
[0069] Figure 5 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the field base station site selection method, which includes: inputting the field aerial image into the encoder in the trained aerial semantic segmentation model, and outputting the fused image features; Inputting the fused image features into the spatial pyramid pooling module based on the large window attention mechanism in the trained aerial photography semantic segmentation model, processing through multiple large window attention layers connected in series in the spatial pyramid pooling module, and outputting multi-scale image fusion features; The multi-scale image fusion features are input into the decoder of the trained aerial photography semantic segmentation model, and the topographic information in the field aerial photography image is output, so as to select the site of the field base station according to the topographic information.
[0070] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0071] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the field base station site selection method provided by the above methods, the method includes: inputting the field aerial image into an encoder in a trained aerial semantic segmentation model, and outputting fused image features; Inputting the fused image features into the spatial pyramid pooling module based on the large window attention mechanism in the trained aerial photography semantic segmentation model, processing through multiple large window attention layers connected in series in the spatial pyramid pooling module, and outputting multi-scale image fusion features; The multi-scale image fusion features are input into the decoder of the trained aerial photography semantic segmentation model, and the topographic information in the field aerial photography image is output, so as to select the site of the field base station according to the topographic information.
[0072] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the field base station site selection method provided by the above methods, the method comprising: Input the field aerial images into the encoder of the trained aerial semantic segmentation model and output the fused image features; Inputting the fused image features into the spatial pyramid pooling module based on the large window attention mechanism in the trained aerial photography semantic segmentation model, processing through multiple large window attention layers connected in series in the spatial pyramid pooling module, and outputting multi-scale image fusion features; The multi-scale image fusion features are input into the decoder of the trained aerial photography semantic segmentation model, and the topographic information in the field aerial photography image is output, so as to select the site of the field base station according to the topographic information.
[0073] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0074] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for selecting a site for a field base station, characterized in that: include: Input the field aerial images into the encoder of the trained aerial semantic segmentation model and output the fused image features; Inputting the fused image features into the spatial pyramid pooling module based on the large window attention mechanism in the trained aerial photography semantic segmentation model, processing through multiple large window attention layers connected in series in the spatial pyramid pooling module, and outputting multi-scale image fusion features; The multi-scale image fusion features are input into the decoder of the trained aerial photography semantic segmentation model, and the topographic information in the field aerial photography image is output, so as to select the site of the field base station according to the topographic information.
2. The method for selecting a site for a field base station according to claim 1, characterized in that: The field aerial image is input into the encoder of the trained aerial semantic segmentation model, and the fused image features are output, including: The outputs of each Swin Transformer module in the encoder are respectively input into the multi-layer perceptrons corresponding to the Swin Transformer modules at different stages, and each image feature is output; Each of the image features is spliced together to obtain a fused image feature.
3. The method for selecting a site for a field base station according to claim 1, characterized in that: The spatial pyramid pooling module includes three large window attention layers, and the fused image features are input into the spatial pyramid pooling module based on the large window attention mechanism in the trained aerial photography semantic segmentation model, and processed by multiple large window attention layers connected in series in the spatial pyramid pooling module to output multi-scale image fusion features, including: The fused image features are input into a first large window attention layer, and a first receptive field image feature is output; Inputting the first receptive field image feature into a second large window attention layer connected in series with the first large window attention layer, and outputting a second receptive field image feature; Input the second receptive field image feature into a third large window attention layer connected in series with the second large window attention layer, and output a third receptive field image feature; The first receptive field image feature, the second receptive field image feature and the third receptive field image feature are concatenated to obtain a multi-scale image fusion feature.
4. The method for selecting a site for a field base station according to claim 1, characterized in that: Before the step of inputting the outdoor aerial image into the encoder of the trained aerial semantic segmentation model and outputting the fused image features, the method further includes: Acquire multiple field aerial photography sample images and landform information labels corresponding to the field aerial photography sample images; The combination of each of the field aerial photography sample images and the landform information label is used as a training sample to obtain multiple training samples; and the aerial photography semantic segmentation model is trained using the multiple training samples.
5. The method for selecting a site for a field base station according to claim 4, characterized in that: The aerial photography semantic segmentation model is trained using a plurality of the training samples, including: For any training sample, the training sample is input into the aerial photography semantic segmentation model, and the landform information corresponding to the training sample is output; Using a preset loss function, a loss value is calculated according to the landform information label corresponding to the training sample and the landform information corresponding to the training sample; When the loss value is less than a preset threshold, the training is stopped to obtain the trained aerial photography semantic segmentation model.
6. A field base station site selection device, characterized in that: include: The first output module is used to input the field aerial image into the encoder of the trained aerial semantic segmentation model and output the fused image features; A second output module is used to input the fused image features into a spatial pyramid pooling module based on a large window attention mechanism in the trained aerial photography semantic segmentation model, process the fused image features through a plurality of large window attention layers connected in series in the spatial pyramid pooling module, and output a multi-scale image fusion feature; The site selection module is used to input the multi-scale image fusion features into the decoder of the trained aerial photography semantic segmentation model, and output the terrain information in the field aerial image to select the site of the field base station according to the terrain information.
7. The outdoor base station site selection device according to claim 6, characterized in that: The device is also used for: The fused image features are input into a first large window attention layer, and a first receptive field image feature is output; Inputting the first receptive field image feature into a second large window attention layer connected in series with the first large window attention layer, and outputting a second receptive field image feature; Input the second receptive field image feature into a third large window attention layer connected in series with the second large window attention layer, and output a third receptive field image feature; The first receptive field image feature, the second receptive field image feature and the third receptive field image feature are concatenated to obtain a multi-scale image fusion feature.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for selecting a site for a field base station as described in any one of claims 1 to 5 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for selecting a site for a field base station as claimed in any one of claims 1 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for selecting a site for a field base station as claimed in any one of claims 1 to 5 is implemented.
