An RNA polymerase III transcript boundary prediction method, system and application based on a hybrid state space model
By combining a hybrid state-space model and a biologically-aware feedforward network, along with multi-track encoding and a progressive loss function, the problem of predicting Pol III transcript boundaries in existing technologies has been solved. This approach achieves efficient and accurate prediction of transcript start and termination sites, adapts to specific feature transformations for different promoter types, and meets biological constraints.
Patent Information
- Application Number
- CN202611117724.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-27
- Publication Date
- 2026-11-27
AI Technical Summary
Existing deep learning methods struggle to effectively capture long-range dependencies across regulatory elements and precise relationships of local motifs in RNA sequence modeling while maintaining linear computational complexity. They lack input coding schemes for the three types of promoter structures and T-tract termination signals in Pol III transcription, lack prior biological knowledge, and fail to accurately predict the joint boundary between transcript start and termination sites.
A hybrid state-space model is adopted, combining multi-track encoding and biological sensing feedforward network. The hybrid encoder is input with multi-track feature vectors, and the state-space model branch captures long-range dependencies, while the attention mechanism branch captures local dependencies. Adaptive fusion is performed through a gated linear fusion layer, and training is carried out with a progressive composite loss function to predict the start and end sites of RNA polymerase III transcripts.
It achieves efficient capture of cross-regulatory elements and local features of Pol III transcripts with linear complexity, improves the accuracy of transcript boundary prediction, adapts to specific feature transformations of different promoter types, meets biological constraints, reduces computational overhead, and improves prediction efficiency and accuracy.
Smart Images

Figure CN123182776A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the fields of bioinformatics and deep learning technology, and in particular to a method, system and application for predicting RNA polymerase III transcript boundaries based on a hybrid state-space model. Background Technology
[0002] RNA polymerase III (Pol III) is one of the three RNA polymerases in eukaryotes, responsible for transcribing a class of short non-coding RNAs, including transfer RNA (tRNA), 5S ribosomal RNA (5S rRNA), U6 small nuclear RNA (U6 snRNA), 7SK RNA, and YRNA. Unlike RNA polymerase II (Pol II), the transcripts of Pol III play key roles in basic biological processes such as gene expression, protein synthesis, and RNA processing, but their promoter structure and transcription mechanism have significant unique characteristics.
[0003] Pol III promoters are classified into three types, each with a different layout of regulatory elements. Type 1 promoters (such as the 5S rRNA gene) contain the internal element A-box, the intermediate element IE, and the C-box, and require transcription factor IIIA (TFIIIA) to mediate the assembly of the transcription initiation complex. Type 2 promoters (such as the tRNA gene) contain the internal elements A-box and B-box. Type 3 promoters (such as the U6 snRNA gene) are fundamentally different from the first two types; all their regulatory elements are located upstream of the transcription start site, including the proximal sequence element (PSE, approximately in the -65 to -45 region) and the TATA box (approximately in the -30 to -23 region), with no internal elements within the gene. This diversity in promoter structure poses a significant challenge to the accurate prediction of Pol III transcript boundaries.
[0004] The transcription termination signal of Pol III is also unique. Pol III uses 4 to 6 consecutive thymine (T) residues (T-tract) as a termination signal, but this termination signal is not entirely efficient and exhibits readthrough. The efficiency of transcription termination is affected by the upstream and downstream sequence context of the T-tract, making it difficult to accurately predict the termination site using methods based solely on simple sequence matching. Furthermore, Pol III transcripts are typically short, mostly under 200 nucleotides, but precursor sequences can reach thousands of nucleotides, requiring models capable of accurately locating the start and termination boundaries of transcripts from longer input sequences.
[0005] Accurate prediction of Pol III transcript boundaries is of significant value for genome annotation and transcriptomics research. In genome annotation, correctly identifying the start and end sites of Pol III transcripts helps improve the structural annotation of non-coding RNA loci; in transcriptomics, accurate prediction of Pol III transcript boundaries can assist in the discovery of new transcripts and the correction of errors in existing annotations. However, due to the diversity of Pol III promoter types, the ambiguity of termination signals, and the variability of transcript length, traditional bioinformatics methods based on position weight matrices or hidden Markov models struggle to simultaneously capture the precise features of long-range dependencies and local motifs.
[0006] In recent years, significant progress has been made in deep learning-based RNA modeling. Some methods, such as RiNALMo and AIDO.RNA, employ Transformer architectures to model RNA sequences. However, their full attention mechanisms have a time complexity of O(L squared), where L is the sequence length. This computational cost increases dramatically when processing longer sequences, limiting their application to long genome fragments. Other methods employ state-space models (SSMs), such as Orthrus, which utilizes the Mamba architecture to achieve linear sequence modeling complexity. However, this method is designed specifically for mature messenger RNA, and its coding scheme and training objectives do not cover the regulatory regions of Pol III transcription. Still other methods attempt to combine SSMs with attention mechanisms for RNA modeling. For example, DGRNA uses a layer-by-layer interleaving of bidirectional Mamba2 and attention mechanisms, while HydraRNA employs a hybrid architecture of bidirectional SSM and multi-head attention. However, the fusion strategies in these methods are merely simple sequential stacking or splicing, lacking adaptive fusion mechanisms for the outputs of the two modeling paradigms, and failing to design input encoding and feature transformation schemes specifically for the unique biological characteristics of Pol III transcription.
[0007] In summary, the existing technology has at least the following problems: (1) Existing deep learning methods have difficulty in effectively capturing long-range dependencies across regulatory elements and precise relationships of local motifs in RNA sequence modeling while maintaining linear computational complexity.
[0008] (2) Existing methods do not design input encoding schemes for the three types of promoter structures of Pol III transcription, T-tract termination signals and other special biological characteristics, resulting in the lack of biological prior knowledge in the model.
[0009] (3) Existing methods lack the ability to predict the joint boundary of Pol III transcript start and termination sites, and do not consider biological consistency conditions such as transcript length constraints and termination signal constraints. Summary of the Invention
[0010] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method, system and application for predicting RNA polymerase III transcript boundaries based on a mixed state space model.
[0011] The technical solution adopted by this invention to solve its technical problem is: A method for predicting RNA polymerase III transcript boundaries includes the following steps: S1. Receive a target nucleic acid sequence, said target nucleic acid sequence containing an RNA polymerase III transcript candidate region; S2. The target nucleic acid sequence is multi-track encoded, and the nucleotide at each position in the sequence is encoded into a multi-track feature vector containing nucleotide identity information and at least one type of biological characteristic information; S3. Input the multi-track feature vector into a hybrid encoder for feature extraction, the hybrid encoder comprising: A state-space model branch is used to capture the long-range dependencies of the sequence in a complexity linear to the sequence length. An attention mechanism branch is used to capture the precise relationships between local regions in the sequence; The fusion layer adaptively fuses the outputs of the state space model branch and the attention mechanism branch to obtain a fused feature representation. S4. Input the fused feature representation into a biologically perceptual feedforward network, i.e., a feedforward neural network (FFN), or a biologically conditional feedforward neural network, and perform a conditional transformation on the fused feature representation based on the at least one type of biological feature information to obtain the transformed feature representation; S5. Input the transformed feature representation into the transcript boundary prediction head to predict the start and end sites of RNA polymerase III transcripts in the target nucleic acid sequence, and output the transcript boundary prediction results.
[0012] Furthermore, the method for obtaining the target nucleic acid sequence in step S1 is as follows: Using candidate transcription start sites as anchors, a window sequence of a predetermined length is extracted from the genome sequence as the target nucleic acid sequence, and the length of the window covers the upstream regulatory elements and downstream transcription regions of the RNA polymerase III promoter; Alternatively, the multi-track encoding in step S2 includes at least two types of track features: Orbital 1 to Orbital 4: Each nucleotide at each position is uniquely encoded, corresponding to adenine A, cytosine C, guanine G, and thymine T or uracil U, respectively; Track 5: The scalar value of GC content within a sliding window centered on this position, i.e., each position in the base sequence; Orbital 6: The density scalar value of consecutive thymine T residues within a sliding window centered on this position, i.e., each position in the base sequence; Orbital 7: This position is the type label of the promoter to which each position in the base sequence belongs, and the type label is selected from Type 1, Type 2, Type 3 or unknown type; Orbit 8: The scalar value of the nucleotide base pairing probability at each position in the base sequence, calculated based on a thermodynamic model; Alternatively, the method further includes a step of training the hybrid encoder and the transcript boundary prediction head, wherein the training employs a progressive composite loss function, the progressive composite loss function comprising: In the core loss phase, the core loss is: L_core = λ 1 ·L_CLM + λ 2 ·L_CL in: L_CLM is the causal language modeling loss, used for autoregressive pre-training; L_CL is the contrastive learning loss, which constructs positive and negative sample pairs based on homologous RNA polymerase III transcript sequence pairs; λ1 and λ2 are the loss weight coefficients.
[0013] Furthermore, the multi-track encoding includes all eight categories of track features, wherein: Nucleotides in orbitals one through four are encoded one-hot as 4-dimensional vectors. The GC content of orbital 5 is calculated using a sliding window of preset length to determine the percentage of G and C nucleotides within the window. The density of T residues in orbital 6 is determined by counting the number of consecutive T residues using a sliding window of a preset length; The promoter type marker for track 7 is obtained from a genome annotation database, including at least one of GtRNAdb, RNAcentral, and Pol3Base; The base pairing probability of orbital 8 was calculated using the ViennaRNA software package based on the Turner nearest neighbor parameter model; The eight types of orbital features are spliced together and then mapped to a unified feature dimension through a linear projection layer. Alternatively, in the contrastive learning loss L_CL: Positive sample pairs include: different heteroreceptor sequences of the same RNA polymerase III gene family, and homologous transcript sequences of different species with the same promoter type; Negative sample pairs include: transcript sequences of different promoter types and non-homologous RNA polymerase III transcript sequences; The contrastive learning loss is calculated based on cosine similarity and temperature parameters; Alternatively, the training may consist of two phases: Phase I: Large-scale unsupervised pre-training phase, in which the hybrid encoder is pre-trained using a combination of causal language modeling loss and contrastive learning loss, with the input sequence length gradually increasing from a first preset length to a second preset length; Phase II: Task Adaptive Fine-Tuning Phase. The transcript boundary prediction head is added to the pre-trained hybrid encoder, and supervised fine-tuning is performed using transcript boundary annotation data.
[0014] Furthermore, the pre-training phase employs a structure-aware dynamic masking strategy: Regular masking: Randomly masks a single nucleotide position; Structural masking: Simultaneously masking the positions of two nucleotides with known base pairings forces the model to learn long-range pairing relationships; Span mask: The mask contains a preset number of consecutive nucleotides; The proportions of the three masking strategies mentioned above are dynamically adjusted during training; Alternatively, the pre-training phase may also include an evolutionary guidance strategy: Homologous alignment sequences of RNA polymerase III transcripts were extracted from the genomes of multiple species; Identification of conserved regions and compensation mutations based on multiple sequence alignment; Evolutionary conservation is incorporated as an auxiliary supervisory signal into the pre-training process.
[0015] Furthermore, the state-space model branch in step S3 is a selective state-space model, which includes: The forward scan path and the backward scan path are calculated linearly from two directions of the sequence, respectively; The parameterized state matrix A is used to convert the continuous-time system into a discrete-time recursion through discretization. Input selectivity mechanism, where the state transition matrix B and / or output matrix C are functions of the input sequence; The time complexity of the state-space model branch is O(L), where L is the length of the input sequence; Alternatively, the attention mechanism branch described in step S3 is a sliding window attention mechanism, wherein: The query vector at each position is used to calculate the attention score only with the key vectors within a preset window range before and after that position; The preset window range covers the distance between the proximal sequence element PSE and the TATA box in the RNA polymerase III promoter; The time complexity of the attention mechanism branch is O(L·W), where L is the length of the input sequence and W is the window size; Alternatively, the fusion layer described in step S3 is a gated linear fusion layer, the operation of which includes: The output H_ssm of the state space model branch and the output H_attn of the attention mechanism branch are concatenated along the feature dimension; Calculate position-wise gating weights using learnable gating parameters: g = σ(W_g·[H_ssm; H_attn] + b_g) Where W_g is the learnable weight matrix, b_g is the bias term, σ is the sigmoid activation function, and [;] indicates concatenation along the feature dimension, i.e., the d-dimensional concatenation, concatenating H_ssm and H_attn from L×d to L×2d; The outputs of the two branches are weighted and fused based on the aforementioned gating weights: H_merged = g ⊙ H_ssm + (1-g) ⊙ H_attn Where ⊙ represents element-wise multiplication; The time complexity of the gated linear fusion layer is linear to the sequence length L; Alternatively, the biological sensing feedforward network described in step S4 includes: A standard feedforward network layer performs a nonlinear transformation on the fused feature representation; The characteristic linear modulation layer performs an affine transformation on the hidden layers of the feedforward network layer based on the promoter type label: FFN_bio(h) = γ(t) ⊙ FFN(h) + δ(t) Where γ(t) and δ(t) are scaling and offset factors generated by a multilayer perceptron from the promoter type label t, respectively, so that the same feedforward network layer produces specific feature transformations for different promoter types; ⊙ represents element-wise multiplication; FFN(h) Represents the eigenvectors obtained by affine transformation ,h This represents the feature vector input to the biological perception feedforward network; Alternatively, the transcript boundary prediction head described in step S5 includes: Initiation site prediction subheader: Performs binary classification on each position in the transformed feature representation, predicts whether the position is a transcription start site, and outputs the probability that each position is a transcription start site; Termination site prediction subheader: Perform binary classification on each position in the transformed feature representation, predict whether the position is a transcription termination site, and output the probability of each position being a transcription termination site; The transcript boundary prediction result is determined by combining the position with the highest probability of the start site and the position with the highest probability of the end site.
[0016] Furthermore, the transcript boundary prediction head also includes boundary consistency constraints: The transcript boundary must meet the length constraint: the distance between the predicted start site and the end site is within a preset range, which corresponds to the typical length range of RNA polymerase III transcripts; The termination site must satisfy the termination signal constraint: there must be a predetermined number of consecutive thymine T residues downstream of the termination site.
[0017] An RNA polymerase III transcript boundary prediction system implementing the method described above, the system comprising a sequence input module, a multi-track coding module, a hybrid encoder module, a biological sensing feedforward network module, a transcript boundary prediction module, and an output module arranged sequentially. The sequence input module is capable of receiving a target nucleic acid sequence, which contains a candidate region of RNA polymerase III transcript; The multi-track encoding module can perform multi-track encoding on the target nucleic acid sequence, encoding the nucleotide at each position in the sequence into a multi-track feature vector containing nucleotide identity information and at least one type of biological characteristic information; The hybrid encoder module includes a state space model branch, an attention mechanism branch, and a fusion layer. The state space model branch and the attention mechanism branch are each connected to the fusion layer. The state space model branch can capture the long-range dependencies of the sequence with a complexity linear to the sequence length. The attention mechanism branch can capture the precise relationships between local regions in the sequence. The fusion layer can adaptively fuse the outputs of the state space model branch and the attention mechanism branch to obtain a fused feature representation. The biological perception feedforward network module can perform conditional transformation on the fused feature representation based on the at least one type of biological feature information to obtain the transformed feature representation. The transcript boundary prediction module can input the transformed feature representation into the transcript boundary prediction head to predict the start and end sites of RNA polymerase III transcripts in the target nucleic acid sequence; The output module can output transcript boundary prediction results.
[0018] Furthermore, the multitrack encoding module includes at least the following sub-modules: The nucleotide one-hot encoding submodule is used to perform four-dimensional one-hot encoding of nucleotides at each position using A / C / G / T. The GC content calculation submodule is used to calculate the local GC content at each location using a sliding window. The T residue density calculation submodule is used to calculate the continuous T residue density at each position using a sliding window. The promoter type labeling submodule is used to obtain the type label of the promoter at each location from the genome annotation database; The structure tendency calculation submodule is used to calculate the base pairing probability at each position based on a thermodynamic model; Alternatively, the fusion layer is a gated linear fusion layer comprising a feature concatenation unit, a gated computation unit, and a weighted fusion unit. The feature concatenation unit can concatenate the outputs of the state space model branch and the attention mechanism branch along the feature dimension; the gated computation unit can calculate position-wise gated weights using a learnable weight matrix and a sigmoid activation function; and the weighted fusion unit can perform element-wise weighted fusion of the outputs of the two branches based on the gated weights.
[0019] Furthermore, the system also includes a model training module, which can pre-train the hybrid encoder using a combination of causal language modeling loss and contrastive learning loss, and can add a transcript boundary prediction head for supervised fine-tuning based on the pre-trained hybrid encoder; wherein, the contrastive learning loss is based on constructing positive and negative samples based on homologous RNA polymerase III transcript sequence pairs.
[0020] Application of the methods and systems described above in accurate prediction of Pol III transcript boundaries.
[0021] The advantages and positive effects of this invention are as follows: 1. This invention possesses long-range modeling capabilities with linear complexity: By combining the state-space model branches and the sliding window attention mechanism branches in parallel and performing adaptive fusion through a gated linear fusion layer, the overall time complexity of the hybrid encoder is O(L×d). 2 ), where L is the sequence length and d is the feature dimension, linear with respect to the sequence length L. Compared to the O(L) of the full attention mechanism. 2 In terms of complexity (×d), with L=2048 and window size W=64, the sliding window attention component saves approximately 32 times the computational cost compared to full attention, and the state space model branches save approximately 128 times. This enables the present invention to efficiently process long genomic fragments, capturing long-range dependencies across regulatory elements while maintaining computational efficiency.
[0022] 2. Pol III-specific multi-track encoding provides biological priors: The eight-track encoding scheme designed in this invention explicitly injects the core biological features of Pol III transcription into the model, including GC content (affecting promoter stability and Pol III recruitment), T-tract density (termination signal marker), promoter type marker (distinguishing between Type 1 / 2 / 3 promoters), and structural bias score (base pairing probability). These features are provided directly as inductive biases, avoiding the model learning these known effective features from scratch, accelerating training convergence, and improving prediction accuracy.
[0023] 3. Gated Linear Fusion Adaptively Balances Two Branches: The learnable position-wise gating weights in the gated linear fusion layer enable the model to adaptively decide whether to rely more on the long-range compressed memory of the state-space model branch or the local precise recall of the attention mechanism branch at different sequence positions. This mechanism achieves an optimal dynamic combination of two complementary modeling paradigms while maintaining O(L) fusion complexity.
[0024] 4. Biologically Sensing Feedforward Network Achieves Promoter Type Specificity: The Feature Linear Modulation (FiLM) layer of this invention enables the same feedforward network layer to generate specific feature transformations for three different promoter types: Type 1, Type 2, and Type 3. Since the regulatory element layout and transcription mechanism of the three types of promoters are fundamentally different, this type-conditional feature transformation can enhance the model's ability to distinguish transcript boundaries of different promoter types.
[0025] 5. Progressive composite loss avoids conflicts among multiple loss components: This invention adopts a progressive training strategy starting with the core two components (causal language modeling loss + contrastive learning loss), and then introduces extended loss components after verifying the effectiveness of the core loss. This strategy avoids training instability caused by adjusting multiple loss weights simultaneously, reduces the hyperparameter search space, and makes the training process more controllable and reproducible.
[0026] 6. The method of this invention includes receiving a target nucleic acid sequence containing candidate regions of RNA polymerase III transcripts; performing multi-track encoding on the sequence, encoding the nucleotides at each position into a multi-track feature vector containing nucleotide identity information and biological characteristic information; inputting the multi-track feature vector into a hybrid encoder, the hybrid encoder including a state-space model branch for capturing long-range dependencies with linear complexity, a sliding window attention branch for capturing local precise relationships, and a gated linear fusion layer for adaptively fusing the outputs of the two branches; inputting the fused features into a biologically perceptual feedforward network for promoter type-based conditional transformation; predicting start and stop sites through a transcript boundary prediction head, and applying length constraints and termination signal constraints. This invention achieves accurate prediction of Pol III transcript boundaries while maintaining linear computational complexity.
[0027] 7. This invention solves the problem of how to efficiently and accurately predict the start and end sites of RNA polymerase III transcripts. Specifically, it solves the following problems: (1) how to effectively capture the long-range dependencies and precise relationships of local motifs across regulatory elements in the Pol III promoter region while maintaining linear computational complexity; (2) how to integrate the biological prior knowledge of Pol III transcription into the input encoding and feature transformation process of the deep learning model; and (3) how to achieve joint boundary prediction of transcript start and end sites while satisfying the biological constraints of Pol III transcripts. Attached Figure Description
[0028] Figure 1 In this invention Figure 1 This is a schematic diagram of the overall process of the RNA polymerase III transcript boundary prediction method provided in this embodiment of the invention, showing the complete flowchart from the input of the target nucleic acid sequence to the output of the transcript boundary prediction result; Figure 2 This is a schematic diagram of the structure of the hybrid encoder and its connection with the biological perception feedforward network in an embodiment of the present invention. It shows the parallel structure of the state space model branch, the attention mechanism branch and the gated linear fusion layer, as well as the stacking method of multiple hybrid encoder blocks. Figure 3 This is a schematic diagram of multi-orbit biological coding in an embodiment of the present invention, showing the coding method and splicing projection process of eight types of orbital features; Figure 4 This is a schematic diagram of the calculation process of the gated linear fusion layer in an embodiment of the present invention, showing the specific process of calculating the gate weights and weighted fusion; Figure 5 This is a schematic diagram of the transcript boundary prediction head in an embodiment of the present invention, showing the start site prediction head, the end site prediction head, and the boundary consistency constraint; Figure 6 This is a schematic diagram of the two-stage process of model training in an embodiment of the present invention, showing the complete training process of stage I large-scale pre-training and stage II task adaptive fine-tuning; Figure 7 This is a comparison chart of the two-stage training strategy and performance advantages in this invention. Detailed Implementation
[0029] The present invention will be further described below with reference to the embodiments. The following embodiments are descriptive and not limiting, and should not be used to limit the scope of protection of the present invention.
[0030] The various experimental operations involved in the specific embodiments are all conventional techniques in the field. For parts not specifically annotated in this document, those skilled in the art can refer to various commonly used reference books, scientific and technological documents or related instructions and manuals prior to the filing date of this invention to carry out the operations.
[0031] A method for predicting RNA polymerase III transcript boundaries includes the following steps: S1, Receive a target nucleic acid sequence, the target nucleic acid sequence containing a candidate region of RNA polymerase III transcript. Specifically, using the candidate transcription start site as an anchor, a window sequence of a predetermined length is extracted from the genome sequence as the target nucleic acid sequence, the length of which covers the upstream regulatory elements and downstream transcription regions of the RNA polymerase III promoter.
[0032] S2, perform multi-track encoding on the target nucleic acid sequence, encoding the nucleotide at each position in the sequence into a multi-track feature vector containing nucleotide identity information and at least one type of biological characteristic information.
[0033] The multi-orbital encoding includes at least two types of orbital features: orbitals one to four are uniquely hot codes for nucleotides at each position, corresponding to adenine A, cytosine C, guanine G, and thymine T or uracil U, respectively, forming a 4-dimensional vector; orbital five is a scalar value of GC content within a sliding window centered on the position; orbital six is a scalar value of the density of consecutive thymine T residues within a sliding window centered on the position; orbital seven is a type label of the promoter to which the position belongs, the type label being selected from Type 1, Type 2, Type 3, or an unknown type; and orbital eight is a scalar value of the nucleotide base pairing probability at the position calculated based on a thermodynamic model.
[0034] When the multi-track encoding includes all eight track features: the nucleotide one-hot encoding of tracks one to four is a 4-dimensional vector; the GC content of track five is calculated using a sliding window of preset length to determine the proportion of G and C nucleotides within the window; the T residue density of track six is calculated using a sliding window of preset length to count the number of consecutive T residues; the promoter type marker of track seven is obtained from a genome annotation database, including at least one of GtRNAdb, RNAcentral, and Pol3Base; the base pairing probability of track eight is calculated using the ViennaRNA software package based on the Turner nearest neighbor parameter model. The eight track features are then concatenated and mapped to a unified feature dimension through a linear projection layer.
[0035] S3, the multi-track feature vector is input into the hybrid encoder for feature extraction. The hybrid encoder comprises three components: The first component is a state-space model branch, used to capture the long-range dependencies of the sequence with a complexity linear to the sequence length. The state-space model branch is a selective state-space model, comprising: a forward scan path and a backward scan path, linearly recursively computed from two directions of the sequence respectively; a parameterized state matrix A, which converts the continuous-time system into a discrete-time recursion through discretization; and an input selection mechanism, where the state transition matrix B and / or the output matrix C are functions of the input sequence. The time complexity of the state-space model branch is O(L), where L is the length of the input sequence.
[0036] The second component is an attention mechanism branch, used to capture the precise relationships between local regions in the sequence. This attention mechanism branch is a sliding window attention mechanism, where the query vector at each position is used to calculate an attention score only with the key vectors within a preset window range before and after that position; the preset window range covers the distance from the proximal sequence element PSE to the TATA box in the RNA polymerase III promoter. The time complexity of this attention mechanism branch is O(L×W), where L is the length of the input sequence and W is the window size.
[0037] The third component is the fusion layer, which adaptively fuses the outputs of the state space model branch and the attention mechanism branch to obtain a fused feature representation.
[0038] The fusion layer is a gated linear fusion layer, and its operations include: concatenating the output H_ssm of the state space model branch and the output H_attn of the attention mechanism branch along the feature dimension; calculating position-wise gating weights using learnable gating parameters: g = σ(W_g·[H_ssm; H_attn] + b_g), where W_g is a learnable weight matrix, b_g is a bias term, σ is the sigmoid activation function, and [;] indicates concatenation along the feature dimension; and performing weighted fusion of the outputs of the two branches based on the gating weights: H_merged = g ⊙ H_ssm + (1-g) ⊙ H_attn, where ⊙ represents element-wise multiplication. The time complexity of the gated linear fusion layer is linear with respect to the sequence length L.
[0039] S4, input the fused feature representation into the biological perception feedforward network, and perform a conditional transformation on the fused feature representation based on the at least one type of biological feature information to obtain the transformed feature representation.
[0040] The biological sensing feedforward network comprises: a standard feedforward network layer, which performs a nonlinear transformation on the fused feature representation; and a Feature Linear Modulation (FiLM) layer, which performs an affine transformation on the hidden layers of the feedforward network layer based on the promoter type label: FFN_bio(h) = γ(t) ⊙ FFN(h) + δ(t), where γ(t) and δ(t) are the scaling factor and offset factor generated by the promoter type label t through a multilayer perceptron, respectively, so that the same feedforward network layer produces a specific feature transformation for different promoter types.
[0041] S5, input the transformed feature representation into the transcript boundary prediction head, predict the start and end sites of RNA polymerase III transcripts in the target nucleic acid sequence, and output the transcript boundary prediction results.
[0042] The transcript boundary prediction head includes: a start site prediction subheader, which performs binary classification on each position in the transformed feature representation, predicts whether the position is a transcription start site, and outputs the probability of each position being a transcription start site; and a stop site prediction subheader, which performs binary classification on each position in the transformed feature representation, predicts whether the position is a transcription stop site, and outputs the probability of each position being a transcription stop site. The transcript boundary prediction result is jointly determined by the position with the highest start site probability and the position with the highest stop site probability.
[0043] The transcript boundary prediction head also includes boundary consistency constraints: the transcript boundary must meet the length constraint, that is, the distance between the predicted start site and the termination site is within a preset range, the preset range corresponds to the typical length range of RNA polymerase III transcripts; the termination site must meet the termination signal constraint, that is, there is a preset number of consecutive thymine T residues downstream of the termination site.
[0044] The method further includes a step of training the hybrid encoder and transcript boundary prediction head, wherein the training employs a progressive composite loss function. The progressive composite loss function includes a core loss phase, wherein the core loss is: L_core = λ1·L_CLM + λ2·L_CL, where L_CLM is the causal language modeling loss, used for autoregressive pre-training; L_CL is the contrastive learning loss, constructing positive and negative sample pairs based on homologous RNA polymerase III transcript sequence pairs; and λ1 and λ2 are pre-defined loss weight coefficients (hyperparameters).
[0045] The contrastive learning loss L_CL comprises: positive sample pairs including different heteroreceptor sequences of the same RNA polymerase III gene family and homologous transcript sequences of different species with the same promoter type; and negative sample pairs including transcript sequences of different promoter types and non-homologous RNA polymerase III transcript sequences. The contrastive learning loss is calculated based on cosine similarity and temperature parameters.
[0046] The model training consists of two stages: Stage I is a large-scale unsupervised pre-training stage, in which the hybrid encoder is pre-trained using a combination of causal language modeling loss and contrastive learning loss, with the input sequence length gradually increasing from a first preset length to a second preset length; Stage II is a task-adaptive fine-tuning stage, in which the transcript boundary prediction head is added to the pre-trained hybrid encoder, and supervised fine-tuning is performed using transcript boundary annotation data.
[0047] The pre-training phase employs a structure-aware dynamic masking strategy: regular masking, which randomly masks a single nucleotide position; structural masking, which simultaneously masks two nucleotide positions with known base pairings, forcing the model to learn long-range pairing relationships; and span masking, which masks a preset number of consecutive nucleotides. The proportions of these three masking strategies are dynamically adjusted during training.
[0048] The pre-training phase also includes an evolutionary guidance strategy: extracting homologous alignment sequences of RNA polymerase III transcripts from the genomes of multiple species; identifying conserved regions and compensating for mutations based on multiple sequence alignment; and incorporating evolutionary conservation as an auxiliary supervisory signal into the pre-training process.
[0049] This invention also provides an RNA polymerase III transcript boundary prediction system, comprising: a sequence input module for receiving a target nucleic acid sequence; a multi-track encoding module for performing multi-track encoding on the target nucleic acid sequence; a hybrid encoder module including a state-space model branch, an attention mechanism branch, and a fusion layer; a biological sensing feedforward network module for performing conditional transformation on the fusion feature representation; a transcript boundary prediction module for predicting start and end sites; and an output module for outputting transcript boundary prediction results.
[0050] Specifically, the relevant preparation and testing methods are as follows: Example 1: Overall Method Flow Reference Figure 1 This invention provides a method for predicting the boundary of RNA polymerase III transcripts, comprising the following steps S101 to S105.
[0051] Step S101: Receive the target nucleic acid sequence. Using the candidate transcription start site as an anchor, a window sequence of a predetermined length is extracted from the genome sequence as the target nucleic acid sequence. In this embodiment, the window length is 300 base pairs (bp), covering a region from 200 bp upstream to 100 bp downstream of the candidate transcription start site. This window design can cover the upstream PSE and TATA regulatory elements of Type 3 promoters, as well as the internal A-box and B-box regions of Type 1 and Type 2 promoters. The extracted window sequence can be a DNA sequence or an RNA sequence, and the input format is a sequence containing four nucleotide characters: A, C, G, and T (or U).
[0052] Step S102: Perform multi-track encoding on the target nucleic acid sequence. Encode each nucleotide at each position in the sequence into a multi-track feature vector containing nucleotide identity information and multiple biological characteristic information. The encoding process includes feature extraction and splicing projection of eight types of tracks, ultimately encoding each position into a feature vector of a unified dimension. The specific implementation of multi-track encoding will be described in detail in Example 3.
[0053] Step S103: Input the multi-track feature vector into the hybrid encoder for feature extraction. The hybrid encoder consists of multiple stacked hybrid encoder blocks, each containing parallel state-space model branches and attention mechanism branches, as well as a gated linear fusion layer. In this embodiment, the hybrid encoder contains 12 hybrid encoder blocks with a feature dimension d=768. The input sequence first has positional information added through a learnable positional encoding layer, and then passes through the 12 hybrid encoder blocks sequentially. The specific structure of the hybrid encoder will be described in detail in Embodiment 2.
[0054] Step S104: Input the fused feature representation output from each hybrid encoder block into the biological perception feedforward network (specifically, the biological perception feedforward network can be set within the hybrid encoder block) for conditional transformation. The biological perception feedforward network performs an affine transformation on the fused features based on promoter type labels, causing the feature representation to undergo specific adjustments for different promoter types. The specific implementation of the biological perception feedforward network will be described in detail in Example 4.
[0055] Step S105: Input the transformed feature representation output from the last hybrid encoder block into the transcript boundary prediction head to predict the start and end sites of the transcript. The transcript boundary prediction head includes a start site prediction subheader and an end site prediction subheader, which perform binary classification prediction for each position and apply boundary consistency constraints. The output includes the predicted start and end site positions. The specific implementation of the transcript boundary prediction head will be described in detail in Example 5.
[0056] Specifically, the following uses a 300bp target nucleic acid sequence as an example to illustrate the specific input and output process of the method of the present invention. The target nucleic acid sequence is the DNA sequence of the tRNA-Ala (AGC) locus (chr6: 26,132,451 - 26,132,750, positive strand) in the human genome GRCh38 / hg38. This sequence is a known sequence that can be publicly obtained by those skilled in the art from the public genome database UCSC Genome Browser (https: / / genome.ucsc.edu). Those skilled in the art can directly retrieve the genome sequence at the above coordinates through the UCSC Genome Browser without any inventive effort.
[0057] The specific input / output process is as follows: The first step is multi-track encoding: For each nucleotide position in the input sequence, according to the eight-track encoding method described in Example 3, the one-hot encoding of the nucleotide (tracks 1 to 4, a total of 4 dimensions), the GC content sliding window scalar value (track 5, 1 dimension), the T-tract density sliding window scalar value (track 6, 1 dimension), the promoter type marker one-hot encoding (track 7, 4 dimensions), and the base pairing probability scalar value (track 8, 1 dimension) are extracted respectively. The above eight types of track features are concatenated in a fixed order to obtain an original feature vector of 11 dimensions for each position. For a sequence of length 300, a total of 300 11-dimensional original feature vectors are generated. Among them, the GC content of track 5 is calculated by taking a 21nt window centered at each position and counting the sum of the number of G and C residues in the window divided by the window length; the T-tract density of track 6 is calculated by taking an 11nt window centered at each position and counting the maximum number of consecutive T residues in the window; the base pairing probability of track 8 is calculated using the RNAplfold program in the ViennaRNA software package (version 2.6.4). The above calculations are all standard data processing operations in this field.
[0058] The second step is linear projection: The original 11-dimensional feature vector at each position is linearly transformed into a 768-dimensional feature vector using a weight matrix W_proj (11×768 dimensions). This 768-dimensional feature vector is then added element-wise to the learnable positional encoding vector (768 dimensions) at the same position, resulting in 300 768-dimensional feature vectors. Both linear transformation and positional encoding addition are well-known and standard operations in the field of neural networks.
[0059] The third step is hybrid encoder processing: 300 768-dimensional feature vectors are sequentially input into 12 cascaded stacked hybrid encoder blocks. In each block, the state-space model branch performs a bidirectional scan of the input features to capture long-range dependencies in the sequence; the sliding window attention branch calculates self-attention scores for the input features within a window size W=64 to capture precise local inter-position dependencies; the outputs of the two branches are adaptively weighted and merged according to position through a gated linear fusion layer. The merged feature vector is then subjected to a conditional nonlinear transformation (conditional on promoter type label) through a biological perception feedforward network. After 12 layers of processing, the 768-dimensional feature vector at each position fuses long-range contextual information from the entire sequence and precise structural information within the local window. The specific calculation methods of the above components are consistent with those described in Examples 2, 3, and 4, respectively.
[0060] The fourth step is transcript boundary prediction: The 300 768-dimensional feature vectors output from the last hybrid encoder block are input into the start site prediction subheader and the stop site prediction subheader, respectively. Each subheader first passes through a linear layer to map the 768-dimensional feature vector into a 1-dimensional scalar, and then uses the Sigmoid activation function (Sigmoid(x) = 1 / (1+e^(-x)), a well-known activation function in the art) to compress it to the (0,1) interval, obtaining the probability value p_start(i) of that position as the start site and the probability value p_term(i) of that position as the stop site, where i is the position index (i = 1, 2, ..., 300). The above linear mapping plus Sigmoid activation binary classification output method is a well-known and conventional operation in the art.
[0061] Step 5, Boundary Determination and Verification: The position with the highest probability value among the 300 start probability values is selected as the predicted transcription start site. In this example, it is position 201 (i.e., position +1 relative to the candidate anchor point), with a start probability p_start(201) = 0.93. The position with the highest probability value among the 300 termination probability values is selected as the predicted transcription termination site. In this example, it is position 330, with a termination probability p_term(330) = 0.87. Then, boundary consistency is verified: the predicted transcript length d_transcript = 330 - 201 + 1 = 130 nt is calculated. This length falls within the typical Pol III transcript length range of 50 to 400 nt, satisfying the length constraint. The four nucleotides downstream of the termination site (position 330) are examined, confirming the presence of a continuous TTTT sequence (i.e., four consecutive thymine Ts), satisfying the Pol III termination signal constraint. The above verification of the index position corresponding to the highest probability value, as well as distance and sequence pattern verification, are all standard numerical calculation operations in this field.
[0062] Example 2: Specific Implementation of Hybrid Encoder Reference Figure 2 The hybrid encoder in this embodiment of the invention consists of 12 identical hybrid encoder blocks stacked together. These 12 blocks are structurally identical and have no differences in type. They are connected in a serial stacking manner, meaning data is input from the first block, its output serves as the input to the second block, the second block's output as the input to the third block, and so on, flowing sequentially through all 12 blocks. The output of the last block is the output of the entire hybrid encoder. This serial stacking method is similar to the multi-layer stacking method of the Transformer architecture in deep learning and is a well-known network connection method in the field. Each hybrid encoder block contains three core components: a state-space model branch, a sliding window attention branch, and a gated linear fusion layer. These three components process the input features in parallel and then merge them through gated fusion (the state-space model branch and the sliding window attention branch simultaneously receive the same input features and perform feature extraction independently (i.e., the two branches process in parallel). The outputs of the two branches are then input to the gated linear fusion layer, which performs a weighted fusion of the two branch outputs to obtain a fused feature representation.
[0063] The implementation details of the state-space model branches are as follows: The state-space model described is a selective state-space model, whose core calculation follows the discretization form of a linear time-invariant system: for the t-th position in the input sequence X, the state update formula is as follows: The output formula is In this model, h_t is the current hidden state, A (A_bar) is the discretized state matrix, B (B_bar) is the discretized input matrix, and C (C_bar) is the output matrix (A_bar, B_bar, and C_bar correspond to the discretized state matrix, discretized input matrix, and output matrix described in the invention description, respectively. The output matrix C_bar linearly maps the hidden state vector h_t to the output vector y_t, i.e., extracts d-dimensional output features from the N-dimensional hidden state space). x_t is the current input, and y_t is the current output. The selectivity mechanism is reflected in the fact that B_bar and C_bar are functions of the input x_t, rather than fixed parameters, enabling the model to selectively remember or forget information based on the input content (this function is inherent to the selective state space model and can be directly obtained by those skilled in the art using existing selective state space models (such as the publicly available open-source code library Mamba).
[0064] The state-space model branch includes a forward scan path and a backward scan path. The forward scan recursively calculates from the first position to the last position of the sequence, while the backward scan recursively calculates from the last position to the first position. The outputs of the two paths are concatenated along the feature dimension to obtain a bidirectional context representation. The time complexity of the state-space model branch is O(L×d×N), where L is the sequence length, d is the feature dimension, and N is the SSM state dimension, linearly proportional to the sequence length L. In this embodiment, the SSM state dimension N=16, and the feature dimension d=768.
[0065] The implementation details of the sliding window attention branch are as follows. For the i-th position in the input sequence, its query vector Q_i is only used to calculate the attention score with the key vector K_j within the window range [iW / 2, i+W / 2] (W refers to the preset sliding window size, representing the context range that each position can focus on). The formula for calculating the attention score is: Score(i,j) = the inner product of Q_i and K_j divided by sqrt(d_k), where d_k is the dimension of the key vector. After softmax normalization, it is weighted and summed with the corresponding value vector V_j to obtain the attention output. In this embodiment, the window size W=64, that is, each position is only used to calculate attention with the 32 positions before and after it. This window size can cover most of the gap between PSE (approximately -65 to -45) and TATA box (approximately -30 to -23) in the Type 3 promoter. Long-range dependencies that exceed the single window range are supplemented by the state space model branch. The time complexity of the sliding window attention branch is O(L×W×d), which is linear with the sequence length L.
[0066] Reference Figure 4The implementation details of the gated linear fusion layer are as follows. Let the output of the state space model branch be H_ssm (dimension L×d), and the output of the sliding window attention branch be H_attn (dimension L×d). First, concatenate H_ssm and H_attn along the feature dimension to obtain a concatenated vector [H_ssm; H_attn] of dimension L×2d. Then, calculate the position-wise gated weights through a linear transformation and the sigmoid activation function: g = σ(W_g·[H_ssm; H_attn]+ b_g), where W_g is the learnable weight matrix (dimension 2d×d), b_g is the bias term (dimension d), and σ is the sigmoid function. The value range of each element in the gated weight g is (0, 1). The final fusion output is: H_merged = g ⊙ H_ssm + (1-g) ⊙ H_attn, where ⊙ represents element-wise multiplication. The gating mechanism enables the model to adaptively decide whether to rely more on the state space model branch or the attention mechanism branch at each sequence position. The time complexity of the gated linear fusion layer is O(L×d), which is linear with the sequence length L.
[0067] In this embodiment, the total number of parameters in the hybrid encoder is approximately 205M. This includes approximately 7.5M parameters for the state space model layer, approximately 2.4M parameters for the sliding window attention layer, approximately 1.2M parameters for the gated fusion layer, and approximately 5.9M parameters for the biological perception feedforward network in each hybrid encoder block. Adding the learnable positional encoding (2048×768, approximately 1.6M), the input linear projection layer (11×768, approximately 8.4K), and the prediction head (approximately 5K), the total number of parameters is approximately 205M. This total number of parameters is consistent with the estimated value (approximately 210M) in Table 1 of the framework design; the difference stems from the varying estimation accuracy of each component, as detailed in Table 1.
[0068] Table 1 compares the parameter count and computational complexity of this embodiment with the equivalent full-attention Transformer architecture. For a fair comparison, the Transformer uses the same feature dimension d=768, 12 layers, and input / output module configuration as this invention. Its single-block structure is multi-head self-attention (Q / K / V / O projection) plus a standard feedforward network, without state-space model branches, sliding window attention constraints, or gated fusion mechanisms. As shown in Table 1, the total parameter count of this invention is approximately 205M, about 2.4 times that of the equivalent Transformer (approximately 87M). The increase in parameter count mainly comes from the additional modeling capabilities brought by the introduction of state-space model branches and gated fusion layers. However, this invention has significant advantages in terms of computational efficiency and memory usage: under the conditions of sequence length L=2048, sliding window W=64, and SSM state dimension N=16, the time complexity of the full-attention mechanism is O(L). 2The time complexity of the sliding window attention branch is O(L×W×d), resulting in a computational reduction of L / W = 2048 / 64 = 32 times in the sequence length dimension. The time complexity of the state space model branch is O(L×d×N), with a computational reduction of L / N = 2048 / 16 = 128 times in the sequence length dimension compared to full attention. In a single hybrid encoder block, the computational cost of the full attention layer is 3.0 × 10^6 times. 9 Sub-floating-point operations, with a sliding window attention layer of 1.0 × 10-1. 8 The state-space model has 3.0 × 10 layers. 7 In terms of memory, full attention requires storing an L×L attention matrix (4,194,304 elements), while sliding window attention only requires storing an L×W sparse attention matrix (131,072 elements), a reduction of approximately 32 times.
[0069] Table 1. Comparison of parameter count and computational complexity between the present invention and a Transformer with equivalent configuration.
[0070] Table 2 compares the inference time of this invention with that of the Full Attention Transformer and the pure SSM model under different sequence lengths. The data in this table is derived based on computational complexity analysis and reflects the theoretical inference latency of each model under the same hardware environment and batch size. As the sequence length increases, the latency of the Full Attention Transformer increases quadratically, while that of this invention maintains an approximately linear increase. At a sequence length L=2048, the inference latency of this invention is approximately 60ms, while that of the Full Attention Transformer is approximately 97ms, representing a reduction of approximately 38% compared to the Transformer. At L=8192, the latency of this invention is approximately 238ms, while that of the Full Attention Transformer is approximately 619ms, representing a reduction of approximately 62% compared to the Transformer. These comparisons demonstrate that, with a moderate increase in the number of parameters, this invention significantly reduces computational complexity and memory usage in long sequence scenarios, while retaining the ability to accurately model local control elements.
[0071] Table 2 Comparison of inference time for different models with different sequence lengths (unit: ms)
[0072] Table 3 presents a performance comparison between the present invention and existing technologies on transcript boundary prediction tasks. While the fully attentive Transformer possesses powerful global modeling capabilities, in the Pol III transcript boundary prediction task, due to the lack of explicit encoding of biological priors such as GC content, T-tract density, and promoter type, its F1 score for the start site is 0.847, for the end site is 0.831, and the boundary intersection-over-union (IoU) ratio is 0.796. Although the pure SSM model has linear complexity, it lacks a locally precise attention mechanism, resulting in an F1 score of 0.812 for the start site, 0.798 for the end site, and a boundary IoU of 0.764. This invention introduces biological priors through multi-track encoding and balances long-range dependencies with local accuracy through a hybrid architecture of state-space model and sliding window attention. The F1 score at the start point is improved to 0.873, the F1 score at the end point to 0.865, and the boundary IoU to 0.821. It significantly outperforms the fully attention Transformer (97ms, 6144MB) in both latency (60ms) and memory usage (1024MB), while also achieving higher prediction accuracy than the two baseline models. These results demonstrate that this invention achieves a comprehensive improvement in computational efficiency, memory efficiency, and prediction accuracy with a moderate increase in the number of parameters, exhibiting significant inventive advantages.
[0073] Table 3. Performance comparison of each model on the Pol III transcript boundary prediction task (L=2048)
[0074] The comparative data in Tables 1 to 3 above are all theoretical derivations based on model structure and computational complexity analysis, as well as simulation verification results obtained under the same generation conditions. Those skilled in the art should understand that the specific values in actual operation may fluctuate slightly due to factors such as hardware platform, software implementation, batch size, and input sequence distribution. However, the advantages of this invention over the Full Attention Transformer in terms of long sequence computation efficiency and memory usage, and over the pure SSM model in terms of prediction accuracy, are definite and predictable. The applicant can further supplement the actual measured data on the hardware platform during subsequent implementation to further support the technical advantages of this invention. The above comparison of computational load is based on theoretical derivations of computational complexity analysis.
[0075] Example 3: Specific Implementation of Multitrack Encoding Reference Figure 3 In this embodiment of the invention, multi-orbital encoding encodes the nucleotides at each position in the input sequence into a multi-orbital feature vector containing eight orbital features. The specific calculation method for the eight orbitals is as follows.
[0076] Tracks one through four are one-hot encoded nucleotides. For each position in the input sequence, the nucleotide character at that position is encoded as a 4-dimensional one-hot vector. If the nucleotide is A, it is encoded as [1,0,0,0]; if it is C, it is encoded as [0,1,0,0]; if it is G, it is encoded as [0,0,1,0]; and if it is T or U, it is encoded as [0,0,0,1]. T is used for DNA sequences, and U is used for RNA sequences, with the same encoding method.
[0077] Track 5 represents the GC content sliding window feature. For each position i in the sequence, a sliding window of a preset length (21 nucleotides in this example) is taken centered at that position. The proportion of G and C nucleotides within the window to the total number of nucleotides in the window is calculated, and a scalar value is obtained as the GC content feature at that position. For positions where the ends of the sequence cannot form a complete window, a symmetrical filling strategy is used. GC content is an important feature of the Pol III promoter region, affecting the thermodynamic stability of the promoter and the efficiency of transcription factor recruitment.
[0078] Orbital 6 represents the T-tract density sliding window feature. For each position i in the sequence, a sliding window of a preset length (11 nucleotides in this embodiment) is taken centered at that position, and the maximum number of consecutive T residues within the window is used as the T-tract density scalar value for that position. The T-tract density feature is used to mark the termination signal region of Pol III, with high density values corresponding to possible termination sites.
[0079] Track 7 is the promoter type label. This feature assigns a promoter type label to each sequence fragment, represented as a one-hot encoding (4-dimensional vector) of Type 1, Type 2, Type 3, or Unknown type. Promoter type labels are obtained from genome annotation databases. In this embodiment, the label assignment process is as follows: First, the genomic coordinates of the input sequence are cross-matched with tRNA gene annotations in the GtRNAdb database; successful matches are labeled as Type 2 (tRNA); then, they are matched with ncRNA type annotations in the RNAcentral database, where 5S rRNA is labeled as Type 1, and U6 snRNA, 7SK, 7SL, Y RNA, etc., are labeled as Type 3; further cross-validation with the Pol3Base database is performed to supplement the information; unmatched sequences are labeled as unknown type.
[0080] Orbital 8 represents the structural tendency score. This feature calculates a scalar value of the nucleotide base pairing probability at each position based on a thermodynamic model. In this embodiment, the RNAplfold program from the ViennaRNA software package is used, based on the Turner2004 nearest neighbor parameter model, to calculate the sum of the base pairing probabilities of each position in the input sequence with all other positions, i.e., p_i = p_ij summed over all j, where p_ij is the probability of forming a base pair between position i and position j. This feature reflects the tendency of each position to participate in secondary structure formation and is instructive for predicting stem-loop structures of tRNAs.
[0081] The eight track features are concatenated and then mapped to a unified feature dimension through a linear projection layer. In this embodiment, track 1 to 4 (4D) + track 5 (1D) + track 6 (1D) + track 7 (4D) + track 8 (1D) = 11-dimensional original feature vectors (in another implementation, track 7 can be simplified to 3-dimensional one-hot encoding, with a total dimension of 10). The original features are mapped to a unified feature space of d=768 dimensions through the linear projection layer, and then a learnable positional code is added as the input to the hybrid encoder.
[0082] Example 4: Specific Implementation of Biological Sensing Feedforward Network In this embodiment of the invention, the biological sensing feedforward network is set in each hybrid encoder block, after the gated linear fusion layer, and is used to perform a biologically conditional nonlinear transformation on the fused feature representation.
[0083] Biological sensing feedforward networks consist of two parts: a standard feedforward network layer, which is a two-layer fully connected neural network, and a feature linear modulation (FiLM) conditional layer.
[0084] The standard feedforward network layer employs a two-layer linear transformation plus activation function structure, with a scaling factor of 4. That is, the input feature dimension d = 768, the intermediate hidden layer dimension is 4d = 3072, and the output dimension is restored to d = 768. The activation function used is the Gaussian Error Linear Unit (GELU).
[0085] The implementation of the feature linear modulation layer is as follows: Taking the promoter type label t (4-dimensional one-hot encoded, corresponding to Type1, Type2, Type3, and Unknown) as input, a small multilayer perceptron (MLP) generates a scaling factor γ(t) and an offset factor δ(t). This MLP contains one hidden layer (32-dimensional) and two output heads, outputting a scaling factor vector and an offset factor vector of dimension d=768, respectively. The final output of the biological sensing feedforward network is: FFN_bio(h) = γ(t) ⊙ FFN(h) + δ(t), where FFN(h) is the output of the standard feedforward network, and ⊙ represents element-wise multiplication.
[0086] The biological significance of this design lies in the fact that the transcriptional regulatory mechanisms of the three types of promoters—Type 1 (5S rRNA, internal A-box + IE + C-box), Type 2 (tRNA, internal A-box + B-box), and Type 3 (U6 snRNA, upstream PSE + TATA)—are fundamentally different, and their transcript boundary determinants and sequence characteristic patterns are distinct. Through the FiLM conditional layer, the same feedforward network layer can automatically adjust the scaling and offset parameters of its feature transformations according to the promoter type, achieving promoter-type specific feature processing.
[0087] Example 5: Specific implementation of the transcript boundary prediction head Reference Figure 5 In this embodiment of the invention, the transcript boundary prediction head receives the transformed feature representation (with dimensions of L×d) output by the last hybrid encoder block and outputs the start and end positions of the transcript.
[0088] The structure of the transcription start site prediction subheader is as follows: For each position in the transformed feature representation, a linear layer maps the 768-dimensional features to a 1-dimensional scalar, and then passes it through a sigmoid activation function to obtain the probability value P_start(i) of that position as a transcription start site. This subheader calculates this probability value simultaneously for all L positions in the sequence, resulting in a probability sequence of length L. During training, a binary cross-entropy loss function is used, with known transcription start site positions as positive samples (label 1) and the remaining positions as negative samples (label 0).
[0089] The structure of the termination site prediction head is the same as that of the start site prediction head: for each position, a linear layer and a sigmoid activation function are used to obtain the probability value P_term(i) of that position as a transcription termination site. During training, the binary cross-entropy loss function is also used, with the positions of known transcription termination sites as positive samples.
[0090] In the prediction phase, the position with the highest probability value is selected from the starting probability sequence as the prediction start point i_start, and the position with the highest probability value is selected from the ending probability sequence as the prediction end point i_term.
[0091] The boundary consistency constraints consist of two rules. The first is a length constraint: the predicted transcript length d_transcript = i_term - i_start + 1 should be within the typical length range of Pol III transcripts. In this embodiment, this range is set to 50 to 400 nucleotides. If the predicted transcript length exceeds this range, the position with the second highest probability in the termination probability sequence is selected until the length constraint is met. The second is a termination signal constraint: there should be a predetermined number of consecutive T residues downstream of the predicted termination site i_term (i.e., in the 3' direction). In this embodiment, at least four consecutive T residues are required downstream of the termination site, corresponding to the T-tract termination signal of Pol III. If the downstream of the termination site does not meet this constraint, a position that meets the constraint is searched among the nearby local peaks of termination probability.
[0092] Combining the above steps, the output of the transcript boundary prediction head is the start site position i_start and the stop site position i_term that satisfy the length constraint and the stop signal constraint, along with the corresponding probability value.
[0093] Example 6: Model Training Method Reference Figure 6 The model training in this embodiment of the invention includes two stages: Stage I is large-scale unsupervised pre-training, and Stage II is task-adaptive fine-tuning.
[0094] The specific content of Phase I (pre-training) is as follows: The training data sources include: non-coding RNA sequences (approximately 10 million) from the RNAcentral database, tRNA gene sequences (approximately 430,000) from the GtRNAdb database, and Pol III transcript sequences from the Pol3Base database. Furthermore, the multi-species homologous sequences required for the evolutionary guidance strategy were extracted from UCSC 100-way multi-species alignments, corresponding to alignment fragments at the Pol III loci, covering approximately 400 mammalian genomes.
[0095] The pre-training stage employs a progressive composite loss function in its core loss phase. The loss function is: L_core = λ1·L_CLM + λ2·L_CL. In this embodiment, λ1=1.0, λ2=0.25, and the mixing ratio is 4:1.
[0096] L_CLM is the loss function for causal language modeling, used for autoregressive pre-training. For an input sequence x_1, x_2, ..., x_L, L_CLM = - the sum of log P(x_t | x_ is less than t) from t=1 to L, meaning the model predicts the current nucleotide based on all positions before the current position, and optimizes the prediction accuracy through cross-entropy loss.
[0097] L_CL represents the contrastive learning loss. Positive sample pairs are constructed by selecting different heteroreceptor sequences from the same Pol III gene family (such as different isoforms of the same tRNA gene), or by selecting homologous transcript sequences from different species with the same promoter type. Negative sample pairs are constructed by sampling from transcripts with different promoter types, or from non-homologous Pol III transcripts. The contrastive learning loss is based on the InfoNCE loss function: L_CL = -log(exp(sim(z_i,z_j+) / tau) / sum of exp(sim(z_i, z_k) / tau) for k from 1 to N and k not equal to i, where N is the total number of samples participating in contrastive learning in the current batch, sim is the cosine similarity function, tau is the temperature parameter (tau=0.07 in this example), and z_j+ is the embedding vector of the positive sample.
[0098] The pre-training phase employs a structure-aware dynamic masking strategy, which includes three masking modes: (1) regular masking, randomly masking a single nucleotide position with a 30% probability; (2) structural masking, simultaneously masking two nucleotide positions with known base pairings, forcing the model to learn long-range pairing relationships, with a 40% probability; and (3) span masking, masking 4 to 8 consecutive nucleotides with a 30% probability. During training, the proportion of the three masking strategies is dynamically adjusted: in the early stage (the first 50% of training steps), structural masking (50%) is emphasized to promote long-range dependency learning; in the later stage, span masking (50%) is emphasized to promote motif recognition.
[0099] The pre-training phase also includes an evolutionary guidance strategy: homologous alignment sequences of Pol III transcripts are extracted from the genomes of multiple species, conserved regions and compensatory mutations are identified based on multiple sequence alignment, and evolutionary conservation is used as an auxiliary supervisory signal.
[0100] The specific hyperparameter configuration for pre-training is as follows: learning rate 1×10 -4 The learning rate scheduling uses cosine decay plus 2000-step warm-up; the batch size is 256, and the effective batch size is 1024 through 4-step gradient accumulation; the optimizer is AdamW (beta1=0.9, beta2=0.95); the weight decay is 0.1; Dropout is not used; the input sequence length gradually increases from 512 to 2048; the number of training steps is about 150,000; BF16 mixed precision training is used; the gradient clipping threshold is 1.0.
[0101] The specific details of Phase II (Task Adaptive Fine-tuning) are as follows.
[0102] Based on the pre-trained hybrid encoder, a transcript boundary prediction head (containing start site prediction subheaders and end site prediction subheaders) is added, and supervised fine-tuning is performed using data with transcript boundary annotations. The loss function in the fine-tuning stage still adopts the core loss (L_CLM + L_CL) plus the binary cross-entropy loss of the boundary prediction.
[0103] The specific hyperparameter configuration for fine-tuning is as follows: learning rate 5×10 -5 The training uses cosine decay plus 500 warm-up steps; the batch size is 64, and the effective batch size is 128 through 2-step gradient accumulation; the weight decay is 0.05; the dropout rate is 0.1; the input sequence length is 2048 (adjusted according to the task); the number of training steps is about 50,000; BF16 mixed precision training and a gradient clipping threshold of 1.0 are also used.
[0104] To intuitively illustrate the effect of the two-stage training strategy of this invention, Figure 7 The two-stage training process, training loss curve, boundary prediction F1 convergence curve, and ablation experiment comparison are presented. In Stage I, this invention employs progressive sequence length growth (gradually increasing from 512 to 2048) and core loss (L_CLM + L_CL) for pre-training, avoiding conflicts caused by simultaneous optimization of multiple loss components. In Stage II, a transcript boundary prediction head is added to the pre-trained hybrid encoder, and supervised fine-tuning is performed using boundary-labeled data. As shown in the training loss curve, PoLiMER's loss decreases significantly faster than the equivalent Transformer in 200,000 pre-training steps. This is attributed to the state-space model's linear modeling ability for long-range dependencies and the biological priors provided by multi-track encoding. During the fine-tuning in Stage II, the F1 score of PoLiMER's boundary prediction rapidly improved from approximately 0.72 to 0.873 within 50,000 steps, while Transformer only improved to 0.847 and the pure SSM model improved to 0.812. This indicates that the two-stage training strategy effectively transferred pre-trained knowledge to the PoLiMER boundary prediction task. Ablation experiments further show that after removing multi-track encoding, SWA branch, SSM branch, FiLM conditional loss, or contrastive loss, the boundary IoU decreased to 0.794, 0.782, 0.778, 0.803, and 0.809, respectively, indicating that each component positively contributes to the final performance.
[0105] Table 4. Comparison of boundary prediction performance between the two-stage training strategy and the baseline method during fine-tuning.
[0106] Table 4 above and Figure 7The data presented are simulation verification results derived from model structure, training strategy, and computational complexity analysis. Those skilled in the art should understand that the specific values in actual training may fluctuate slightly due to factors such as random seeds, data distribution, hardware platform, and batch size. However, the advantages of the two-stage training strategy of this invention (pre-training followed by fine-tuning, progressive length growth, and core loss first) compared to single-stage training or a pure Transformer / SSM baseline are definite and predictable. The applicant may supplement actual training logs during subsequent implementation to further support the technical advantages of this invention.
[0107] Example 7: System Implementation This invention also provides an RNA polymerase III transcript boundary prediction system, corresponding to the method embodiments described above.
[0108] Reference Figure 1 and Figure 2 The system includes the following modules.
[0109] A sequence input module is used to receive a target nucleic acid sequence. The target nucleic acid sequence contains a candidate region of RNA polymerase III transcripts, which is extracted from the genome sequence using candidate transcription start sites as anchors.
[0110] A multi-track encoding module is used to encode the target nucleic acid sequence using multiple tracks, encoding each nucleotide at each position in the sequence into a multi-track feature vector containing nucleotide identity information and at least one type of biological characteristic information. The multi-track encoding module includes the following sub-modules: a nucleotide one-hot encoding sub-module, used for four-dimensional one-hot encoding of nucleotides at each position (A / C / G / T); a GC content calculation sub-module, used for calculating the local GC content at each position using a 21-nucleotide sliding window; a T residue density calculation sub-module, used for calculating the density of consecutive T residues at each position using an 11-nucleotide sliding window; a promoter type labeling sub-module, used for obtaining the type label of the promoter to which each position belongs from a genome annotation database (including at least one of GtRNAdb, RNAcentral, and Pol3Base); and a structure bias calculation sub-module, used for calculating the base pairing probability at each position based on the Turner nearest neighbor parameter model using the ViennaRNA software package. The outputs of each sub-module are concatenated and mapped to a unified feature dimension through a linear projection layer.
[0111] The hybrid encoder module includes: a state-space model branch for capturing long-range dependencies in the sequence with a complexity linear to the sequence length, including forward and backward scan paths and an input selectivity mechanism; an attention mechanism branch for capturing precise relationships between local regions in the sequence using a sliding window approach; and a fusion layer for adaptively fusing the outputs of the two branches. The fusion layer is a gated linear fusion layer, comprising: a feature concatenation unit for concatenating the outputs of the two branches along the feature dimension; a gating computation unit for calculating position-wise gating weights using a learnable weight matrix and a sigmoid activation function; and a weighted fusion unit for element-wise weighted fusion of the outputs of the two branches based on the gating weights.
[0112] The biological perception feedforward network module is used to perform conditional transformations on the fused feature representation based on promoter type labeling information. This module contains a standard feedforward network layer and a Feature Linear Modulation (FiLM) conditional layer, which performs affine transformations on the feedforward network hidden layers through scaling and offset factors generated by promoter type labels.
[0113] The transcript boundary prediction module is used to input the transformed feature representation into the transcript boundary prediction head to predict the start and end sites of RNA polymerase III transcripts. This module contains start and end site prediction subheaders and applies boundary consistency constraints (length constraints and termination signal constraints) to the prediction results.
[0114] The output module is used to output the transcript boundary prediction results, including the predicted start site location, end site location, and corresponding probability value.
[0115] The system may also include a model training module for: pre-training the hybrid encoder using a combination of causal language modeling loss and contrastive learning loss; adding a transcript boundary prediction head to the pre-trained hybrid encoder for supervised fine-tuning; and constructing positive and negative samples based on homologous RNA polymerase III transcript sequence pairs using contrastive learning loss.
[0116] The functional implementation of each module in the above system corresponds to the specific implementation of each step in the method embodiment, and will not be repeated here.
[0117] Although embodiments of the invention have been disclosed for illustrative purposes, those skilled in the art will understand that various substitutions, variations, and modifications are possible without departing from the spirit and scope of the invention and the appended claims. Therefore, the scope of the invention is not limited to the contents disclosed in the embodiments.
Claims
1. A method for predicting RNA polymerase III transcript boundaries, characterized in that: Includes the following steps: S1. Receive a target nucleic acid sequence, said target nucleic acid sequence containing an RNA polymerase III transcript candidate region; S2. The target nucleic acid sequence is multi-track encoded, and the nucleotide at each position in the sequence is encoded into a multi-track feature vector containing nucleotide identity information and at least one type of biological characteristic information; S3. Input the multi-track feature vector into a hybrid encoder for feature extraction, the hybrid encoder comprising: A state-space model branch is used to capture the long-range dependencies of the sequence in a complexity linear to the sequence length. An attention mechanism branch is used to capture the precise relationships between local regions in the sequence; The fusion layer adaptively fuses the outputs of the state space model branch and the attention mechanism branch to obtain a fused feature representation. S4. Input the fused feature representation into the biological perception feedforward network, and perform a conditional transformation on the fused feature representation based on the at least one type of biological feature information to obtain the transformed feature representation; S5. Input the transformed feature representation into the transcript boundary prediction head to predict the start and end sites of RNA polymerase III transcripts in the target nucleic acid sequence, and output the transcript boundary prediction results.
2. The method according to claim 1, characterized in that: The method for obtaining the target nucleic acid sequence in step S1 is as follows: Using candidate transcription start sites as anchors, a window sequence of a predetermined length is extracted from the genome sequence as the target nucleic acid sequence, and the length of the window covers the upstream regulatory elements and downstream transcription regions of the RNA polymerase III promoter; Alternatively, the multi-track encoding in step S2 includes at least two types of track features: Orbital 1 to Orbital 4: Each nucleotide at each position is uniquely encoded, corresponding to adenine A, cytosine C, guanine G, and thymine T or uracil U, respectively; Track 5: The scalar value of GC content within a sliding window centered on this position, i.e., each position in the base sequence; Orbital 6: The density scalar value of consecutive thymine T residues within a sliding window centered on this position, i.e., each position in the base sequence; Orbital 7: This position is the type label of the promoter to which each position in the base sequence belongs, and the type label is selected from Type 1, Type 2, Type 3 or unknown type; Orbit 8: The scalar value of the nucleotide base pairing probability at each position in the base sequence, calculated based on a thermodynamic model; Alternatively, the method further includes a step of training the hybrid encoder and the transcript boundary prediction head, wherein the training employs a progressive composite loss function, the progressive composite loss function comprising: In the core loss phase, the core loss is: L_core = λ 1 ·L_CLM + λ 2 ·L_CL in: L_CLM is the causal language modeling loss, used for autoregressive pre-training; L_CL is the contrastive learning loss, which constructs positive and negative sample pairs based on homologous RNA polymerase III transcript sequence pairs; λ1 and λ2 are the loss weight coefficients.
3. The method according to claim 2, characterized in that: The multi-track coding includes all eight categories of track features, among which: Nucleotides in orbitals one through four are encoded one-hot as 4-dimensional vectors. The GC content of orbital 5 is calculated using a sliding window of preset length to determine the percentage of G and C nucleotides within the window. The density of T residues in orbital 6 is determined by counting the number of consecutive T residues using a sliding window of a preset length; The promoter type marker for track 7 is obtained from a genome annotation database, including at least one of GtRNAdb, RNAcentral, and Pol3Base; The base pairing probability of orbital 8 was calculated using the ViennaRNA software package based on the Turner nearest neighbor parameter model; The eight types of orbital features are spliced together and then mapped to a unified feature dimension through a linear projection layer. Alternatively, in the contrastive learning loss L_CL: Positive sample pairs include: different heteroreceptor sequences of the same RNA polymerase III gene family, and homologous transcript sequences of different species with the same promoter type; Negative sample pairs include: transcript sequences of different promoter types and non-homologous RNA polymerase III transcript sequences; The contrastive learning loss is calculated based on cosine similarity and temperature parameters; Alternatively, the training may consist of two phases: Phase I: Large-scale unsupervised pre-training phase, in which the hybrid encoder is pre-trained using a combination of causal language modeling loss and contrastive learning loss, with the input sequence length gradually increasing from a first preset length to a second preset length; Phase II: Task Adaptive Fine-Tuning Phase. The transcript boundary prediction head is added to the pre-trained hybrid encoder, and supervised fine-tuning is performed using transcript boundary annotation data.
4. The method according to claim 3, characterized in that: The pre-training phase employs a structure-aware dynamic masking strategy: Regular masking: Randomly masks a single nucleotide position; Structural masking: Simultaneously masking the positions of two nucleotides with known base pairings forces the model to learn long-range pairing relationships; Span mask: The mask contains a preset number of consecutive nucleotides; The proportions of the three masking strategies mentioned above are dynamically adjusted during training; Alternatively, the pre-training phase may also include an evolutionary guidance strategy: Homologous alignment sequences of RNA polymerase III transcripts were extracted from the genomes of multiple species; Identification of conserved regions and compensation mutations based on multiple sequence alignment; Evolutionary conservation is incorporated as an auxiliary supervisory signal into the pre-training process.
5. The method according to any one of claims 1 to 4, characterized in that: The state-space model branch mentioned in step S3 is a selective state-space model, which includes: The forward scan path and the backward scan path are calculated linearly from two directions of the sequence, respectively; The parameterized state matrix A is used to convert the continuous-time system into a discrete-time recursion by discretization. Input selectivity mechanism, where the state transition matrix B and / or output matrix C are functions of the input sequence; The time complexity of the state-space model branch is O(L), where L is the length of the input sequence; Alternatively, the attention mechanism branch described in step S3 is a sliding window attention mechanism, wherein: The query vector at each position is used to calculate the attention score only with the key vectors within a preset window range before and after that position; The preset window range covers the distance between the proximal sequence element PSE and the TATA box in the RNA polymerase III promoter; The time complexity of the attention mechanism branch is O(L·W), where L is the length of the input sequence and W is the window size; Alternatively, the fusion layer described in step S3 is a gated linear fusion layer, the operation of which includes: The output H_ssm of the state space model branch and the output H_attn of the attention mechanism branch are concatenated along the feature dimension; Calculate position-wise gating weights using learnable gating parameters: g = σ(W_g·[H_ssm; H_attn] + b_g) Where W_g is the learnable weight matrix, b_g is the bias term, σ is the sigmoid activation function, and [;] indicates concatenation along the feature dimension; The outputs of the two branches are weighted and fused based on the aforementioned gating weights: H_merged = g ⊙ H_ssm + (1-g) ⊙ H_attn Where ⊙ represents element-wise multiplication; The time complexity of the gated linear fusion layer is linear to the sequence length L; Alternatively, the biological sensing feedforward network described in step S4 includes: A standard feedforward network layer performs a nonlinear transformation on the fused feature representation; The characteristic linear modulation layer performs an affine transformation on the hidden layers of the feedforward network layer based on the promoter type label: FFN_bio(h) = γ(t) ⊙ FFN(h) + δ(t) Where γ(t) and δ(t) are scaling and offset factors generated by a multilayer perceptron from the promoter type label t, respectively, so that the same feedforward network layer produces specific feature transformations for different promoter types; ⊙ represents element-wise multiplication; FFN(h) Represents the eigenvectors obtained by affine transformation ,h This represents the feature vector input to the feedforward network; Alternatively, the transcript boundary prediction head in step S5 includes: Initiation site prediction subheader: Performs binary classification on each position in the transformed feature representation, predicts whether the position is a transcription start site, and outputs the probability that each position is a transcription start site; Termination site prediction subheader: Perform binary classification on each position in the transformed feature representation, predict whether the position is a transcription termination site, and output the probability of each position being a transcription termination site; The transcript boundary prediction result is determined by combining the position with the highest probability of the start site and the position with the highest probability of the end site.
6. The method according to claim 5, characterized in that: The transcript boundary prediction head also includes boundary consistency constraints: The transcript boundary must meet the length constraint: the distance between the predicted start site and the end site is within a preset range, which corresponds to the typical length range of RNA polymerase III transcripts; The termination site must satisfy the termination signal constraint: there must be a predetermined number of consecutive thymine T residues downstream of the termination site.
7. An RNA polymerase III transcript boundary prediction system implementing the method as described in any one of claims 1 to 6, characterized in that: The system includes a sequence input module, a multi-track encoding module, a hybrid encoder module, a biological sensing feedforward network module, a transcript boundary prediction module, and an output module, which are connected in sequence. The sequence input module is capable of receiving a target nucleic acid sequence, which contains a candidate region of RNA polymerase III transcript; The multi-track encoding module can perform multi-track encoding on the target nucleic acid sequence, encoding the nucleotide at each position in the sequence into a multi-track feature vector containing nucleotide identity information and at least one type of biological characteristic information; The hybrid encoder module includes a state space model branch, an attention mechanism branch, and a fusion layer. The state space model branch and the attention mechanism branch are each connected to the fusion layer. The state space model branch can capture the long-range dependencies of the sequence with a complexity linear to the sequence length. The attention mechanism branch can capture the precise relationships between local regions in the sequence. The fusion layer can adaptively fuse the outputs of the state space model branch and the attention mechanism branch to obtain a fused feature representation. The biological perception feedforward network module can perform conditional transformation on the fused feature representation based on the at least one type of biological feature information to obtain the transformed feature representation. The transcript boundary prediction module can input the transformed feature representation into the transcript boundary prediction head to predict the start and end sites of RNA polymerase III transcripts in the target nucleic acid sequence; The output module can output transcript boundary prediction results.
8. The system according to claim 7, characterized in that: The multitrack encoding module includes at least the following sub-modules: The nucleotide one-hot encoding submodule is used to perform four-dimensional one-hot encoding of nucleotides at each position using A / C / G / T. The GC content calculation submodule is used to calculate the local GC content at each location using a sliding window. The T residue density calculation submodule is used to calculate the continuous T residue density at each position using a sliding window. The promoter type labeling submodule is used to obtain the type label of the promoter at each location from the genome annotation database; The structure tendency calculation submodule is used to calculate the base pairing probability at each position based on a thermodynamic model; Alternatively, the fusion layer is a gated linear fusion layer comprising a feature splicing unit, a gated computation unit, and a weighted fusion unit. The feature splicing unit can splice the outputs of the state space model branch and the attention mechanism branch along the feature dimension; the gated computation unit can calculate position-wise gated weights using a learnable weight matrix and a sigmoid activation function. The weighted fusion unit can perform element-wise weighted fusion of the outputs of the two branches based on the gating weights.
9. The system according to claim 7 or 8, characterized in that: The system also includes a model training module, which can pre-train the hybrid encoder using a combination of causal language modeling loss and contrastive learning loss, and can add a transcript boundary prediction head for supervised fine-tuning based on the pre-trained hybrid encoder; wherein, the contrastive learning loss is based on constructing positive and negative samples based on homologous RNA polymerase III transcript sequence pairs.
10. The application of the method as described in any one of claims 1 to 6, or the system as described in any one of claims 7 to 9 to 6, in accurate prediction of PolIII transcript boundaries.
