A bird individual identification method based on multi-feature fusion transfer learning
By employing multi-feature fusion transfer learning and adaptive illumination compensation, the problem of decreased recognition rate in bird identification under complex environments was solved, achieving a highly robust and scalable recognition framework suitable for field biodiversity research.
Patent Information
- Application Number
- CN202610772312.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-01
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2046-06-01
AI Technical Summary
When existing technologies identify individual birds in complex environments, changes in lighting and occlusion lead to a decrease in recognition rate. The lack of dynamic weight adjustment and cross-environment transfer learning mechanisms also results in false positives and false negatives.
A multi-feature fusion transfer learning method is adopted. By dissecting the semantic segmentation network to extract texture and pose features, dynamic fusion weights are generated. Combined with cross-environment transfer learning and adversarial training, illumination correction and feature compensation are performed, and a contrastive loss function is constructed for optimization.
It improves recognition performance in complex scenarios, enhances the system's adaptability to extreme lighting and occlusion, optimizes the reliability of recognition results, and supports the needs of new individual discovery and long-term monitoring.
Smart Images

Figure CN122313530B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of bird individual recognition technology, specifically to a bird individual recognition method based on multi-feature fusion transfer learning. Background Technology
[0002] In the field of bird identification in the wild, identification often relies on analyzing the posture, movement, and feather texture of individual birds in captured images. However, existing technologies often face the problem of decreased recognition rates due to interference from complex environments. In scenes with variable lighting (such as backlighting or dappled sunlight under trees), image overexposure or increased noise can significantly reduce the reliability of texture features. Similarly, posture features are easily interfered with under occlusion, leading to missing information and causing misjudgments or missed judgments.
[0003] In the prior art, CN118104582A discloses an interactive intelligent bird feeding method and device based on image recognition. The method includes: step S1, continuously acquiring images of the bird feeding area through a camera; step S2, extracting image features through the backbone network of a pre-trained bird recognition model to form an original feature vector; step S3, identifying the species of the original feature vector through the detection branch of the pre-trained bird recognition model, and mapping the identified species data into a continuous vector of a specified dimension through an embedding matrix, wherein the dimension of the continuous vector is the same as the dimension of the original feature vector; step S4, superimposing the continuous vector with the original feature vector to form a new feature vector, inputting it into the re-identification branch of the pre-trained bird recognition model to obtain the individual identity of the bird; step S5, when the identified animal species is a bird, recording the individual identity of the bird and its feeding data, and when the identified animal species is not a bird, issuing a shooing signal. Although it can identify individual birds, it does not consider the impact of changes in lighting and occlusion on features, lacks dynamic weight adjustment and cross-environment transfer learning mechanisms, and has insufficient robustness in complex environments, which can easily lead to false positives and false negatives.
[0004] The information disclosed in the background section is only intended to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0005] The purpose of this invention is to provide a bird individual identification method based on multi-feature fusion transfer learning to solve the problems mentioned in the background art.
[0006] To achieve the above objectives, the present invention provides the following technical solution: A method for bird individual identification based on multi-feature fusion transfer learning, comprising the following steps: S1: Collect images of the target individual under different lighting conditions and light intensity data of the environment in which the target individual is located. Extract texture and pose features from the captured images through a semantic segmentation network and detect occlusion areas in the captured images. S2: Calculate the proportion of the captured image occupied by the occluded area, dynamically generate multi-feature fusion weights based on light intensity data and occlusion ratio, and perform feature fusion based on multi-feature fusion weights, texture features, and pose features to generate composite features; S3: Based on the cross-environment transfer learning algorithm, the composite features are corrected for illumination, the feature distribution under different illumination environments is aligned, and a contrastive loss function is constructed to train and optimize the cross-environment transfer learning algorithm. S4: Spatial mapping is performed on the illumination-corrected composite features and similarity matching is performed with the species feature database. Based on the matching results, the individual identification results and corresponding confidence assessment values are output.
[0007] Preferably, in step S1, the semantic segmentation network is dissected using a dual-branch U-NET architecture, wherein: The first branch output includes anatomical structure masks of the head, wings, and tail, and generates posture feature vectors by calculating the coordinates of the center points of each anatomical part. The second branch outputs a feather region segmentation map and extracts texture feature vectors based on the gray-level co-occurrence matrix; The light intensity data includes direct light intensity and diffused light intensity.
[0008] Preferably, in step S2, the logic for generating the multi-feature fusion weights is as follows: First, a joint sensing coefficient is constructed based on light intensity data and occlusion ratio. The calculation method is as follows: In the formula Represents the joint sensing coefficient. , Represents the adjustment factor, where , , , These represent the direct light intensity and the diffused light intensity, respectively. Indicates the occlusion ratio; The joint sensing coefficients are then normalized using the Sigmoid function to generate multi-feature fusion weights, the expression of which is: In the formula Represents the fusion weight vector. This represents the Sigmoid function.
[0009] Preferably, in step S2, the logic for generating composite features by fusing features based on multi-feature fusion weights, texture features, and pose features is as follows: The pose feature vector and texture feature vector are aligned in feature dimensions, and then feature fusion is performed using an element-wise weighted summation method. The calculation method is as follows: In the formula Represents a composite feature vector. , These represent the first and second elements in the fusion weight vector, respectively. , These represent texture feature vectors and pose feature vectors, respectively. The composite feature vector is then processed using the GeLU activation function to introduce non-linear expressive power. The calculation method is as follows: In the formula This represents the processed composite feature vector. This represents the GeLU activation function; Finally, the processed composite feature vector is normalized, and the calculation method is as follows: in This represents the normalized composite feature vector. Represents the maximum value function. express L2 norm, Indicates the comparison factor. .
[0010] Preferably, when the occlusion ratio and the fusion weight vector satisfy the following formula, the normalized composite feature vector is compensated according to a preset historical feature library: In the formula Indicates the occlusion threshold. ; The logic for compensating the normalized composite feature vector is as follows: Based on the normalized composite feature vector, the weighted cosine similarity with each group of samples in the historical feature database is calculated; All samples are sorted based on the weighted cosine similarity, and the five samples with the highest weighted cosine similarity (greater than 0.65) are selected and divided into a compensation feature set. Based on the attention compensation algorithm, the normalized composite feature vector is linearly transformed to generate the query vector, each sample in the compensation feature set is linearly transformed to generate the key vector and value vector, and the attention weight is calculated using the Softmax algorithm. Compensation feature vectors are generated based on attention weights and value vectors. The compensation feature vectors are then concatenated with the normalized composite feature vectors and their dimensions are aligned to complete the compensation for the normalized composite feature vectors.
[0011] Preferably, the logic for illumination correction of the normalized and compensated composite feature vector is as follows: The direct light intensity and diffuse light intensity in the light intensity data are weighted and summed, the summation result is compared with the preset light intensity threshold, and the captured image is labeled as a high light environment or a low light environment based on the comparison result. A feature alignment module is constructed based on a feature encoder and a domain classifier. The feature encoder and the domain classifier are connected through a gradient inversion layer, and the normalized and compensated composite feature vector is used as input. Construct an adversarial loss function, expressed as: In the formula Represents the adversarial loss function. Represents the feature encoder. Representation domain classifier, , These represent the composite feature vectors under low light conditions and under high light conditions, respectively. The optimization objective of the feature encoder is set to maximize the domain classification error, and the optimization objective of the domain classifier is set to minimize the domain classification error. The optimization objectives of the joint adversarial loss function, feature encoder, and domain classifier are achieved through adversarial training to align feature distributions and correct illumination for composite feature vectors.
[0012] Preferably, the logic of step S4 is as follows: The illumination-corrected composite feature vector is projected onto a unit hypersphere to generate the feature to be identified. The feature to be identified is matched with the preset species feature library for similarity, and the weighted cosine similarity between the feature to be identified and each group of individual templates in the species feature library is calculated. The weighted cosine similarity of each group of individual templates is compared with the matching threshold: If the weighted cosine similarity is greater than or equal to the matching threshold, then the individual templates of this group are output as the individual recognition results; If the weighted cosine similarity is less than the matching threshold, the group of features to be identified is labeled as an unidentified group, a "new individual" label is added to it, and this label is output as the individual identification result.
[0013] Preferably, the matching threshold is dynamically set by the light intensity data, and its calculation method is as follows: In the formula Indicates the matching threshold. Indicates the reference threshold. , Indicates the light sensitivity coefficient. ; The credibility assessment value of the individual identification results is calculated using a non-linear mapping, and the calculation method is as follows: In the formula This indicates the credibility assessment value. Representing feature dimension, This represents the weighted cosine similarity between the feature to be identified and the species feature database.
[0014] Compared with the prior art, the beneficial effects of the present invention are: This invention improves recognition performance in complex scenes through multi-feature dynamic fusion, adaptive illumination compensation, and cross-environment transfer learning. First, based on a weight allocation mechanism that considers illumination and occlusion, the fusion ratio of texture and pose features is dynamically adjusted, mitigating the loss of key information caused by overexposure or occlusion. Second, adversarial training and gradient inversion techniques are introduced to eliminate the impact of illumination differences on feature distribution, ensuring feature consistency across environments. Furthermore, an illumination-sensitive dynamic matching threshold design enhances the system's adaptability to extreme conditions such as strong and weak light, and combined with nonlinear reliability assessment, optimizes the reliability of recognition results. Through a hierarchical feature library architecture and a historical data self-evolution mechanism, the scheme further supports the needs of new individual discovery and long-term monitoring, providing a highly robust and scalable recognition framework for biodiversity research in the wild. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of the overall method flow of the present invention; Figure 2 This is a schematic diagram illustrating the change in recognition rate in this invention; Figure 3 This diagram illustrates the change in recognition rate in traditional recognition methods. Detailed Implementation
[0016] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments.
[0017] It should be noted that, unless otherwise defined, the technical or scientific terms used in this invention should have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0018] Example: Please see Figures 1-3 The present invention provides a technical solution: A method for bird individual identification based on multi-feature fusion transfer learning, comprising the following steps: S1: Collect images of the target individual under different lighting conditions and light intensity data of the environment in which the target individual is located. The light intensity data includes direct light intensity and diffuse light intensity. Extract texture and pose features from the captured images using a semantic segmentation network, and detect occluded areas in the captured images.
[0019] In step S1, the semantic segmentation network is dissected using a dual-branch U-NET architecture, wherein: The first branch output includes anatomical structure masks of the head, wings, and tail, and generates posture feature vectors by calculating the coordinates of the center points of each anatomical part. The second branch outputs a feather region segmentation map and extracts texture feature vectors based on the gray-level co-occurrence matrix, i.e., GLCM.
[0020] U-NET is a fully convolutional neural network specifically designed for biomedical image segmentation. Through powerful data augmentation strategies, it achieves efficient training even with a limited number of labeled samples, making it well-suited for scenarios with small sample sizes, such as those incorporating transfer learning. When constructing the two-branch U-NET architecture, the first three convolutional layers can be set as a shared encoder to extract basic spatial features. In the first branch, four interconnected deconvolutional layers can be used to output a ternary mask for the head / wings / tail. In the second branch, five interconnected deconvolutional layers can be used to output a pixel-level segmentation map of the feather region.
[0021] The attitude feature vector specifically includes the horizontal and vertical offsets between the center points of different anatomical locations, as well as the wing spread angle. The coordinates of the center points of different anatomical locations can be calculated using the U-NET architecture; therefore, the horizontal and vertical offsets between these center points can also be obtained through simple calculations, which will not be elaborated upon here. The wing spread angle can be expressed as: In the formula Indicates the wing spread angle. , These represent the x and y coordinates of the center point of the right wing, respectively. , These represent the horizontal and vertical coordinates of the center point of the left wing, respectively.
[0022] Texture feature vectors specifically include contrast, energy, homogeneity, and correlation. Contrast reflects the clarity and edge sharpness of the texture; a higher value indicates a more pronounced difference in grayscale between adjacent pixels (e.g., strong contrast between feather edges and the background). Energy characterizes texture uniformity; a higher value indicates a more even grayscale distribution (e.g., a smooth surface in a complete feather area). Homogeneity distinguishes feather patch types (feather patches with low homogeneity tend to have a speckled texture, while those with high homogeneity tend to have a striped texture). Correlation measures the directionality and linear structure of the texture, i.e., determining the direction of feather growth; a higher value indicates a regular pattern in the texture (e.g., directional arrangement of feather patterns). These features can all be directly calculated using GLCM without relying on other feature extraction methods.
[0023] In this step, a dual-branch U-NET architecture is constructed to extract pose features (anatomical mask) and texture features (feather segmentation) separately. This not only avoids the mutual interference between the two types of features in traditional single-branch networks, but also reduces light sensitivity through GLCM processing, thereby improving the recognition rate in images under different lighting conditions and providing highly reliable feature input for subsequent steps.
[0024] S2: Calculate the proportion of the captured image occupied by the occluded area, dynamically generate multi-feature fusion weights based on light intensity data and occlusion ratio, and perform feature fusion based on multi-feature fusion weights, texture features, and pose features to generate composite features.
[0025] In step S2, the logic for generating the multi-feature fusion weights is as follows: First, a joint sensing coefficient is constructed based on light intensity data and occlusion ratio. The calculation method is as follows: In the formula Represents the joint sensing coefficient. , Represents the adjustment factor, where , , , These represent the direct light intensity and the diffused light intensity, respectively. Indicates the occlusion ratio.
[0026] Here, the ratio between the intensity of diffused light and the intensity of direct light is used to reflect the directionality of the light. When the ratio is less than 1, direct light dominates and is considered backlighting; when the ratio is greater than 1, diffused light dominates and is considered frontlighting. A logarithmic function is used instead of the current ratio to avoid numerical explosion caused by extreme light ratios (such as a ratio greater than 10), making the model smoother overall.
[0027] The joint sensing coefficients are then normalized using the Sigmoid function to generate multi-feature fusion weights, the expression of which is: In the formula Represents the fusion weight vector. This represents the Sigmoid function. Here, the joint sensing coefficients are mapped to... The interval can satisfy the requirements of weight probabilistics and avoid deviations in feature amplitude due to weights and fluctuations. Moreover, the saturation region characteristic of the sigmoid function can suppress weight oscillations under extreme conditions and improve the robustness of the model.
[0028] In step S2, the logic for generating composite features by fusing features based on multi-feature fusion weights, texture features, and pose features is as follows: The pose feature vector and texture feature vector are aligned in feature dimensions, and then feature fusion is performed using an element-wise weighted summation method. The calculation method is as follows: In the formula Represents a composite feature vector. , These represent the first and second elements in the fusion weight vector, respectively. , These represent texture feature vectors and pose feature vectors, respectively.
[0029] Specifically, in occluded scenarios, Increasing the composite feature vector enhances the contribution of pose features, thus compensating for texture loss; in backlit scenes, Reducing the composite feature vector also enhances the contribution of pose features to suppress noise interference in texture features. Neither of these situations is conducive to capturing texture features. Conversely, in unobstructed or front-lit scenes, the contribution of texture features is enhanced, thus achieving the optimal balance between parameter quantity and occlusion robustness.
[0030] The composite feature vector is then processed using the GeLU activation function to introduce non-linear expressive power. The calculation method is as follows: In the formula This represents the processed composite feature vector. This represents the GeLU activation function; Finally, the processed composite feature vector is normalized, and the calculation method is as follows: in This represents the normalized composite feature vector. Represents the maximum value function. express L2 norm, Indicates the comparison factor. .
[0031] Normalization is used to eliminate differences in feature amplitude under different lighting conditions (e.g., the feature norm may be 3-5 times that under strong light than under weak light), thereby ensuring that the distance metric is consistent when subsequent similarity calculations are performed in a unit hyperspherical space. A comparison factor is set to prevent division-by-zero errors caused by zero features (e.g., in the extreme case of full occlusion).
[0032] When the occlusion ratio and the fusion weight vector satisfy the following formula, the normalized composite feature vector is compensated according to the preset historical feature library: In the formula Indicates the occlusion threshold. ; The logic for compensating the normalized composite feature vector is as follows: Based on the normalized composite feature vector, the weighted cosine similarity with each group of samples in the historical feature database is calculated; Specifically, the historical feature library can be constructed from images collected during previous studies. The specific architecture hierarchy can be set as feature library - species layer - individual layer - environmental state - feature vector. The species layer is divided according to the IUCN classification standard, the individual layer stores the set of individual features with unique IDs, the environmental state labels the lighting conditions, season, and geographical location, and the feature vector is stored in binary protobuf format.
[0033] The normalized composite feature vector and the weighted cosine similarity of each sample in the historical feature database are calculated as follows: In the formula This represents the normalized composite feature vector and the historical feature library. Weighted cosine similarity of group samples , They represent , norm, The historical feature database is represented by the first... Feature vectors of a group of samples This represents the transpose of the normalized composite eigenvector. This represents the Hadamard product (i.e., the element-wise product). This represents the sample index of the historical feature database.
[0034] All samples are sorted based on the weighted cosine similarity, and the five samples with the highest weighted cosine similarity (greater than 0.65) are selected and divided into a compensation feature set. Based on the attention compensation algorithm, the normalized composite feature vector is linearly transformed to generate the query vector. Each sample in the compensation feature set is linearly transformed to generate the key vector and value vector. The attention weight is calculated using the Softmax algorithm. The generation methods of the query vector (Q vector), key vector (K vector), and value vector (V vector), as well as the calculation methods of the attention weight, are all mature existing technologies, and will not be elaborated on here.
[0035] Compensation feature vectors are generated based on attention weights and value vectors. The compensation feature vectors are then concatenated with the normalized composite feature vectors and their dimensions are aligned to complete the compensation for the normalized composite feature vectors.
[0036] By introducing a compensation mechanism for composite feature vectors, compensation can be performed based on similar samples in the historical feature library under complex scenarios such as occlusion and sudden changes in illumination, thereby achieving accurate feature repair and improving the overall recognition rate.
[0037] S3: Based on the cross-environment transfer learning algorithm, the composite features are corrected for illumination, the feature distribution under different illumination environments is aligned, and a contrastive loss function is constructed to train and optimize the cross-environment transfer learning algorithm.
[0038] The logic for applying illumination correction to the normalized and compensated composite feature vector is as follows: The direct light intensity and diffuse light intensity in the light intensity data are weighted and summed, the summation result is compared with the preset light intensity threshold, and the captured image is labeled as a high light environment or a low light environment based on the comparison result. A feature alignment module is constructed based on a feature encoder and a domain classifier. The feature encoder and the domain classifier are connected through a gradient inversion layer, and the normalized and compensated composite feature vector is used as input. Construct an adversarial loss function, expressed as: In the formula Represents the adversarial loss function. This represents the feature encoder, with the mathematical meaning being the expected value within the parentheses. The domain classifier, mathematically represented by the predicted probability within the parentheses, , These represent the composite feature vectors under low light conditions and under high light conditions, respectively. During forward propagation, the gradient reversal layer directly transmits the input features, which are the normalized and compensated composite feature vectors. During backward propagation, it reverses the gradient sign and scales the gradient, as shown below: here This represents the scaling factor, and its typical value range is... The specific size can be determined based on expert experience.
[0039] The optimization objective of the feature encoder is set to maximize the domain classification error, and the optimization objective of the domain classifier is set to minimize the domain classification error. The optimization objectives of the joint adversarial loss function, feature encoder, and domain classifier are expressed as: Feature distribution alignment is achieved through adversarial training, enabling illumination correction of composite feature vectors.
[0040] In this step, by introducing the adversarial training paradigm and gradient inversion mechanism in a synergistic design, the inherent features of individual birds (such as feather texture) can be decoupled from environmental interference factors (light intensity), which greatly improves the cosine similarity of feature vectors of the same individual under different lighting conditions, thereby improving recognition accuracy. Moreover, this architecture can be further extended to integrate the domain alignment requirements of other environmental variables (such as rain, fog, motion blur), providing a general feature distribution alignment framework for biometric recognition in complex environments.
[0041] S4: Spatial mapping is performed on the illumination-corrected composite features and similarity matching is performed with the species feature database. Based on the matching results, the individual identification results and corresponding confidence assessment values are output.
[0042] The logic for step S4 is as follows: The illumination-corrected composite feature vector is projected onto a unit hypersphere to generate the feature to be identified. The feature to be identified is matched with the preset species feature library for similarity, and the weighted cosine similarity between the feature to be identified and each group of individual templates in the species feature library is calculated. The weighted cosine similarity of each group of individual templates is compared with the matching threshold: If the weighted cosine similarity is greater than or equal to the matching threshold, then the individual templates of this group are output as the individual recognition results; If the weighted cosine similarity is less than the matching threshold, the group of features to be identified is labeled as an unidentified group, a "new individual" label is added to it, and this label is output as the individual identification result.
[0043] The construction method of the species feature database is similar to that of the historical feature database, but the image data processed during construction differs. The species feature database uses more standardized image data for reference. Furthermore, their functions differ: the historical feature database is used to compensate for composite feature vectors, while the species feature database is used to compare with the final composite feature vector to generate individual identification results.
[0044] The matching threshold is dynamically set by the light intensity data, and its calculation method is as follows: In the formula Indicates the matching threshold. Indicates the reference threshold. , Indicates the light sensitivity coefficient. Because the weighted cosine similarity, after normalization by unit hyperspherical projection and dynamic weights, falls within a certain range... Since the range of the reference threshold is the same as that of the matching threshold, direct comparison is possible. In wild bird photography, lighting conditions are the primary factor affecting image feature quality. For example, strong backlighting can lead to overexposure, resulting in the loss or distortion of texture features (such as feather details), while posture features (such as wingspan) may remain relatively stable. In low light, increased image noise can interfere with both posture and texture features, leading to a decrease in overall feature confidence. Therefore, using a fixed reference threshold, adjusted in conjunction with lighting data, can accurately respond to changes in lighting, improve recognition stability in complex environments, balance false positives and false negatives, and optimize recognition efficiency and accuracy. The matching threshold is dynamically adjusted with lighting conditions. In strong light, the matching threshold increases to tolerate feature deviations caused by overexposure; in low light, the matching threshold decreases to avoid false matching caused by noise.
[0045] The credibility assessment value of the individual identification results is calculated using a non-linear mapping, and the calculation method is as follows: In the formula This indicates the credibility assessment value. Representing feature dimension, This represents the weighted cosine similarity between the feature to be identified and the species feature database.
[0046] Furthermore, the captured image and its corresponding composite feature vector after recognition can be stored in the historical feature library for recognition of other images captured subsequently, thereby achieving self-evolution of the historical feature library.
[0047] In this embodiment, both the traditional recognition method and the recognition method proposed in this scheme are used to identify images captured under different lighting ratios and different occlusion ratios. The traditional recognition method uses a single-branch convolutional neural network (CNN) combined with standard transfer learning and texture feature statistical analysis. Compared to the recognition method proposed in this scheme, the traditional recognition method differs in that: the single-branch CNN is used for fusing bird texture and pose features without dynamic weight adjustment; standard transfer learning is used for lighting environment adaptation, but without adversarial training or occlusion compensation; and the texture feature statistical analysis uses a traditional machine learning method based purely on texture statistical features. The recognition results of the two methods are shown in the table below: Table 1: Recognition rate variation under different lighting conditions Figures 2-3 The red and gray spheres in the figure represent the recognition rates of the proposed method and the traditional method on a three-dimensional coordinate system, respectively. The X and Y axes in the figure represent the illumination ratio (i.e., the light intensity ratio). The table shows the relationship between the recognition rate and the occlusion ratio, with the Z-axis representing the recognition rate and the blue-green dots representing the projections of the recognition rate onto the YZ and ZX planes, respectively. These dots are used to illustrate the trends in recognition rate relative to the occlusion ratio and illumination ratio. Refer to the data in the table above. Figures 2-3 It can be seen that under low light and low occlusion conditions, the recognition rate of the proposed method is not significantly different from that of the traditional method, both around 90%. However, as the occlusion and illumination ratios increase, the traditional method lacks a dynamic adaptation mechanism to the lighting environment. Changes in illumination lead to significant changes in image feature distribution, while occlusion causes the loss of key information, making it difficult for the model to accurately identify the image, resulting in a rapid drop in the recognition rate. In contrast, because the proposed method has an occlusion compensation and illumination correction mechanism, although the recognition rate decreases, it still remains at a reasonable level. Therefore, ultimately, under strong backlight and high occlusion conditions, the recognition rate of the proposed method is far higher than that of the traditional method.
[0048] In summary, this invention significantly improves recognition performance in complex scenes through multi-feature dynamic fusion, adaptive illumination compensation, and cross-environment transfer learning. First, based on a weight allocation mechanism for illumination and occlusion perception, the fusion ratio of texture and pose features is dynamically adjusted, effectively mitigating the loss of key information caused by overexposure or occlusion. Second, adversarial training and gradient inversion techniques are introduced to eliminate the impact of illumination differences on feature distribution, ensuring feature consistency across environments. Furthermore, the illumination-sensitive dynamic matching threshold design enhances the system's adaptability to extreme conditions such as strong and weak light, and combined with nonlinear reliability assessment, optimizes the reliability of recognition results. Through a hierarchical feature library architecture and a historical data self-evolution mechanism, the scheme further supports the needs of new individual discovery and long-term monitoring, providing a highly robust and scalable recognition framework for biodiversity research in the wild.
[0049] The above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.
[0050] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented in software, the above embodiments can be implemented, in whole or in part, as a computer program product. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution.
[0051] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0052] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A method for bird individual identification based on multi-feature fusion transfer learning, characterized in that, The specific steps include: S1: Collect images of the target individual under different lighting conditions and light intensity data of the environment in which the target individual is located. Extract texture and pose features from the captured images through a semantic segmentation network and detect occlusion areas in the captured images. S2: Calculate the proportion of the captured image occupied by the occluded area, dynamically generate multi-feature fusion weights based on light intensity data and occlusion ratio, and perform feature fusion based on multi-feature fusion weights, texture features, and pose features to generate composite features; In step S2, the logic for generating composite features by fusing features based on multi-feature fusion weights, texture features, and pose features is as follows: The pose feature vector and texture feature vector are aligned in feature dimensions, and then feature fusion is performed using an element-wise weighted summation method. The calculation method is as follows: ; In the formula Represents a composite feature vector. , These represent the first and second elements in the fusion weight vector, respectively. , These represent texture feature vectors and pose feature vectors, respectively. The composite feature vector is then processed using the GeLU activation function to introduce non-linear expressive power. The calculation method is as follows: ; In the formula This represents the processed composite feature vector. This represents the GeLU activation function; Finally, the processed composite feature vector is normalized, and the calculation method is as follows: ; in This represents the normalized composite feature vector. Represents the maximum value function. express L2 norm, Indicates the comparison factor. ; S3: Based on the cross-environment transfer learning algorithm, the composite features are corrected for illumination, the feature distribution under different illumination environments is aligned, and a contrastive loss function is constructed to train and optimize the cross-environment transfer learning algorithm. The logic for applying illumination correction to the normalized and compensated composite feature vector is as follows: The direct light intensity and diffuse light intensity in the light intensity data are weighted and summed, the summation result is compared with the preset light intensity threshold, and the captured image is labeled as a high light environment or a low light environment based on the comparison result. A feature alignment module is constructed based on a feature encoder and a domain classifier. The feature encoder and the domain classifier are connected through a gradient inversion layer, and the normalized and compensated composite feature vector is used as input. Construct an adversarial loss function, expressed as: ; In the formula Represents the adversarial loss function. Represents the feature encoder. Representation domain classifier, , These represent the composite feature vectors under low light conditions and under high light conditions, respectively. The optimization objective of the feature encoder is set to maximize the domain classification error, and the optimization objective of the domain classifier is set to minimize the domain classification error. The optimization objectives of the joint adversarial loss function, feature encoder, and domain classifier are used to achieve feature distribution alignment through adversarial training, thereby enabling illumination correction of composite feature vectors. S4: Spatial mapping is performed on the illumination-corrected composite features and similarity matching is performed with the species feature database. Based on the matching results, the individual identification results and corresponding confidence assessment values are output.
2. The bird individual identification method based on multi-feature fusion transfer learning according to claim 1, characterized in that: In step S1, the semantic segmentation network is dissected using a dual-branch U-NET architecture, wherein: The first branch outputs the anatomical structure mask of the head, wings and tail, and generates the posture feature vector by calculating the coordinates of the center point of each anatomical part. The second branch outputs a feather region segmentation map and extracts texture feature vectors based on the gray-level co-occurrence matrix; The light intensity data includes direct light intensity and diffused light intensity.
3. The bird individual recognition method based on multi-feature fusion transfer learning according to claim 1, characterized in that: In step S2, the logic for generating the multi-feature fusion weights is as follows: First, a joint sensing coefficient is constructed based on light intensity data and occlusion ratio. The calculation method is as follows: ; In the formula Represents the joint sensing coefficient. , Represents the adjustment factor, where , , , These represent the direct light intensity and the diffused light intensity, respectively. Indicates the occlusion ratio; The joint sensing coefficients are then normalized using the Sigmoid function to generate multi-feature fusion weights, the expression of which is: ; In the formula Represents the fusion weight vector. This represents the Sigmoid function.
4. The bird individual identification method based on multi-feature fusion transfer learning according to claim 3, characterized in that: When the occlusion ratio and the fusion weight vector satisfy the following formula, the normalized composite feature vector is compensated according to the preset historical feature library: ; In the formula Indicates the occlusion threshold. ; The logic for compensating the normalized composite feature vector is as follows: Based on the normalized composite feature vector, the weighted cosine similarity between the target individual and each group of samples in the historical feature database is calculated; All samples are sorted based on the weighted cosine similarity, and the five samples with the highest weighted cosine similarity (greater than 0.65) are selected and divided into a compensation feature set. Based on the attention compensation algorithm, the normalized composite feature vector is linearly transformed to generate the query vector, each sample in the compensation feature set is linearly transformed to generate the key vector and value vector, and the attention weight is calculated using the Softmax algorithm. Compensation feature vectors are generated based on attention weights and value vectors. The compensation feature vectors are then concatenated with the normalized composite feature vectors of the target individual and their dimensions are aligned to complete the compensation of the normalized composite feature vectors.
5. The bird individual identification method based on multi-feature fusion transfer learning according to claim 4, characterized in that: The logic of step S4 is as follows: The illumination-corrected composite feature vector is projected onto a unit hypersphere to generate the feature to be identified. The feature to be identified is matched with the preset species feature library for similarity, and the weighted cosine similarity between the feature to be identified and each group of individual templates in the species feature library is calculated. The weighted cosine similarity of each group of individual templates is compared with the matching threshold: If the weighted cosine similarity is greater than or equal to the matching threshold, then the individual templates of this group are output as the individual recognition results; If the weighted cosine similarity is less than the matching threshold, the group of features to be identified is labeled as an unidentified group, a "new individual" label is added to it, and this label is output as the individual identification result.
6. The bird individual identification method based on multi-feature fusion transfer learning according to claim 5, characterized in that: The matching threshold is dynamically set by the light intensity data, and its calculation method is as follows: ; In the formula Indicates the matching threshold. Indicates the reference threshold. , Indicates the light sensitivity coefficient. ; The credibility assessment value of the individual identification results is calculated using a non-linear mapping, and the calculation method is as follows: ; In the formula This indicates the credibility assessment value. Representing feature dimension, This represents the weighted cosine similarity between the feature to be identified and the individual templates in the species feature database.
Citation Information
Patent Citations
Interactive intelligent bird feeding method and device based on image recognition
CN118104582A
Laser bird repelling table control method and system based on AI algorithm recognition
CN120549055A
High-precision image processing method and system based on illumination adaptive compensation
CN121032846A
