A third-generation sequencing DNA methylation detection method based on electrical signal and sequence fusion

By using the fusion method of electrical signals and sequences in DNA methylation detection, and using convolutional neural networks and BERT models to extract and fuse features, the problem of long sequence feature loss in existing detection methods is solved, and the detection accuracy is significantly improved. and performance.

CN117935909BActive Publication Date: 2024-10-01HARBIN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410111895.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-26
Publication Date
2024-10-01
Estimated Expiration
2044-01-26

AI Technical Summary

Technical Problem

Existing DNA methylation detection methods have low detection accuracy due to the loss of long sequence features.

Method used

Using the third generation sequencing method based on the fusion of electrical signals and sequences, the original electrical signal features are extracted through a convolutional neural network, and combined with the BERT model to match and fuse the base sequence and electrical signal features, and train the improved BERT model to improve detection Accuracy.

Benefits of technology

By fusing the characteristics of the original electrical signal and the base sequence, the loss of long sequence features is avoided, the accuracy of DNA methylation detection is significantly improved, and it is better than the performance of existing tools in terms of accuracy, precision, time, and memory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117935909B_ABST
    Figure CN117935909B_ABST
Patent Text Reader

Abstract

A third-generation sequencing DNA methylation detection method based on the fusion of electrical signals and sequences relates to the technical field of gene detection. In view of the problem that the existing DNA methylation detection methods generally have low detection accuracy due to the loss of long sequence features, the present application extracts the original electrical signal features and base sequences in the third-generation sequencing, and fuses and interacts the original electrical signal features and base sequences in a model, thereby avoiding the loss of long sequence features and improving the detection accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of gene detection, and in particular to a third-generation sequencing DNA methylation detection method based on electrical signal and sequence fusion. Background Art

[0002] DNA methylation is an important epigenetic modification process that plays an important role in biological processes such as genome stability, gene expression regulation, and cell differentiation. First, DNA methylation can prevent transcription factors and other transcription regulatory factors from binding to DNA, thereby inhibiting the transcriptional activity of genes. In the methylated region of DNA, methylated CpG sites can attract DNA methyltransferases, resulting in tight packaging of chromatin, thereby preventing the binding of transcription factors and inhibiting gene transcription. Secondly, methylation modification can prevent abnormal recombination and insertion of DNA sequences, thereby protecting the genome from external DNA damage and insertion. By performing methylation modification on specific gene regions, cells can control the expression of specific genes and determine the identity and function of cells during cell differentiation and development. Finally, abnormal DNA methylation can lead to abnormal gene expression, which is related to a variety of diseases such as cancer, cardiovascular disease, neurological diseases, and genetic diseases.

[0003] With the development of machine learning and deep learning technologies and the advancement of third-generation sequencing technology, more and more methods based on deep learning technology have emerged in DNA methylation detection. Similarly, deep learning technology is also widely used in DNA methylation detection. The basic principle of detecting DNA methylation can be based on base sequence or on raw electrical signals and base sequence. The basic assumption of this task is that if the base sequence is C (cytosine) and its raw electrical signal characteristics are different from the characteristics of the unmethylated raw electrical signal, then the site is defined as a methylated site.

[0004] Existing work can be divided into two aspects: (1) Prediction based on base sequences: It predicts DNA methylation sites by extracting the relationship between base sequences, such as the base sequences around the methylation sites have the same characteristics; (2) Prediction based on raw electrical signals and base sequences: It extracts the raw electrical signals and base sequence features respectively, and then designs their own feature models, and finally outputs the final DNA methylation site information through a specific model. However, the current methods for DNA methylation detection generally have the problem of long sequence feature loss, which leads to low detection accuracy. Summary of the invention

[0005] The purpose of the present invention is to propose a third-generation sequencing DNA methylation detection method based on the fusion of electrical signals and sequences to address the problem of low detection accuracy caused by the loss of long sequence features in existing DNA methylation detection methods.

[0006] The technical solution adopted by the present invention to solve the above technical problems is:

[0007] The third-generation sequencing DNA methylation detection method based on electrical signal and sequence fusion includes the following steps:

[0008] Step 1: Obtain Fast5 raw electrical signal data, then use Basecalling to convert the Fast5 raw electrical signal data into Fastq base data, and extract the Fastq base sequence in the Fastq base data;

[0009] Step 2: Use convolutional neural network to extract the original electrical signal features in Fast5 original electrical signal data;

[0010] Step 3: Match the Fastq base sequence with the original electrical signal characteristics through readname;

[0011] Step 4: Use the matched Fastq base sequence and the original electrical signal features to train the BERT model to obtain a trained BERT model;

[0012] Step 5: For the Fast5 original electrical signal data to be identified, based on step 1, obtain the Fastq base sequence corresponding to the Fast5 original electrical signal data to be identified;

[0013] Step 6: For the Fast5 original electrical signal data to be identified, use steps 2 and 3 to obtain the original electrical signal features that match the Fastq base sequence corresponding to the Fast5 original electrical signal data to be identified, and input the original electrical signal features and the Fastq base sequence corresponding to the Fast5 original electrical signal data to be identified into the trained BERT model to obtain the methylation probability, thereby completing the methylation detection.

[0014] Furthermore, the BERT model is an improved BERT model, and the specific improvement steps of the improved BERT model are:

[0015] Step 1: Based on the BERT model, add a 1 / 2 feedforward neural network to the head of the Transformer. The 1 / 2 feedforward neural network includes a normalization layer, a linear layer, and a Swish function.

[0016] Step 2: Introduce a convolution module after the multi-head attention mechanism in the Transformer, wherein the convolution module includes a normalization layer, a first convolution layer, a gated linear unit layer, a second convolution layer, and a Dropout layer;

[0017] Step 3: After the convolution module in step 2, introduce a 1 / 2 feedforward neural network, which includes a normalization layer, a linear layer, and a Swish function;

[0018] The improved BERT model specifically performs the following steps:

[0019] Step 1: The Fastq base sequence and the original electrical signal features are sequentially subjected to the normalization layer, the linear layer, and the Swish function in the 1 / 2 feedforward neural network to obtain the Fastq base sequence after dimensionality increase;

[0020] Step 2: The upgraded Fastq base sequence and the original electrical signal features are fused in the multi-head attention mechanism in Transformer to obtain the Methylation feature;

[0021] Step 3: The methylation feature is normalized in the normalization layer of the convolution module introduced after the multi-head attention mechanism, and then enters the first convolution layer for dimension increase, and then enters the gated linear unit layer to capture the long-distance dependencies in the electrical signal, and then passes through the second convolution layer to reduce the dimension of the data, and then passes through the Dropout function and outputs to obtain the convolution methylation feature;

[0022] Step 4: The convolutional methylation features are passed through the normalization layer, linear layer, and Swish function in the 1 / 2 feedforward neural network. The results are passed through the sogmoid function to obtain the methylation probability.

[0023] Furthermore, the data flow direction in the improved BERT model is expressed as:

[0024]

[0025]

[0026] x” i =x' i +Conv(x' i )

[0027]

[0028] Among them, i represents the input data of the i-th Batch, represents the output of the feedforward neural network, x' i Represents the output of Transformer, x"i Represents the output of the convolutional module.

[0029] Furthermore, the convolution kernels in the first convolution layer and the second convolution layer are 1×1.

[0030] Furthermore, the convolutional neural network includes a normalization layer, a first convolutional layer, a gated linear unit layer, a second convolutional layer, a batch normalization layer, a Swish function layer, a third convolutional layer and a Dropout layer;

[0031] The standardization layer is used to perform standardization processing on the input data;

[0032] The first convolutional layer is used to increase the dimension of the data, and the length of the data remains unchanged;

[0033] The gated linear unit layer divides the data dimension into two, and then selects to retain or suppress after passing the gating factor Sigmoid, thereby capturing the long-range dependency relationship in the electrical signal;

[0034] The second convolutional layer is used to shorten the data length, and the dimension remains unchanged;

[0035] The batch normalization layer is used to perform batch normalization processing on the input data;

[0036] The Swish function layer is used for gradient suppression;

[0037] The third convolutional layer is used to shorten the data length, and the dimension remains unchanged;

[0038] The Dropout layer is used to prevent overfitting.

[0039] Further, the standardization process is expressed as:

[0040]

[0041] Where x represents the input, E[x] and Var[x] represent the mean and variance respectively, γ and β represent learnable parameters, and ∈ represents a constant.

[0042] Furthermore, the first convolutional layer is expressed as:

[0043]

[0044] Among them, L out Indicates the output data length, L in Represents the input data length, padding represents the amount of padding, dilation represents the sampling interval, kernel_size represents the convolution kernel size, and stride represents the convolution step size.

[0045] Furthermore, the long-distance dependency of the electrical signal is expressed as:

[0046]

[0047] Among them, a represents the first half of the vector, b represents the second half of the vector, represents the product of vectors, and σ represents the Sigmoid activation function.

[0048] Furthermore, the Sigmoid activation function is expressed as:

[0049]

[0050] Furthermore, the Swish function layer is expressed as:

[0051] f(x)=x·sigmoid(α·x)

[0052] Among them, α represents a learnable parameter.

[0053] The beneficial effects of the present invention are:

[0054] The present application extracts the original electrical signal features and base sequences in the third-generation sequencing, and integrates and interacts the original electrical signal features and base sequences in a model, thereby avoiding the loss of long sequence features and improving the detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 For this application body flow chart;

[0056] Figure 2 This is the flow chart of the attention mechanism for this application;

[0057] Figure 3 Schematic diagram of the convolutional neural network for this application;

[0058] Figure 4 Improved transformer structure for this application Figure 1 ;

[0059] Figure 5 Improved transformer structure for this application Figure 2 ;

[0060] Figure 6 Improved transformer structure for this application Figure 3 . DETAILED DESCRIPTION

[0061] It should be particularly noted that, in the absence of conflict, the various embodiments disclosed in this application can be combined with each other.

[0062] Specific implementation method 1: refer to Figure 1 Specifically describing this embodiment, the third-generation sequencing DNA methylation detection method based on electrical signal and sequence fusion described in this embodiment comprises the following steps:

[0063] Step 1: Obtain Fast5 raw electrical signal data, then use Basecalling to convert the Fast5 raw electrical signal data into Fastq base data, and extract the Fastq base sequence in the Fastq base data;

[0064] Step 2: Use convolutional neural network to extract the original electrical signal features in Fast5 original electrical signal data;

[0065] Step 3: Match the Fastq base sequence with the original electrical signal characteristics through readname;

[0066] Step 4: Use the matched Fastq base sequence and the original electrical signal features to train the BERT model to obtain a trained BERT model;

[0067] Step 5: For the Fast5 original electrical signal data to be identified, based on step 1, obtain the Fastq base sequence corresponding to the Fast5 original electrical signal data to be identified;

[0068] Step 6: For the Fast5 original electrical signal data to be identified, use steps 2 and 3 to obtain the original electrical signal features that match the Fastq base sequence corresponding to the Fast5 original electrical signal data to be identified, and input the original electrical signal features and the Fastq base sequence corresponding to the Fast5 original electrical signal data to be identified into the trained BERT model to obtain the methylation probability, thereby completing the methylation detection.

[0069] Convert Fast5 raw electrical signal data to Fastq base data through Basecalling: Fast5 is a common format for sequencing data of the third-generation sequencing platform ONT, which contains raw signal data and metadata information related to each sequencing event. Fast5 files can provide important data such as time information during sequencing, sequencing quality assessment, signal intensity, etc. Basecall refers to the process of converting raw signals into base sequences of sequencing reads. Basecall data contains base sequence information of sequencing reads, usually stored in FASTQ format, including sequence, quality value and related sequencing information.

[0070] Align the base sequence with the reference genome using an alignment tool: Using an alignment tool to align the base sequence to the reference genome can determine the position of the sequence on the reference genome and accurately locate subsequent methylation information, providing a positional reference for subsequent data analysis.

[0071] The DNA methylation detection method involved in this application is a binary classification problem. Accuracy, Precision, Recall, and F1-score are used as evaluation indicators in this application. The calculation formulas of the above indicators are as follows:

[0072] Accuracy:

[0073]

[0074] Precision:

[0075]

[0076] Recall:

[0077]

[0078] F1-score:

[0079]

[0080] Among them, TP indicates that the site is predicted to be methylated and is actually a methylated site, TN indicates that the site is predicted to be non-methylated and is not actually a methylated site, FP indicates that the site is predicted to be methylated and is not actually a methylated site, and FN indicates that the site is predicted to be non-methylated and is actually a methylated site.

[0081] Test results:

[0082] This application integrates the original electrical signal with the base sequence, uses HG002 as the training data set, uses NA12878 as the test data set, trains the model on the training data set, and uses the test data set to test the model performance. Compared with the existing DNA methylation detection tools based on third-generation sequencing data, the results are as follows:

[0083]

[0084] Among them, Guppy, Megalodon, and Nanopolish are the current tools. The method of this application is compared with the above three models. Its performance is better than the existing methods / tools in terms of accuracy, precision, time, and memory.

[0085] Specific implementation method 2: This implementation method is a further explanation of specific implementation method 1. The difference between this implementation method and specific implementation method 1 is that the BERT model is an improved BERT model. The specific improvement steps of the improved BERT model are:

[0086] Step 1: Based on the BERT model, add a 1 / 2 feedforward neural network to the head of the Transformer. The 1 / 2 feedforward neural network includes a normalization layer, a linear layer, and a Swish function.

[0087] Step 2: Introduce a convolution module after the multi-head attention mechanism in the Transformer, wherein the convolution module includes a normalization layer, a first convolution layer, a gated linear unit layer, a second convolution layer, and a Dropout layer;

[0088] Step 3: After the convolution module in step 2, introduce a 1 / 2 feedforward neural network, which includes a normalization layer, a linear layer, and a Swish function;

[0089] The improved BERT model specifically performs the following steps:

[0090] Step 1: The Fastq base sequence and the original electrical signal features are sequentially subjected to the normalization layer, the linear layer, and the Swish function in the 1 / 2 feedforward neural network to obtain the Fastq base sequence after dimensionality increase;

[0091] Step 2: The upgraded Fastq base sequence and the original electrical signal features are fused in the multi-head attention mechanism in Transformer to obtain the Methylation feature;

[0092] Step 3: The methylation feature is normalized in the normalization layer of the convolution module introduced after the multi-head attention mechanism, and then enters the first convolution layer for dimension increase, and then enters the gated linear unit layer to capture the long-distance dependencies in the electrical signal, and then passes through the second convolution layer to reduce the dimension of the data, and then passes through the Dropout function and outputs to obtain the convolution methylation feature;

[0093] Step 4: The convolutional methylation features are passed through the normalization layer, linear layer, and Swish function in the 1 / 2 feedforward neural network. The results are passed through the sogmoid function to obtain the methylation probability.

[0094] Using the Basecalling relationship, a matching pair of base sequence and original electrical signal features is constructed: Since the detection method of the original electrical signal and base sequence fusion is used in this application, in this process, the extracted original electrical signal features are matched with the Fastq base sequence through the read name to find the base sequence corresponding to the original electrical signal.

[0095] Build a DNA methylation detection model based on the improved BERT model:

[0096] This application improves the transformer structure based on the original BERT model. The architecture diagram is as follows: Figure 4 shown.

[0097] Figure 4 In the figure, the left side is the complete BERT model, and the right side is the improved BERT internal model architecture.

[0098] First, a feed-forward neural network module (FFN) is added to the head of the Transformer. The present invention uses a 1 / 2 feed-forward neural network module to receive data input. The feed-forward neural network module at this time is composed of a normalization layer (LayerNormalization), a linear layer, a Swish function, etc. The first linear layer performs a dimensionality increase operation to map the data to a high-dimensional space, then passes through a GLU function and then a dimensionality reduction linear layer to restore the data to its original position, and finally passes through a Dropout function to prevent data overfitting. The process is as follows: Figure 5 shown.

[0099] The same multi-head attention architecture in this application does not make any changes here. However, in the entire Transformer architecture, this section introduces a new convolutional layer module. This module is after the multi-head attention. It is hoped that by introducing this module, the feature information of the original electrical signal and the base sequence can be further extracted or fused. The convolution module first uses a normalization layer (Batch Normalization) to batch normalize the data from the attention, and then passes through a convolution layer with a convolution kernel of 1×1 to keep the data dimensionally upgraded during the convolution process. The data then passes through a GLU activation function, and then passes through a convolution layer with a convolution kernel of 1×1 to reduce the data dimension, and then passes through a Dropout function to output. The architecture of the convolution module is as follows Figure 6 shown.

[0100] At the end of the convolution module, half of the feedforward neural network module is introduced again, and the data is output after passing through the feedforward neural network module and the normalization layer.

[0101] Prediction of DNA methylation results: The above output is passed through the sogmoid function to output a methylation probability value between 0 and 1, where 0 represents an unmethylated site and 1 represents a confirmed methylated site.

[0102] The specific flowchart of DNA methylation detection using the improved BERT model is as follows Figure 2shown.

[0103] This application extracts the original electrical signal features and base sequences in the third-generation sequencing, and fuses and interacts the original electrical signal features and base sequences in a model, thereby realizing the fusion and interaction of data from two different modalities, thereby determining the DNA methylation site information, avoiding the loss of long sequence features, and thereby improving the detection accuracy.

[0104] In addition, the present application also utilizes the attention mechanism to better solve the problem of long sequence feature loss, better share information of two different modes, improve the accuracy of DNA methylation detection, reduce resources, and shorten running time.

[0105] Specific implementation method three: This implementation method is a further explanation of specific implementation method two. The difference between this implementation method and specific implementation method two is that the data flow direction in the improved BERT model is expressed as:

[0106]

[0107]

[0108] x” i =x' i +Conv(x' i )

[0109]

[0110] Among them, i represents the input data of the i-th Batch, represents the output of the feedforward neural network, x' i Represents the output of Transformer, x" i Represents the output of the convolutional module.

[0111] Specific implementation mode 4: This implementation mode is a further explanation of specific implementation mode 2. The difference between this implementation mode and specific implementation mode 2 is that the convolution kernels in the first convolution layer and the second convolution layer are 1×1.

[0112] Specific implementation mode five: This implementation mode is a further description of specific implementation mode four. The difference between this implementation mode and specific implementation mode four is that the convolutional neural network includes a normalization layer, a first convolutional layer, a gated linear unit layer, a second convolutional layer, a batch normalization layer, a Swish function layer, a third convolutional layer and a Dropout layer;

[0113] The standardization layer is used to perform standardization processing on the input data;

[0114] The first convolutional layer is used to increase the dimension of the data, and the length of the data remains unchanged;

[0115] The gated linear unit layer divides the data dimension into two, and then selects to retain or suppress after passing the gating factor Sigmoid, thereby capturing the long-range dependency relationship in the electrical signal;

[0116] The second convolutional layer is used to shorten the data length, and the dimension remains unchanged;

[0117] The batch normalization layer is used to perform batch normalization processing on the input data;

[0118] The Swish function layer is used for gradient suppression;

[0119] The third convolutional layer is used to shorten the data length, and the dimension remains unchanged;

[0120] The Dropout layer is used to prevent overfitting.

[0121] Extracting original electrical signal information using convolutional neural network: Since the original electrical signal in Fast5 is of indefinite length, for example, base A corresponds to 5 signal values, and base C corresponds to 15 signal values, and there are electrical signal values ​​generated by the motor protein itself in Fast5, therefore, this application extracts feature data from the original electrical signal by using convolutional neural network. The feature extraction flow chart designed by this application is as follows Figure 3 As shown:

[0122] First, use the normalization layer (Layer Normalization) to normalize the input (B, N) data. The normalization formula is as follows:

[0123]

[0124] Where x is the input, E[x] and Var[x] are the mean and variance, γ and β are learnable parameters that enable the neural network to learn the appropriate feature range and offset, and ∈ is a very small number used to prevent division by zero errors.

[0125] In the convolutional layer (Conv1d) we use the following formula:

[0126]

[0127] Among them, L out Indicates the output data length, L in Indicates the input data length, padding indicates the amount of padding, dilation indicates the sampling interval, kernel_size indicates the convolution kernel size, and stride indicates the convolution step size. stride=0, stride=1.

[0128] After the first convolutional layer, the dimension of the data increases and the length of the data becomes shorter. Next, a gated linear unit (GLU) layer is used. The GLU layer divides the dimension into two through learning, and then selects to retain or suppress various parts of the input signal after the gate factor Sigmoid. The use of the GLU function is conducive to capturing long-distance dependencies in electrical signals. The formula is as follows:

[0129]

[0130]

[0131] Among them, a is the first half of the vector, and b is the second half of the vector. σ is the Sigmoid activation function, which maps the input value between 0 and 1. is the product of vectors

[0132] Batch Normalization normalizes the data in each minimum batch and calculates the mean and variance within the minimum batch.

[0133] In order to alleviate the gradient vanishing problem that may occur in the above process, the smoothness and boundedness of the Swish function are used to input the data into the Swish function. The formula is as follows:

[0134] f(x)=x·sigmoid(α·x)

[0135] Among them, α represents a learnable parameter.

[0136] Finally, after the Dropout layer, certain neurons are randomly discarded in a certain proportion to prevent output overfitting.

[0137] Specific implementation method 6: This implementation method is a further explanation of the specific implementation method 5. The difference between this implementation method and the specific implementation method 5 is that the standardized processing is expressed as:

[0138]

[0139] Where x represents the input, E[x] and Var[x] represent the mean and variance respectively, γ and β represent learnable parameters, and ∈ represents a constant.

[0140] Specific implementation method 7: This implementation method is a further explanation of specific implementation method 6. The difference between this implementation method and specific implementation method 6 is that the first convolution layer is represented as:

[0141]

[0142] Among them, L out Indicates the output data length, L inRepresents the input data length, padding represents the amount of padding, dilation represents the sampling interval, kernel_size represents the convolution kernel size, and stride represents the convolution step size.

[0143] Specific implementation example eight: This implementation example is a further description of specific implementation example seven. The difference between this implementation example and specific implementation example seven is that the long-distance dependency of the electrical signal is expressed as:

[0144]

[0145] Among them, a represents the first half of the vector, b represents the second half of the vector, represents the product of vectors, and σ represents the Sigmoid activation function.

[0146] Specific implementation method 9: This implementation method is a further explanation of specific implementation method 8. The difference between this implementation method and specific implementation method 8 is that the Sigmoid activation function is expressed as:

[0147]

[0148] Specific implementation method ten: This implementation method is a further description of specific implementation method nine. The difference between this implementation method and specific implementation method nine is that the Swish function layer is represented as:

[0149] f(x)=x·sigmoid(α·x)

[0150] Among them, α represents a learnable parameter.

[0151] It should be noted that the specific implementation is only an explanation and description of the technical solution of the present invention, and cannot be used to limit the scope of protection of the rights. Any partial changes made according to the claims and description of the present invention should still fall within the scope of protection of the present invention.

Claims

1. A third-generation sequencing DNA methylation detection method based on electrical signal and sequence fusion, characterized in that The following steps are involved: Step 1: Obtain Fast5 raw electrical signal data, then use Basecalling to convert the Fast5 raw electrical signal data into Fastq base data, and extract the Fastq base sequence in the Fastq base data; Step 2: Use convolutional neural network to extract the original electrical signal features in Fast5 original electrical signal data; Step 3: Match the Fastq base sequence with the original electrical signal characteristics through readname; Step 4: Use the matched Fastq base sequence and the original electrical signal features to train the BERT model to obtain a trained BERT model; Step 5: For the Fast5 original electrical signal data to be identified, use step 1 to obtain the Fastq base sequence corresponding to the Fast5 original electrical signal data to be identified; Step 6: For the Fast5 raw electrical signal data to be identified, use steps 2 and 3 to obtain the raw electrical signal features that match the Fastq base sequence corresponding to the Fast5 raw electrical signal data to be identified, and input the raw electrical signal features and the Fastq base sequence corresponding to the Fast5 raw electrical signal data to be identified into the trained BERT model to obtain the methylation probability, thereby completing the methylation detection; The BERT model is an improved BERT model, and the specific improvement steps of the improved BERT model are: Step 1: Based on the BERT model, add a 1 / 2 feedforward neural network to the head of the Transformer. The 1 / 2 feedforward neural network includes a normalization layer, a linear layer, and a Swish function. Step 2: Introduce a convolution module after the multi-head attention mechanism in the Transformer, wherein the convolution module includes a normalization layer, a first convolution layer, a gated linear unit layer, a second convolution layer, and a Dropout layer; Step 3: After the convolution module in step 2, introduce a 1 / 2 feedforward neural network, which includes a normalization layer, a linear layer, and a Swish function; The improved BERT model specifically performs the following steps: Step 1: The Fastq base sequence and the original electrical signal features are sequentially subjected to the normalization layer, the linear layer, and the Swish function in the 1 / 2 feedforward neural network to obtain the Fastq base sequence after dimensionality increase; Step 2: The upgraded Fastq base sequence and the original electrical signal features are fused in the multi-head attention mechanism in Transformer to obtain the Methylation feature; Step 3: The methylation feature is normalized in the normalization layer of the convolution module introduced after the multi-head attention mechanism, and then enters the first convolution layer for dimension increase, and then enters the gated linear unit layer to capture the long-distance dependencies in the electrical signal, and then passes through the second convolution layer to reduce the dimension of the data, and then passes through the Dropout function and outputs to obtain the convolution methylation feature; Step 4: The convolutional methylation features are passed through the normalization layer, linear layer, and Swish function in the 1 / 2 feedforward neural network. The results are passed through the sogmoid function to obtain the methylation probability.

2. The third generation sequencing DNA methylation detection method based on electrical signal and sequence fusion according to claim 1, characterized in that The data flow direction in the improved BERT model is expressed as: x″ i =x′ i +Conv(x′ i ) Among them, i represents the input data of the i-th Batch, represents the output of the feedforward neural network, x′ i Represents the output of Transformer, x″ i Represents the output of the convolutional module.

3. The third generation sequencing DNA methylation detection method based on electrical signal and sequence fusion according to claim 1, characterized in that The convolution kernels in the first convolution layer and the second convolution layer are 1×1.

4. The third generation sequencing DNA methylation detection method based on electrical signal and sequence fusion according to claim 1, characterized in that The convolutional neural network includes a normalization layer, a first convolutional layer, a gated linear unit layer, a second convolutional layer, a batch normalization layer, a Swish function layer, a third convolutional layer and a Dropout layer; The standardization layer is used to perform standardization processing on the input data; The first convolutional layer is used to increase the dimension of the data, and the length of the data remains unchanged; The gated linear unit layer divides the data dimension into two, and then selects to retain or suppress after passing the gating factor Sigmoid, thereby capturing the long-range dependency relationship in the electrical signal; The second convolutional layer is used to shorten the data length, and the dimension remains unchanged; The batch normalization layer is used to perform batch normalization processing on the input data; The Swish function layer is used for gradient suppression; The third convolutional layer is used to shorten the data length, and the dimension remains unchanged; The Dropout layer is used to prevent overfitting.

5. The third generation sequencing DNA methylation detection method based on electrical signal and sequence fusion according to claim 4, characterized in that The standardization process is expressed as: Where x represents the input, E[x] and Var[x] represent the mean and variance respectively, γ and β represent learnable parameters, and ∈ represents a constant.

6. The third generation sequencing DNA methylation detection method based on electrical signal and sequence fusion according to claim 5, characterized in that The first convolutional layer is expressed as: Among them, L out Indicates the output data length, L in Represents the input data length, padding represents the amount of padding, dilation represents the sampling interval, kernel_size represents the convolution kernel size, and stride represents the convolution step size.

7. The third generation sequencing DNA methylation detection method based on electrical signal and sequence fusion according to claim 6, characterized in that The long-distance dependency of the electrical signal is expressed as: Among them, a represents the first half of the vector, b represents the second half of the vector, represents the product of vectors, and σ represents the Sigmoid activation function.

8. The third generation sequencing DNA methylation detection method based on electrical signal and sequence fusion according to claim 7, characterized in that The Sigmoid activation function is expressed as:

9. The third generation sequencing DNA methylation detection method based on electrical signal and sequence fusion according to claim 8, characterized in that The Swish function layer is expressed as: f(x)=x·sigmoid(α·x) Among them, α represents a learnable parameter.