Analysis method, analysis system, and nanopore measurement and analysis system

Through machine learning technology, especially recurrent neural networks, the measurement results in the nanopore measurement system are analyzed, which solves the problem of difficult identification of homopolymer regions in nanopore sequencing and achieves higher sequencing accuracy and efficiency.

CN118773294APending Publication Date: 2024-10-15OXFORD NANOPORE TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410754417.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2017-05-04
Filing Date
2018-05-04
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing nanopore measurement systems have difficulty in accurately determining the homopolymer region when measuring polynucleotides, especially at high sequencing rates, resulting in reduced accuracy of sequencing results.

Method used

Machine learning techniques, specifically recurrent neural networks, are used to analyze the measurement results of polymers during nanopore translocation and identify continuous polymer units through posterior probability matrices and eigenvectors to improve the accuracy of sequencing results.

Benefits of technology

Improved sequencing accuracy at high sequencing rates, enabling more accurate identification and estimation of polymer units, especially in repetitive sequences and homopolymer regions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118773294A_ABST
    Figure CN118773294A_ABST
Patent Text Reader

Abstract

A method of analyzing a series of measurements obtained from a polymer during translocation of the polymer relative to a nanopore, an analysis system, and a nanopore measurement and analysis system are provided. A method of measuring a polymer comprising a series of polymer units, the method comprising: performing a convolution on consecutive measurements in consecutive windows of the series of measurements to derive a feature vector with respect to each window; and operating on the feature vectors using a recurrent neural network to derive information about the series of polymer units.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of an invention patent application with an application date of May 4, 2018, application number 201880026701.9, and invention name “Machine Learning Analysis of Nanopore Measurement Results”. Technical Field

[0002] The present invention relates to the analysis of measurements taken from polymer units in a polymer (such as but not limited to a polynucleotide) during translocation of the polymer relative to a nanopore. Background Art

[0003] One type of measurement system for estimating a target sequence of polymer units in a polymer uses a nanopore, and the polymer is translocated relative to the nanopore. Some properties of the system depend on the polymer units in the nanopore, and the properties are measured. Such measurement systems using nanopores have considerable promise, particularly in the field of sequencing polynucleotides such as DNA or RNA, and have been the subject of recent developments. Summary of the invention

[0004] Such nanopore measurement systems can provide long-term continuous readouts of polynucleotides, ranging from hundreds to hundreds of thousands (and potentially more) of nucleotides. Data collected in this manner include measurements, such as those of ionic currents, where each translocation of a sequence relative to a sensitive portion of the nanopore may result in a change in a measured property.

[0005] According to a first aspect of the present invention, there is provided a method for analyzing a series of measurement results obtained from a polymer during translocation of the polymer relative to a nanopore, wherein the polymer comprises a series of polymer units, the method comprising using machine learning techniques to analyze the series of measurement results and derive a series of posterior probability matrices corresponding to corresponding measurement results or groups of corresponding measurement results, each posterior probability matrix representing: with respect to different corresponding historical sequences of measurement results of the polymer units corresponding to before or after the corresponding measurement, the posterior probabilities of multiple different changes of the corresponding historical sequence of polymer units producing new sequences of polymer units.

[0006] The series of posterior probability matrices representing posterior probabilities provide improved information about the series of polymer units from which the measurement results are obtained and can be used in a variety of applications. The series of posterior probability matrices can be used to derive a score for at least one reference series of polymer units, the score representing the probability that the series of polymer units of the polymer are the reference series of polymer units. Therefore, the series of posterior probability matrices enable, for example, the following various applications.

[0007] Many applications involve deriving an estimate of the series of polymer units from the series of posterior probability matrices. This can be an estimate of the series of polymer units as a whole. This can be done by finding the highest scoring series of such series from all possible series. For example, this can be performed by estimating the most likely path through the series of posterior probability matrices.

[0008] Alternatively, the estimated value of the series of polymer units may be found by selecting one of a set of multiple reference series of polymer units that most likely corresponds to the series of posterior probability matrices, for example based on the scores.

[0009] Another type of estimate of the series of polymer units can be found by estimating the difference between the series of polymer units of the polymer and a reference series of polymer units. This can be done by scoring the variation of the reference series.

[0010] Alternatively, the estimation can be an estimation of a portion of the series of polymer units. For example, it can be estimated whether a portion of the series of polymer units is a reference series of polymer units. This can be accomplished by scoring the reference sequence for a portion of the series of posterior probability matrices.

[0011] This method provides advantages over comparative methods, which derive a series of posterior probability vectors representing the posterior probabilities of multiple different polymer unit sequences. Specifically, the series of posterior probability matrices provide additional information for such posterior probability vectors, thereby allowing the series of polymer units to be estimated in a more accurate manner. For example, this technique allows better estimation of regions of repetitive sequences, regions containing short sequences of one or more polymer units. Better estimation of homopolymers is a specific example of an advantage in repetitive regions.

[0012] To get an intuitive idea of ​​why this advantage exists, consider the problem of predicting on which day a package will be delivered. Each package arrival is analogous to extending the predicted polymer sequence by one unit. The model that predicts the state (e.g. et al., DeepNano: Deep Recurrent Neural Networks for Base Calling in Minion Nanopore Reads, Cornell University website, March 2016) will generate the probability of delivering a package for each day in the future. If there is a lot of uncertainty about the delivery date, then the probability of delivering a package on any particular day may be less than 50%, in which case, according to the model, the most likely sequence of events is that the package will never be delivered. On the other hand, a model that predicts change relative to the historical state may generate 2 probabilities for each day: 1) if the package has not been delivered, the probability of delivery increases as more days pass, and 2) if the package has been delivered, the probability of delivery will always be 0. Unlike the previous model, this one always predicts that the package will eventually be delivered.

[0013] Similarly, state-based models tend to underestimate the length of repeating polymer sequences compared to models that predict change relative to history. This provides a particular advantage for homopolymer sequences, because a series of measurements produced by a homopolymer tend to be very similar, making it difficult to assign a measurement to each additional polymer unit.

[0014] Determining homopolymer regions in the context of nanopore sequencing is particularly challenging, and the nanopore sequencing involves translocation of polymer chains (e.g., polynucleotide chains) through nanopores in a stepwise manner, such as by means of enzymatic molecular motors. The current measured during translocation generally depends on a plurality of nucleotides and can be approximated to a specific number of nucleotides. When translocation is under enzyme control, the polynucleotide chain generally moves through the nanopore one base at a time. Therefore, for polynucleotide chains whose homopolymer length is longer than the approximate number of nucleotides that produce the current signal, it may be difficult to determine the number of polymer units in the homopolymer region. One aspect of the present invention is to improve the determination of homopolymer regions.

[0015] The machine learning technique may employ a recurrent neural network, which may optionally be a bidirectional recurrent neural network and / or include multiple layers.

[0016] There are various possibilities for changes in the posterior probability representation, such as the following.

[0017] The change may include changes that remove a single polymer unit from the beginning or end of the historical sequence of polymer units, and add a single polymer unit to the end or beginning of the historical sequence of polymer units.

[0018] The change may include changes of removing two or more polymer units from the beginning or end of the historical sequence of polymer units, and adding two or more polymer units to the end or beginning of the historical sequence of polymer units.

[0019] The variation may include a null variation.

[0020] The method may employ event calling and apply machine learning techniques to quantities derived from each event. For example, the method may include: identifying groups of consecutive measurements in the series of measurements as belonging to a common event; deriving one or more quantities from each identified group of measurements; and operating on the one or more quantities derived from each identified group of measurements using the machine learning techniques. The method may operate on windows of the quantities. The method may derive a posterior probability matrix corresponding to respective identified groups of measurements (which typically contain a priori unknown and variable multiple measurements), whereby the relationship between the posterior probability matrix and the measurements depends on the number of measurements in the identified groups.

[0021] The method may alternatively apply the machine learning technique to the measurement results themselves. In this case, the method may derive a posterior probability matrix corresponding to the respective measurement results or a group of respective predetermined numbers of measurement results, thus predetermining the relationship between the posterior probability matrix and the measurement results.

[0022] For example, the analysis of the series of measurements may include: performing convolution on the series of measurements in consecutive windows of the series of measurements to derive a feature vector for each window; and operating on the feature vector using the machine learning technique. The windows may be overlapping windows. The convolution may be performed by operating on the series of measurements using a trained feature detector, such as a convolutional neural network.

[0023] According to a second aspect of the invention there is provided a method for analysing a series of measurements taken from a polymer during translocation of the polymer relative to a nanopore, the polymer comprising a series of polymer units, the method comprising analysing the series of measurements using a recurrent neural network that outputs decisions regarding the identity of successive polymer units of the series of polymer units, wherein the decisions are fed back into the recurrent neural network to inform subsequent output decisions.

[0024] Compared to a comparative method of deriving a posterior probability vector representing the posterior probabilities of a plurality of different polymer unit sequences and then estimating the sequence of polymer units from the posterior probability vector, the present method provides an advantage because it effectively incorporates the estimate into the recurrent neural network. Thus, the present method provides an estimate of the identity of consecutive polymer units that may be more accurate.

[0025] The decision may be fed back unidirectionally into the recurrent neural network.

[0026] The recurrent neural network may be a bidirectional recurrent neural network and / or include a plurality of layers.

[0027] The method may employ event calling and apply machine learning techniques to quantities derived from each event. For example, the method may include: identifying groups of consecutive measurements in the series of measurements as belonging to a common event; deriving one or more quantities from each identified group of measurements; and operating on the one or more quantities derived from each identified group of measurements using the recurrent neural network. The method may operate on a window of the quantities. The method may derive a decision regarding the identity of consecutive polymer units corresponding to a respective identified group of measurements (which typically contains a plurality of measurements that are a priori unknown and may be variable), whereby the relationship between the decision regarding the identity of consecutive polymer units and the measurements depends on the number of measurements in the identified group.

[0028] The method may alternatively apply the machine learning technique to the measurements themselves. In this case, the method may derive a decision regarding the identity of the continuous polymer unit corresponding to the respective measurement or a group of respective predetermined number of measurements, thus predetermining the relationship between the decision regarding the identity of the continuous polymer unit and the measurements.

[0029] For example, the analysis of the series of measurements may include: performing convolution on the series of measurements in consecutive windows of the series of measurements to derive a feature vector for each window; and operating on the feature vector using the machine learning technique. The windows may be overlapping windows. The convolution may be performed by operating on the series of measurements using a trained feature detector, such as a convolutional neural network.

[0030] According to a third aspect of the invention, there is provided a method for analyzing a series of measurement results obtained from a polymer during translocation of the polymer relative to a nanopore, wherein the polymer comprises a series of polymer units, the method comprising: performing convolution on consecutive measurement results in consecutive windows of the series of measurement results to derive a feature vector about each window; and operating the feature vector using a recursive neural network to derive information about the series of polymer units.

[0031] This approach provides advantages over comparative methods that apply event calling and use recurrent neural networks to operate on quantities or feature vectors derived for each event. In particular, the present method provides higher accuracy, particularly when the series of measurements do not exhibit easily distinguishable events, such as when measurements are acquired at relatively high sequencing rates.

[0032] The windows may be overlapping windows. The convolution may be performed by operating on the series of measurements using a trained feature detector, such as a convolutional neural network.

[0033] The recurrent neural network may be a bidirectional recurrent neural network and / or may include multiple layers.

[0034] The third aspect of the present invention may be applied in combination with the first or second aspect of the present invention.

[0035] The following description applies to all aspects of the invention.

[0036] The present method improves accuracy in a manner that allows analysis to be performed on a series of measurements taken at a relatively high sequencing rate. For example, the method can be applied to a series of measurements taken at a rate of at least 10 polymer units per second, preferably 100 polymer units per second, more preferably 500 polymer units per second, or more preferably 1000 polymer units per second.

[0037] The nanopore may be a biological pore.

[0038] The polymer may be a polynucleotide, wherein the polymer units are nucleotides.

[0039] The measurements may include one or more of: current measurements, impedance measurements, tunneling measurements, FET measurements, and optical measurements.

[0040] The method may further comprise acquiring the series of measurements.

[0041] Apart from the step of acquiring the series of measurements, the method may be performed in a computer device.

[0042] According to a further aspect of the invention, there may be provided an analysis system arranged to perform a method according to any one of the first to third aspects. Such an analysis system may be implemented in a computer device.

[0043] According to further aspects of the invention there may be provided such an analysis system in combination with a measurement system arranged to acquire a series of measurements from the polymer during its translocation relative to the nanopore. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] For a better understanding, embodiments of the invention will now be described by way of non-limiting examples with reference to the accompanying drawings, in which:

[0045] Figure 1 is a schematic diagram of the nanopore measurement and analysis system;

[0046] Figure 2 is a representation of the segmentation process used to find the boundaries of events input into the analysis system;

[0047] Figure 3 is a graph showing the original signal in relation to the number of instances as a summary statistic of the identified events;

[0048] Figure 4 is a schematic diagram showing the structure of an analysis system implemented by a recurrent neural network;

[0049] Figure 5 Schematic diagram showing the structure of a comparative example of an analysis system using an HMM (Hidden Markov Model) architecture.

[0050] Figures 6 to 9 It is a schematic diagram of the layers in a neural network, which shows how the units of the layers operate on the temporal series input features. Figure 6 shows a non-recursive layer, Figure 7 shows a unidirectional layer, Figure 8 shows a bidirectional recurrent layer combining a "forward" recurrent layer and a "backward" recurrent layer, and Fig. 9 An alternative bidirectional recursive layer is shown that combines "forward" recursive layers and "backward" recursive layers in an alternating manner;

[0051] Fig.10 Shows the Figure 4 Modification of the analysis system to operate on the measurement results (raw data);

[0052] Fig.11 Shows the Figure 4 Modification of the analysis system;

[0053] Fig.12 Shows that there is Fig.11 Modification of sample output of analytical system;

[0054] Fig.13 Some sample cases are shown where the basic approach leads to ambiguous estimates for the series of polymer units, whereas Fig.11 The sequence fragments of the modified motion state are not ambiguous;

[0055] Fig.14 Shows the Figure 4 A modification of the analysis system in which decoding has been pushed back to the lowest bidirectional recursive layer;

[0056] Fig.15 By comparing Figure 4 The final layer of the analysis system and its decoder; and

[0057] Fig.16 and Fig.17 Shows the Fig.14 Two alternative modifications of the analysis system for training via perplexity. DETAILED DESCRIPTION

[0058] Figure 1 Nanopore measurements and an analysis system 1 comprising a measurement system 2 and an analysis system 3 are shown. The measurement system 2 acquires a series of measurements from a polymer during translocation of the polymer relative to the nanopore, the polymer comprising a series of polymer units. The analysis system 3 performs a method of analyzing the series of measurements to obtain further information about the polymer, such as an estimate of the series of polymer units.

[0059] Generally, polymers can be of any type, such as polynucleotides (or nucleic acids), polypeptides such as proteins or polysaccharides. Polymers can be natural or synthetic. Polynucleotides can include homopolymer regions. Homopolymer regions can include 5 to 15 nucleotides.

[0060] In the case of polynucleotides or nucleic acids, the polymer unit can be a nucleotide. The nucleic acid is typically a deoxyribonucleic acid (DNA), a ribonucleic acid (RNA), a cDNA, or a synthetic nucleic acid known in the art, such as a peptide nucleic acid (PNA), a glycerol nucleic acid (GNA), a threose nucleic acid (TNA), a locked nucleic acid (LNA), or other synthetic polymers with nucleotide side chains. The PNA backbone comprises repeated N-(2-aminoethyl)-glycine units linked by peptide bonds. The GNA backbone comprises repeated ethylene glycol units linked by phosphodiester bonds. The TNA backbone comprises repeated threose linked together by phosphodiester bonds. LNA is formed by ribonucleotides having an additional bridge connecting the 2' oxygen in the ribose moiety to the 4' carbon as described above. Nucleic acids can be single-stranded, double-stranded, or include both single-stranded and double-stranded regions. Nucleic acids can include an RNA chain hybridized to a DNA chain. Typically, cDNA, RNA, GNA, TNA, or LNA are single-stranded.

[0061] The polymer unit can be any type of nucleotide. The nucleotide can be naturally occurring or artificial. For example, the method can be used to verify the sequence of a manufactured oligonucleotide. Nucleotides generally contain a nucleobase, a sugar and at least one phosphate group. The nucleobase and the sugar form a nucleoside. The nucleobase is generally heterocyclic. Suitable nucleobases include purines and pyrimidines, and more specifically, adenine, guanine, thymine, uracil and cytosine. Sugar is generally pentose. Suitable sugars include, but are not limited to, ribose and deoxyribose. Nucleotides are generally ribonucleotides or deoxyribonucleotides. Nucleotides generally contain monophosphate, diphosphate or triphosphate.

[0062] The nucleotides can be damaged bases or epigenetic bases. For example, the nucleotides can include pyrimidine dimers. Such dimers are often associated with damage caused by ultraviolet light and are the main cause of skin melanoma. The nucleotides can be labeled or modified to act as markers with different signals. This technology can be used to identify the absence of bases, such as abasic units or spacers in polynucleotides. The method can also be applied to any type of polymer.

[0063] In the case of polypeptides, the polymer units may be naturally occurring or synthetic amino acids.

[0064] In the case of polysaccharides, the polymer units may be monosaccharides.

[0065] In particular, where the measuring system 2 comprises a nanopore and the polymer comprises a polynucleotide, the polynucleotide may be long, for example: at least 5 kB (kilobases), i.e. at least 5,000 nucleotides; or at least 30 kB (kilobases), i.e. at least 30,000 nucleotides; or at least 100 kB (kilobases), i.e. at least 100,000 nucleotides.

[0066] The properties of the measurement system 2 and the obtained measurement results are as follows.

[0067] The measurement system 2 is a nanopore system comprising one or more nanopores. In a simplified version, the measurement system 2 has only a single nanopore, but more practical measurement systems 2 typically employ many nanopores in an array to provide parallel information collection.

[0068] Typically, measurements are taken during the translocation of the polymer relative to the nanopore through the nanopore. Thus, continuous measurements are taken from continuous portions of the polymer.

[0069] Nanopores are pores, typically of nanometer size, that can allow polymers to pass therethrough.

[0070] Properties that depend on the translocation of polymer units relative to the pore can be measured. The properties may be related to the interaction between the polymer and the pore. This interaction may occur in the constriction region of the pore.

[0071] The nanopore can be a biological pore or a solid-state pore. The size of the pore can be such that only one polymer can translocate the pore at a time.

[0072] Where the nanopore is a biological pore, it may have the following properties.

[0073] The biological pore can be a transmembrane protein pore. The transmembrane protein pore used according to the present invention can be derived from a β-barrel pore or an α-helical bundle pore. The β-barrel pore includes a barrel or channel formed by a β-strand. Suitable β-barrel pores include, but are not limited to, β-toxins such as α-hemolysin, anthrax toxin and leukocytin; and bacterial outer membrane proteins / porins such as Mycobacterium smegmatis porins (Msp), such as MspA, MspB, MspC or MspD, lysin, outer membrane porin F (OmpF), outer membrane porin G (OmpG), outer membrane phospholipase A and Neisseria autotransporter (NalP). α-helical bundle pores include barrels or channels formed by α-helices. Suitable α-helical bundle pores include, but are not limited to inner membrane proteins and α outer membrane proteins, such as WZA and ClyA toxins. The transmembrane pore can be derived from Msp or from α-hemolysin (α-HL). The transmembrane pore can be derived from lysin. Suitable pores derived from lysenin are disclosed in WO 2013 / 153359. Suitable pores derived from MspA are disclosed in WO-2012 / 107778. The pore may be derived from CsgG as disclosed in WO-2016 / 034591.

[0074] Biological pores may be naturally occurring pores or may be mutant pores. Typical pores are described in WO-2010 / 109197; Stoddart D et al., Proc Natl Acad Sci, 12; 106(19):7702-7; Stoddart D et al., Angew Chem Int Ed Engl. 2010; 49(3):556-9; Stoddart D et al., Nano Lett. 2010 Sep 8; 10(9):3633-7; Butler TZ et al., Proc Natl Acad Sci 2008; 105(52):20647-52; and WO-2012 / 107778.

[0075] The biological pore may be a biological pore of the type described in WO-2015 / 140535 and may have a sequence disclosed therein.

[0076] The biopore may be inserted into an amphiphilic layer such as a biomembrane, for example a lipid bilayer. An amphiphilic layer is a layer formed by amphiphilic molecules such as phospholipids, which have hydrophilic and lipophilic properties. The amphiphilic layer may be a monolayer or a bilayer. The amphiphilic layer may be a coblock polymer as disclosed in Gonzalez-Perez et al., Langmuir, 2009, 25, 10447-10450 or WO2014 / 064444. Alternatively, the biopore may be inserted into a solid layer such as disclosed in WO2012 / 005857.

[0077] Suitable apparatus for providing a nanopore array is disclosed in WO-2014 / 064443. The nanopores may be provided across respective pores, wherein electrodes are provided in each respective pore, electrically connected to the ASIC, so as to measure the current flowing through each nanopore. Suitable current measuring apparatus may include a current detection circuit as disclosed in PCT patent application No. PCT / GB2016 / 051319.

[0078] A nanopore may include a hole formed in a solid layer, which may be referred to as a solid-state pore. A hole may be a well, gap, channel, groove or slit provided in a solid-state layer through which an analyte may pass or enter the solid-state layer. Such a solid-state layer is not of biological origin. In other words, the solid-state layer is not produced from or isolated from a biological environment (such as an organism or cell) or a biologically usable structure in a synthetically manufactured form. The solid-state layer may be formed of organic and inorganic materials, including but not limited to: microelectronic materials, insulating materials such as Si3N4, A1203 and SiO, organic polymers such as polyamide and inorganic polymers, such as The solid layer may be formed of graphene. Suitable graphene layers are disclosed in WO-2009 / 035647, WO-2011 / 046706 or WO-2012 / 138357. Suitable methods for preparing a row of solid pores are disclosed in WO-2016 / 187519.

[0079] Such solid-state pores are typically pores in a solid-state layer. The pores may be modified chemically or otherwise to enhance their properties as nanopores. Solid-state pores may be used in conjunction with additional components that provide alternatives to polymers or additional measurements, such as channel electrodes (Ivanov AP et al., Nano Express 2011 Jan 12; 11(1):279-85), or field effect transistor (FET) devices (such as disclosed in WO-2005 / 124888). Solid-state pores may be formed by known methods, including, for example, methods described in WO-00 / 79257.

[0080] In one type of measurement system 2, measurements of the ionic current flowing through the nanopore can be used. These and other electrical measurements can be made using standard single-channel recording equipment described in the following literature: Stoddart D et al., Proc. Natl. Acad. Sci. USA, 12; 106(19):7702-7; Lieberman KR et al., J Am Chem Soc. 2010; 132(50):17961-72; and WO-2000 / 28312. Alternatively, electrical measurements can be made using a multi-channel system such as described in WO-2009 / 077734, WO-2011 / 067559 or WO-2014 / 064443.

[0081] An ionic solution may be provided on either side of the membrane or solid state layer, which may be present in the corresponding compartment. A sample containing a polymer analyte of interest may be added to one side of the membrane and allowed to move relative to the nanopore, such as under a potential difference or chemical gradient. Measurements may be made during the movement of the polymer relative to the hole, such as during the translocation of the polymer through the nanopore. The polymer may partially translocate the nanopore.

[0082] In order to measure when the polymer translocation passes through the nanopore, the translocation rate can be controlled by the polymer binding part. Generally, the part can make the polymer move through the nanopore together with the applied field or relative to the applied field. The part can be a molecular motor. In the case where the part is an enzyme, the molecular motor uses, for example, enzymatic activity or as a molecular brake. In the case where the polymer is a polynucleotide, many methods for controlling the translocation rate are proposed, including the use of polynucleotide binding enzymes. Suitable enzymes for controlling the polynucleotide translocation rate include but are not limited to polymerases, helicases, exonucleases, single-stranded and double-stranded binding proteins and topoisomerases (such as gyrase). For other polymer types, parts that interact with the polymer type can be used. The polymer interaction moiety may be any of those disclosed in WO-2010 / 086603, WO-2012 / 107778 and Lieberman KR et al., J Am Chem Soc. 2010; 132(50): 17961-72, and for voltage gating schemes (Luan B et al., Phys Rev Lett. 2010; 104(23): 238103).

[0083] The polymer binding part can be used in a variety of ways to control the motion of the polymer. The part can move the polymer through the nanopore together with or relative to the applied field. The part can be used as a molecular motor, and in the case where the part is an enzyme, the molecular motor uses, for example, enzymatic activity or as a molecular brake. The translocation of the polymer can be controlled by a molecular brake that controls the movement of the polymer through the hole. The molecular brake can be a polymer-bound protein. For polynucleotides, the polynucleotide-bound protein is preferably a polynucleotide processing enzyme. The polynucleotide handling enzyme is a polypeptide that can interact with a polynucleotide and modify at least one of its properties. The enzyme can modify the polynucleotide by cleaving the polynucleotide to form a single nucleotide or a shorter nucleotide chain such as a dinucleotide or trinucleotide. The enzyme can modify the polynucleotide by directing the polynucleotide or moving it to a specific position. The polynucleotide handling enzyme does not need to show enzymatic activity, as long as it can bind the target polynucleotide and control its movement through the hole. For example, the enzyme can be modified to remove its enzymatic activity or can be used under conditions that prevent it from acting as an enzyme. This condition is discussed in more detail below.

[0084] Preferred polynucleotide handling enzymes are polymerases, exonucleases, helicases and topoisomerases (such as gyrase). The nucleotide handling enzyme may be, for example, a polynucleotide handling enzyme of the type described in WO-2015 / 140535 or WO-2010 / 086603.

[0085] Translocation of the polymer through the nanopore can occur as cis to trans or trans to cis, with or relative to an applied potential. Translocation can occur under an applied potential, which can control the translocation.

[0086] The exonuclease that gradually or stepwise works on double-stranded DNA can be used on the cis side of the hole to supply the remaining single strand under the applied potential or to supply the trans side under the reverse potential. Similarly, the helicase that unwinds the double-stranded DNA can also be used in a similar manner. There is also the possibility of sequencing applications that need to resist the chain translocation of the applied potential, but DNA must first be "captured" by the enzyme under the opposite or no potential. As the potential is subsequently turned back after binding, the chain will pass through the hole in a cis-to-trans manner and be kept in an extended configuration by electric current. Single-stranded DNA exonucleases or single-stranded DNA-dependent polymerases can serve as molecular motors, and the molecular motors pull the recently translocated single strands back into the hole in a stepwise controlled manner (trans to cis, relative to the applied potential). Alternatively, single-stranded DNA-dependent polymerases can serve as molecular brakes that slow down the motion of polynucleotides through holes. Any of the moieties, techniques or enzymes described in WO-2012 / 107778 or WO-2012 / 033524 may be used to control polymer motion.

[0087] However, the measurement system 2 may be of an alternative type comprising one or more nanopores.

[0088] Similarly, the measurement may be of a type other than ion current measurement. Some examples of alternative types of measurements include, but are not limited to: electrical measurements and optical measurements. Suitable optical methods involving fluorescence measurements are disclosed in the Journal of the American Chemical Society 2009, 1311652-1653. Possible electrical measurements include: current measurements, impedance measurements, tunneling measurements (e.g., as disclosed in Ivanov AP et al., Nano Letters 2011 Jan 12; 11(1): 279-85) and FET measurements (as disclosed in WO2005 / 124888). Optical measurements may be combined with electrical measurements (Soni GV et al., Scientific Instruments Review 2010 Jan; 81(1): 014301). The measurement result may be a transmembrane current measurement result, such as a measurement of the ion current flowing through a nanopore. The ion current may typically be a DC ion current, but in principle an alternative uses an AC current (i.e., the magnitude of the AC current flowing under an applied AC voltage).

[0089] In this article, the term "k-polymer" refers to a group of k polymer units, where k is a positive complex integer. In many measurement systems, the measurement result can depend on a portion of the polymer that is longer than a single polymer unit, such as a k-polymer, although the length of the k-polymer on which the measurement depends may be unknown. In many cases, the measurement results generated by k-polymers or polymer portions with different identities are indistinguishable.

[0090] In many types of measurement systems 2, the series of measurements can be characterized as comprising measurements from a series of events, where each event provides a set of measurements. The set of measurements from each event has similar levels, although there are some differences. This can be thought of as a noise step wave, where each step corresponds to an event.

[0091] Events may be of biochemical significance, e.g. caused by a given state or interaction of the measurement system 2. For example, in some cases, an event may correspond to the interaction of a specific portion of a polymer or k-mer with a nanopore, in which case the set of measurements depends on the same portion of the polymer or k-mer. In some cases, this may be caused by the translocation of a polymer through a nanopore occurring in a braked manner.

[0092] Within the limits of the measurement sampling rate and the noise on the signal, the transitions between states can be considered instantaneous, and the signal can therefore be approximated by an idealized step trajectory. However, when the translocation rate is close to the measurement sampling rate (e.g., measurements are acquired at 1, 2, 5, or 10 times the translocation rate of the polymer units), this approximation may not hold as well as it does for slower sequencing speeds or faster sampling rates.

[0093] Furthermore, there is usually no a priori knowledge of the number of measurements in a group, which varies unpredictably.

[0094] These two variance factors and the lack of knowledge of the number of measurements may make it difficult to distinguish some groups, for example if the groups are short and / or the levels of measurements of two consecutive groups are close to each other.

[0095] The set of measurements corresponding to each event will typically have a level that is consistent over the time scale of the event, but for most types of measurement systems 2 will vary over short time scales.

[0096] Such variations may be caused by measurement noise, for example generated by circuits and signal processing, especially from amplifiers in the specific case of electrophysiology. Due to the nature of measuring small amplitudes, such measurement noise is unavoidable.

[0097] Such changes may also be caused by intrinsic changes or diffusion in the underlying physical or biological system of the measurement system 2, such as changes in interactions that may be caused by conformational changes in the polymer.

[0098] Most types of measurement systems 2 will experience this inherent variation to a greater or lesser extent. For any given type of measurement system 2, both sources of variation may contribute, or one of these noise sources may dominate.

[0099] As the sequencing rate (i.e. the rate at which polymer units translocate relative to the nanopore) increases, then events may become less distinct and therefore more difficult to identify or may disappear. Thus, analytical methods that rely on event detection may become less efficient as sequencing rates increase.

[0100] Increasing the measurement sampling rate can compensate for the difficulty of measuring the transition, but this faster sampling usually comes with a loss of signal-to-noise-ratio.

[0101] The method described below is effective even at relatively high sequencing rates, wherein the series of measurements are obtained at a rate of at least 10 polymer units per second (preferably 100 polymer units per second, more preferably 500 polymer units per second or more preferably 1000 polymer units per second).

[0102] Analysis system 3 will now be considered.

[0103] In this article, reference is made to the posterior probability vector and matrix of the "posterior probability" representing different polymer unit sequences or different changes in polymer unit sequences. The values ​​of the posterior probability vector and matrix can be actual probabilities (that is, values ​​that sum to 1) or can be weights or weighting factors, which are not actual probabilities but still represent posterior probabilities. Typically, in the case where the values ​​of the posterior probability vector and matrix are expressed as weights or weighting factors, considering the normalization of weights or weighting factors, in principle, probability can be determined from the two. This determination can take into account multiple time steps. By way of non-limiting example, two methods referred to as local normalization and global normalization are described below.

[0104] Similarly, the reference represents a score of the probability of the series of polymer units being measured as the reference series of polymer units. In the same manner, the value of the score can be an actual probability or can be a weight that is not an actual probability but still represents the probability of the series of polymer units being measured as the reference series of polymer units.

[0105] The analysis system 3 may be physically associated with the measurement system 2 and may also provide control signals to the measurement system 2. In such a case, the nanopore measurement and analysis system 1 comprising the measurement system 2 and the analysis system 3 may be arranged as disclosed in any one of WO-2008 / 102210, WO-2009 / 07734, WO-2010 / 122293, WO-2011 / 067559 or WO2014 / 04443.

[0106] Alternatively, the analysis system 3 may be implemented in a separate device, in which case the series of measurements are transmitted from the measurement system 2 to the analysis system 3 by any suitable means, typically a data network. For example, a convenient cloud-based embodiment is for the analysis system 3 to be a server to which the input signal 11 is provided via the Internet.

[0107] The analysis system 3 may be implemented by a computer device executing a computer program, or may be implemented by a dedicated hardware device or any combination thereof. In either case, the data used by the method is stored in a memory of the analysis system 3.

[0108] In the case of a computer device executing a computer program, the computer device may be any type of computer system, but is generally of conventional construction. The computer program may be written in any suitable programming language. The computer program may be stored on any type of computer-readable storage medium, such as: a recording medium that can be inserted into a drive of a computing system and that can store information magnetically, optically or magneto-optically; a fixed recording medium of a computer system, such as a hard drive; or a computer memory.

[0109] Where the computer apparatus is implemented by dedicated hardware means, any suitable type of apparatus may be used, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).

[0110] The method using the nanopore measurement and analysis system 1 is performed as follows.

[0111] First, a series of measurements are performed using the measurement system 2. For example, a polymer is translocated relative to a pore (e.g., through a pore), and a series of measurements are performed during the polymer translocation. The polymer can be translocated relative to a pore by providing conditions that allow the polymer to translocate, so the translocation can occur spontaneously.

[0112] Secondly, the analysis system 3 performs a method of analyzing the series of measurements, which will now be described. First the basic method will be described, and then some modifications to the basic method will be made.

[0113] The basic method analyzes the series of measurements using a machine learning technique, in this example a recursive neural network. The parameters of the recursive neural network are taken during training as described further below, and the recursive neural network is therefore not dependent on the measurements being in any particular form or on the measurement system 2 having any particular properties. For example, the recursive neural network is not dependent on measurements that depend on k-mers.

[0114] The basic approach uses event detection as follows.

[0115] The basic method processes the input as a series of events that have been determined from measurements (raw signals) from the measurement system 2. The method therefore comprises the initial steps of identifying groups of consecutive measurements in the series of measurements as belonging to a common event and deriving a feature vector comprising one or more feature quantities from each identified group of measurements, as follows.

[0116] The raw samples were segmented into events using the same method as described in WO 2015 / 140535, although the underlying method is not believed to be sensitive to the exact segmentation method.

[0117] However, for the sake of completeness, the following reference Figure 2 Describes an outline of the segmentation process that can be applied. Figure 2 A graph is shown of the original signal 20 comprising the series of measurements, with step-like "event" behavior, a sliding pair of windows 22, a series of paired t-statistics 23 calculated from the original signal 20 showing local peaks, and a threshold 24 (dashed line) and a set of event boundaries 25 corresponding to the peaks.

[0118] Groups of consecutive measurements are identified as belonging to a common event as follows. A pair of consecutive windows 21 are slid across the original signal 20 and at each position a paired t statistic is calculated as to whether the samples (measurements) in one window 21 have different means from each other, giving a series of statistics 23. Peaks 23 in the series of statistics 23 corresponding to significant differences in the initial original signal 20 levels are located using a thresholding technique for a threshold 24, the significant differences being considered event boundaries 25, and the locations of the peaks 23 are then determined using a standard peak finding procedure, thereby identifying events in a series of measurements of the original signal 20.

[0119] Each event is summarized by deriving from each identified set of measurements one or more sets of features describing its essential properties. Three examples of features that can be used are as follows and in Figure 3 It is schematically shown in:

[0120] Level L: A measure of the average current of the event, usually the mean, but can be the median or a related statistic.

[0121] • Variation V: How far the samples are from a central level, usually the standard deviation or variance of the events. Other alternatives include the median absolute deviation or the mean deviation from the median.

[0122] Length (or dwell) D: Duration of the event, which can be the number of samples or seconds.

[0123] Generally, any one or more feature quantities may be derived and used. The one or more feature quantities include feature vectors.

[0124] As with any analysis of a noisy process, segmentation can be erroneous. Event boundaries can be missed, resulting in events with multiple levels, or additional boundaries can be created where none exist. It has been found that over-segmentation, choosing to increase false boundaries rather than lose true boundaries, leads to better base calls.

[0125] A feature vector including one or more feature quantities is operated by the following recursive neural network.

[0126] The basic input to the basic method is a set of temporal feature vectors corresponding to events found during segmentation. It is standard practice for most machine learning programs to normalize the input features to help stabilize and speed up the training process, but the basic method has two significant differences: first, due to the presence of significant outliers, Studen normalization (centered around the mean and scaled by the standard deviation) is used instead of the more common linear function normalization (min-max scaling); the second and more important change is that the scaling is done on a per-read basis, rather than calculating the scaling parameters on all training data and then fixing them.

[0127] Other alternatives to linear function normalization designed for emphasizing extreme values ​​may also be applied. Examples of such approaches are linear function normalization whose parameters are determined after clipping the lowest and highest x% of values, or after scaling based on the median and the absolute deviation from the median.

[0128] The reason for deviating from the standard training regimen is to help generalize the network to the variation between devices that will be encountered in the field. While the number of reads that can be trained is very large, time and cost considerations mean that they are from a small number of devices, and therefore the training run conditions represent a small fraction of what may be encountered in the field. Per-read normalization helps the network generalize, although it may reduce accuracy.

[0129] A fourth "delta" feature derived from the other features is also used as an input to the basic method, which is intended to represent the difference between adjacent events and thus indicate whether there is a true level change or whether the segmentation is incorrect. The exact description of the delta feature varies between different implementations of the basic method and some implementations are listed below, but the intent of the feature remains the same.

[0130] Absolute difference of levels, followed by normalization.

[0131] Squared differences of levels followed by normalization.

[0132] Horizontal differences, followed by partial normalization (scaling but not centering).

[0133] The basic approach uses a deep neural network consisting of multiple bidirectional recurrent layers with subsampling. An overview of the architecture of a recurrent neural network 30 that can be implemented in the analysis system 3 is given in Figure 4 , which highlights a number of features that differ from the analysis performed using an HMM.

[0134] In general, the recurrent neural network 30 includes: a window layer 32, which performs windowing on input events; a bidirectional recurrent layer 34, which iteratively processes its input in both forward and backward directions; a feedforward layer 35, which can be configured as a subsampling layer to reduce the dimensionality of the recurrent neural network 30; and a softmax layer 36, which performs normalization using a softmax process to produce an output that can be interpreted as a probability distribution over symbols. The analysis system 3 further includes a decoder 37, to which the output of the recurrent neural network 30 is fed and which performs the subsequent decoding steps.

[0135] Specifically, the recurrent neural network 30 receives an input feature vector 31 and passes it through a window layer 32, which windows the input feature vector 31 to derive a windowed feature vector 33. The windowed feature vector 33 is provided to a stack of multiple bidirectional recurrent layers 34. Therefore, the impact of each input event is propagated at least twice through all steps of the model represented in the recurrent neural network 30, with the second pass being informed by the first. This dual bidirectional architecture allows the recurrent neural network 30 to accumulate and propagate information in a way that is not available to the HMM. One result of this is that the recurrent neural network 30 does not require an iterative process to scale the model to the read value.

[0136] In this example, two bidirectional recurrent layers 34 (distinctly designated 34 - 1 and 34 - 2 ) are shown, each followed by a feed-forward layer 35 (distinctly designated 35 - 1 and 35 - 2 ), but in general there may be any number of bidirectional recurrent layers 34 and subsequent feed-forward layers 35 .

[0137] The output of the final feed-forward layer 35-2 is provided to a softmax layer 36 which produces an output representing the posterior probabilities, which are provided to a decoder 37. The nature of these posterior probabilities and the processing of the decoder 37 are described in more detail below.

[0138] By comparison, the HMM 50 can be described in a form similar to a neural network, such as Figure 5 As shown. The HMM 50 contains an input single event, no window and incremental features, and includes: a forward-backward layer 54, into which the feature vector 51 is fed and which performs forward and backward passes of the network with tightly coupled parameters; an add-combination layer 55, into which the output of the forward-backward layer 54 is fed and which performs subsampling by adding the output of the forward and backward passes element by element; a normalization layer 56, which performs normalization to produce an output that can be interpreted as a probability distribution over symbols; and a decoder 57 that performs a subsequent decoding step.

[0139] Since they assume that the emissions of the HMM 50 are fully described by the hidden states, the HMM 50 cannot accept windowed inputs, nor can it accept features like deltas, since the inputs to any one event are assumed to be statistically independent of the knowledge of the other given hidden states (although this assumption can optionally be relaxed by using extensions such as autoregressive HMMs). The HMM for the nanopore sequence estimation problem does not directly apply the Viterbi algorithm to decode the most likely sequence of states, but rather proceeds through a classical forward / backward algorithm in a forward-backward layer 52 to compute the posterior probability of each hidden label for each event, followed by an additive Viterbi-like decoding step in the decoder 57 to determine the hidden state. This approach is referred to in the literature as post-Viterbi and tends to produce estimated sequences that correctly assign a greater proportion of states than Viterbi, but still form consistent paths.

[0140] Table 1 summarizes the key differences between how comparable layers are used in this approach and the base approach to provide a comparison of similar layer types in the HMM 50 architecture with the base approach, thereby highlighting the increased flexibility given by the neural network layers used in the base approach.

[0141] Table 1:

[0142]

[0143] While there are the same number of column outputs as events, it is incorrect to assume that each column is identified by a single event in the network input, since the contents of each column may be informed by the entire set of input events due to the presence of the bidirectional layer. Any correspondence between input events and output columns is achieved by labeling them with symbols from the training set.

[0144] The bidirectional recurrent layer 34 of the recurrent neural network 30 can use several types of neural network units, as described below. The unit types fall into two major categories, depending on whether they are "recursive". While non-recursive units process each step in a sequence independently, recursive units are designed to be used in a sequence and pass the state vector from one step to the next. To schematically illustrate the difference between non-recursive units and recursive units, Figure 6 A non-recursive layer 60 of non-recursive units 61 is shown and Figures 7 to 9 Three different layers 62 to 64 of corresponding non-recursive units 64 to 66 are shown. Figures 6 to 9 In each figure of , the arrows show the connection of vectors, the split arrows are duplicated vectors and the combined arrows are concatenated vectors.

[0145] exist Figure 6 In the non-recursive layer 60, the non-recursive units 61 have separate inputs and outputs that are not split or concatenated.

[0146] Figure 7 The recursive layer 62 is a unidirectional recursive layer in which the output vector of the recursive unit 65 is split and passed unidirectionally to the next recursive unit 65 in the recursive layer.

[0147] Although Figure 8 and Fig. 9 The bidirectional recursive layers 63 and 64 are not discrete units themselves, but each has a repeating unit-like structure made of simpler recursive units 66 and 67, respectively.

[0148] exist Figure 8 In the bidirectional recursive layer of the embodiment, the bidirectional recursive layer 63 is composed of two sublayers 68 and 69 of the recursive unit 66, which are Figure 7 The forward sublayer 68 has the same structure as the unidirectional recursive layer 62 and has the same Figure 7 The backward sublayer 69 has the opposite structure of the unidirectional recurrent layer 62, as if time is reversed, thereby passing the state vector from one unit 66 to the previous unit 66. Both the forward sublayer 68 and the backward sublayer 69 receive the same input, and their outputs from the corresponding units 66 are concatenated together to form the output of the bidirectional recurrent layer 63. Note that there is no concatenation between any unit 66 in the forward sublayer 68 and any unit in the backward sublayer 69.

[0149] Similarly, Fig. 9 The alternative bidirectional recursive layer 64 consists of two sub-layers 70 and 71 of recursive units 67, which are Figure 7 The forward sublayer 68 has the same structure as the unidirectional recursive layer 62 and has the same Figure 7The backward sublayer 69 has the opposite structure of the unidirectional recurrent layer 62, as if time is reversed. Again, the forward sublayer 68 and the backward sublayer 69 receive the same input. However, unlike Figure 8 In contrast to the bidirectional recurrent layer of , the output of the forward sublayer 68 is the input of the backward sublayer 69 and the output of the backward sublayer 69 forms the output of the bidirectional recurrent layer 64 (the forward sublayer 68 and the backward sublayer 69 may be reversed).

[0150] Fig. 9 A generalization of the bidirectional recurrent layer shown in would be a stack of recurrent layers consisting of multiple “forward” and “backward” recurrent sub-layers, where the output of each layer is the input to the next layer.

[0151] Figure 3 The bidirectional recursive layer 34 can be used Figure 8 and 9 The form of any one of the bidirectional recursive layers 63 and 64. Typically, Figure 3 The bidirectional recursive layer 34 can be composed of non-recursive layers (such as Figure 6 A non-recursive layer 60) or a unidirectional recursive layer (e.g. Figure 7 ’s recursive layer 62), but improved performance is achieved by using a bidirectional recursive layer 34.

[0152] The feed-forward layer 35 will now be described.

[0153] The feed-forward layers 35 include feed-forward units 38 that process the corresponding vectors. The feed-forward units 38 are standard units in classical neural networks that apply an affine transformation to the input vector and then apply a nonlinear function element by element. The feed-forward layers 35 all use the hyperbolic tangent of the nonlinear function, although many others can be used with little change in the overall accuracy of the network.

[0154] If the input vector at step t is I t , and the weight matrix and bias of the affine transformation are A and b respectively, then the output vector O t for:

[0155] y t =AI t +b affine transformation

[0156] O t =tanh(y t ) Nonlinear

[0157] The output of the final feed-forward layer 35 is fed to a softmax layer 36 comprising a softmax unit 39 which processes the corresponding vector.

[0158] The purpose of the softmax unit 39 is to transform the input vector into something that can be interpreted as a probability distribution over the output symbols, with a 1:1 association between the elements of the output vector and the symbols. An affine transformation is applied to the input vector, which is then exponentiated element-wise and normalized so that the sum of all its elements is 1. Exponentiation ensures that all entries are positive, and thus normalization produces a valid probability distribution.

[0159] If the input vector at step t is I t , and the weight matrix and bias of the affine transformation are A and b respectively, then the output vector O t for:

[0160] y t =AI t +b affine transformation

[0161] Exponentiation

[0162] O t =z t / 1′z t Normalization

[0163] where 1′ is the transpose of a vector whose elements are all equal to unit value, so 1′x is just the (scalar) sum of all elements x.

[0164] The output of the network is normalized locally at each time step using a softmax layer 36. Alternatively, the recurrent neural network 30 can be globally normalized across all time steps so that the sum of all possible output sequences is 1. Global normalization is strictly more expressive than local normalization and avoids a problem known in the art as the "label bias problem."

[0165] The advantages of using global normalization over local normalization are similar to the advantages that conditional random fields (Lafferty et al., Conditional Random Fields: Probabilistic Models for Segmenting and Labeling Sequence Data, Proceedings of the International Conference on Machine Learnin, June 2001) have over maximum entropy Markov models (McCallum et al., Maximum Entropy Markov Models for Information Extraction and Segmentation, Proceedings of ICML, 2000, 591–598 Stanford, CA, 2000). The label bias problem affects models that allow sparse transition matrices between states, such as the extension of polymer sequences.

[0166] With local normalization, the transition probability of each source state will be normalized to 1, which causes states with the fewest feasible transitions to get high scores, even if they do not match the data. This creates a bias towards selecting states with a small number of feasible transitions.

[0167] Global normalization alleviates this problem by normalizing over the entire sequence, allowing transitions at different times to be interchanged. Global normalization is particularly beneficial for avoiding biased estimates for homopolymers and other low-complexity sequences, since these sequences may have a different number of allowed transitions (which may be more or less, depending on the model) than other sequences.

[0168] The non-recursive unit 62 and the recursive units 65 to 67 process each event independently, but may be replaced by long short-term memory units of a form which will now be described.

[0169] The long short-term memory (LSTM) cell was introduced in Hochreiter and Schmidhuber, "Long short-term memory", Neural Computation, 9(8):1735–1780, 1997. The LSTM cell is a recursive cell and therefore passes a state vector from one step in the sequence to the next. The LSTM is based on the notation that the cell is a memory cell: a hidden state containing the contents of the memory is passed from one step to the next and the hidden state is operated on through a series of gates that control memory updates. One gate controls whether each element of the memory is erased (forgotten), another gate controls whether it is replaced by a new value, and a final gate determines whether to read from the memory and output. The binary on / off logic gates of the conceptual computer memory cell are replaced by the conceptual probabilities generated by the sigmoid function and the contents of the memory cell represent the expected value, which makes the memory cell differentiable.

[0170] A standard implementation of an LSTM is described first, and then a "peephole" modification actually used in the basic approach is described.

[0171] The standard LSTM is as follows.

[0172] The probabilities associated with different operations on the LSTM unit are defined by the following system of equations. t Set as the input vector of step t, O t is the output vector, and sets the affine transformation indexed by x to have bias b x and the bias matrices W for the input and previous output respectively xI and W xO ;_ is a nonlinear S-shaped transformation.

[0173] f t =σ(W fI I t +W fo O t-1 +b f ) Forgetting probability

[0174] u t =σ(W uI I t +W uO O t-1 +b u ) Update probability

[0175] o t =σ(W oI I t +W oO O t-1 +b o) Output probability

[0176] Given the update vector defined above and setting the operator _ to represent element-wise (Hadamard) multiplication, update the internal state S t And the equation to determine the new output is:

[0177] v t =tanh(W vI I t +W vO O t-1 +b v )The value to be updated

[0178] Update memory cell

[0179] Reading from a memory cell

[0180] The peephole is modified as follows.

[0181] The "peephole" modification (Gers and Schmidhuber, 2000) adds some additional connections to the LSTM architecture that allow the forgetting probability, update probability, and output probability to "peek" into (or be informed by) the hidden state of the memory cell. The update equation for the network is as above, but with P x Set to a “peek” vector of length equal to the hidden state, the three equations for the probability vector become:

[0182] Forgetting probability

[0183] Update Probability

[0184] Output Probability

[0185] The non-recursive unit 62 and the recursive units 65 to 67 may alternatively be replaced by a gated recursive unit having the following form.

[0186] Gated recurrent units (GRUs) have been found to run faster, but were initially found to produce poorer accuracy. The architecture of a GRU is not as intuitive as an LSTM which eliminates the separation between hidden states and outputs and also incorporates "forget" and "input gates".

[0187] o t =σ(W oI I t +W oS S t-1 +b o ) Output probability

[0188] Update based on status

[0189] v t =tanh(W vI I t +W vR u t +b v )The value to be updated

[0190] Update Status

[0191] The HMM can be described as a neural unit as follows.

[0192] Although not used in the basic method, for completeness, this article describes how to describe the forward (backward) HMM algorithm using the recurrent neural network framework. The form in which the output is in logarithmic space is shown. The HMM is described by its transition matrix T and the log density function μ parameterized by δ. The log density function takes the input features and returns a vector of log probabilities of those features conditioned on the hidden state, with the exact form of the function specified by the parameter μ.

[0193] o t =δ(I t ; μ) logarithmic density function

[0194] e t =exp(S t-1 ) Exponentiation

[0195] f t =T′e t Transform

[0196] S t =o t +logf t Update Status

[0197] As described above, the recurrent neural network 30 generates outputs representing the posterior probabilities which are provided to the decoder 37. In the basic approach, the output is a plurality of posterior probability vectors, each representing the posterior probabilities of a plurality of different polymer unit sequences. Each complex posterior probability vector corresponds to a respective identified set of measurements (events).

[0198] Decoder 37 derives estimates of a sequence of polymer units from the posterior probability vector, as described below.

[0199] The complex posterior probability vector can be viewed as a matrix with a column for each step, each column being a probability distribution over a set of symbols representing k-mers of predetermined length and optionally an additional symbol representing bad data (see "Handling bad events as described below" below). Since k-mers at adjacent steps will overlap, a simple decoding process (such as 'argmax') that selects the k-mer with the maximum probability at each step and concatenates the results will result in a poor estimate of the underlying template DNA sequence. There are good methods (such as the Viterbi algorithm) for finding a sequence of states that maximizes the overall score, which is constrained by the types of transitions between states that may occur.

[0200] If the multiple posterior probability vectors are matrices, where the probability assigned to state j at step t is p tj And there exists a set of transition weights τ for moving from state i to state j i→j The Viterbi algorithm finds the sequence of states that maximizes the score.

[0201]

[0202] The Viterbi algorithm first iterates from the beginning to the end of the network output. Depending on whether step i ends in state j, the element f of the forward matrix ij represents the score of the best sequence of states; if step i is in state j, then the element bij of the backward matrix stores the previous state.

[0203] f 0s =0

[0204]

[0205] b is = argmax j τ j→s +f i-1,j

[0206] The optimal total score can be determined by finding the largest element of the last column T of the forward matrix; iteratively searching for the sequence of states that achieves this score from the end to the beginning of the network output.

[0207] s T = argmax s f Ts

[0208]

[0209] The transition weights define the allowed transitions between states, a weight of negative infinity disallows the transition at all and negative values ​​can be interpreted as a penalty for inhibiting said transition. The 'argmax' decoding described previously is equivalent to setting all transition weights to zero. In cases where there are many disallowed transitions, the runtime can be substantially improved by performing the computation in a sparse manner, so that only allowed transitions are considered.

[0210] After applying the Viterbi algorithm, each column output of the network is labeled with a state representing a k-mer (a posteriori probability vector), and this set of states is consistent. The maximum overlap of the sequence of k-mers represented by the symbol forms an estimate of the template DNA sequence, and the conversion weights ensure that the overlap is consistent. The maximum overlap is sufficient to determine the fragments of the estimated DNA sequence, but there are cases such as homopolymers or repeated dimers where the overlap is ambiguous and prior information must be used to eliminate the ambiguity of the possibility. For the present nanopore device, event detection is parameterized to over-segment the input, and therefore the most likely overlap in ambiguous cases is the most complete.

[0211] Adverse events were handled as follows.

[0212] The base method is issued on an alphabet containing additional symbols that are trained to mark bad events that are considered to have no useful information for the base call. Using a process such as determining whether a "bad" symbol is the symbol with the highest probability assigned to it, or by thresholding the assigned probabilities, the event is marked as bad and the corresponding column is removed from the output. The bad symbols are removed from the remaining columns and then individually renormalized to form a probability distribution over the remaining symbols. Decoding is then performed as described above.

[0213] The recurrent neural network is trained for a particular type of measurement system 2 using techniques conventional per se and using training data in the form of a series of measurements of known polymers.

[0214] Some modifications to the basic approach will now be described.

[0215] The first modification involves omitting event calling. Having to explicitly segment the signal into events leads to a number of problems with the underlying calling: events are missed or over-called due to incorrect segmentation, the types of event boundaries that can be detected depend on the filters that have been specified, the form of the summary statistic used to represent each event is pre-specified, and information about the uncertainty of event calling is not propagated into the network. As sequencing speeds increase, the concept of an event with a single level becomes unsound, the signal becomes blurred due to the use of integrating amplifiers, and many samples span multiple levels, so different methods can be used to find alternative informative features based on the original signal.

[0216] Therefore, a first modification is to omit the event call and instead perform convolution on the successive measurements in successive windows of the series of measurements to derive a feature vector for each window, regardless of any events that may be evident in the series of measurements. A recurrent neural network then operates on the feature vector using the described machine learning techniques.

[0217] Thus, a fixed length window of measurements (possibly overlapping) is processed into a feature vector comprising a plurality of features which are then combined by a recurrent neural network and an associated decoder to produce an estimate of the polymer sequence. The output posterior probability matrix corresponding to a corresponding measurement or a corresponding predetermined number of measurement groups thus depends on the degree of downsampling in the network.

[0218] Fig.10 An example of the first modification is shown. Specifically, Fig.10 A graph of a raw signal 20 comprising a series of measurements is shown, as well as an input stage 80 which may be arranged in front of the above-described recurrent neural network 30 .

[0219] The input stage 80 feeds the measurements in the overlapping windows 81 into a feature detector unit 82. Thus, the original signal 20 is processed in fixed length windows by the feature detector unit 82 to produce a feature vector for the features of each window, the features taking the same form as described above. The same feature detector unit is used for each window. The resulting series of feature vectors are sequentially fed into the recurrent neural network 30 arranged as described above to produce a sequence of estimates.

[0220] The feature detector unit 82 is trained together with the recurrent neural network 30.

[0221] An example of a feature detector implemented in the feature detector unit 82 is a single-layer convolutional neural network defined by an affine transformation with weights W and bias b and an activation function g. t-j:t+k represents a measurement result window of the original signal 20 including the measurement results from tj to t+k, and t is the output feature vector.

[0222] y t =AI t-j:t+k +b affine transformation

[0223] O t =g(y t )activation

[0224] Hyperbolic tangent is a suitable activation function, but many more alternatives are known in the art, including but not limited to: rectified linear unit (ReLU), exponential linear unit (ELU), softplus unit and sigmoid unit.Multilayer neural networks can also be used as feature detectors.

[0225] As mentioned above, a disadvantage of a direct convolutional network is that there is a dependency on the exact location of the features detected in the original signal, and this also implies a dependency on the spacing between features. This dependency can be mitigated by using the output sequence of feature vectors produced by the first convolution as input in a second "merging" network that acts on the order statistics of the input.

[0226] For example, in the case where the merge network is a single-layer neural network, the following equation describes how the output is related to the input vector. Set f to the exponential of the input features, so A f is the weight matrix of feature f, and Set up as a function that returns some or all of the order statistics of its input:

[0227] Affine transformation

[0228] O t =g(y t )activation

[0229] A useful and computationally efficient example of such a layer is one that returns a feature vector with the same number of input features and whose elements are the maximum values ​​obtained for each corresponding feature. is set to return only the last order statistic as the maximum value obtained among its inputs, and to f Set to a (single-column) matrix consisting entirely of zeros rather than unit values ​​at its (f,1) element:

[0230] Affine transformation

[0231] O t =y t Do not apply activation

[0232] Since the matrix U f is very sparse, and for computational efficiency reasons, the matrix multiplication can be performed implicitly: in this paper, ∑ f U f x f The function is to set the element f of the output feature vector to x f ..

[0233] Convolutions and / or pooling can be performed by computing their outputs only for every nth position (a stride of n) and thus downsampling their outputs. Downsampling can be advantageous from a computational perspective because the rest of the network must process fewer blocks (faster computation) to achieve similar accuracy.

[0234] Adding a stack of convolutional layers solves many of the problems described above: feature detections learned via convolutions can be used both as nanopore-specific feature detectors and as summary statistics without making any additional assumptions about the system; feature uncertainty is passed to the rest of the network via the relative weights of different features, and further processing can therefore take this information into account, leading to more precise predictions and quantification of uncertainty.

[0235] The second modification concerns the output of the recurrent neural network 30 and may optionally be combined with the first modification.

[0236] A potential problem with decoding the output of the basic method implemented in a recurrent neural network 30 is that once the highest scoring path through the k-mers is determined, the estimate of the polymer sequence is still determined by overlap, and this process can be ambiguous.

[0237] To highlight the problem, consider the case where the history is moving through a homopolymer region: all overlaps between two k-mers are possible, and several overlaps are feasible, e.g., corresponding to additional sequence fragments of length zero, one, or two bases. Strategies that rely on k-mers only partially solve the sequence estimation problem.

[0238] Therefore, the second modification is to modify the output of the recurrent neural network 30 representing the posterior probabilities provided to the decoder 37. Specifically, the ambiguity is resolved by abandoning the decoding assumption as k-mers and thus not outputting a posterior probability vector representing the posterior probabilities of multiple different polymer unit sequences. Instead, there are output posterior probability matrices, each of which represents: the posterior probabilities of multiple different changes of the corresponding historical sequence of polymer units corresponding to the measurement results before or after the corresponding measurement, resulting in a new polymer unit sequence, as will now be described.

[0239] The historical sequence of polymer units is the possible identity of the sequence that has historical significance for the sequence currently being estimated, and the new sequence of polymer units is the possible identity of the sequence currently estimated for different possible variations of the historical sequence. The posterior probabilities of different variations from different historical sequences are derived, and thus a matrix is ​​formed, with one dimension in the space representing all possible identities of the historical sequence and another dimension in the space representing all possible variations.

[0240] Although the term "history" is used, the historical sequence of polymer units corresponds to the measurement results before or after the corresponding measurement, because the processing is effectively reversible and can be performed in either direction along the polymer.

[0241] Possible changes that might be considered are:

[0242] • Removing a single polymer unit from the beginning or end of a historical sequence of polymer units, and adding a single polymer unit to the end or beginning of a historical sequence of polymer units.

[0243] • Removing two or more polymer units from the beginning of the historical sequence of polymer units, and adding two or more polymer units to the end of the historical sequence of polymer units.

[0244] Empty changes.

[0245] This will now be considered in more detail.

[0246] The second modification will be referred to herein as implementing a "transducer" at the output stage of the recurrent neural network 30. In general, the input to the transducer at each step is a posterior probability matrix containing values ​​representing posterior probabilities, where the values ​​may be weights, each weight associated with moving from a particular history state using a particular motion state. A second predetermined matrix specifies the destination history state given a source history state and motion state. Thus, the decoding of the transducer implemented in the decoder 37 can find the assignment for each step (history state, motion state) that maximizes the weight, which depends on the path for which the history state is consistent, with consistency being defined by the matrix of allowed moves.

[0247] By way of explanation, Fig.11 It is shown how the output of the recurrent neural network input to the decoder 36 is generated in the form of a posterior probability matrix 40 from the feature vector 31 input to the recurrent neural network 30. Fig.12 An example of the result of decoding into a tuple of history state 41 and motion state 42 is shown when the space of history state is a 3-mer and the space of motion state 42 is a sequence fragment. Specifically, Fig.12 Four consecutive history states 41 and motion state 42 are shown, and it can be seen how the history state 41 changes according to the changes represented by the motion state 42.

[0248] The second modification provides benefits over the basic approach because in some cases the historical state 41 (which is considered separate in the basic approach) is ambiguous for a series of polymer units, while the kinematic state 42 is not ambiguous. By way of illustration, Fig.13Some sample cases are shown where considering only the overlap between states on the highest scoring paths (similar to the basic approach) leads to ambiguous estimates for a sequence of polymer units, whereas the sequence segment of motion states 42 used in the second modification is unambiguous.

[0249] Modifications to the Viterbi algorithm that may be used for decoding are described below, but for clarity we first consider some specific examples of how the transducers are used at the output of the softmax layer 56 and what their history state sets 41 and motion states 42 might look like.

[0250] In one use of the transducer, the history state set 41 is a short sequence segment of a fixed length, and the motion state is all sequence segments up to possible different fixed lengths, for example, a segment of length 3 and a segment of length up to 2 respectively indicate that the decoding input at each step is of size 4. 3 v(1+4+4 2 ). The history state 41 is {AAA, AAC, ... TTT} and the motion state 42 is {-, A, C, G, T, AA, ... TT}, where "-" represents an empty sequence segment. The matrix defining the destination history state for a given history state and motion state pair may be as follows:

[0251]

[0252] Note that from a particular history state 41 there may be several movement states 42 that give the same destination history state. This is an expression of the ambiguity that the knowledge of the movement state 42 resolves the transducer and distinguishes the transducer from something defined only on a set of history states 41 or on a tuple of (source-history-state, destination-history-state), which are respectively a Moore machine and a Powder machine in finite state machine parlance. There is no requirement that the length of the longest possible sequence fragment that can be emitted is shorter than the length of the history state 41.

[0253] The posterior probability matrix input to decoder 37 can be determined by a smaller set of parameters, allowing the size of history state 41 to be relatively large for the same number of parameters while still allowing flexible emission of sequence fragments that assemble the final call.

[0254] One example that has proven useful is to represent all transitions that use motion corresponding to an empty sequence segment with a single weight, and all other transitions have weights that depend only on the destination history state. For a history state space of length k and allowing segments of at most two bases to be output, this requires 4 k +1 parameter instead of 4 for the full explicit sensor defined above Kv21. Note that this form of the transducer only partially resolves the ambiguity that the transducer is designed to remove, and in some cases the assumption of maximum but not complete overlap still needs to be made because the fractions are the same; this restriction, which occurs in practice when motion states corresponding to sequence fragments longer than 1 are rarely used, is often sufficient.

[0255] The history states of the transducer need not exceed k-mers, and may exceed other symbol sets. An example may be that the information to distinguish a particular base, a purine (A or G) or a pyrimidine (C or T) is very local, and it may be advantageous to consider a longer history that cannot distinguish certain bases. For the same number of history states, a transducer using an alphabet containing only purines and pyrimidines can have strings that are twice as long, because 4^k=2^2k. If P stands for purine Y pyrimidine, then the matrix defining the destination history state for a given history state and motion state pair may be as follows:

[0256]

[0257] The historical state 41 of the transducer need not be identified by one or more segments of the historical sequence, and it is advantageous to let the recurrent neural network 30 learn its own representation during training. H} and the set of sequence segments, the motion states are all possible pairs of history states and sequence segments. For example, the set of sequence segments can be {-, A, C, G, T, AA, … TT}, and thus the set of motion states is {S1-, S1A, …, S1TT, S2-, S2A, …, S H As previously described, the recurrent neural network 30 emits a posterior probability matrix over these history states and motion states, each entry representing the posterior probability of moving from one history state to another history state by emitting a specific sequence segment.

[0258] The decoding performed by the decoder 37 in the second modification can be performed as follows. In the first application, the decoder can derive an estimate of a series of polymer units from the posterior probability matrix, for example by estimating the most likely path through the posterior probability matrix. The estimated value can be an estimated value of the series of polymer units as a whole. The details of the decoding are as follows.

[0259] Any method known in the art may generally be used, but it is advantageous to use a modification of the Viterbi algorithm to decode the sequence of transducer weights into the final sequence. As with the standard Viterbi decoding method, a lookback matrix is ​​built during the forward pass, and this is used to calculate the path taken to obtain the highest possible score (assigning a history state to each step), but the sensor modification also requires an additional matrix to record the motion states actually used to transition from one history state to another along the highest scoring path.

[0260] If the weight output by the recurrent neural network 30 at step i for moving from the history state g via the moving state s is the tensor τ ihs And the matrix T gs Storing the destination history state, the forward iteration of the Viterbi algorithm becomes

[0261] f 0h =0 initial value

[0262] Forward Update

[0263] Record movement

[0264] History

[0265] The backward "decoding" iteration of the modified Viterbi is performed step by step starting from the end. First, the last history state of the highest scoring path is determined based on the final score vector, and then all the history states on the path are determined using the backtracking information. Once the history state H at step t is determined t , we can determine the motion state M t .

[0266] H T = argmax h f Th

[0267]

[0268] Since each motion state has an interpretation as a sequence fragment, an estimate of the polymer sequence can be determined by concatenating these fragments. Since only the motion states are necessary for decoding, there is no need to explicitly determine the sequence of the history states.

[0269] In this method, the estimation of the most likely path is to utilize a posteriori probability matrix, effectively estimate the highest score series from all possible series, which represents the probability of the polymer unit series of a polymer as a reference series of a polymer unit. This can be considered as scoring all possible series as reference in concept, although in practice the Viterbi algorithm avoids actually scoring each one. More generally, decoder 37 is arranged to perform other types of analysis, and the analysis is similarly related to utilizing a posteriori probability matrix to generate scores about one or more reference series of polymer units, wherein the score represents the probability of the series of the polymer unit of a polymer as a reference series of a polymer unit. This scoring can realize several other applications, such as as follows. In the following applications, the reference series of a polymer unit can be stored in a memory. It can be a series of polymer units of a known polymer and / or be derived from a library or obtained by experiment.

[0270] In a first alternative, decoder 36 may derive an estimate of the series of polymer units as a whole by selecting one of a set of multiple reference series of polymer units that most likely corresponds to the series of posterior probability matrices, for example based on a score for the reference series of posterior probability matrices.

[0271] In a second alternative, the decoder 36 can derive an estimate of the difference between a series of polymer units of a polymer and a reference series of polymer units. This can be done by scoring the variation of the reference series. This effectively estimates the series of polymers for which the measurements were taken by estimating the location and identity of the differences with the reference. This type of application can be used, for example, to identify mutations in polymers of known types.

[0272] In a third alternative, the estimated value can be an estimated value of a portion of the series of polymer units. For example, it can be estimated whether the portion of the series of polymer units is a reference series polymer unit. This can be done by scoring the reference series for portions of the series of posterior probability matrices, such as using a suitable search algorithm. This type of application can be used, for example, to detect markers in polymers.

[0273] The third modification also concerns the output of the recurrent neural network 30 and may optionally be combined with the first modification.

[0274] One limitation of the basic approach implemented in the analysis system 3 described above is the reliance on a decoder 36 external to the recurrent neural network 30 to assign symbols to each column of the output of the recurrent neural network 30 and then estimate the series of polymer units from the sequence of symbols. Since the decoder 36 itself is not part of the recurrent neural network 30, the decoder must be specified in advance and any parameters cannot be trained together with the rest of the network without adopting complex strategies. In addition, the structure of the Viterbi-style decoder used in the basic approach dictates how the history of the current call is represented and constrains the output of the recurrent neural network 30 itself.

[0275] A third modification addresses these limitations and involves changing the output of the recurrent neural network 30 to itself output a decision regarding the identity of consecutive polymer units in the series of polymer units. In this case, the decision is fed back into the recurrent neural network 30 unidirectionally, preferably unidirectionally. As the decision is fed back into the recurrent neural network, it informs subsequent output decisions.

[0276] This modification allows the decoding to be moved from the decoder 36 into the recurrent neural network 30, thereby enabling the decoding process to be trained together with all other parameters of the recurrent neural network 30 and thus optimized to be called from measurements using nanopore sensing. An additional advantage of the third modification described is that the representation of the history used by the recurrent neural network 30 is learned during training and is therefore adapted to the problem of estimating a series of measurements. By feeding back decisions to the recurrent neural network 30, the recurrent neural network 30 can use past decisions to improve predictions for future polymer units.

[0277] Several known search methods can be used in conjunction with the method to correct past decisions that are later revealed to be bad. One example of such a method is backtracking, where in response to a low scoring decision made by the recurrent neural network 30, the process goes back several steps and tries alternative choices. Another such method is beam search, where a list of high scoring historical states is maintained and at each step the recurrent neural network 30 is used to predict the next polymer unit to the best polymer unit.

[0278] To illustrate how decoding is performed, Fig.14 The implementation of the third modification in the final layer of the recurrent neural network 30 is shown and can be used with Fig.15 For comparison, Fig.15 It is shown that in the implementation Figure 4 The basic method shown is the final layer of a recurrent neural network 30. Fig.14 and 15 Each of the diagrams shows a final bidirectional recursive layer 34, which has, by way of non-limiting example, Figure 8The structure of the recursive unit 66 is shown in FIG. Fig.14 and 15 Not shown in FIG. 5 is the line that combines the output of a recurrent unit 66 with its hidden state before passing it to the next recurrent unit 66 .

[0279] However, Figure 4 The final feed-forward layer 35 and the softmax layer 36 of the recurrent neural network 30 shown in are replaced by a decision layer 45, which outputs a decision on the identity of the consecutive polymer units of the series of polymer units. The decision layer 45 can be implemented by an argmax unit 46, which each outputs a corresponding decision.

[0280] The output of the decisions (ie, by the argmax unit 46) is processed sequentially, and the final output estimate for the series of polymer units is constructed by appending new fragments at each step.

[0281] Unlike the basic approach where each decision is fed back into the recurrent neural network 30, in this example it is fed back into the final bidirectional recurrent layer 34, specifically, into the forward sublayer 68 (although it could alternatively be the backward sublayer 69). This allows the internal representation of the forward sublayer 68 to be informed by the actual decision that has been made. The motivation for the feedback is that there may be several sequences that are compatible with the input features and direct a posteriori decoding of the output of the recurrent neural network 30 produces an average of these sequences, which may not be consistent and is therefore generally worse than any individual that contributed to it. The feedback mechanism allows the recurrent neural network 30 to adjust its internal state at the time of the actual call being made and thus pick out a consistent individual series in a manner more like Viterbi decoding.

[0282] The processing is effectively reversible and can be performed in either direction along the polymer, and therefore along either direction along the recurrent neural network 30.

[0283] Feedback may be performed by passing each decision (referred to as a symbol) to an embedding unit 47 which transmits a vector specific to each symbol.

[0284] At each step, the output of the lowest bidirectional recurrent layer 34 is projected into an output space where each dimension is associated with a segment of a series of measurements, and then an output decision (about the identity of the segment) is selected using argmax decoding in the corresponding argmax unit 46. The decision is then fed back bidirectionally to the next recurrent unit 66 via the embedding unit 47. Each possible decision is associated with a vector in the embedding space, and the vector corresponding to the decision just made is combined with the hidden state produced by the current recurrent unit 66 before being input to the next recurrent unit 66.

[0285] By feeding the decisions back into the recurrent neural network 30, the internal representation of the recurrent neural network 30 is informed by both the history of the estimated sequence segments and the measurements. A different formulation of the feedback would be the case where a separate unidirectional recurrent neural network is used to represent the history of the estimated sequence segments, the input to which is the embedding of the decisions and the output is the weight of each decision. These weights are then combined with the weights from the measurements in the processing recurrent neural network before making the argmax decision about the next sequence segment. Using a separate recurrent neural network in this way has similarities to the "sequence transduction" approach disclosed in Graves, "Sequence Transduction with Recurrent Neural Networks", In International Conference on Machine Learning: Representation Learning Workshop, 2012, and is a special case of the third modification.

[0286] The parameters of the recurrent unit 66 in which the feedback decision is embedded are constrained so that its state is decomposed into two parts, the updates of which depend only on the output or embedded decisions of the upper layer of the recurrent neural network 30 before the final bidirectional recurrent layer 34.

[0287] The third modified training may be performed as follows.

[0288] In order to make the output of the recurrent neural network 30 compatible with training using perplexity (or other probability-based or entropy-based objective functions), Fig.14 The recurrent neural network 30 shown in FIG. 4 can be adapted by adding a softmax unit 48 Fig.16 or Fig.17 Any of the training purposes shown. The softmax unit 48 applies the softmax functor to the output of the final bidirectional recurrent layer 34 (the softmax unit is as described above, but no affine transformation is applied). The output of the softmax unit 48 is then trained by the perplexity shown in element 49. Fig.16 In the example of , the softmax unit 48 replaces the argmax unit 46 and the training labels output by the softmax unit 48 are fed back, while in Fig.17 In the example of , the softmax unit 48 is arranged in parallel with the argmax unit 46 and the decision output by the argmax unit 46 is fed back.

[0289] Rather than producing hard decisions about the segments of the polymer family produced by the argmax unit 46, the softmax unit 48 produces an output that can be interpreted as a probability distribution over the segments of the polymer family and can therefore be trained by perplexity. Since the softmax functor implemented in the softmax unit 48 maintains its input level, the argmax of the unit is the same as the argmax obtained if it were not added to the recurrent neural network 30. Leaving the softmax unit in the recurrent neural network 30 is advantageous even if the recurrent neural network 30 is trained because it provides confidence in the decision.

[0290] The dependence of the recurrent neural network 30 on its output up to a given step causes training problems because a parameter change that causes the output decision at any step to change requires crossing a non-differentiable boundary and optimization can be difficult. One way to avoid the non-differentiability problem is to train the recurrent neural network 30 using a perplexity objective but assuming that the recall is perfect up to this point, thereby feeding the training labels to the embedding unit 47 instead of the decisions that would have been made. Training in this way produces a network that performs well if the sequence fragment recall is correct, but because it has not been trained to recover from bad recall, it can be very sensitive to errors.

[0291] A two-stage approach can be used for training. First, the training labels are fed back to Fig.16 Second, the actual calls made are fed back but the perplexity is still calculated through the softmax unit 48, as Fig.17 The motivation for this two-stage process is that the first stage finds good starting parameters for the second stage, thereby reducing the possibility of training falling into the bad parameter region due to the above-mentioned non-differentiability.

Claims

1. A method of analyzing a series of measurements taken from a polymer during translocation of the polymer relative to a nanopore, the polymer comprising a series of polymer units, the method comprising: performing convolution on successive measurements in successive windows of the series of measurements to derive a feature vector for each window; as well as The feature vector is operated on using a recurrent neural network to derive information about the series of polymer units. The method of claim 1 , wherein the windows are overlapping windows.

3. The method of claim 1, wherein the step of performing convolution on consecutive measurements in the series of measurements comprises operating on the series of measurements using a trained feature detector.

4. The method of claim 3, wherein the trained feature detector is a convolutional neural network.

5. The method according to any one of claims 1 to 4, wherein the recurrent neural network is a bidirectional recurrent neural network.

6. The method according to any one of claims 1 to 5, wherein the recurrent neural network comprises a plurality of layers.

7. The method according to any one of the preceding claims, wherein the nanopore is a biological pore.

8. The method according to any one of the preceding claims, wherein the polymer is a polynucleotide and the polymer units are nucleotides.

9. The method of claim 8, wherein the polynucleotide comprises a homopolymer region.

10. The method of any preceding claim, wherein the measurements comprise one or more of current measurements, impedance measurements, tunneling measurements, FET measurements and optical measurements.

11. The method according to any one of the preceding claims, performed in a computer device.

12. A method according to any one of the preceding claims, wherein the series of measurements is a series of measurements taken at a rate of at least 10 polymer units per second, preferably 100 polymer units per second, more preferably 500 polymer units per second or more preferably 1000 polymer units per second.

13. A method according to any preceding claim, further comprising acquiring the series of measurements.

14. The method according to claim 13, further comprising: A polymer analyte is provided on one side of the nanopore and conditions are provided that permit translocation of the polymer through the nanopore, wherein the series of measurements are acquired during translocation of the polymer relative to the nanopore.

15. An analytical system arranged to perform the method according to any one of claims 1 to 12.

16. A nanopore measurement and analysis system, comprising: a measurement system arranged to acquire a series of measurements from the polymer during its translocation relative to the nanopore; as well as The analysis system according to claim 15.