CN116796248A - Forest health care environment assessment system and method - Google Patents

Forest health care environment assessment system and method Download PDF

Info

Publication number
CN116796248A
CN116796248A CN202310841564.7A CN202310841564A CN116796248A CN 116796248 A CN116796248 A CN 116796248A CN 202310841564 A CN202310841564 A CN 202310841564A CN 116796248 A CN116796248 A CN 116796248A
Authority
CN
China
Prior art keywords
feature
panoramic
matrix
forest health
classification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202310841564.7A
Other languages
Chinese (zh)
Inventor
文野
何梅
胡玉安
温兆捷
万仁辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangxi Academy of Forestry
Original Assignee
Jiangxi Academy of Forestry
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangxi Academy of Forestry filed Critical Jiangxi Academy of Forestry
Priority to CN202310841564.7A priority Critical patent/CN116796248A/en
Publication of CN116796248A publication Critical patent/CN116796248A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

A forest health environment assessment system and method are disclosed. Firstly, carrying out image preprocessing on a panoramic image of a forest health environment to be evaluated, then obtaining a panoramic feature matrix through a convolutional neural network model, then carrying out feature distribution optimization on the panoramic feature matrix to obtain an optimized panoramic feature matrix, then carrying out feature matrix segmentation on the optimized panoramic feature matrix to obtain a plurality of local feature matrices, then expanding the plurality of local feature matrices into a plurality of local feature vectors, then obtaining classification feature vectors through a context encoder, and finally, passing the classification feature vectors through a classifier to obtain a classification result for representing whether the plant diversity of the forest health environment to be evaluated meets a preset standard. Thus, the detection of the plant diversity of the forest health environment can be realized.

Description

森林康养环境评估系统及其方法Forest health care environment assessment system and method

技术领域Technical field

本申请涉及智能化评估领域,且更为具体地,涉及一种森林康养环境评估系统及其方法。This application relates to the field of intelligent assessment, and more specifically, to a forest health care environment assessment system and its method.

背景技术Background technique

森林康养是指利用森林的自然资源和生态服务,为人们提供身心健康的保障和促进。森林康养环境是指具有一定的森林覆盖率、生物多样性、空气质量、水质量、噪音水平、景观美感等要素的自然环境,能够满足人们的康养需求和期望。Forest health care refers to the use of natural resources and ecological services of forests to provide protection and promotion of physical and mental health for people. Forest health care environment refers to a natural environment with certain forest coverage, biodiversity, air quality, water quality, noise level, landscape beauty and other factors, which can meet people's health care needs and expectations.

在现代都市生活快节奏和高压力的情况下,森林康养成为一种受欢迎的生活方式。为了有效地开发和利用森林康养资源,需要对森林康养环境进行科学的评估,以便确定其康养价值和潜力,以及制定合理的管理和保护措施。In the fast pace and high pressure of modern urban life, forest wellness has become a popular way of life. In order to effectively develop and utilize forest health resources, it is necessary to conduct a scientific assessment of the forest health environment in order to determine its health value and potential, and to formulate reasonable management and protection measures.

因此,期望一种优化的森林康养环境评估系统。Therefore, an optimized forest health environment assessment system is desired.

发明内容Contents of the invention

为了解决上述技术问题,提出了本申请。本申请的实施例提供了一种森林康养环境评估系统及其方法。其首先对待评估森林康养环境的全景图进行图像预处理后全景图通过卷积神经网络模型以得到全景特征矩阵,接着,对所述全景特征矩阵进行特征分布优化以得到优化全景特征矩阵,然后,对所述优化全景特征矩阵进行特征矩阵切分以得到多个局部特征矩阵,接着,将所述多个局部特征矩阵展开为多个局部特征向量后通过上下文编码器以得到分类特征向量,最后,将所述分类特征向量通过分类器以得到用于表示待评估森林康养环境的植物多样性是否符合预定标准的分类结果。这样,可以实现对森林康养环境的植物多样性进行检测。In order to solve the above technical problems, this application is proposed. Embodiments of the present application provide a forest health care environment assessment system and a method thereof. First, image preprocessing is performed on the panorama of the forest health care environment to be evaluated, and the panorama is passed through a convolutional neural network model to obtain a panoramic feature matrix. Then, the feature distribution of the panoramic feature matrix is optimized to obtain an optimized panoramic feature matrix, and then , perform feature matrix segmentation on the optimized panoramic feature matrix to obtain multiple local feature matrices, then expand the multiple local feature matrices into multiple local feature vectors and then pass them through the context encoder to obtain the classification feature vector, and finally , passing the classification feature vector through a classifier to obtain a classification result indicating whether the plant diversity of the forest health environment to be evaluated meets the predetermined standard. In this way, the plant diversity of the forest health care environment can be detected.

根据本申请的一个方面,提供了一种森林康养环境评估系统,其包括:According to one aspect of the present application, a forest health care environment assessment system is provided, which includes:

全景图采集模块,用于获取由无人机采集的待评估森林康养环境的全景图;The panoramic image acquisition module is used to acquire the panoramic image of the forest health environment to be evaluated collected by the drone;

图像预处理模块,用于对所述待评估森林康养环境的全景图进行图像预处理以得到预处理后全景图;An image preprocessing module, used to perform image preprocessing on the panorama of the forest health care environment to be evaluated to obtain a preprocessed panorama;

全景图像特征提取模块,用于将所述预处理后全景图通过作为特征提取器的卷积神经网络模型以得到全景特征矩阵;A panoramic image feature extraction module, used to pass the preprocessed panorama through a convolutional neural network model as a feature extractor to obtain a panoramic feature matrix;

特征优化模块,用于对所述全景特征矩阵进行特征分布优化以得到优化全景特征矩阵;A feature optimization module, used to perform feature distribution optimization on the panoramic feature matrix to obtain an optimized panoramic feature matrix;

矩阵切分模块,用于对所述优化全景特征矩阵进行特征矩阵切分以得到多个局部特征矩阵;A matrix segmentation module, used to segment the optimized panoramic feature matrix into feature matrices to obtain multiple local feature matrices;

全局图像语义编码模块,用于将所述多个局部特征矩阵展开为多个局部特征向量后通过基于转换器的上下文编码器以得到分类特征向量;以及A global image semantic encoding module, used to expand the multiple local feature matrices into multiple local feature vectors and then pass the converter-based context encoder to obtain the classification feature vector; and

环境评估模块,用于将所述分类特征向量通过分类器以得到分类结果,所述分类结果用于表示待评估森林康养环境的植物多样性是否符合预定标准。An environmental assessment module is used to pass the classification feature vector through a classifier to obtain a classification result. The classification result is used to indicate whether the plant diversity of the forest health environment to be evaluated meets predetermined standards.

在上述的森林康养环境评估系统中,所述全景图像特征提取模块,用于:In the above-mentioned forest health care environment assessment system, the panoramic image feature extraction module is used for:

使用所述作为特征提取器的卷积神经网络模型的各层在层的正向传递中对输入数据分别进行卷积处理、沿通道维度的均值池化处理和非线性激活处理以由所述作为特征提取器的卷积神经网络模型的最后一层输出所述全景特征矩阵,其中,所述作为特征提取器的卷积神经网络模型的第一层的输入为所述预处理后全景图。Each layer of the convolutional neural network model as a feature extractor is used to perform convolution processing, mean pooling processing along the channel dimension and nonlinear activation processing on the input data in the forward pass of the layer to obtain the input data as described as The last layer of the convolutional neural network model of the feature extractor outputs the panoramic feature matrix, wherein the input of the first layer of the convolutional neural network model serving as the feature extractor is the preprocessed panorama.

在上述的森林康养环境评估系统中,所述特征优化模块,包括:In the above-mentioned forest health care environment assessment system, the feature optimization module includes:

优化因数计算单元,用于计算所述全景特征矩阵中各个位置特征值的位置信息图式场景注意力无偏估计因数以得到多个位置信息图式场景注意力无偏估计因数;以及An optimization factor calculation unit is used to calculate the position information pattern scene attention unbiased estimation factor of each position feature value in the panoramic feature matrix to obtain multiple position information pattern scene attention unbiased estimation factors; and

加权优化单元,用于以所述多个位置信息图式场景注意力无偏估计因数作为加权系数对所述全景特征矩阵的各个位置特征值进行加权优化以得到所述优化全景特征矩阵。A weighted optimization unit is configured to perform weighted optimization on each position feature value of the panoramic feature matrix using the multiple position information pattern scene attention unbiased estimation factors as weighting coefficients to obtain the optimized panoramic feature matrix.

在上述的森林康养环境评估系统中,所述优化因数计算单元,用于:In the above-mentioned forest health care environment assessment system, the optimization factor calculation unit is used for:

以如下优化公式计算所述全景特征矩阵中各个位置特征值的位置信息图式场景注意力无偏估计因数以得到所述多个位置信息图式场景注意力无偏估计因数;Calculate the position information graph scene attention unbiased estimation factor of each position feature value in the panoramic feature matrix using the following optimization formula to obtain the multiple position information graph scene attention unbiased estimation factors;

其中,所述优化公式为:Among them, the optimization formula is:

其中,fi是所述全景特征矩阵中各个位置特征值,(xi,yi)为所述全景特征矩阵的各个位置特征值的位置坐标,且是所述全景特征矩阵的所有特征值的全局均值,/>和/>分别代表不同的将二维实数映射为一维实数的函数,W和H分别是所述全景特征矩阵的宽度和高度,log表示以2为底的对数函数,wi表示所述多个位置信息图式场景注意力无偏估计因数中的各个位置信息图式场景注意力无偏估计因数。Wherein, fi is each position feature value in the panoramic feature matrix, (xi , y i ) is the position coordinate of each position feature value in the panoramic feature matrix, and is the global mean of all eigenvalues of the panoramic eigenmatrix,/> and/> respectively represent different functions that map two-dimensional real numbers to one-dimensional real numbers, W and H are respectively the width and height of the panoramic feature matrix, log represents the logarithmic function with base 2, and w i represents the multiple positions Infographic scene attention unbiased estimation factors for each position in the infographic scene attention unbiased estimation factor.

在上述的森林康养环境评估系统中,所述全局图像语义编码模块,用于:In the above-mentioned forest health environment assessment system, the global image semantic encoding module is used for:

将所述多个局部特征向量通过所述基于转换器的上下文编码器以得到多个局部语义特征向量;以及Passing the plurality of local feature vectors through the transformer-based context encoder to obtain a plurality of local semantic feature vectors; and

将所述多个局部语义特征向量进行级联以得到所述分类特征向量。The plurality of local semantic feature vectors are concatenated to obtain the classification feature vector.

在上述的森林康养环境评估系统中,所述环境评估模块,包括:In the above-mentioned forest health environmental assessment system, the environmental assessment module includes:

全连接编码单元,用于使用所述分类器的多个全连接层对所述分类特征向量进行全连接编码以得到编码分类特征向量;以及a fully connected encoding unit, configured to perform fully connected encoding on the classification feature vector using multiple fully connected layers of the classifier to obtain a coded classification feature vector; and

分类单元,用于将所述编码分类特征向量通过所述分类器的Softmax分类函数以得到所述分类结果。A classification unit, used to pass the encoded classification feature vector through the Softmax classification function of the classifier to obtain the classification result.

根据本申请的另一个方面,提供了一种森林康养环境评估方法,其包括:According to another aspect of the present application, a forest health care environment assessment method is provided, which includes:

获取由无人机采集的待评估森林康养环境的全景图;Obtain a panoramic view of the forest health environment to be assessed collected by drone;

对所述待评估森林康养环境的全景图进行图像预处理以得到预处理后全景图;Perform image preprocessing on the panorama of the forest health care environment to be evaluated to obtain a preprocessed panorama;

将所述预处理后全景图通过作为特征提取器的卷积神经网络模型以得到全景特征矩阵;Pass the preprocessed panorama through a convolutional neural network model as a feature extractor to obtain a panoramic feature matrix;

对所述全景特征矩阵进行特征分布优化以得到优化全景特征矩阵;Perform feature distribution optimization on the panoramic feature matrix to obtain an optimized panoramic feature matrix;

对所述优化全景特征矩阵进行特征矩阵切分以得到多个局部特征矩阵;Perform feature matrix segmentation on the optimized panoramic feature matrix to obtain multiple local feature matrices;

将所述多个局部特征矩阵展开为多个局部特征向量后通过基于转换器的上下文编码器以得到分类特征向量;以及Expand the multiple local feature matrices into multiple local feature vectors and then pass them through a context encoder based on a converter to obtain a classification feature vector; and

将所述分类特征向量通过分类器以得到分类结果,所述分类结果用于表示待评估森林康养环境的植物多样性是否符合预定标准。The classification feature vector is passed through a classifier to obtain a classification result. The classification result is used to indicate whether the plant diversity of the forest health environment to be evaluated meets the predetermined standard.

在上述的森林康养环境评估方法中,将所述预处理后全景图通过作为特征提取器的卷积神经网络模型以得到全景特征矩阵,包括:In the above forest health care environment assessment method, the preprocessed panorama is passed through the convolutional neural network model as a feature extractor to obtain a panoramic feature matrix, including:

使用所述作为特征提取器的卷积神经网络模型的各层在层的正向传递中对输入数据分别进行卷积处理、沿通道维度的均值池化处理和非线性激活处理以由所述作为特征提取器的卷积神经网络模型的最后一层输出所述全景特征矩阵,其中,所述作为特征提取器的卷积神经网络模型的第一层的输入为所述预处理后全景图。Each layer of the convolutional neural network model as a feature extractor is used to perform convolution processing, mean pooling processing along the channel dimension and nonlinear activation processing on the input data in the forward pass of the layer to obtain the input data as described as The last layer of the convolutional neural network model of the feature extractor outputs the panoramic feature matrix, wherein the input of the first layer of the convolutional neural network model serving as the feature extractor is the preprocessed panorama.

在上述的森林康养环境评估方法中,对所述全景特征矩阵进行特征分布优化以得到优化全景特征矩阵,包括:In the above forest health care environment assessment method, feature distribution optimization is performed on the panoramic feature matrix to obtain an optimized panoramic feature matrix, including:

计算所述全景特征矩阵中各个位置特征值的位置信息图式场景注意力无偏估计因数以得到多个位置信息图式场景注意力无偏估计因数;以及Calculate the position information pattern scene attention unbiased estimation factor of each position feature value in the panoramic feature matrix to obtain multiple position information pattern scene attention unbiased estimation factors; and

以所述多个位置信息图式场景注意力无偏估计因数作为加权系数对所述全景特征矩阵的各个位置特征值进行加权优化以得到所述优化全景特征矩阵。Each position feature value of the panoramic feature matrix is weighted and optimized using the multiple position information graph scene attention unbiased estimation factors as weighting coefficients to obtain the optimized panoramic feature matrix.

在上述的森林康养环境评估方法中,计算所述全景特征矩阵中各个位置特征值的位置信息图式场景注意力无偏估计因数以得到多个位置信息图式场景注意力无偏估计因数,包括:In the above forest health care environment assessment method, the position information schema scene attention unbiased estimation factor of each position feature value in the panoramic feature matrix is calculated to obtain multiple position information schema scene attention unbiased estimation factors, include:

以如下优化公式计算所述全景特征矩阵中各个位置特征值的位置信息图式场景注意力无偏估计因数以得到所述多个位置信息图式场景注意力无偏估计因数;Calculate the position information graph scene attention unbiased estimation factor of each position feature value in the panoramic feature matrix using the following optimization formula to obtain the multiple position information graph scene attention unbiased estimation factors;

其中,所述优化公式为:Among them, the optimization formula is:

其中,fi是所述全景特征矩阵中各个位置特征值,(xi,yi)为所述全景特征矩阵的各个位置特征值的位置坐标,且是所述全景特征矩阵的所有特征值的全局均值,/>和/>分别代表不同的将二维实数映射为一维实数的函数,W和H分别是所述全景特征矩阵的宽度和高度,log表示以2为底的对数函数,wi表示所述多个位置信息图式场景注意力无偏估计因数中的各个位置信息图式场景注意力无偏估计因数。Wherein, fi is each position feature value in the panoramic feature matrix, (xi , y i ) is the position coordinate of each position feature value in the panoramic feature matrix, and is the global mean of all eigenvalues of the panoramic eigenmatrix,/> and/> respectively represent different functions that map two-dimensional real numbers to one-dimensional real numbers, W and H are respectively the width and height of the panoramic feature matrix, log represents the logarithmic function with base 2, and w i represents the multiple positions Infographic scene attention unbiased estimation factors for each position in the infographic scene attention unbiased estimation factor.

与现有技术相比,本申请提供的森林康养环境评估系统及其方法,其首先对待评估森林康养环境的全景图进行图像预处理后全景图通过卷积神经网络模型以得到全景特征矩阵,接着,对所述全景特征矩阵进行特征分布优化以得到优化全景特征矩阵,然后,对所述优化全景特征矩阵进行特征矩阵切分以得到多个局部特征矩阵,接着,将所述多个局部特征矩阵展开为多个局部特征向量后通过上下文编码器以得到分类特征向量,最后,将所述分类特征向量通过分类器以得到用于表示待评估森林康养环境的植物多样性是否符合预定标准的分类结果。这样,可以实现对森林康养环境的植物多样性进行检测。Compared with the existing technology, the forest health care environment assessment system and method provided by this application first perform image preprocessing on the panorama of the forest health care environment to be evaluated, and then the panorama passes through the convolutional neural network model to obtain the panoramic feature matrix. , then perform feature distribution optimization on the panoramic feature matrix to obtain an optimized panoramic feature matrix, then perform feature matrix segmentation on the optimized panoramic feature matrix to obtain multiple local feature matrices, and then divide the multiple local feature matrices into The feature matrix is expanded into multiple local feature vectors and then passed through the context encoder to obtain the classification feature vector. Finally, the classification feature vector is passed through the classifier to obtain whether the plant diversity of the forest health environment to be evaluated meets the predetermined standards. classification results. In this way, the plant diversity of the forest health care environment can be detected.

附图说明Description of the drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员而言,在没有做出创造性劳动的前提下,还可以根据这些附图获得其他的附图。以下附图并未刻意按实际尺寸等比例缩放绘制,重点在于示出本申请的主旨。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort. The following drawings are not intentionally scaled to actual sizes, but are focused on illustrating the gist of the present application.

图1为根据本申请实施例的森林康养环境评估系统的应用场景图。Figure 1 is an application scenario diagram of the forest health care environment assessment system according to an embodiment of the present application.

图2为根据本申请实施例的森林康养环境评估系统的框图示意图。Figure 2 is a schematic block diagram of a forest health care environment assessment system according to an embodiment of the present application.

图3为根据本申请实施例的森林康养环境评估系统中的所述特征优化模块的框图示意图。Figure 3 is a schematic block diagram of the feature optimization module in the forest health care environment assessment system according to an embodiment of the present application.

图4为根据本申请实施例的森林康养环境评估系统中的所述环境评估模块的框图示意图。Figure 4 is a schematic block diagram of the environmental assessment module in the forest health care environmental assessment system according to an embodiment of the present application.

图5为根据本申请实施例的森林康养环境评估方法的流程图。Figure 5 is a flow chart of a forest health care environment assessment method according to an embodiment of the present application.

图6为根据本申请实施例的森林康养环境评估方法的系统架构的示意图。Figure 6 is a schematic diagram of the system architecture of the forest health care environment assessment method according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合附图对本申请实施例中的技术方案进行清楚、完整地描述,显而易见地,所描述的实施例仅仅是本申请的部分实施例,而不是全部的实施例。基于本申请实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,也属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts also fall within the scope of protection of this application.

如本申请和权利要求书中所示,除非上下文明确提示例外情形,“一”、“一个”、“一种”和/或“该”等词并非特指单数,也可包括复数。一般说来,术语“包括”与“包含”仅提示包括已明确标识的步骤和元素,而这些步骤和元素不构成一个排它性的罗列,方法或者设备也可能包含其他的步骤或元素。As shown in this application and claims, words such as "a", "an", "an" and/or "the" do not specifically refer to the singular and may include the plural unless the context clearly indicates an exception. Generally speaking, the terms "comprising" and "comprising" only imply the inclusion of clearly identified steps and elements, and these steps and elements do not constitute an exclusive list. The method or apparatus may also include other steps or elements.

虽然本申请对根据本申请的实施例的系统中的某些模块做出了各种引用,然而,任何数量的不同模块可以被使用并运行在用户终端和/或服务器上。所述模块仅是说明性的,并且所述系统和方法的不同方面可以使用不同模块。Although this application makes various references to certain modules in systems according to embodiments of the application, any number of different modules may be used and run on user terminals and/or servers. The modules described are illustrative only, and different modules may be used by different aspects of the systems and methods.

本申请中使用了流程图用来说明根据本申请的实施例的系统所执行的操作。应当理解的是,前面或下面操作不一定按照顺序来精确地执行。相反,根据需要,可以按照倒序或同时处理各种步骤。同时,也可以将其他操作添加到这些过程中,或从这些过程移除某一步或数步操作。Flowcharts are used in this application to illustrate operations performed by systems according to embodiments of this application. It should be understood that the preceding or following operations are not necessarily performed in exact order. Instead, the various steps can be processed in reverse order or simultaneously, as appropriate. At the same time, you can add other operations to these processes, or remove a step or steps from these processes.

下面,将参考附图详细地描述根据本申请的示例实施例。显然,所描述的实施例仅仅是本申请的一部分实施例,而不是本申请的全部实施例,应理解,本申请不受这里描述的示例实施例的限制。Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. It should be understood that the present application is not limited by the example embodiments described here.

如上所述,在现代都市生活快节奏和高压力的情况下,森林康养成为一种受欢迎的生活方式。为了有效地开发和利用森林康养资源,需要对森林康养环境进行科学的评估,以便确定其康养价值和潜力,以及制定合理的管理和保护措施。因此,期望一种优化的森林康养环境评估系统。As mentioned above, in the fast pace and high pressure of modern urban life, forest wellness has become a popular way of life. In order to effectively develop and utilize forest health resources, it is necessary to conduct a scientific assessment of the forest health environment in order to determine its health value and potential, and to formulate reasonable management and protection measures. Therefore, an optimized forest health environment assessment system is desired.

相应地,考虑到在实际进行森林康养环境的评估过程中,关键在于对森林康养环境的植物多样性进行分析检测,以保证植物多样性满足预定要求。基于此,在本申请的技术方案中,期望通过无人机来采集待评估森林康养环境的全景图,并通过对所述全景图进行基于机器视觉的图像分析和处理以评估所述待评估森林康养环境的植物多样性是否符合预定标准。但是,由于无人机采集的待评估森林康养环境的全景图中存在有大量的无用干扰信息,并且关于森林康养环境的植物类别特征信息在图像中为小尺度的隐含特征信息,难以通过传统的特征提取方式进行有效地捕捉。因此,在此过程中,难点在于如何进行所述待评估森林康养环境的全景图中关于森林康养环境的植物类别隐含特征信息的充分表达,以此来对森林康养环境的植物多样性进行检测,从而确定其康养价值和潜力,以制定合理的管理和保护措施。Accordingly, considering that in the actual assessment process of the forest health care environment, the key is to analyze and detect the plant diversity of the forest health care environment to ensure that the plant diversity meets the predetermined requirements. Based on this, in the technical solution of this application, it is expected to use drones to collect a panoramic view of the forest health environment to be evaluated, and to evaluate the panoramic view by performing image analysis and processing based on machine vision on the panoramic view. Whether the plant diversity of the forest health environment meets predetermined standards. However, since there is a large amount of useless interference information in the panorama of the forest health environment to be evaluated collected by drones, and the plant category feature information about the forest health environment is small-scale implicit feature information in the image, it is difficult to do so. Effectively captured through traditional feature extraction methods. Therefore, in this process, the difficulty lies in how to fully express the implicit characteristic information about the plant categories of the forest health care environment in the panoramic view of the forest health care environment to be evaluated, so as to evaluate the diversity of plants in the forest health care environment. To determine their health value and potential, appropriate management and protection measures can be formulated.

近年来,深度学习以及神经网络已经广泛应用于计算机视觉、自然语言处理、文本信号处理等领域。深度学习以及神经网络的发展为挖掘所述待评估森林康养环境的全景图中关于森林康养环境的植物类别隐含特征信息提供了新的解决思路和方案。In recent years, deep learning and neural networks have been widely used in computer vision, natural language processing, text signal processing and other fields. The development of deep learning and neural networks provides new solutions and solutions for mining the hidden feature information of plant categories of the forest health environment in the panoramic view of the forest health environment to be evaluated.

具体地,在本申请的技术方案中,首先,获取由无人机采集的待评估森林康养环境的全景图。应可以理解,在实际进行所述待评估森林康养环境的全景图的采集过程中,采集到的原始图像可能会受到噪声、变形或者边缘失真等因素的影响,这将会对后续处理算法的准确性和稳定性产生影响。因此,在进行所述待评估森林康养环境的全景图的特征提取以进行所述待评估森林康养环境的植物多样性检测前,需要对所述待评估森林康养环境的全景图进行图像预处理以得到预处理后全景图,以此来去除原始图像中的噪声、平滑边缘以及纠正非线性效应等。也就是说,通过这样的预处理过程,可以得到更加清晰、准确和稳定的全景图,有助于提高后续分类的准确性。Specifically, in the technical solution of this application, first, a panoramic view of the forest health environment to be evaluated collected by a drone is obtained. It should be understood that during the actual collection process of the panorama of the forest health environment to be evaluated, the original image collected may be affected by factors such as noise, deformation or edge distortion, which will affect the subsequent processing algorithm. accuracy and stability are affected. Therefore, before performing feature extraction of the panorama of the forest health environment to be evaluated to detect the plant diversity of the forest health environment to be evaluated, it is necessary to image the panorama of the forest health environment to be evaluated. Preprocessing to obtain a preprocessed panorama to remove noise, smooth edges, and correct nonlinear effects in the original image. In other words, through such a preprocessing process, a clearer, more accurate and stable panorama can be obtained, which helps to improve the accuracy of subsequent classification.

然后,使用在图像的隐含特征提取方面具有优异表现的作为特征提取器的卷积神经网络模型来进行所述预处理后全景图的特征挖掘,以此来提取出所述预处理后全景图中关于森林康养环境的植物类别的隐含特征分布信息,从而得到全景特征矩阵。Then, a convolutional neural network model as a feature extractor that has excellent performance in extracting implicit features of images is used to perform feature mining of the preprocessed panorama, thereby extracting the preprocessed panorama. The implicit feature distribution information about the plant categories in the forest health care environment is obtained to obtain the panoramic feature matrix.

进一步地,考虑到由于所述作为特征提取器的卷积神经网络模型虽然能够提取出所述预处理后全景图中关于森林康养环境的植物类别的局部隐含特征分布信息,但是由于卷积运算的固有局限性,纯CNN的方法很难学习明确的全局和远程语义信息交互。因此,在本申请的技术方案中,进一步对所述全景特征矩阵进行特征矩阵切分以得到多个局部特征矩阵后,将所述多个局部特征矩阵展开为多个局部特征向量后通过基于转换器的上下文编码器中进行编码,以提取出所述预处理后全景图中关于森林康养环境的植物类别的各个局部隐含特征基于全局的上下文图像语义关联特征信息,从而得到分类特征向量。Further, considering that although the convolutional neural network model as a feature extractor can extract the local implicit feature distribution information about the plant categories of the forest health care environment in the preprocessed panorama, due to the convolution Due to the inherent limitations of operations, it is difficult for pure CNN methods to learn clear global and long-range semantic information interactions. Therefore, in the technical solution of the present application, after further performing feature matrix segmentation on the panoramic feature matrix to obtain multiple local feature matrices, the multiple local feature matrices are expanded into multiple local feature vectors and then transformed based on Encoding is performed in the context encoder of the device to extract each local implicit feature of the plant category of the forest health care environment in the preprocessed panorama based on the global context image semantic association feature information, thereby obtaining a classification feature vector.

接着,进一步再将所述分类特征向量通过分类器中进行分类处理,以得到用于表示待评估森林康养环境的植物多样性是否符合预定标准的分类结果。也就是,在本申请的技术方案中,所述分类器的标签包括待评估森林康养环境的植物多样性符合预定标准(第一标签),以及,待评估森林康养环境的植物多样性不符合预定标准(第二标签),其中,所述分类器通过软最大值函数来确定所述分类特征向量属于哪个分类标签。值得注意的是,这里的所述第一标签p1和所述第二标签p2并不包含人为设定的概念,实际上在训练过程当中,计算机模型并没有“待评估森林康养环境的植物多样性是否符合预定标准”这种概念,其只是有两种分类标签且输出特征在这两个分类标签下的概率,即p1和p2之和为一。因此,待评估森林康养环境的植物多样性是否符合预定标准的分类结果实际上是通过分类标签转化为符合自然规律的二分类的类概率分布,实质上用到的是标签的自然概率分布的物理意义,而不是“待评估森林康养环境的植物多样性是否符合预定标准”的语言文本意义。应可以理解,在本申请的技术方案中,所述分类器的分类标签为待评估森林康养环境的植物多样性是否符合预定标准的检测评估标签,因此,在得到所述分类结果后,可基于所述分类结果来对森林康养环境的植物多样性进行检测,从而确定其康养价值和潜力。Then, the classification feature vector is further processed through a classifier to obtain a classification result indicating whether the plant diversity of the forest health environment to be evaluated meets the predetermined standard. That is to say, in the technical solution of the present application, the labels of the classifier include that the plant diversity of the forest health environment to be evaluated meets the predetermined standard (the first label), and the plant diversity of the forest health environment to be evaluated does not meet the predetermined standard (the first label). The predetermined criterion (second label) is met, wherein the classifier determines which classification label the classification feature vector belongs to through a soft maximum function. It is worth noting that the first label p1 and the second label p2 here do not contain artificially set concepts. In fact, during the training process, the computer model does not have the diversity of plants to be evaluated in the forest health environment. The concept of "whether the property meets the predetermined standards" is just the probability that there are two classification labels and the output feature is under these two classification labels, that is, the sum of p1 and p2 is one. Therefore, the classification result to be evaluated to see whether the plant diversity of the forest health environment meets the predetermined standards is actually converted into a binary class probability distribution that conforms to the laws of nature through classification labels. In essence, the natural probability distribution of the labels is used. The physical meaning, rather than the linguistic textual meaning of "whether the plant diversity of the forest health environment to be assessed meets the predetermined standards". It should be understood that in the technical solution of the present application, the classification label of the classifier is a detection and evaluation label for whether the plant diversity of the forest health environment to be evaluated meets the predetermined standards. Therefore, after obtaining the classification result, the Based on the classification results, the plant diversity of the forest health environment is detected to determine its health value and potential.

特别地,在本申请的技术方案中,考虑到所述全景图的每个像素的源图像语义通过作为特征提取器的卷积神经网络模型的图像语义关联特征提取,所得到的所述全景特征矩阵的每个位置的特征值也具有相应的位置属性,由此,所述全景特征矩阵进行特征矩阵切分得到的所述多个局部特征矩阵在矩阵内和矩阵间均具有位置关联表达属性。In particular, in the technical solution of the present application, considering that the source image semantics of each pixel of the panorama is extracted through the image semantic correlation feature of the convolutional neural network model as a feature extractor, the resulting panoramic features The eigenvalues of each position of the matrix also have corresponding position attributes. Therefore, the multiple local feature matrices obtained by performing feature matrix segmentation on the panoramic feature matrix have position-related expression attributes both within the matrix and between matrices.

但是,在将所述多个局部特征矩阵展开为多个局部特征向量时,涉及到所述局部特征矩阵的特征值的按位置聚合,而基于转换器的上下文编码器在进行上下文语义编码时,基本上忽略了位置属性,因此,需要提升所述全景特征矩阵的各个特征值在按位置聚合时对于所述全景特征矩阵的原特征流形的表达效果。However, when expanding the multiple local feature matrices into multiple local feature vectors, it involves position-wise aggregation of feature values of the local feature matrices, and when the transformer-based context encoder performs contextual semantic encoding, The position attribute is basically ignored. Therefore, it is necessary to improve the expression effect of each feature value of the panoramic feature matrix on the original feature manifold of the panoramic feature matrix when aggregated by position.

基于此,本申请的申请人计算所述全景特征矩阵的每个位置的特征值的位置信息图式场景注意力无偏估计因数,表示为:Based on this, the applicant of this application calculates the position information graphical scene attention unbiased estimation factor of the eigenvalue of each position of the panoramic feature matrix, which is expressed as:

其中和/>分别代表不同的将二维实数映射为一维实数的函数,例如,实现为非线性激活函数激活加权和加偏置的表示,W和H分别是所述全景特征矩阵的宽度和高度,(xi,yi)为所述全景特征矩阵的各个特征值fi的坐标,例如,可以是特征矩阵的任意顶点或者中心作为坐标原点,且/>是所述全景特征矩阵的所有特征值的全局均值。in and/> Respectively represent different functions that map two-dimensional real numbers to one-dimensional real numbers, for example, implemented as a nonlinear activation function activation weighted and biased representation, W and H are respectively the width and height of the panoramic feature matrix, (x i , yi ) are the coordinates of each eigenvalue f i of the panoramic feature matrix. For example, any vertex or center of the feature matrix can be used as the origin of the coordinates, and/> is the global mean of all eigenvalues of the panoramic feature matrix.

这里,所述位置信息图式场景注意力无偏估计因数通过使用融合特征值相对于整体特征分布的高维空间位置的相对几何方向和相对几何距离的图式信息表示和高维特征本身的信息表示的更高阶的特征表达,来在特征值对整体特征分布的按位置聚合时进一步进行特征流形的形状信息聚合,以实现高维空间内的基于特征流形的各个子流形集合形状分布的场景几何的无偏估计,以准确表达特征矩阵的流形形状的几何性质。这样,通过以所述位置信息图式场景注意力无偏估计因数对所述全景特征矩阵的各个位置的特征值进行加权,就可以提升所述全景特征矩阵的各个特征值在按位置聚合时对于所述全景特征矩阵的原特征流形的表达效果,从而提升从所述全局特征矩阵得到的所述分类特征向量的特征表达效果,以提升其通过分类器得到的分类结果的准确性。这样,能够更加准确地对森林康养环境的植物多样性进行检测评估,从而确定其康养价值和潜力来制定合理的管理和保护措施。Here, the position information schema scene attention unbiased estimation factor is expressed by using schema information that fuses the relative geometric direction and relative geometric distance of the high-dimensional spatial position of the feature value with respect to the overall feature distribution and the information of the high-dimensional feature itself. The higher-order feature expression is used to further aggregate the shape information of the feature manifold when the feature value is aggregated by position on the overall feature distribution, so as to realize the set shape of each sub-manifold based on the feature manifold in the high-dimensional space. Unbiased estimation of distributed scene geometry to accurately express the geometric properties of the manifold shape of the feature matrix. In this way, by weighting the feature values of each position of the panoramic feature matrix with the position information graph scene attention unbiased estimation factor, it is possible to improve the performance of each feature value of the panoramic feature matrix when aggregating by position. The expression effect of the original feature manifold of the panoramic feature matrix improves the feature expression effect of the classification feature vector obtained from the global feature matrix, so as to improve the accuracy of the classification result obtained by the classifier. In this way, the plant diversity of the forest health environment can be more accurately detected and evaluated, thereby determining its health value and potential to formulate reasonable management and protection measures.

图1为根据本申请实施例的森林康养环境评估系统的应用场景图。如图1所示,在该应用场景中,首先,获取由无人机(例如,图1中所示意的N)采集的待评估森林康养环境的全景图(例如,图1中所示意的D),然后,将所述待评估森林康养环境的全景图输入至部署有森林康养环境评估算法的服务器中(例如,图1中所示意的S),其中,所述服务器能够使用所述森林康养环境评估算法对所述待评估森林康养环境的全景图进行处理以得到用于表示待评估森林康养环境的植物多样性是否符合预定标准的分类结果。Figure 1 is an application scenario diagram of the forest health care environment assessment system according to an embodiment of the present application. As shown in Figure 1, in this application scenario, first, a panoramic view of the forest health environment to be evaluated (for example, N illustrated in Figure 1) collected by a drone (for example, N illustrated in Figure 1) is obtained D), then input the panoramic view of the forest health environment to be evaluated into a server (for example, S shown in Figure 1) where the forest health environment assessment algorithm is deployed, where the server can use the The forest health care environment assessment algorithm processes the panorama of the forest health care environment to be evaluated to obtain a classification result indicating whether the plant diversity of the forest health care environment to be evaluated meets predetermined standards.

在介绍了本申请的基本原理之后,下面将参考附图来具体介绍本申请的各种非限制性实施例。After introducing the basic principles of the present application, various non-limiting embodiments of the present application will be specifically introduced below with reference to the accompanying drawings.

图2为根据本申请实施例的森林康养环境评估系统的框图示意图。如图2所示,根据本申请实施例的森林康养环境评估系统100,包括:全景图采集模块110,用于获取由无人机采集的待评估森林康养环境的全景图;图像预处理模块120,用于对所述待评估森林康养环境的全景图进行图像预处理以得到预处理后全景图;全景图像特征提取模块130,用于将所述预处理后全景图通过作为特征提取器的卷积神经网络模型以得到全景特征矩阵;特征优化模块140,用于对所述全景特征矩阵进行特征分布优化以得到优化全景特征矩阵;矩阵切分模块150,用于对所述优化全景特征矩阵进行特征矩阵切分以得到多个局部特征矩阵;全局图像语义编码模块160,用于将所述多个局部特征矩阵展开为多个局部特征向量后通过基于转换器的上下文编码器以得到分类特征向量;以及,环境评估模块170,用于将所述分类特征向量通过分类器以得到分类结果,所述分类结果用于表示待评估森林康养环境的植物多样性是否符合预定标准。Figure 2 is a schematic block diagram of a forest health care environment assessment system according to an embodiment of the present application. As shown in Figure 2, the forest health care environment assessment system 100 according to the embodiment of the present application includes: a panorama acquisition module 110, used to obtain a panorama of the forest health care environment to be evaluated collected by a drone; image preprocessing Module 120 is used to perform image preprocessing on the panorama of the forest health environment to be evaluated to obtain a preprocessed panorama; the panoramic image feature extraction module 130 is used to extract the preprocessed panorama as a feature The convolutional neural network model of the processor is used to obtain the panoramic feature matrix; the feature optimization module 140 is used to perform feature distribution optimization on the panoramic feature matrix to obtain the optimized panoramic feature matrix; the matrix segmentation module 150 is used to optimize the panoramic feature matrix The feature matrix is divided into feature matrices to obtain multiple local feature matrices; the global image semantic encoding module 160 is used to expand the multiple local feature matrices into multiple local feature vectors and then pass them through the context encoder based on the converter to obtain Classification feature vector; and, the environmental assessment module 170 is used to pass the classification feature vector through a classifier to obtain a classification result, which is used to indicate whether the plant diversity of the forest health environment to be evaluated meets predetermined standards.

更具体地,在本申请实施例中,所述全景图采集模块110,用于获取由无人机采集的待评估森林康养环境的全景图。在实际进行森林康养环境的评估过程中,关键在于对森林康养环境的植物多样性进行分析检测,以保证植物多样性满足预定要求。基于此,在本申请的技术方案中,可以过无人机来采集待评估森林康养环境的全景图,并通过对所述全景图进行基于机器视觉的图像分析和处理以评估所述待评估森林康养环境的植物多样性是否符合预定标准。More specifically, in this embodiment of the present application, the panorama collection module 110 is used to obtain a panorama of the forest health environment to be evaluated collected by a drone. In the actual assessment process of the forest health care environment, the key is to analyze and detect the plant diversity of the forest health care environment to ensure that the plant diversity meets the predetermined requirements. Based on this, in the technical solution of this application, a panoramic view of the forest health environment to be evaluated can be collected by drone, and the panoramic view can be evaluated by performing image analysis and processing based on machine vision on the panoramic view. Whether the plant diversity of the forest health environment meets predetermined standards.

更具体地,在本申请实施例中,所述图像预处理模块120,用于对所述待评估森林康养环境的全景图进行图像预处理以得到预处理后全景图。在实际进行所述待评估森林康养环境的全景图的采集过程中,采集到的原始图像可能会受到噪声、变形或者边缘失真等因素的影响,这将会对后续处理算法的准确性和稳定性产生影响。因此,在进行所述待评估森林康养环境的全景图的特征提取以进行所述待评估森林康养环境的植物多样性检测前,需要对所述待评估森林康养环境的全景图进行图像预处理以得到预处理后全景图,以此来去除原始图像中的噪声、平滑边缘以及纠正非线性效应等。也就是说,通过这样的预处理过程,可以得到更加清晰、准确和稳定的全景图,有助于提高后续分类的准确性。More specifically, in this embodiment of the present application, the image preprocessing module 120 is used to perform image preprocessing on the panorama of the forest health care environment to be evaluated to obtain a preprocessed panorama. During the actual acquisition process of the panorama of the forest health environment to be evaluated, the original image collected may be affected by factors such as noise, deformation or edge distortion, which will affect the accuracy and stability of the subsequent processing algorithm. Sex has an impact. Therefore, before performing feature extraction of the panorama of the forest health environment to be evaluated to detect the plant diversity of the forest health environment to be evaluated, it is necessary to image the panorama of the forest health environment to be evaluated. Preprocessing to obtain a preprocessed panorama to remove noise, smooth edges, and correct nonlinear effects in the original image. In other words, through such a preprocessing process, a clearer, more accurate and stable panorama can be obtained, which helps to improve the accuracy of subsequent classification.

更具体地,在本申请实施例中,所述全景图像特征提取模块130,用于将所述预处理后全景图通过作为特征提取器的卷积神经网络模型以得到全景特征矩阵。使用在图像的隐含特征提取方面具有优异表现的作为特征提取器的卷积神经网络模型来进行所述预处理后全景图的特征挖掘,以此来提取出所述预处理后全景图中关于森林康养环境的植物类别的隐含特征分布信息,从而得到全景特征矩阵。More specifically, in this embodiment of the present application, the panoramic image feature extraction module 130 is used to pass the preprocessed panorama through a convolutional neural network model as a feature extractor to obtain a panoramic feature matrix. The convolutional neural network model as a feature extractor with excellent performance in extracting implicit features of images is used to perform feature mining of the pre-processed panorama, so as to extract the relevant information in the pre-processed panorama. Hidden feature distribution information of plant categories in the forest health care environment, thereby obtaining a panoramic feature matrix.

应可以理解,卷积神经网络(Convolutional Neural Network,CNN)是一种人工神经网络,在图像识别等领域有着广泛的应用。卷积神经网络可以包括输入层、隐藏层和输出层,其中,隐藏层可以包括卷积层、池化(pooling)层、激活层和全连接层等,上一层根据输入的数据进行相应的运算,将运算结果输出给下一层,输入的初始数据经过多层的运算之后得到一个最终的结果。It should be understood that Convolutional Neural Network (CNN) is an artificial neural network that is widely used in image recognition and other fields. A convolutional neural network can include an input layer, a hidden layer, and an output layer. The hidden layer can include a convolution layer, a pooling layer, an activation layer, a fully connected layer, etc. The upper layer performs corresponding processing based on the input data. Operation, the operation result is output to the next layer. The input initial data undergoes multiple layers of operations to obtain a final result.

相应地,在一个具体示例中,所述全景图像特征提取模块130,用于:使用所述作为特征提取器的卷积神经网络模型的各层在层的正向传递中对输入数据分别进行卷积处理、沿通道维度的均值池化处理和非线性激活处理以由所述作为特征提取器的卷积神经网络模型的最后一层输出所述全景特征矩阵,其中,所述作为特征提取器的卷积神经网络模型的第一层的输入为所述预处理后全景图。Correspondingly, in a specific example, the panoramic image feature extraction module 130 is configured to use each layer of the convolutional neural network model as a feature extractor to respectively convolute the input data in the forward pass of the layer. product processing, mean pooling processing along the channel dimension and non-linear activation processing to output the panoramic feature matrix from the last layer of the convolutional neural network model as a feature extractor, where the The input of the first layer of the convolutional neural network model is the preprocessed panorama.

更具体地,在本申请实施例中,所述特征优化模块140,用于对所述全景特征矩阵进行特征分布优化以得到优化全景特征矩阵。特别地,在本申请的技术方案中,考虑到所述全景图的每个像素的源图像语义通过作为特征提取器的卷积神经网络模型的图像语义关联特征提取,所得到的所述全景特征矩阵的每个位置的特征值也具有相应的位置属性,由此,所述全景特征矩阵进行特征矩阵切分得到的所述多个局部特征矩阵在矩阵内和矩阵间均具有位置关联表达属性。但是,在将所述多个局部特征矩阵展开为多个局部特征向量时,涉及到所述局部特征矩阵的特征值的按位置聚合,而基于转换器的上下文编码器在进行上下文语义编码时,基本上忽略了位置属性,因此,需要提升所述全景特征矩阵的各个特征值在按位置聚合时对于所述全景特征矩阵的原特征流形的表达效果。基于此,本申请的申请人计算所述全景特征矩阵的每个位置的特征值的位置信息图式场景注意力无偏估计因数。More specifically, in this embodiment of the present application, the feature optimization module 140 is used to perform feature distribution optimization on the panoramic feature matrix to obtain an optimized panoramic feature matrix. In particular, in the technical solution of the present application, considering that the source image semantics of each pixel of the panorama is extracted through the image semantic correlation feature of the convolutional neural network model as a feature extractor, the resulting panoramic features The eigenvalues of each position of the matrix also have corresponding position attributes. Therefore, the multiple local feature matrices obtained by performing feature matrix segmentation on the panoramic feature matrix have position-related expression attributes both within the matrix and between matrices. However, when expanding the multiple local feature matrices into multiple local feature vectors, it involves position-wise aggregation of feature values of the local feature matrices, and when the transformer-based context encoder performs contextual semantic encoding, The position attribute is basically ignored. Therefore, it is necessary to improve the expression effect of each feature value of the panoramic feature matrix on the original feature manifold of the panoramic feature matrix when aggregated by position. Based on this, the applicant of the present application calculates the position information schema scene attention unbiased estimation factor of the feature value of each position of the panoramic feature matrix.

相应地,在一个具体示例中,如图3所示,所述特征优化模块140,包括:优化因数计算单元141,用于计算所述全景特征矩阵中各个位置特征值的位置信息图式场景注意力无偏估计因数以得到多个位置信息图式场景注意力无偏估计因数;以及,加权优化单元142,用于以所述多个位置信息图式场景注意力无偏估计因数作为加权系数对所述全景特征矩阵的各个位置特征值进行加权优化以得到所述优化全景特征矩阵。Correspondingly, in a specific example, as shown in Figure 3, the feature optimization module 140 includes: an optimization factor calculation unit 141, used to calculate the position information schema scene attention of each position feature value in the panoramic feature matrix. Use unbiased estimation factors to obtain multiple location information pattern scene attention unbiased estimation factors; and, a weighted optimization unit 142 for using the multiple location information pattern scene attention unbiased estimation factors as weighting coefficient pairs. Each position feature value of the panoramic feature matrix is weighted and optimized to obtain the optimized panoramic feature matrix.

相应地,在一个具体示例中,所述优化因数计算单元141,用于:以如下优化公式计算所述全景特征矩阵中各个位置特征值的位置信息图式场景注意力无偏估计因数以得到所述多个位置信息图式场景注意力无偏估计因数;其中,所述优化公式为:Correspondingly, in a specific example, the optimization factor calculation unit 141 is configured to calculate the position information schema scene attention unbiased estimation factor of each position feature value in the panoramic feature matrix using the following optimization formula to obtain the The multiple location information pattern scene attention unbiased estimation factors; wherein, the optimization formula is:

其中,fi是所述全景特征矩阵中各个位置特征值,(xi,yi)为所述全景特征矩阵的各个位置特征值的位置坐标,且是所述全景特征矩阵的所有特征值的全局均值,/>和/>分别代表不同的将二维实数映射为一维实数的函数,W和H分别是所述全景特征矩阵的宽度和高度,log表示以2为底的对数函数,wi表示所述多个位置信息图式场景注意力无偏估计因数中的各个位置信息图式场景注意力无偏估计因数。Wherein, fi is each position feature value in the panoramic feature matrix, (xi , y i ) is the position coordinate of each position feature value in the panoramic feature matrix, and is the global mean of all eigenvalues of the panoramic eigenmatrix,/> and/> respectively represent different functions that map two-dimensional real numbers to one-dimensional real numbers, W and H are respectively the width and height of the panoramic feature matrix, log represents the logarithmic function with base 2, and w i represents the multiple positions Infographic scene attention unbiased estimation factors for each position in the infographic scene attention unbiased estimation factor.

这里,所述位置信息图式场景注意力无偏估计因数通过使用融合特征值相对于整体特征分布的高维空间位置的相对几何方向和相对几何距离的图式信息表示和高维特征本身的信息表示的更高阶的特征表达,来在特征值对整体特征分布的按位置聚合时进一步进行特征流形的形状信息聚合,以实现高维空间内的基于特征流形的各个子流形集合形状分布的场景几何的无偏估计,以准确表达特征矩阵的流形形状的几何性质。这样,通过以所述位置信息图式场景注意力无偏估计因数对所述全景特征矩阵的各个位置的特征值进行加权,就可以提升所述全景特征矩阵的各个特征值在按位置聚合时对于所述全景特征矩阵的原特征流形的表达效果,从而提升从所述全局特征矩阵得到的所述分类特征向量的特征表达效果,以提升其通过分类器得到的分类结果的准确性。这样,能够更加准确地对森林康养环境的植物多样性进行检测评估,从而确定其康养价值和潜力来制定合理的管理和保护措施。Here, the position information schema scene attention unbiased estimation factor is expressed by using schema information that fuses the relative geometric direction and relative geometric distance of the high-dimensional spatial position of the feature value with respect to the overall feature distribution and the information of the high-dimensional feature itself. The higher-order feature expression is used to further aggregate the shape information of the feature manifold when the feature value is aggregated by position on the overall feature distribution, so as to realize the set shape of each sub-manifold based on the feature manifold in the high-dimensional space. Unbiased estimation of distributed scene geometry to accurately express the geometric properties of the manifold shape of the feature matrix. In this way, by weighting the feature values of each position of the panoramic feature matrix with the position information graph scene attention unbiased estimation factor, it is possible to improve the performance of each feature value of the panoramic feature matrix when aggregating by position. The expression effect of the original feature manifold of the panoramic feature matrix improves the feature expression effect of the classification feature vector obtained from the global feature matrix, so as to improve the accuracy of the classification result obtained by the classifier. In this way, the plant diversity of the forest health environment can be more accurately detected and evaluated, thereby determining its health value and potential to formulate reasonable management and protection measures.

更具体地,在本申请实施例中,所述矩阵切分模块150,用于对所述优化全景特征矩阵进行特征矩阵切分以得到多个局部特征矩阵。由于所述作为特征提取器的卷积神经网络模型虽然能够提取出所述预处理后全景图中关于森林康养环境的植物类别的局部隐含特征分布信息,但是由于卷积运算的固有局限性,纯CNN的方法很难学习明确的全局和远程语义信息交互。因此,在本申请的技术方案中,进一步对所述优化全景特征矩阵进行特征矩阵切分以得到多个局部特征矩阵后,将所述多个局部特征矩阵展开为多个局部特征向量后通过基于转换器的上下文编码器中进行编码,以提取出所述预处理后全景图中关于森林康养环境的植物类别的各个局部隐含特征基于全局的上下文图像语义关联特征信息,从而得到分类特征向量。More specifically, in this embodiment of the present application, the matrix segmentation module 150 is used to segment the optimized panoramic feature matrix into feature matrices to obtain multiple local feature matrices. Although the convolutional neural network model as a feature extractor can extract the local implicit feature distribution information about the plant categories of the forest health care environment in the preprocessed panorama, due to the inherent limitations of the convolution operation , it is difficult for pure CNN methods to learn explicit global and long-range semantic information interactions. Therefore, in the technical solution of the present application, after further performing feature matrix segmentation on the optimized panoramic feature matrix to obtain multiple local feature matrices, the multiple local feature matrices are expanded into multiple local feature vectors and then are processed based on Encoding is performed in the context encoder of the converter to extract each local implicit feature of the plant category of the forest health care environment in the pre-processed panorama based on the global context image semantic association feature information, thereby obtaining a classification feature vector .

更具体地,在本申请实施例中,所述全局图像语义编码模块160,用于将所述多个局部特征矩阵展开为多个局部特征向量后通过基于转换器的上下文编码器以得到分类特征向量。More specifically, in this embodiment of the present application, the global image semantic encoding module 160 is used to expand the multiple local feature matrices into multiple local feature vectors and then pass them through a converter-based context encoder to obtain classification features. vector.

相应地,在一个具体示例中,所述全局图像语义编码模块160,用于:将所述多个局部特征向量通过所述基于转换器的上下文编码器以得到多个局部语义特征向量;以及,将所述多个局部语义特征向量进行级联以得到所述分类特征向量。Correspondingly, in a specific example, the global image semantic encoding module 160 is used to: pass the multiple local feature vectors through the converter-based context encoder to obtain multiple local semantic feature vectors; and, The plurality of local semantic feature vectors are concatenated to obtain the classification feature vector.

更具体地,在本申请实施例中,所述环境评估模块170,用于将所述分类特征向量通过分类器以得到分类结果,所述分类结果用于表示待评估森林康养环境的植物多样性是否符合预定标准。在得到所述分类结果后,可基于所述分类结果来对森林康养环境的植物多样性进行检测,从而确定其康养价值和潜力。More specifically, in the embodiment of the present application, the environmental assessment module 170 is used to pass the classification feature vector through a classifier to obtain a classification result. The classification result is used to represent the plant diversity of the forest health environment to be evaluated. Whether the sex meets predetermined standards. After obtaining the classification results, the plant diversity of the forest health care environment can be detected based on the classification results, thereby determining its health care value and potential.

应可以理解,分类器的作用是利用给定的类别、已知的训练数据来学习分类规则和分类器,然后对未知数据进行分类(或预测)。逻辑回归(logistics)、SVM等常用于解决二分类问题,对于多分类问题(multi-class classification),同样也可以用逻辑回归或SVM,只是需要多个二分类来组成多分类,但这样容易出错且效率不高,常用的多分类方法有Softmax分类函数。It should be understood that the role of a classifier is to use a given category and known training data to learn classification rules and classifiers, and then classify (or predict) unknown data. Logistics, SVM, etc. are often used to solve binary classification problems. For multi-class classification problems, logistic regression or SVM can also be used, but multiple binary classifications are needed to form a multi-classification problem, but this is prone to errors. And the efficiency is not high. Commonly used multi-classification methods include Softmax classification function.

相应地,在一个具体示例中,如图4所示,所述环境评估模块170,包括:全连接编码单元171,用于使用所述分类器的多个全连接层对所述分类特征向量进行全连接编码以得到编码分类特征向量;以及,分类单元172,用于将所述编码分类特征向量通过所述分类器的Softmax分类函数以得到所述分类结果。Correspondingly, in a specific example, as shown in Figure 4, the environment assessment module 170 includes: a fully connected coding unit 171, configured to use multiple fully connected layers of the classifier to perform coding on the classification feature vector. Fully connected encoding to obtain the encoded classification feature vector; and, a classification unit 172, used to pass the encoded classification feature vector through the Softmax classification function of the classifier to obtain the classification result.

综上,基于本申请实施例的森林康养环境评估系统100被阐明,其首先对待评估森林康养环境的全景图进行图像预处理后全景图通过卷积神经网络模型以得到全景特征矩阵,接着,对所述全景特征矩阵进行特征分布优化以得到优化全景特征矩阵,然后,对所述优化全景特征矩阵进行特征矩阵切分以得到多个局部特征矩阵,接着,将所述多个局部特征矩阵展开为多个局部特征向量后通过上下文编码器以得到分类特征向量,最后,将所述分类特征向量通过分类器以得到用于表示待评估森林康养环境的植物多样性是否符合预定标准的分类结果。这样,可以实现对森林康养环境的植物多样性进行检测。In summary, the forest health care environment assessment system 100 based on the embodiment of the present application is clarified. It first performs image preprocessing on the panorama of the forest health care environment to be evaluated, and then passes the panorama through the convolutional neural network model to obtain the panoramic feature matrix, and then , perform feature distribution optimization on the panoramic feature matrix to obtain an optimized panoramic feature matrix, then perform feature matrix segmentation on the optimized panoramic feature matrix to obtain multiple local feature matrices, and then divide the multiple local feature matrices into After expanding into multiple local feature vectors, the classification feature vector is obtained through the context encoder. Finally, the classification feature vector is passed through the classifier to obtain a classification indicating whether the plant diversity of the forest health environment to be evaluated meets the predetermined standards. result. In this way, the plant diversity of the forest health care environment can be detected.

如上所述,根据本申请实施例的基于本申请实施例的森林康养环境评估系统100可以实现在各种终端设备中,例如具有基于本申请实施例的森林康养环境评估算法的服务器等。在一个示例中,基于本申请实施例的森林康养环境评估系统100可以作为一个软件模块和/或硬件模块而集成到终端设备中。例如,该基于本申请实施例的森林康养环境评估系统100可以是该终端设备的操作系统中的一个软件模块,或者可以是针对于该终端设备所开发的一个应用程序;当然,该基于本申请实施例的森林康养环境评估系统100同样可以是该终端设备的众多硬件模块之一。As mentioned above, the forest health care environment assessment system 100 based on the embodiment of the present application can be implemented in various terminal devices, such as a server with the forest health care environment assessment algorithm based on the embodiment of the present application, etc. In one example, the forest health care environment assessment system 100 based on the embodiment of the present application can be integrated into a terminal device as a software module and/or a hardware module. For example, the forest health care environment assessment system 100 based on the embodiment of the present application can be a software module in the operating system of the terminal device, or can be an application program developed for the terminal device; of course, the forest health care environment assessment system 100 based on the embodiment of the present application can The forest health care environment assessment system 100 of the application embodiment can also be one of the many hardware modules of the terminal device.

替换地,在另一示例中,该基于本申请实施例的森林康养环境评估系统100与该终端设备也可以是分立的设备,并且该森林康养环境评估系统100可以通过有线和/或无线网络连接到该终端设备,并且按照约定的数据格式来传输交互信息。Alternatively, in another example, the forest health care environment assessment system 100 based on the embodiment of the present application and the terminal device can also be separate devices, and the forest health care environment assessment system 100 can be connected via wired and/or wireless devices. The network is connected to the terminal device and transmits interactive information according to the agreed data format.

图5为根据本申请实施例的森林康养环境评估方法的流程图。如图5所示,根据本申请实施例的森林康养环境评估方法,其包括:S110,获取由无人机采集的待评估森林康养环境的全景图;S120,对所述待评估森林康养环境的全景图进行图像预处理以得到预处理后全景图;S130,将所述预处理后全景图通过作为特征提取器的卷积神经网络模型以得到全景特征矩阵;S140,对所述全景特征矩阵进行特征分布优化以得到优化全景特征矩阵;S150,对所述优化全景特征矩阵进行特征矩阵切分以得到多个局部特征矩阵;S160,将所述多个局部特征矩阵展开为多个局部特征向量后通过基于转换器的上下文编码器以得到分类特征向量;以及,S170,将所述分类特征向量通过分类器以得到分类结果,所述分类结果用于表示待评估森林康养环境的植物多样性是否符合预定标准。Figure 5 is a flow chart of a forest health care environment assessment method according to an embodiment of the present application. As shown in Figure 5, the forest health care environment assessment method according to the embodiment of the present application includes: S110, obtaining a panoramic view of the forest health care environment to be assessed collected by the drone; S120, performing the forest health care environment to be assessed. Perform image preprocessing on the panorama of the breeding environment to obtain the preprocessed panorama; S130, pass the preprocessed panorama through the convolutional neural network model as a feature extractor to obtain the panoramic feature matrix; S140, apply the preprocessed panorama to the panorama. The feature matrix performs feature distribution optimization to obtain an optimized panoramic feature matrix; S150, perform feature matrix segmentation on the optimized panoramic feature matrix to obtain multiple local feature matrices; S160, expand the multiple local feature matrices into multiple local feature matrices The feature vector is then passed through the context encoder based on the converter to obtain the classification feature vector; and, S170, the classification feature vector is passed through the classifier to obtain the classification result, which is used to represent the plants of the forest health environment to be evaluated. Whether diversity meets predetermined criteria.

图6为根据本申请实施例的森林康养环境评估方法的系统架构的示意图。如图6所示,在所述森林康养环境评估方法的系统架构中,首先,获取由无人机采集的待评估森林康养环境的全景图;接着,对所述待评估森林康养环境的全景图进行图像预处理以得到预处理后全景图;然后,将所述预处理后全景图通过作为特征提取器的卷积神经网络模型以得到全景特征矩阵;接着,对所述全景特征矩阵进行特征分布优化以得到优化全景特征矩阵;然后,对所述优化全景特征矩阵进行特征矩阵切分以得到多个局部特征矩阵;接着,将所述多个局部特征矩阵展开为多个局部特征向量后通过基于转换器的上下文编码器以得到分类特征向量;最后,将所述分类特征向量通过分类器以得到分类结果,所述分类结果用于表示待评估森林康养环境的植物多样性是否符合预定标准。Figure 6 is a schematic diagram of the system architecture of the forest health care environment assessment method according to an embodiment of the present application. As shown in Figure 6, in the system architecture of the forest health care environment assessment method, first, a panoramic view of the forest health care environment to be assessed collected by a drone is obtained; then, the forest health care environment to be assessed is Perform image preprocessing on the panorama to obtain a preprocessed panorama; then, pass the preprocessed panorama through a convolutional neural network model as a feature extractor to obtain a panoramic feature matrix; then, the panoramic feature matrix is Perform feature distribution optimization to obtain an optimized panoramic feature matrix; then perform feature matrix segmentation on the optimized panoramic feature matrix to obtain multiple local feature matrices; then, expand the multiple local feature matrices into multiple local feature vectors Finally, the classification feature vector is obtained through the context encoder based on the converter; finally, the classification feature vector is passed through the classifier to obtain the classification result, which is used to indicate whether the plant diversity of the forest health care environment to be evaluated meets the Predetermined standards.

在一个具体示例中,在上述森林康养环境评估方法中,将所述预处理后全景图通过作为特征提取器的卷积神经网络模型以得到全景特征矩阵,包括:使用所述作为特征提取器的卷积神经网络模型的各层在层的正向传递中对输入数据分别进行卷积处理、沿通道维度的均值池化处理和非线性激活处理以由所述作为特征提取器的卷积神经网络模型的最后一层输出所述全景特征矩阵,其中,所述作为特征提取器的卷积神经网络模型的第一层的输入为所述预处理后全景图。In a specific example, in the above forest health care environment assessment method, the preprocessed panorama is passed through a convolutional neural network model as a feature extractor to obtain a panoramic feature matrix, including: using the preprocessed panorama as a feature extractor Each layer of the convolutional neural network model performs convolution processing, mean pooling processing along the channel dimension and nonlinear activation processing on the input data in the forward pass of the layer to be processed by the convolutional neural network as a feature extractor. The last layer of the network model outputs the panoramic feature matrix, wherein the input of the first layer of the convolutional neural network model serving as a feature extractor is the preprocessed panorama.

在一个具体示例中,在上述森林康养环境评估方法中,对所述全景特征矩阵进行特征分布优化以得到优化全景特征矩阵,包括:计算所述全景特征矩阵中各个位置特征值的位置信息图式场景注意力无偏估计因数以得到多个位置信息图式场景注意力无偏估计因数;以及,以所述多个位置信息图式场景注意力无偏估计因数作为加权系数对所述全景特征矩阵的各个位置特征值进行加权优化以得到所述优化全景特征矩阵。In a specific example, in the above forest health care environment assessment method, performing feature distribution optimization on the panoramic feature matrix to obtain an optimized panoramic feature matrix includes: calculating the location information map of each position feature value in the panoramic feature matrix Formula scene attention unbiased estimation factors to obtain multiple position information graph scene attention unbiased estimation factors; and, use the multiple position information graph scene attention unbiased estimation factors as weighting coefficients to weight the panoramic features Each position feature value of the matrix is weighted and optimized to obtain the optimized panoramic feature matrix.

在一个具体示例中,在上述森林康养环境评估方法中,计算所述全景特征矩阵中各个位置特征值的位置信息图式场景注意力无偏估计因数以得到多个位置信息图式场景注意力无偏估计因数,包括:以如下优化公式计算所述全景特征矩阵中各个位置特征值的位置信息图式场景注意力无偏估计因数以得到所述多个位置信息图式场景注意力无偏估计因数;其中,所述优化公式为:In a specific example, in the above forest health care environment assessment method, the position information schema scene attention unbiased estimation factor of each position feature value in the panoramic feature matrix is calculated to obtain multiple position information schema scene attentions. The unbiased estimation factor includes: calculating the position information pattern scene attention unbiased estimation factor of each position feature value in the panoramic feature matrix using the following optimization formula to obtain the multiple position information pattern scene attention unbiased estimates. Factor; where, the optimization formula is:

其中,fi是所述全景特征矩阵中各个位置特征值,(xi,yi)为所述全景特征矩阵的各个位置特征值的位置坐标,且是所述全景特征矩阵的所有特征值的全局均值,/>和/>分别代表不同的将二维实数映射为一维实数的函数,W和H分别是所述全景特征矩阵的宽度和高度,log表示以2为底的对数函数,wi表示所述多个位置信息图式场景注意力无偏估计因数中的各个位置信息图式场景注意力无偏估计因数。Wherein, fi is each position feature value in the panoramic feature matrix, (xi , y i ) is the position coordinate of each position feature value in the panoramic feature matrix, and is the global mean of all eigenvalues of the panoramic eigenmatrix,/> and/> respectively represent different functions that map two-dimensional real numbers to one-dimensional real numbers, W and H are respectively the width and height of the panoramic feature matrix, log represents the logarithmic function with base 2, and w i represents the multiple positions Infographic scene attention unbiased estimation factors for each position in the infographic scene attention unbiased estimation factor.

在一个具体示例中,在上述森林康养环境评估方法中,将所述多个局部特征矩阵展开为多个局部特征向量后通过基于转换器的上下文编码器以得到分类特征向量,包括:将所述多个局部特征向量通过所述基于转换器的上下文编码器以得到多个局部语义特征向量;以及,将所述多个局部语义特征向量进行级联以得到所述分类特征向量。In a specific example, in the above forest health care environment assessment method, the multiple local feature matrices are expanded into multiple local feature vectors and then passed through the context encoder based on the converter to obtain the classification feature vector, including: The plurality of local feature vectors are passed through the transformer-based context encoder to obtain a plurality of local semantic feature vectors; and the plurality of local semantic feature vectors are concatenated to obtain the classification feature vector.

在一个具体示例中,在上述森林康养环境评估方法中,将所述分类特征向量通过分类器以得到分类结果,所述分类结果用于表示待评估森林康养环境的植物多样性是否符合预定标准,包括:使用所述分类器的多个全连接层对所述分类特征向量进行全连接编码以得到编码分类特征向量;以及,将所述编码分类特征向量通过所述分类器的Softmax分类函数以得到所述分类结果。In a specific example, in the above forest health care environment assessment method, the classification feature vector is passed through a classifier to obtain a classification result. The classification result is used to indicate whether the plant diversity of the forest health care environment to be evaluated meets the predetermined The standard includes: using multiple fully connected layers of the classifier to perform fully connected encoding on the classification feature vector to obtain a coded classification feature vector; and passing the coded classification feature vector through the Softmax classification function of the classifier. to obtain the classification results.

这里,本领域技术人员可以理解,上述森林康养环境评估方法中的各个步骤的具体操作已经在上面参考图1到图4的森林康养环境评估系统100的描述中得到了详细介绍,并因此,将省略其重复描述。Here, those skilled in the art can understand that the specific operations of each step in the above forest health care environment assessment method have been introduced in detail in the description of the forest health care environment assessment system 100 above with reference to FIGS. 1 to 4 , and therefore , its repeated description will be omitted.

根据本申请的另一方面,还提供了一种非易失性的计算机可读存储介质,其上存储有计算机可读的指令,当利用计算机执行所述指令时可以执行如前所述的方法。According to another aspect of the present application, a non-volatile computer-readable storage medium is also provided, on which computer-readable instructions are stored. When a computer is used to execute the instructions, the method as described above can be performed. .

技术中的程序部分可以被认为是以可执行的代码和/或相关数据的形式而存在的“产品”或“制品”,通过计算机可读的介质所参与或实现的。有形的、永久的储存介质可以包括任何计算机、处理器、或类似设备或相关的模块所用到的内存或存储器。例如,各种半导体存储器、磁带驱动器、磁盘驱动器或者类似任何能够为软件提供存储功能的设备。The program part in the technology can be considered as a "product" or "artifact" in the form of executable code and/or related data, which is participated in or implemented through computer-readable media. Tangible, permanent storage media may include the memory or storage used by any computer, processor, or similar device or related module. For example, various semiconductor memories, tape drives, disk drives, or similar devices that provide storage capabilities for software.

本申请使用了特定词语来描述本申请的实施例。如“第一/第二实施例”、“一实施例”、和/或“一些实施例”意指与本申请至少一个实施例相关的某一特征、结构或特点。因此,应强调并注意的是,本说明书中在不同位置两次或多次提及的“一实施例”或“一个实施例”或“一替代性实施例”并不一定是指同一实施例。此外,本申请的一个或多个实施例中的某些特征、结构或特点可以进行适当的组合。This application uses specific words to describe embodiments of the application. For example, "first/second embodiment", "an embodiment", and/or "some embodiments" means a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that “one embodiment” or “an embodiment” or “an alternative embodiment” mentioned twice or more at different places in this specification does not necessarily refer to the same embodiment. . In addition, certain features, structures or characteristics in one or more embodiments of the present application may be appropriately combined.

此外,本领域技术人员可以理解,本申请的各方面可以通过若干具有可专利性的种类或情况进行说明和描述,包括任何新的和有用的工序、机器、产品或物质的组合,或对他们的任何新的和有用的改进。相应地,本申请的各个方面可以完全由硬件执行、可以完全由软件(包括固件、常驻软件、微码等)执行、也可以由硬件和软件组合执行。以上硬件或软件均可被称为“数据块”、“模块”、“引擎”、“单元”、“组件”或“系统”。此外,本申请的各方面可能表现为位于一个或多个计算机可读介质中的计算机产品,该产品包括计算机可读程序编码。Furthermore, those skilled in the art will appreciate that aspects of the present application may be illustrated and described in several patentable categories or circumstances, including any new and useful process, machine, product, or combination of matter, or combination thereof. any new and useful improvements. Accordingly, various aspects of the present application may be executed entirely by hardware, may be entirely executed by software (including firmware, resident software, microcode, etc.), or may be executed by a combination of hardware and software. The above hardware or software may be referred to as "data block", "module", "engine", "unit", "component" or "system". Additionally, aspects of the present application may be embodied as a computer product including computer-readable program code located on one or more computer-readable media.

除非另有定义,这里使用的所有术语(包括技术和科学术语)具有与本发明所属领域的普通技术人员共同理解的相同含义。还应当理解,诸如在通常字典里定义的那些术语应当被解释为具有与它们在相关技术的上下文中的含义相一致的含义,而不应用理想化或极度形式化的意义来解释,除非这里明确地这样定义。Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It should also be understood that terms such as those defined in ordinary dictionaries should be construed to have meanings consistent with their meanings in the context of the relevant technology and should not be interpreted in an idealized or highly formalized sense unless expressly stated herein Ground is defined this way.

上面是对本发明的说明,而不应被认为是对其的限制。尽管描述了本发明的若干示例性实施例,但本领域技术人员将容易地理解,在不背离本发明的新颖教学和优点的前提下可以对示例性实施例进行许多修改。因此,所有这些修改都意图包含在权利要求书所限定的本发明范围内。应当理解,上面是对本发明的说明,而不应被认为是限于所公开的特定实施例,并且对所公开的实施例以及其他实施例的修改意图包含在所附权利要求书的范围内。本发明由权利要求书及其等效物限定。The above is a description of the present invention and should not be considered as a limitation thereof. Although several exemplary embodiments of this invention have been described, those skilled in the art will readily appreciate that many modifications are possible in the exemplary embodiments without departing from the novel teachings and advantages of this invention. Accordingly, all such modifications are intended to be included within the scope of the invention as defined by the claims. It is to be understood that the above is a description of the invention and should not be construed as limited to the particular embodiments disclosed, and that modifications to the disclosed embodiments as well as other embodiments are intended to be included within the scope of the appended claims. The invention is defined by the claims and their equivalents.

Claims (10)

1. A forest health environment assessment system, comprising:
the panorama acquisition module is used for acquiring a panorama of the forest health environment to be evaluated acquired by the unmanned aerial vehicle;
the image preprocessing module is used for preprocessing the panoramic image of the forest health environment to be evaluated to obtain a preprocessed panoramic image;
the panoramic image feature extraction module is used for enabling the preprocessed panoramic image to pass through a convolutional neural network model serving as a feature extractor to obtain a panoramic feature matrix;
the feature optimization module is used for carrying out feature distribution optimization on the panoramic feature matrix to obtain an optimized panoramic feature matrix;
the matrix segmentation module is used for carrying out feature matrix segmentation on the optimized panoramic feature matrix to obtain a plurality of local feature matrices;
the global image semantic coding module is used for expanding the local feature matrixes into a plurality of local feature vectors and then obtaining classification feature vectors through a context encoder based on a converter; and
the environment evaluation module is used for enabling the classification feature vectors to pass through a classifier to obtain classification results, and the classification results are used for indicating whether plant diversity of the forest health environment to be evaluated meets a preset standard or not.
2. The forest health environment assessment system of claim 1, wherein the panoramic image feature extraction module is configured to:
and respectively carrying out convolution processing, mean pooling processing along a channel dimension and nonlinear activation processing on input data in forward transfer of layers by using each layer of the convolutional neural network model serving as the feature extractor to output the panoramic feature matrix from the last layer of the convolutional neural network model serving as the feature extractor, wherein the input of the first layer of the convolutional neural network model serving as the feature extractor is the preprocessed panoramic image.
3. The forest health environment assessment system of claim 2, wherein the feature optimization module comprises:
the optimization factor calculation unit is used for calculating the position information schema scene attention unbiased estimation factors of each position feature value in the panoramic feature matrix to obtain a plurality of position information schema scene attention unbiased estimation factors; and
and the weighted optimization unit is used for weighted optimization of each position characteristic value of the panoramic characteristic matrix by taking the unbiased estimation factors of the attention of the multiple position information schema scenes as weighting coefficients so as to obtain the optimized panoramic characteristic matrix.
4. A forest health environment assessment system according to claim 3, wherein said optimization factor calculation unit is configured to:
calculating the position information schema scene attention unbiased estimation factors of each position feature value in the panoramic feature matrix by using the following optimization formula to obtain the plurality of position information schema scene attention unbiased estimation factors;
wherein, the optimization formula is:
wherein f i Is the feature value of each position in the panoramic feature matrix, (x) i ,y i ) Position coordinates for each position feature value of the panoramic feature matrix, andis the global mean value of all eigenvalues of the panoramic eigenvalue matrix,/for all eigenvalues of the panoramic eigenvalue matrix>Andrepresenting different functions of mapping two-dimensional real numbers into one-dimensional real numbers, W and H are the width and the height of the panoramic feature matrix, log represents a logarithmic function based on 2, and W i Each of the plurality of location information schema scene attention unbiased estimation factors is represented.
5. The forest health environment assessment system according to claim 4, wherein the global image semantic coding module is configured to:
passing the plurality of local feature vectors through the converter-based context encoder to obtain a plurality of local semantic feature vectors; and
And cascading the plurality of local semantic feature vectors to obtain the classification feature vector.
6. The forest health environment assessment system of claim 5, wherein the environment assessment module comprises:
the full-connection coding unit is used for carrying out full-connection coding on the classification characteristic vectors by using a plurality of full-connection layers of the classifier so as to obtain coded classification characteristic vectors; and
and the classification unit is used for passing the coding classification feature vector through a Softmax classification function of the classifier to obtain the classification result.
7. A forest health environment assessment method, comprising:
acquiring a panoramic view of a forest health and maintenance environment to be evaluated, which is acquired by an unmanned aerial vehicle;
performing image preprocessing on the panoramic image of the forest health environment to be evaluated to obtain a preprocessed panoramic image;
the preprocessed panoramic image is passed through a convolutional neural network model serving as a feature extractor to obtain a panoramic feature matrix;
performing feature distribution optimization on the panoramic feature matrix to obtain an optimized panoramic feature matrix;
performing feature matrix segmentation on the optimized panoramic feature matrix to obtain a plurality of local feature matrices;
The local feature matrixes are unfolded to be a plurality of local feature vectors, and then the local feature vectors are processed by a context encoder based on a converter to obtain classified feature vectors; and
and the classification feature vector is passed through a classifier to obtain a classification result, wherein the classification result is used for indicating whether the plant diversity of the forest health and maintenance environment to be evaluated meets a preset standard.
8. The forest health environment assessment method according to claim 7, wherein passing the preprocessed panorama through a convolutional neural network model as a feature extractor to obtain a panorama feature matrix, comprising:
and respectively carrying out convolution processing, mean pooling processing along a channel dimension and nonlinear activation processing on input data in forward transfer of layers by using each layer of the convolutional neural network model serving as the feature extractor to output the panoramic feature matrix from the last layer of the convolutional neural network model serving as the feature extractor, wherein the input of the first layer of the convolutional neural network model serving as the feature extractor is the preprocessed panoramic image.
9. The forest health environment assessment method according to claim 8, wherein performing feature distribution optimization on the panoramic feature matrix to obtain an optimized panoramic feature matrix comprises:
Calculating the position information schema scene attention unbiased estimation factors of each position feature value in the panoramic feature matrix to obtain a plurality of position information schema scene attention unbiased estimation factors; and
and carrying out weighted optimization on each position characteristic value of the panoramic characteristic matrix by taking the unbiased estimation factors of the attention of the multiple position information schema scenes as weighting coefficients to obtain the optimized panoramic characteristic matrix.
10. The method of forest health environment assessment according to claim 9, wherein calculating the location information schema scene attention unbiased estimation factors for each location feature value in the panoramic feature matrix to obtain a plurality of location information schema scene attention unbiased estimation factors, comprises:
calculating the position information schema scene attention unbiased estimation factors of each position feature value in the panoramic feature matrix by using the following optimization formula to obtain the plurality of position information schema scene attention unbiased estimation factors;
wherein, the optimization formula is:
wherein f i Is the feature value of each position in the panoramic feature matrix, (x) i ,y i ) Position coordinates for each position feature value of the panoramic feature matrix, and Is the global mean value of all eigenvalues of the panoramic eigenvalue matrix,/for all eigenvalues of the panoramic eigenvalue matrix>Andrepresenting different functions of mapping two-dimensional real numbers into one-dimensional real numbers, W and H are the width and the height of the panoramic feature matrix, log represents a logarithmic function based on 2, and W i Each of the plurality of location information schema scene attention unbiased estimation factors is represented.
CN202310841564.7A 2023-07-11 2023-07-11 Forest health care environment assessment system and method Withdrawn CN116796248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310841564.7A CN116796248A (en) 2023-07-11 2023-07-11 Forest health care environment assessment system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310841564.7A CN116796248A (en) 2023-07-11 2023-07-11 Forest health care environment assessment system and method

Publications (1)

Publication Number Publication Date
CN116796248A true CN116796248A (en) 2023-09-22

Family

ID=88040122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310841564.7A Withdrawn CN116796248A (en) 2023-07-11 2023-07-11 Forest health care environment assessment system and method

Country Status (1)

Country Link
CN (1) CN116796248A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117540908A (en) * 2023-11-07 2024-02-09 北京佳格天地科技有限公司 Agricultural resource integration method and system based on big data
CN118470881A (en) * 2024-05-16 2024-08-09 江苏联通智能控制技术股份有限公司 Fire monitoring alarm system and method based on fire risk grade intelligent evaluation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117540908A (en) * 2023-11-07 2024-02-09 北京佳格天地科技有限公司 Agricultural resource integration method and system based on big data
CN117540908B (en) * 2023-11-07 2024-06-11 北京佳格天地科技有限公司 Agricultural resource integration method and system based on big data
CN118470881A (en) * 2024-05-16 2024-08-09 江苏联通智能控制技术股份有限公司 Fire monitoring alarm system and method based on fire risk grade intelligent evaluation
CN118470881B (en) * 2024-05-16 2025-03-04 江苏联通智能控制技术股份有限公司 Fire monitoring and alarm system and method based on intelligent assessment of fire risk level

Similar Documents

Publication Publication Date Title
CN111563508B (en) Semantic segmentation method based on spatial information fusion
CN109684922B (en) A multi-model recognition method for finished dishes based on convolutional neural network
CN111898432B (en) Pedestrian detection system and method based on improved YOLOv3 algorithm
CN110796057A (en) Pedestrian re-identification method and device and computer equipment
CN112949673A (en) Feature fusion target detection and identification method based on global attention
CN109063719B (en) Image classification method combining structure similarity and class information
CN113052185A (en) Small sample target detection method based on fast R-CNN
CN116796248A (en) Forest health care environment assessment system and method
CN111612017A (en) A target detection method based on information enhancement
CN113887487A (en) Facial expression recognition method and device based on CNN-Transformer
CN104778457A (en) Video face identification algorithm on basis of multi-instance learning
CN114998756A (en) Yolov 5-based remote sensing image detection method and device and storage medium
CN111311614A (en) Three-dimensional point cloud semantic segmentation method based on segmentation network and countermeasure network
CN113792660B (en) Pedestrian detection method, system, medium and equipment based on improved YOLOv3 network
CN109543546B (en) Gait age estimation method based on depth sequence distribution regression
CN113537119B (en) Transmission line connecting part detection method based on improved Yolov4-tiny
CN115147607A (en) Anti-noise zero-sample image classification method based on convex optimization theory
CN115063831A (en) A high-performance pedestrian retrieval and re-identification method and device
CN115439884A (en) A Pedestrian Attribute Recognition Method Based on Dual-Branch Self-Attention Network
CN112668662B (en) Target detection method in wild mountain forest environment based on improved YOLOv3 network
CN114202694A (en) Small sample remote sensing scene image classification method based on manifold mixed interpolation and contrast learning
CN119027790A (en) Image scene recognition method, device, equipment and storage medium
CN105279517A (en) Weak tag social image recognition method based on semi-supervision relation theme model
CN118447337A (en) A hyperspectral image classification method based on large visual model
CN117131348B (en) Data quality analysis method and system based on differential convolution characteristics

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20230922

WW01 Invention patent application withdrawn after publication