Transform-based electron microscope neuron long-range tracking method

Through the long-range tracking method of electron microscopy neurons based on Transformer, the multi-head attention mechanism and the multi-layer perceptron are used to predict the connection probability of candidate fragments, which solves the problems in the existing technology of time-consuming and labor-intensive manual proofreading and the limited generalization ability of automated methods, and achieves Efficient and accurate long-range tracking and automated reconstruction of neurons.

CN118674946AActive Publication Date: 2024-09-20ARTIFICIAL INTELLIGENCE RES INST OF HEFEI COMPREHENSIVE NAT SCI CENT (ANHUI ARTIFICIAL INTELLIGENCE LAB)
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411165496.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-09-20
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

Existing electron microscopy neuron tracking methods rely on manual correction, which is time-consuming and laborious, and the automated methods have limited generalization capabilities and are difficult to effectively capture the long-range contextual information of neurons, resulting in segmentation errors and high reconstruction challenges.

Method used

The long-range tracking method of electron microscopy neurons based on Transformer is used to interact information between multiple segments of the tracking state through a multi-head attention mechanism. The ConSkeletonNet and EmbedNet models are combined to extract morphological and image features, and a multi-layer perceptron is used to generate position coding and prediction. The connection probability of candidate fragments enables automated long-range tracking.

Benefits of technology

It achieves efficient and accurate neuron long-range tracking, significantly reduces manual correction time, improves the generalization ability of automated tracking, and provides a reliable baseline model for neuron long-range tracking tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674946A
    Figure CN118674946A
Patent Text Reader

Abstract

The invention relates to the technical field of biological image processing, and discloses an electron microscope neuron long-range tracking method based on Transform. Neuron tracking is regarded as a sequence generation problem, a Transform model is used for coding tracked fragments and competitive reasoning of candidate fragments, and the receptive field in the tracking process is effectively expanded. The tracking model adopted by the invention comprises a feature extraction module and a connection prediction module, the feature extraction module fuses morphological features and image features, and position codes fusing skeleton connection point coordinates and serial numbers are added, so that rich multi-modal input is provided for the Transform model. The connection prediction module utilizes a multi-head self-attention mechanism to carry out deep interaction in the classes and between the classes of the tracked fragment and the candidate fragment so as to predict the neuron fragment of the next connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of biological image processing, and in particular to a Transformer-based electron microscope neuron long-range tracing method. Background Art

[0002] The development of high-resolution electron microscopy technology has brought about a massive amount of electron microscope image data. These large-scale high-resolution data allow neuroscientists to reconstruct and interpret neural circuits at nanoscale resolution. However, due to the huge amount of data, it is no longer possible to manually track neurons. How to efficiently track neurons from whole-brain electron microscope images is of great significance for the reconstruction of the fine structure of neurons and the construction of a whole-brain neural map.

[0003] With the development of deep learning, some researchers have tried to use automated electron microscope image segmentation methods to directly segment out single neuron instances to reconstruct neurons. According to the process, these methods are usually divided into two-stage methods and end-to-end methods. The two-stage method usually first predicts the intermediate representation at the pixel level, and then uses the watershed transform and aggregation operations to generate the final instantiation segmentation result. The end-to-end method combines these two steps into one and directly outputs the instantiation segmentation result. Since the existing segmentation methods use pixel-level local context for segmentation in a limited area at nanometer resolution, only limited local context information can be used, and the neuronal morphology in the brain is very complex, and there are ultra-long-range neurons that span multiple brain regions, making it very difficult to directly segment complete neurons from dense voxels. At the same time, problems such as slice loss and misalignment during electron microscope imaging will also make the reconstruction method of directly segmenting single neurons more challenging.

[0004] Specifically for the task of electron microscope image segmentation, two types of errors will occur: merge error and split error. Since the process of correcting split errors is simpler than that of correcting merge errors, we only need to focus on connecting different fragments of the same neuron. Therefore, recent segmentation methods all follow the "over-segmentation consensus", that is, first over-segment the electron microscope image into a large number of fragments.

[0005] Most of the current mainstream electron microscope neuron reconstruction methods are accompanied by two steps. The first step is to use a segmentation algorithm to over-segment the three-dimensional electron microscope image, resulting in a large number of over-segmented fragments. Subsequently, a large amount of human resources are required for fine manual proofreading. The proofreading process starts from the over-segmented fragments. The proofreader needs to carefully check the continuity of the 3D morphology and image features between the fragments, and merge the fragments when necessary to track the complete neuron structure. However, with the continuous growth of the electron microscope (EM) imaging data scale, over-reliance on manual neuron tracing will lead to a huge waste of human resources. Recently, some deep learning-based automated methods have been used to reduce the time spent on manual proofreading by predicting the connection probability between over-segmented neuron fragments. However, these methods predict the connectivity between two fragments in local image blocks, which can only capture local contextual information, thereby limiting the generalization ability of the model.

[0006] In recent years, the emergence of large natural language model capabilities has fully demonstrated the powerful performance of the Transformer model in long-range relational reasoning. For the problem of long-range neuron tracing, it can be naturally regarded as a text generation problem, that is, given the previous The network is used to predict the next connected segment. Therefore, the present invention hopes to explore a method that can capture long-range context information to automatically perform long-range tracking of electron microscope neurons.

[0007] At present, mainstream electron microscope neuron tracing is often time-consuming and laborious because it requires manual proofreading by humans, and some existing automated methods are less studied and have weak generalization capabilities. In order to more efficiently track electron microscope neurons over long distances, the present invention designs a method for long-range electron microscope neuron tracing based on Transformer. Summary of the invention

[0008] With the deepening of brain neuroscience research, the demand for accurate reconstruction of neuronal structure is growing. Electron microscopy imaging technology can provide high-resolution electron microscope images, supporting detailed observation and tracking of neurons at nanometer resolution. However, due to the huge volume of electron microscope imaging data, the complex and diverse neuronal morphology and the wide span, traditional manual tracking methods are time-consuming and labor-intensive, and the generalization ability of automated tracking methods is limited. In response to these problems, the present invention proposes a Transformer-based electron microscope neuron long-range tracking method, which effectively expands the receptive field during the tracking process by using the Transformer model to encode historical tracking information and competitive reasoning of candidate fragments.

[0009] In order to solve the above technical problems, the present invention adopts the following technical solutions: A Transformer-based electron microscope neuron long-range tracking method, which inputs multiple given tracked segments and multiple candidate segments into a trained tracking model, outputs the connection probability of multiple candidate segments, and uses the candidate segment with the highest connection probability as the next segment to be tracked; the training process of the tracking model specifically includes the following steps: Step 1: Segment the 3D electron microscope image of the neuron to obtain fragments, track some of the fragments, and obtain multiple tracking states; each tracking state contains a set of H tracked fragments. and a set of K candidate fragments ; Step 2: and The 3D point clouds corresponding to all the segments in are input into the ConSkeletonNet model to obtain the morphological features of the tracked segments. and the morphological features of the candidate fragments ; Crop out the image area containing all the fragments in the current tracking state in the 3D electron microscope image; Input the image area into the EmbedNet model to obtain the image features of the tracked fragments and the image features of the candidate segments ;Will and Input to the multi-layer perceptron And splice in the feature dimension to obtain the multimodal features of the tracked fragments ,Will and Input to the multi-layer perceptron And splice in the feature dimension to obtain the multimodal features of the candidate fragments ; Based on the sequence number of the tracked fragment and the coordinates of the skeleton connection point, the position code E of the tracked fragment is obtained; Add E element-wise to obtain the position-aware multimodal features of the tracked segment. ;Will and Splice into the overall feature T; Step 3: Input the overall feature T into the Transformer encoder, and use the multi-head attention mechanism to interact information between multiple segments in the current tracking state; then input the features output by the Transformer encoder into the classifier to predict the connection probabilities of K candidate segments; Step 4: Construct loss Train the tracking model: ; is the predicted connection probability of the current candidate segment; represents the sample label; Indicates that the current candidate segment is the next segment to be tracked and is a positive sample; Indicates that the current candidate segment is not the next segment to be tracked and is a negative sample; is the balance factor between positive and negative samples, is the classification adjustment factor.

[0010] Furthermore, in step 2, obtaining the position code E of the tracked segment based on the sequence number of the tracked segment and the coordinates of the skeleton connection point specifically includes: The serial number of the tracked fragment The coordinates of the skeleton connection points of the tracked fragments Splice in the feature dimension and input the splicing result into the multi-layer perceptron Generate position encodings for tracked segments .

[0011] Furthermore, in step three, the overall feature T is input into the Transformer encoder, and information is exchanged between multiple fragments of the current tracking state through a multi-head attention mechanism, specifically including: the query Q, key Key, and value V used by the multi-head attention mechanism are all the overall feature T.

[0012] Furthermore, the classifier adopts a multi-layer perceptron.

[0013] Compared with the prior art, the beneficial technical effects of the present invention are: The present invention can efficiently and accurately perform long-range tracking of neurons under electron microscopy. Experimental results on the neuron tracking dataset FlySeqTracing show that the method of the present invention exhibits powerful automated tracking capabilities. Since the present invention is the first method for automated long-range tracking of neurons under electron microscopy, in order to comprehensively and accurately evaluate the performance of the long-range neuron tracking model, the present invention designs a set of evaluation systems and performs detailed visualization and analysis of the tracking results, providing a relatively reliable baseline model for the task of long-range neuron tracking under electron microscopy. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0015] Figure 1 The present invention provides an overall flow chart of the embodiment of the present invention.

[0016] Figure 2 A schematic diagram of a tracking model provided by an embodiment of the present invention.

[0017] Figure 3 A schematic diagram of a Strahler number provided in an embodiment of the present invention.

[0018] Figure 4a and Figure 4b Schematic diagrams of neuron subsequences and neuron candidate segments provided in embodiments of the present invention, respectively; wherein: Figure 4b The fragments 1 and 2 in the figure are two fragments that should be connected, and the remaining fragments are candidate fragments used as negative samples in the current tracking state.

[0019] Figure 5a and Figure 5b Schematic diagrams of visualization of neuron subsequence tracking results and neuron subsequence true values ​​provided in embodiments of the present invention respectively. DETAILED DESCRIPTION

[0020] A preferred embodiment of the present invention is described in detail below with reference to the accompanying drawings.

[0021] The overall process of the present invention is as follows Figure 1 As shown, it specifically includes the following contents.

[0022] First, considering that human experts will consider the continuity of 3D morphology and image features between segments when manually proofreading, the present invention first pre-processes the surface point cloud of the segmented segments and the corresponding image blocks to facilitate the subsequent extraction of morphological features and image features.

[0023] Considering that electron microscope neuron tracing is a long-range reasoning process, the emergence of large natural language model capabilities in recent years has fully demonstrated the powerful performance of the Transformer model in long-range relationship reasoning. For the problem of long-range neuron tracing, the present invention regards it as a text generation problem, that is, given the first H connected neuron segments, let the tracing model predict the next segment that should be connected.

[0024] In the present invention, the already connected segment is called a tracked segment, and the next segment to be connected is called a candidate segment.

[0025] The tracing model TracingFormer adopted by the present invention includes a feature extraction module and a connection prediction module.

[0026] The task of the feature extraction module is to extract morphological features and image features from the input tracked segments and the candidate segments of the current tracking state, with the help of the ConSkeletonNet model and the EmbedNet model, and fuse these two features to obtain multimodal features. In order to ensure the uniqueness and distinguishability of each segment, the present invention adds position coding of the fusion connection point coordinates and sequence number to the tracked segments, and no position coding is added to the candidate segments. After this step is completed, position-aware multimodal features can be obtained.

[0027] The ConSkeletonNet model and the EmbedNet model are models recorded in the prior art. For details, please refer to the following documents: Daiyi Zhu, Qihua Chen, Xuejin Chen. Self-Supervised Learning ofSkeleton-Aware Morphological Representation for 3D Neuron Segments. International Conference on 3D vision (3DV), 2024.

[0028] Chen Q, Chen X, Wang C, et al. Learning Multimodal VolumetricFeatures for Large-Scale Neuron Tracing[J]. arXiv preprint arXiv:2401.03043,2024.

[0029] The connection prediction module relies on the multi-head self-attention mechanism in the Transformer model to perform deep feature interaction on the three combinations of "tracked segments-tracked segments", "tracked segments-candidate segments" and "candidate segments-candidate segments". Finally, the fully integrated candidate segment features are sent to the classifier for classification to obtain the classification probability of each candidate segment.

[0030] Example The goal of the present invention is to automatically model the connection relationship between multiple pairs of fragments, automatically predict the connection relationship between the current fragment and each candidate fragment from the morphology and image features of the fragments, so as to automatically realize long-range tracking of neurons. The present invention can also be combined with a neuron interactive proofreading tool to provide heuristic candidate fragment screening and improve the efficiency of neuron proofreading. Specifically, the tracking model of the present invention includes two modules. The first is the Feature Extraction Module (FEM), which fuses morphological features and image features, and adds the position encoding of the fused connection point coordinates and serial numbers to obtain position-aware multimodal features. The second is the Connection Prediction Module (CPM), which performs deep interaction of features within and between classes of tracked fragments and candidate fragments to predict the next connected fragment. The framework structure of the tracking model is as follows Figure 2 Each part will be explained in detail below.

[0031] 1. Feature extraction module The feature extraction module aims to extract discriminative features for all tracked segments and candidate tracking segments in the current tracking state of the neuron, which will be used to model the connection relationship between the segments later. In order to achieve this goal, the present invention uses the ConSkeletonNet model to extract skeleton-aware morphological features for the segments online, and fuses them with the offline image features extracted by the EmbedNet model to obtain multimodal features. However, the spatial position information of the tracked segments and candidate segments cannot be directly represented by multimodal features alone. Therefore, a way is needed to understand the position information in the input segments. The present invention designs a position-aware position encoding with reference to the Transformer model to distinguish tracked segments from candidate segments, and obtains the final input by adding the position encoding to the multimodal features at the element level. In this way, each tracked segment contains both its own multimodal features and its position information in the current tracking state, which helps the Transformer model achieve better performance when processing long-range reasoning tasks.

[0032] First, we start with a tracking state for the neuron, which contains the set of tracked segments. and the set of candidate fragments , and Represents the number of tracked segments and candidate segments respectively. For these segments, the corresponding 3D point clouds are collected in advance. ,in ,and is the number of sampling points in each segment, and these point cloud data constitute a three-dimensional representation of the neuron morphology. Input to the ConSkeletonNet model to predict skeleton-aware morphological representations of tracked segments and candidate segments and ,in is the feature dimension. These morphological representations not only capture the morphological information of neurons, but also incorporate the key features of their skeleton structure. At the same time, based on the skeleton of the neuron, the midpoint of the edge connecting the candidate fragment and the skeleton of the positive sample candidate fragment can be obtained. With the midpoint as the center, a local image area is cropped in the 3D electron microscope image. The image area needs to contain all the fragments in the current tracking state. Then, the offline image features pre-calculated by the EmbedNet model are used to collect offline image features for the tracked fragments and candidate fragments in the current tracking state. and ,in is the dimension of the feature. The online morphological features of the tracked segments and candidate segments are concatenated with the offline image features in the feature dimension and input into a multi-layer perceptron. The fused multimodal features are predicted in .

[0033] Next, the tracked segments and candidate segments are distinguished. In order to ensure that the tracking model can distinguish segments at different locations, the present invention sets the sequence number of the tracked segment The coordinates of the points where the fragments are connected to the skeleton The concatenated features are then fed into a multi-layer perceptron. Generate position encodings for tracked segments In this way, each multimodal feature of the tracked segment is assigned a unique position code, thereby preserving the sequential information of the tracked segment. At the same time, no position code is added to the multimodal features of the candidate segment, which makes the multimodal features of the candidate segment effectively distinguishable when splicing with the multimodal features of the tracked segment. This processing method helps the tracking model to accurately identify and process different types of multimodal features in subsequent processing. Subsequently, the multimodal features of the tracked segment are combined with the multimodal features of the tracked segment. The corresponding position code Perform element-wise addition. In this way, each multimodal feature of the tracked segment is given position information. Then, the position-aware multimodal features of the tracked segment are added to the multimodal features of the candidate segment. The concatenation is performed in the quantity dimension. Finally, the concatenated overall feature is input into the connection prediction module.

[0034] 2. Connect the prediction module The connection prediction module aims to use the Transformer model to model the connection prediction of multiple candidate segments. The present invention adopts a multi-head self-attention mechanism, the input of which is The concatenated overall features are used as the basis for efficient information exchange between “tracked segments-tracked segments”, “tracked segments-candidate segments”, and “candidate segments-candidate segments”. This method expands the receptive field of each candidate segment, enabling it to capture more detailed contextual information for competitive reasoning. Next, the Transformer encoder Output The features of the candidate segments are input into a multi-layer perceptron To predict . and They represent the Hth tracked segment and the Kth candidate segment respectively. Finally, the present invention obtains The connection probability of candidate segments , is the connection probability of the Kth candidate segment. The candidate segment with the highest probability is the segment that should be connected in the current tracking state.

[0035] In the tracking process, due to the large disparity between the ratio of positive samples and negative samples, the present invention introduces focal loss as a loss function to alleviate this imbalance. The definition is as follows: ; in, represents the connection probability of the current candidate segment; when When , it means that the current candidate segment is a candidate segment used as a positive sample; when When , it means that the current candidate segment is a candidate segment used as a negative sample; is the balance factor between positive and negative samples; is the classification adjustment factor, which is used to adjust the weight of difficult and easy samples.

[0036] 3. Dataset Construction In order to train the tracking model, the present invention generates training data based on 110 complete neurons and over-segmented fragments that have been proofread by experts on the Flywire platform. The present invention splits the complete neuron into multiple neuron subsequences, and the splitting method refers to the Strahler Number. Specifically, based on the skeleton information of the complete neuron, the leaf node of the neuron skeleton can be obtained, and its Strahler number is set to 1. Then, through a depth-first search, the Strahler number is recursively assigned to each neuron skeleton node. When two skeleton nodes of the same level of a neuron are merged, the Strahler number of the new skeleton node is increased by 1. When skeleton nodes of different levels are merged, the Strahler number of the new fragment is equal to the higher one of the merged skeleton nodes. Finally, the Strahler number of each skeleton node reflects its branching complexity in the neuron skeleton diagram. The specific schematic diagram is shown in the following figure. Figure 3 As shown in Figure 1, a path starting from a leaf node (Straher number is 1) to the neuron fragment with the largest Strahler number in the neuron is a neuron subsequence.

[0037] After the neuron subsequence is constructed, the present invention collects candidate segments used as negative samples based on the skeleton information of the neuron subsequence. Based on the skeleton information, the present invention can determine the midpoint of the skeleton connection edge of two over-segmented segments (i.e., positive sample pairs) that should be connected. and the corresponding connecting edge vector Then, the present invention connects the midpoints of the edges is the center of the sphere, with a radius of In the spherical space, calculate the relationship between each voxel point and Vectors and vectors formed by connecting points The angle between .when Less than the preset threshold When , the present invention considers that the segmented segment corresponding to the voxel point is a candidate segment used as a negative sample.

[0038] Through the above method, the present invention finally constructed 110 neurons with a total of 32,025 neuron subsequences. In order to reduce the difficulty of the training process, the present invention retained neuron subsequences with a length between 10 and 50, and obtained a data set containing 11,686 neuron subsequences. The present invention named this data set FlySeqTracing. Among them, the subsequences in 105 neurons were used for training, and the subsequences of the other 5 neurons were used for testing. At the same time, the present invention visualized the neuron subsequences and candidate fragments of the FlySeqTracing data set, such as Figure 4a and Figure 4bAs shown in Figure 2, it can be found that the single neuron subsequence manually tracked by humans is actually composed of multiple different over-segmented fragments connected in an orderly manner. At the same time, most of the candidate fragments in the tracking process are composed of some fragments near the current tracking position.

[0039] 4. Implementation Details a) Network Architecture: In the feature extraction module, two three-layer multilayer perceptrons ( and ) are used to generate multimodal features and position encoding respectively. In the connection prediction module, the present invention uses a 10-layer Transformer encoder to perform deep feature interaction within and between classes of tracked segments and candidate segments, and a three-layer classification multi-layer perceptron It is used to predict the connection probability of candidate segments.

[0040] b) Training settings: The present invention uses the loss To train the tracking model, , using the Adam optimizer with warmup and cosine decay learning rate schedule, the tracking model is trained for 20 epochs, with a warmup period of 1 epoch and a base learning rate of Set to .

[0041] 5. Experimental Results This invention is the first known method for automated long-range neuron tracing. In order to comprehensively and accurately evaluate the performance of the long-range neuron tracing model and provide a baseline evaluation, this invention selects four key indicators. First, considering the given After successfully connecting the fragments, the tracking model predicts the top-1 accuracy (top1-acc) of the next fragment, that is, the degree of match between the fragment that the tracking model predicts to be most likely to be connected and the fragment that should actually be connected. Secondly, the present invention also calculates the top-5 accuracy (top5-acc) to measure the accuracy of the tracking model in the first five predictions. In addition, in order to understand the selection tendency of the tracking model among the candidate fragments, the present invention calculates the average ranking of the next fragment that should be connected among the candidate fragments, namely mean-rank. Finally, the present invention also counts the average number of steps that the tracking model can track back from the starting point of tracking, namely mean-steps, to evaluate the ability of the tracking model to automatically track neuronal paths. These four indicators together constitute the basis for the present invention to comprehensively evaluate the performance of the model.

[0042] Specific indicators are shown in Table 1. From the data in the table, it can be seen that the tracing model TracingFormer performs well, with top1-acc and top5-acc reaching 0.768 and 0.984 respectively. It is worth mentioning that the top5-acc reached 0.984. If the present invention is used to assist humans in neuron tracing, it will greatly reduce the time for manual screening of candidate fragments and significantly improve work efficiency. In addition, starting from the tracing starting point, the method of the present invention can track back 2.587 steps on average, showing a good ability to automatically track short steps.

[0043] Table 1

[0044] The neuron subsequences traced by the network of the present invention are visualized separately. Figure 5a and Figure 5b As shown in the figure, the tracking model TracingFormer demonstrates powerful tracking capabilities. The neuron sequence tracked by the model has only one neuron fragment in the box that is slightly different from the ground truth (GT), and the rest are tracked correctly.

[0045] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention, and any reference numerals in the claims should not be regarded as limiting the claims involved.

[0046] In addition, it should be understood that although this specification is described in terms of implementation methods, not every implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

Claims

1. A Transformer-based electron microscope neuron long-range tracking method, characterized in that: Input multiple given tracked segments and multiple candidate segments into the trained tracking model, output the connection probability of multiple candidate segments, and use the candidate segment with the highest connection probability as the next segment to be tracked; the training process of the tracking model specifically includes the following steps: Step 1: Segment the 3D electron microscope image of the neuron to obtain fragments, track some of the fragments, and obtain multiple tracking states; each tracking state contains a set of H tracked fragments. and a set of K candidate fragments ; Step 2: and The 3D point clouds corresponding to all the segments in are input into the ConSkeletonNet model to obtain the morphological features of the tracked segments. and the morphological features of the candidate fragments ; Crop out the image area containing all the fragments in the current tracking state in the 3D electron microscope image; Input the image area into the EmbedNet model to obtain the image features of the tracked fragments and the image features of the candidate segments ;Will and Input to the multi-layer perceptron And splice in the feature dimension to obtain the multimodal features of the tracked fragments ,Will and Input to the multi-layer perceptron And splice in the feature dimension to obtain the multimodal features of the candidate fragments ; Based on the sequence number of the tracked fragment and the coordinates of the skeleton connection point, the position code E of the tracked fragment is obtained; Add E element-wise to obtain the position-aware multimodal features of the tracked segment. ;Will and Splice into the overall feature T; Step 3: Input the overall feature T into the Transformer encoder, and use the multi-head attention mechanism to interact information between multiple segments in the current tracking state; then input the features output by the Transformer encoder into the classifier to predict the connection probabilities of K candidate segments; Step 4: Construct loss Train the tracking model: ; is the predicted connection probability of the current candidate segment; represents the sample label; Indicates that the current candidate segment is the next segment to be tracked and is a positive sample; Indicates that the current candidate segment is not the next segment to be tracked and is a negative sample; is the balance factor between positive and negative samples, is the classification adjustment factor.

2. The method for long-range neuron tracing using electron microscope based on Transformer according to claim 1, characterized in that: In step 2, the position code E of the tracked segment is obtained based on the sequence number of the tracked segment and the coordinates of the skeleton connection point, which specifically includes: The serial number of the tracked fragment The coordinates of the skeleton connection points of the tracked fragments Splice in the feature dimension and input the splicing result into the multi-layer perceptron Generate position encodings for tracked segments .

3. The method for long-range neuron tracing using electron microscope based on Transformer according to claim 1, characterized in that: In step three, the overall feature T is input into the Transformer encoder, and information is exchanged between multiple fragments of the current tracking state through the multi-head attention mechanism, specifically including: the query Q, key Key, and value V used by the multi-head attention mechanism are all the overall feature T.

4. The method for long-range neuron tracing using electron microscope based on Transformer according to claim 1, characterized in that: The classifier adopts a multi-layer perceptron.

Citation Information

Patent Citations

  • Multi-modal fusion small sample dance motion identification method and device

    CN115661561A

  • Transform-based knowledge tracking method for fusing domain features

    CN117474094A

  • Face fusion attack helper face tracing method based on Transform feature interaction

    CN117523641A

  • Point tracking method and device, electronic equipment and storage medium

    CN117745761A