WO2022197754A1 - Neural network parameter quantization for base calling - Google Patents

Neural network parameter quantization for base calling Download PDF

Info

Publication number
WO2022197754A1
WO2022197754A1 PCT/US2022/020462 US2022020462W WO2022197754A1 WO 2022197754 A1 WO2022197754 A1 WO 2022197754A1 US 2022020462 W US2022020462 W US 2022020462W WO 2022197754 A1 WO2022197754 A1 WO 2022197754A1
Authority
WO
WIPO (PCT)
Prior art keywords
quantization
format
parameters
group
neural network
Prior art date
Application number
PCT/US2022/020462
Other languages
French (fr)
Inventor
Gavin Derek PARNABY
Original Assignee
Illumina Software, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US17/687,551 external-priority patent/US20220301657A1/en
Application filed by Illumina Software, Inc. filed Critical Illumina Software, Inc.
Priority to EP22714690.9A priority Critical patent/EP4309080A1/en
Priority to CN202280005057.3A priority patent/CN115699019A/en
Priority to CA3183567A priority patent/CA3183567A1/en
Priority to AU2022237501A priority patent/AU2022237501A1/en
Publication of WO2022197754A1 publication Critical patent/WO2022197754A1/en

Links

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16BBIOINFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR GENETIC OR PROTEIN-RELATED DATA PROCESSING IN COMPUTATIONAL MOLECULAR BIOLOGY
    • G16B30/00ICT specially adapted for sequence analysis involving nucleotides or amino acids
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/06Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
    • G06N3/063Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using electronic means
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16BBIOINFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR GENETIC OR PROTEIN-RELATED DATA PROCESSING IN COMPUTATIONAL MOLECULAR BIOLOGY
    • G16B40/00ICT specially adapted for biostatistics; ICT specially adapted for bioinformatics-related machine learning or data mining, e.g. knowledge discovery or pattern finding
    • G16B40/20Supervised data analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/048Activation functions

Definitions

  • the technology disclosed relates to artificial intelligence type computers and digital data processing systems and corresponding data processing methods and products for emulation of intelligence (i.e., knowledge based systems, reasoning systems, and knowledge acquisition systems); and including systems for reasoning with uncertainty (e.g., fuzzy logic systems), adaptive systems, machine learning systems, and artificial neural networks.
  • intelligence i.e., knowledge based systems, reasoning systems, and knowledge acquisition systems
  • systems for reasoning with uncertainty e.g., fuzzy logic systems
  • adaptive systems e.g., machine learning systems
  • artificial neural networks e.g., neural networks
  • the technology disclosed relates to using deep neural networks such as deep convolutional neural networks for analyzing data.
  • CNNs Deep Convolution Neural Networks
  • GPU Graphics Processing Unit
  • FPGA Field Programmable Gate Array
  • Convolution involves multiply and accumulate (MAC) operations with four levels of loops that slide along kernel and feature maps.
  • the first loop level computes the MAC of pixels within a kernel window.
  • the second loop level accumulates the sum of products of the MAC across different input feature maps.
  • a final output element in the output feature map is obtained by adding the bias.
  • the third loop level slides the kernel window within an input feature map.
  • the fourth loop level generates different output feature maps.
  • FPGAs have gained increasing interest and popularity in particular to accelerate inference tasks, due to their (1) high degree of reconfigurability, (2) faster development time compared to Application Specific Integrated Circuits (ASICs) to catch up with the rapid evolving of CNNs, (3) good performance, and (4) superior energy efficiency compared to GPUs.
  • ASICs Application Specific Integrated Circuits
  • the high performance and efficiency of an FPGA can be realized by synthesizing a circuit that is customized for a specific computation to directly process billions of operations with the customized memory systems. For instance, hundreds to thousands of digital signal processing (DSP) blocks on modern FPGAs support the core convolution operation, e.g ., multiplication and addition, with high parallelism.
  • DSP digital signal processing
  • Dedicated data buffers between external on-chip memory and on-chip processing engines can be designed to realize the preferred dataflow by configuring tens of Mbyte on-chip block random access memories (BRAM) on the FPGA chip.
  • BRAM block random access memories
  • Fig. l is a simplified diagram of a base calling computation system that comprises a configurable processor.
  • Fig. 2 is a simplified data flow diagram which can be executed by a system like that of Fig. 1.
  • Fig. 3 illustrates a configuration architecture for components of a configurable or a reconfigurable array supporting base calling operations.
  • Fig. 4 is a diagram of a neural network architecture which can be executed using a configurable or a reconfigurable array configured as described herein.
  • Fig. 5 is a simplified illustration of an organization of tiles of sensor data used by a neural network architecture like that of Fig. 4.
  • Fig. 6 is a simplified illustration of patches of tiles of sensor data used by a neural network architecture like that of Fig. 4.
  • Fig. 7 illustrates a configuration of patches of an input tile used by a neural network architecture like that of Fig. 4.
  • Fig. 8 illustrates part of a configuration for a neural network like that of Fig. 4 on a configurable or a reconfigurable array, such as a field programmable gate array (FPGA).
  • FPGA field programmable gate array
  • Fig. 9 is a diagram of another alternative neural network architecture which can be executed using a configurable or a reconfigurable array configured as described herein.
  • Fig. 10 illustrates one implementation of a specialized architecture of the neural network-based base caller that is used to segregate processing of data for different sequencing cycles.
  • Fig. 11 depicts one implementation of segregated layers, each of which can include convolutions.
  • Fig. 12A depicts one implementation of combinatory layers, each of which can include convolutions.
  • Fig. 12B depicts another implementation of the combinatory layers, each of which can include convolutions.
  • Fig. 13 illustrates layers of a neural network, and corresponding kernels and weights to configure the neural network for base calling operation.
  • Fig. 14 illustrates a table depicting example 8-bit binary fixed-point formats, at least some of which can be used to represent parameters (e.g ., weights and biases) of a neural network for base calling.
  • parameters e.g ., weights and biases
  • Fig. 15A illustrates a Look-Up Table (LUT) usable to select a quantization format for a corresponding neural network parameter.
  • LUT Look-Up Table
  • Fig. 15B illustrates a scale that represents at least some information of the LUT of Fig. 15 A.
  • Fig. 15C illustrates another LUT usable to select a quantization format for a corresponding absolute value of a neural network parameter.
  • Fig. 15D illustrates yet another LUT usable to select a quantization format for a corresponding absolute value of a neural network parameter.
  • Fig. 16 illustrates a flowchart depicting a method for grouping of neural network parameters, selecting appropriate quantization formats for individual groups, quantizing the neural network parameters of each group in accordance with the corresponding selected quantization format, and using the quantized neural network parameters to configure a neural network topology for base calling.
  • Fig. 17 illustrates an example layer- specific grouping of neural network parameters.
  • Fig. 18 illustrates an example filter- specific grouping of neural network parameters.
  • Fig. 19 illustrates an example kernel- specific grouping of neural network parameters.
  • Fig. 20 illustrates a kernel-specific grouping of neural network parameters, where a parameter that has a maximum absolute value among all parameters within a corresponding group is identified.
  • Fig. 21 illustrates a multiplication operation and an accumulation operation for an example input data quantization format and an example weight quantization format.
  • Fig. 22 illustrates a multiplication operation and an accumulation operation for another example input data quantization format and another example weight quantization format.
  • Fig. 23 is a block diagram of a base calling system in accordance with one implementation.
  • Fig. 24 is a block diagram of a system controller that can be used in the system of Fig. 23.
  • Fig. 25 is a simplified block diagram of a computer system that can be used to implement the technology disclosed.
  • Embodiments described herein may be used in various biological or chemical processes and systems for academic or commercial analysis. More specifically, embodiments described herein may be used in various processes and systems where it is desired to detect an event, property, quality, or characteristic that is indicative of a desired reaction.
  • embodiments described herein include cartridges, biosensors, and their components as well as bioassay systems that operate with cartridges and biosensors.
  • the cartridges and biosensors include a flow cell and one or more sensors, pixels, light detectors, or photodiodes that are coupled together in a substantially unitary structure.
  • a “desired reaction” includes a change in at least one of a chemical, electrical, physical, or optical property (or quality) of an analyte-of-interest.
  • the desired reaction is a positive binding event (e.g ., incorporation of a fluorescently labeled biomolecule with the analyte-of-interest).
  • the desired reaction may be a chemical transformation, chemical change, or chemical interaction.
  • the desired reaction may also be a change in electrical properties.
  • the desired reaction may be a change in ion concentration within a solution.
  • Exemplary reactions include, but are not limited to, chemical reactions such as reduction, oxidation, addition, elimination, rearrangement, esterification, amidation, etherification, cyclization, or substitution; binding interactions in which a first chemical binds to a second chemical; dissociation reactions in which two or more chemicals detach from each other; fluorescence; luminescence; bioluminescence; chemiluminescence; and biological reactions, such as nucleic acid replication, nucleic acid amplification, nucleic acid hybridization, nucleic acid ligation, phosphorylation, enzymatic catalysis, receptor binding, or ligand binding.
  • chemical reactions such as reduction, oxidation, addition, elimination, rearrangement, esterification, amidation, etherification, cyclization, or substitution
  • binding interactions in which a first chemical binds to a second chemical
  • dissociation reactions in which two or more chemicals detach from each other
  • fluorescence luminescence
  • bioluminescence bioluminescence
  • the desired reaction can also be an addition or elimination of a proton, for example, detectable as a change in pH of a surrounding solution or environment.
  • An additional desired reaction can be detecting the flow of ions across a membrane (e.g., natural or synthetic bilayer membrane), for example as ions flow through a membrane the current is disrupted and the disruption can be detected.
  • a membrane e.g., natural or synthetic bilayer membrane
  • the desired reaction includes the incorporation of a fluorescently-labeled molecule to an analyte.
  • the analyte may be an oligonucleotide and the fluorescently-labeled molecule may be a nucleotide.
  • the desired reaction may be detected when an excitation light is directed toward the oligonucleotide having the labeled nucleotide, and the fluorophore emits a detectable fluorescent signal.
  • the detected fluorescence is a result of chemiluminescence or bioluminescence.
  • a desired reaction may also increase fluorescence (or Forster) resonance energy transfer (FRET), for example, by bringing a donor fluorophore in proximity to an acceptor fluorophore, decrease FRET by separating donor and acceptor fluorophores, increase fluorescence by separating a quencher from a fluorophore or decrease fluorescence by co-locating a quencher and fluorophore.
  • FRET fluorescence resonance energy transfer
  • reaction component or “reactant” includes any substance that may be used to obtain a desired reaction.
  • reaction components include reagents, enzymes, samples, other biomolecules, and buffer solutions.
  • the reaction components are typically delivered to a reaction site in a solution and/or immobilized at a reaction site.
  • the reaction components may interact directly or indirectly with another substance, such as the analyte-of-interest.
  • reaction site is a localized region where a desired reaction may occur.
  • a reaction site may include support surfaces of a substrate where a substance may be immobilized thereon.
  • a reaction site may include a substantially planar surface in a channel of a flow cell that has a colony of nucleic acids thereon.
  • the nucleic acids in the colony have the same sequence, being for example, clonal copies of a single stranded or double stranded template.
  • a reaction site may contain only a single nucleic acid molecule, for example, in a single stranded or double stranded form.
  • a plurality of reaction sites may be unevenly distributed along the support surface or arranged in a predetermined manner (e.g ., side-by-side in a matrix, such as in microarrays).
  • a reaction site can also include a reaction chamber (or well) that at least partially defines a spatial region or volume configured to compartmentalize the desired reaction.
  • reaction chamber and “well” interchangeably.
  • reaction chamber or “well” includes a spatial region that is in fluid communication with a flow channel.
  • the reaction chamber may be at least partially separated from the surrounding environment or other spatial regions.
  • a plurality of reaction chambers may be separated from each other by shared walls.
  • the reaction chamber may include a cavity defined by interior surfaces of a well and have an opening or aperture so that the cavity may be in fluid communication with a flow channel. Biosensors including such reaction chambers are described in greater detail in international application no. PCT/US2011/057111, filed on October 20, 2011, which is incorporated herein by reference in its entirety.
  • the reaction chambers are sized and shaped relative to solids (including semi-solids) so that the solids may be inserted, fully or partially, therein.
  • the reaction chamber may be sized and shaped to accommodate only one capture bead.
  • the capture bead may have clonally amplified DNA or other substances thereon.
  • the reaction chamber may be sized and shaped to receive an approximate number of beads or solid substrates.
  • the reaction chambers may also be filled with a porous gel or substance that is configured to control diffusion or filter fluids that may flow into the reaction chamber.
  • sensors are associated with corresponding pixel areas of a sample surface of a biosensor.
  • a pixel area is a geometrical construct that represents an area on the biosensor’s sample surface for one sensor (or pixel).
  • a sensor that is associated with a pixel area detects light emissions gathered from the associated pixel area when a desired reaction has occurred at a reaction site or a reaction chamber overlying the associated pixel area.
  • the pixel areas can overlap.
  • a plurality of sensors may be associated with a single reaction site or a single reaction chamber.
  • a single sensor may be associated with a group of reaction sites or a group of reaction chambers.
  • a “biosensor” includes a structure having a plurality of reaction sites and/or reaction chambers (or wells).
  • a biosensor may include a solid-state imaging device (e.g., CCD or CMOS imager) and, optionally, a flow cell mounted thereto.
  • the flow cell may include at least one flow channel that is in fluid communication with the reaction sites and/or the reaction chambers.
  • the biosensor is configured to fluidically and electrically couple to a bioassay system.
  • the bioassay system may deliver reactants to the reaction sites and/or the reaction chambers according to a predetermined protocol (e.g, sequencing-by-synthesis) and perform a plurality of imaging events.
  • the bioassay system may direct solutions to flow along the reaction sites and/or the reaction chambers. At least one of the solutions may include four types of nucleotides having the same or different fluorescent labels.
  • the nucleotides may bind to corresponding oligonucleotides located at the reaction sites and/or the reaction chambers.
  • the bioassay system may then illuminate the reaction sites and/or the reaction chambers using an excitation light source (e.g, solid-state light sources, such as light-emitting diodes or LEDs).
  • the excitation light may have a predetermined wavelength or wavelengths, including a range of wavelengths.
  • the excited fluorescent labels provide emission signals that may be captured by the sensors.
  • the biosensor may include electrodes or other types of sensors configured to detect other identifiable properties.
  • the sensors may be configured to detect a change in ion concentration.
  • the sensors may be configured to detect the ion current flow across a membrane.
  • a “cluster” is a colony of similar or identical molecules or nucleotide sequences or DNA strands.
  • a cluster can be an amplified oligonucleotide or any other group of a polynucleotide or polypeptide with a same or similar sequence.
  • a cluster can be any element or group of elements that occupy a physical area on a sample surface.
  • clusters are immobilized to a reaction site and/or a reaction chamber during a base calling cycle.
  • the term “immobilized,” when used with respect to a biomolecule or biological or chemical substance, includes substantially attaching the biomolecule or biological or chemical substance at a molecular level to a surface.
  • a biomolecule or biological or chemical substance may be immobilized to a surface of the substrate material using adsorption techniques including non-covalent interactions (e.g ., electrostatic forces, van der Waals, and dehydration of hydrophobic interfaces) and covalent binding techniques where functional groups or linkers facilitate attaching the biomolecules to the surface.
  • Immobilizing biomolecules or biological or chemical substances to a surface of a substrate material may be based upon the properties of the substrate surface, the liquid medium carrying the biomolecule or biological or chemical substance, and the properties of the biomolecules or biological or chemical substances themselves.
  • a substrate surface may be functionalized (e.g., chemically or physically modified) to facilitate immobilizing the biomolecules (or biological or chemical substances) to the substrate surface.
  • the substrate surface may be first modified to have functional groups bound to the surface. The functional groups may then bind to biomolecules or biological or chemical substances to immobilize them thereon.
  • a substance can be immobilized to a surface via a gel, for example, as described in US Patent Publ. No. US 2011/0059865 Al, which is incorporated herein by reference.
  • nucleic acids can be attached to a surface and amplified using bridge amplification.
  • Useful bridge amplification methods are described, for example, in U.S. Patent No. 5,641,658; WO 2007/010251; U.S. Pat. No. 6,090,592; U.S. Patent Publ. No. 2002/0055100 Al; U.S. Patent No. 7,115,400; U.S. Patent Publ. No. 2004/0096853 Al; U.S. Patent Publ. No. 2004/0002090 Al; U.S. Patent Publ. No. 2007/0128624 Al; and U.S. Patent Publ. No. 2008/0009420 Al, each of which is incorporated herein in its entirety.
  • the nucleic acids can be attached to a surface and amplified using one or more primer pairs.
  • one of the primers can be in solution and the other primer can be immobilized on the surface (e.g, 5'- attached).
  • a nucleic acid molecule can hybridize to one of the primers on the surface followed by extension of the immobilized primer to produce a first copy of the nucleic acid.
  • the primer in solution then hybridizes to the first copy of the nucleic acid which can be extended using the first copy of the nucleic acid as a template.
  • the original nucleic acid molecule can hybridize to a second immobilized primer on the surface and can be extended at the same time or after the primer in solution is extended.
  • repeated rounds of extension e.g ., amplification
  • the immobilized primer and primer in solution provide multiple copies of the nucleic acid.
  • the assay protocols executed by the systems and methods described herein include the use of natural nucleotides and also enzymes that are configured to interact with the natural nucleotides.
  • Natural nucleotides include, for example, ribonucleotides (RNA) or deoxyribonucleotides (DNA).
  • Natural nucleotides can be in the mono-, di-, or tri phosphate form and can have a base selected from adenine (A), thymine (T), uracil (U), guanine (G) or cytosine (C). It will be understood however that non-natural nucleotides, modified nucleotides or analogs of the aforementioned nucleotides can be used.
  • Some examples of useful non-natural nucleotides are set forth below in regard to reversible terminator-based sequencing by synthesis methods.
  • items or solid substances may be disposed within the reaction chambers.
  • the item or solid may be physically held or immobilized within the reaction chamber through an interference fit, adhesion, or entrapment.
  • Exemplary items or solids that may be disposed within the reaction chambers include polymer beads, pellets, agarose gel, powders, quantum dots, or other solids that may be compressed and/or held within the reaction chamber.
  • a nucleic acid superstructure such as a DNA ball, can be disposed in or at a reaction chamber, for example, by attachment to an interior surface of the reaction chamber or by residence in a liquid within the reaction chamber.
  • a DNA ball or other nucleic acid superstructure can be performed and then disposed in or at the reaction chamber.
  • a DNA ball can be synthesized in situ at the reaction chamber.
  • a DNA ball can be synthesized by rolling circle amplification to produce a concatemer of a particular nucleic acid sequence and the concatemer can be treated with conditions that form a relatively compact ball.
  • DNA balls and methods for their synthesis are described, for example in, U.S. Patent Publication Nos. 2008/0242560 A1 or 2008/0234136 Al, each of which is incorporated herein in its entirety.
  • a substance that is held or disposed in a reaction chamber can be in a solid, liquid, or gaseous state.
  • base calling identifies a nucleotide base in a nucleic acid sequence.
  • Base calling refers to the process of determining a base call (A, C, G, T) for every cluster at a specific cycle.
  • base calling can be performed utilizing four-channel, two-channel or one-channel methods and systems described in the incorporated materials of U.S. Patent Application Publication No. 2013/0079232.
  • a base calling cycle is referred to as a “sampling event.”
  • a sampling event comprises two illumination stages in time sequence, such that a pixel signal is generated at each stage. The first illumination stage induces illumination from a given cluster indicating nucleotide bases A and T in a AT pixel signal, and the second illumination stage induces illumination from a given cluster indicating nucleotide bases C and T in a CT pixel signal.
  • the technology disclosed can be implemented on processors like Central Processing Units (CPUs), Graphics Processing Units (GPUs), Field Programmable Gate Arrays (FPGAs), Coarse-Grained Reconfigurable Architectures (CGRAs), Application-Specific Integrated Circuits (ASICs), Application Specific Instruction-set Processor (ASIP), and Digital Signal Processors (DSPs).
  • CPUs Central Processing Units
  • GPUs Graphics Processing Units
  • FPGAs Field Programmable Gate Arrays
  • CGRAs Coarse-Grained Reconfigurable Architectures
  • ASICs Application-Specific Integrated Circuits
  • ASIP Application Specific Instruction-set Processor
  • DSPs Digital Signal Processors
  • Fig. l is a simplified block diagram of the system for analysis of sensor data from a sequencing system, such as base call sensor outputs.
  • the system includes a sequencing machine 100 and a configurable processor 150.
  • the configurable processor 150 can execute a neural network-based base caller in coordination with a runtime program executed by the central processing unit Central Processing Unit (CPU) 102.
  • the sequencing machine 100 comprises base call sensors and flow cells 101.
  • the flow cells can comprise one or more tiles in which clusters of genetic material are exposed to a sequence of analyte flows used to cause reactions in the clusters to identify the bases in the genetic material.
  • the sensors sense the reactions for each cycle of the sequence in each tile of the flow cell to provide tile data. Examples of this technology are described in more detail below. Genetic sequencing is a data intensive operation, which translates base call sensor data into sequences of base calls for each cluster of genetic material sensed in during a base call operation.
  • the system in this example includes the CPU 102 which executes a runtime program to coordinate the base call operations, memory 103 to store sequences of arrays of tile data, base call reads produced by the base calling operation, and other information used in the base call operations. Also, in this illustration the system includes memory 104 to store a configuration file (or files), such as FPGA bit files, topology of the neural network, and model parameters for the neural network used to configure and reconfigure the configurable processor 150 and execute the neural network. Examples of such model parameters include weight coefficients (also referred to as weights) and/or biases that are to be used to configure the topology of the neural network.
  • the sequencing machine 100 can include a program for configuring a configurable processor and in some embodiments a reconfigurable processor to execute the neural network.
  • the sequencing machine 100 is coupled by a bus 105 to the configurable processor 150.
  • the bus 105 can be implemented using a high throughput technology, such as in one example bus technology compatible with the PCIe standards (Peripheral Component Interconnect Express) currently maintained and developed by the PCI-SIG (PCI Special Interest Group).
  • a memory 160 is coupled to the configurable processor 150 by bus 161.
  • the memory 160 can be on-board memory, disposed on a circuit board with the configurable processor 150.
  • the memory 160 is used for high speed access by the configurable processor 150 of working data used in the base call operation.
  • the bus 161 can also be implemented using a high throughput technology, such as bus technology compatible with the PCIe standards.
  • Configurable processors including field programmable gate arrays FPGAs, coarse grained reconfigurable arrays CGRAs, and other configurable and reconfigurable devices, can be configured to implement a variety of functions more efficiently or faster than might be achieved using a general purpose processor executing a computer program.
  • Configuration of configurable processors involves compiling a functional description to produce a configuration file, referred to sometimes as a bitstream or bit file, and distributing the configuration file to the configurable elements on the processor.
  • the configuration file defines the logic functions to be executed by the configurable processor, by configuring the circuit to set data flow patterns, use of distributed memory and other on-chip memory resources, lookup table contents, operations of configurable logic blocks and configurable execution units like multiply-and-accumulate units, configurable interconnects and other elements of the configurable array.
  • a configurable processor is reconfigurable if the configuration file may be changed in the field, by changing the loaded configuration file.
  • the configuration file may be stored in volatile SRAM elements, in non-volatile read- write memory elements, and in combinations of the same, distributed among the array of configurable elements on the configurable or reconfigurable processor.
  • a variety of commercially available configurable processors are suitable for use in a base calling operation as described herein.
  • Examples include commercially available products such as Xilinx AlveoTM U200, Xilinx AlveoTM U250, Xilinx AlveoTM U280, Intel/Altera StratixTM GX2800, Intel/Altera StratixTM GX2800, and Intel StratixTM GX10M.
  • a host CPU can be implemented on the same integrated circuit as the configurable processor.
  • Embodiments described herein implement the multi-cycle neural network using a configurable processor 150.
  • the configuration file for a configurable processor can be implemented by specifying the logic functions to be executed using a high level description language HDL or a register transfer level RTL language specification.
  • the specification can be compiled using the resources designed for the selected configurable processor to generate the configuration file.
  • the same or similar specification can be compiled for the purposes of generating a design for an application-specific integrated circuit which may not be a configurable processor.
  • Alternatives for the configurable processor in all embodiments described herein, therefore include a configured processor comprising an application specific ASIC or special purpose integrated circuit or set of integrated circuits, or a system-on-a-chip SOC device, configured to execute a neural network based base call operation as described herein.
  • neural network processors In general, configurable processors and configured processors described herein, as configured to execute runs of a neural network, are referred to herein as neural network processors.
  • the configurable processor 150 is configured in this example by a configuration file loaded using a program executed by the CPU 102, or by other sources, which configures the array of configurable elements on the configurable processor 150 to execute the base call function.
  • the configuration includes data flow logic 151 which is coupled to the buses 105 and 161 and executes functions for distributing data and control parameters among the elements used in the base call operation.
  • the configurable processor 150 is configured with base call execution logic 152 to execute a multi-cycle neural network.
  • the logic 152 comprises a plurality of multi-cycle execution clusters (e.g., ⁇ 53) which, in this example, includes multi-cycle cluster 1 through multi cycle cluster X.
  • the number of multi -cycle clusters can be selected according to a trade-off involving the desired throughput of the operation, and the available resources on the configurable processor.
  • the multi-cycle clusters are coupled to the data flow logic 151 by data flow paths 154 implemented using configurable interconnect and memory resources on the configurable processor. Also, the multi-cycle clusters are coupled to the data flow logic 151 by control paths 155 implemented using configurable interconnect and memory resources for example on the configurable processor, which provide control signals indicating available clusters, readiness to provide input units for execution of a run of the neural network to the available clusters, readiness to provide trained parameters for the neural network, readiness to provide output patches of base call classification data, and other control data used for execution of the neural network.
  • the configurable processor is configured to execute runs of a multi-cycle neural network using trained parameters to produce classification data for sensing cycles of the base flow operation.
  • a run of the neural network is executed to produce classification data for a subject sensing cycle of the base call operation.
  • a run of the neural network operates on a sequence including a number N of arrays of tile data from respective sensing cycles of N sensing cycles, where the N sensing cycles provide sensor data for different base call operations for one base position per operation in time sequence in the examples described herein.
  • some of the N sensing cycles can be out of sequence if the needed according to a particular neural network model being executed.
  • the number N can be any number greater than one.
  • sensing cycles of the N sensing cycles represent a set of sensing cycles for at least one sensing cycle preceding the subject sensing cycle and at least one sensing cycle following the subject cycle in time sequence. Examples are described herein in which the number N is an integer equal to or greater than five.
  • the data flow logic is configured to move tile data and at least some trained parameters of the model parameters from the memory 160 to the configurable processor for runs of the neural network, using input units for a given run including tile data for spatially aligned patches of the N arrays.
  • the input units can be moved by direct memory access operations in one DMA operation, or in smaller units moved during available time slots in coordination with the execution of the neural network deployed.
  • Tile data for a sensing cycle as described herein can comprise an array of sensor data having one or more features.
  • the sensor data can comprise two images which are analyzed to identify one of four bases at a base position in a genetic sequence of DNA, RNA, or other genetic material.
  • the tile data can also include metadata about the images and the sensors.
  • the tile data can comprise information about alignment of the images with the clusters such as distance from center information indicating the distance of each pixel in the array of sensor data from the center of a cluster of genetic material on the tile.
  • tile data can also include data produced during execution of the multi-cycle neural network, referred to as intermediate data, which can be reused rather than recomputed during a run of the multi -cycle neural network.
  • intermediate data data produced during execution of the multi-cycle neural network
  • the data flow logic can write intermediate data to the memory 160 in place of the sensor data for a given patch of an array of tile data. Embodiments like this are described in more detail below.
  • a system for analysis of base call sensor output, comprising memory ( e.g ., 160) accessible by the runtime program storing tile data including sensor data for a tile from sensing cycles of a base calling operation.
  • the system includes a neural network processor, such as configurable processor 150 having access to the memory.
  • the neural network processor is configured to execute runs of a neural network using trained parameters to produce classification data for sensing cycles.
  • a run of the neural network is operating on a sequence of N arrays of tile data from respective sensing cycles of N sensing cycles, including a subject cycle, to produce the classification data for the subject cycle.
  • the data flow logic 151 is provided to move tile data and the trained parameters from the memory to the neural network processor for runs of the neural network using input units including data for spatially aligned patches of the N arrays from respective sensing cycles of N sensing cycles.
  • the neural network processor has access to the memory, and includes a plurality of execution clusters, the execution logic clusters in the plurality of execution clusters configured to execute a neural network.
  • the data flow logic has access to the memory and to execution clusters in the plurality of execution clusters, to provide input units of tile data to available execution clusters in the plurality of execution clusters, the input units including a number N of spatially aligned patches of arrays of tile data from respective sensing cycles, including a subject sensing cycle, and to cause the execution clusters to apply the N spatially aligned patches to the neural network to produce output patches of classification data for the spatially aligned patch of the subject sensing cycle, where N is greater than 1.
  • Fig. 2 is a simplified diagram showing aspects of the base calling operation, including functions of a runtime program executed by a host processor.
  • the output of image sensors from a flow cell are provided on lines 200 to image processing threads 201, which can perform processes on images such as resampling, alignment and arrangement in an array of sensor data for the individual tiles, and can be used by processes which calculate a tile cluster mask for each tile in the flow cell, which identifies pixels in the array of sensor data that correspond to clusters of genetic material on the corresponding tile of the flow cell.
  • one example algorithm is based on a process to detect clusters which are unreliable in the early sequencing cycles using a metric derived from the softmax output, and then the data from those wells/clusters is discarded, and no output data is produced for those clusters.
  • a process can identify clusters with high reliability during the first N (e.g ., 25) base-calls, and reject the others.
  • Rejected clusters might be polyclonal or very weak intensity or obscured by fiducials. This procedure can be performed on the host CPU.
  • this information would potentially be used to identify the necessary clusters of interest to be passed back to the CPU, thereby limiting the storage required for intermediate data (7.t ⁇ , the ‘dehydration’ step described below could look at all pixels with wells, or it could be implemented more efficiently to only process pixels with wells/clusters that pass the filter).
  • the outputs of the image processing threads 201 are provided on lines 202 to a dispatch logic 210 in the CPU which routes the arrays of tile data to a data cache 204 on a high speed bus 203, or on high-speed bus 205 to the multi-cluster neural network processor hardware 220, such as the configurable processor of Figure 1, according to the state of the base calling operation.
  • the hardware 220 returns classification data output by the neural network to the dispatch logic 210, which passes the information to the data cache 204, or on lines 211 to threads 202 that perform base call and quality score computations using the classification data, and can arrange the data in standard formats for base call reads.
  • the outputs of the threads 202 that perform base calling and quality score computations are provided on lines 212 to threads 203 that aggregate the base call reads, perform other operations such as data compression, and write the resulting base call outputs to specified destinations for utilization by the customers.
  • the host can include threads (not shown) that perform final processing of the output of the hardware 220 in support of the neural network.
  • the hardware 220 can provide outputs of classification data from a final layer of the multi-cluster neural network.
  • the host processor can execute an output activation function, such as a softmax function, over the classification data to configure the data for use by the base call and quality score threads 202.
  • the host processor can execute input operations (not shown), such as resampling, batch normalization or other adjustments of the tile data prior to input to the hardware 220.
  • Fig. 3 is a simplified diagram of a configuration of a configurable processor such as that of Fig. 1.
  • the configurable processor comprises in FPGA with a plurality of high speed PCIe interfaces.
  • the FPGA is configured with a wrapper 300 which comprises the data flow logic described with reference to Fig. 1.
  • the wrapper 300 manages the interface and coordination with a runtime program in the CPU across the CPU communication link 309 and manages communication with the on-board DRAM 302 ( e.g . memory 160) via DRAM communication link 310.
  • the data flow logic in the wrapper 300 provides patch data retrieved by traversing the arrays of tile data on the on-board DRAM 302 for the number N cycles to a cluster 301 and retrieves process data 315 from the cluster 301 for delivery back to the on-board DRAM 302.
  • the wrapper 300 also manages transfer of data between the on-board DRAM 302 and host memory, for both the input arrays of tile data, and for the output patches of classification data.
  • the wrapper transfers patch data on line 313 to the allocated cluster 301.
  • the wrapper provides trained parameters, such as weights and biases on line 312 to the cluster 301 retrieved from the on-board DRAM 302.
  • the wrapper provides configuration and control data on line 311 to the cluster 301 provided from, or generated in response to, the runtime program on the host via the CPU communication link 309.
  • the cluster can also provide status signals on line 316 to the wrapper 300, which are used in cooperation with control signals from the host to manage traversal of the arrays of tile data to provide spatially aligned patch data, and to execute the multi-cycle neural network over the patch data using the resources of the cluster 301.
  • Each cluster can be configured to provide classification data for base calls in a subject sensing cycle using the tile data of multiple sensing cycles described herein.
  • model data including kernel data like filter weights and biases can be sent from the host CPU to the configurable processor, so that the model can be updated as a function of cycle number.
  • a base calling operation can comprise, for a representative example, on the order of hundreds of sensing cycles.
  • Base calling operation can include paired end reads in some embodiments.
  • the model trained parameters may be updated once every 20 cycles (or other number of cycles), or according to update patterns implemented for particular systems and neural network models.
  • a sequence for a given string in a genetic cluster on a tile includes a first part extending from a first end down (or up) the string, and a second part extending from a second end up (or down) the string
  • the trained parameters can be updated on the transition from the first part to the second part.
  • image data for multiple cycles of sensing data for a tile can be sent from the CPU to the wrapper 300.
  • the wrapper 300 can optionally do some pre-processing and transformation of the sensing data and write the information to the on-board DRAM 302.
  • the input tile data for each sensing cycle can include arrays of sensor data including on the order of 4000 x 3000 pixels per sensing cycle per tile or more, with two features representing colors of two images of the tile, and one or two bytes per feature per pixel.
  • the array of tile data for each run of the multi-cycle neural network can consume on the order of hundreds of megabytes per tile.
  • the tile data also includes an array of DFC data, stored once per tile, or other type of metadata about the sensor data and the tiles.
  • the wrapper allocates a patch to the cluster.
  • the wrapper fetches a next patch of tile data in the traversal of the tile and sends it to the allocated cluster along with appropriate control and configuration information.
  • the cluster can be configured with enough memory on the configurable processor to hold a patch of data including patches from multiple cycles in some systems, that is being worked on in place, and a patch of data that is to be worked on when the current patch of processing is finished using a ping-pong buffer technique or raster scanning technique in various embodiments.
  • an allocated cluster When an allocated cluster completes its run of the neural network for the current patch and produces an output patch, it will signal the wrapper.
  • the wrapper will read the output patch from the allocated cluster, or alternatively the allocated cluster will push the data out to the wrapper. Then the wrapper will assemble output patches for the processed tile in the DRAM 302.
  • the wrapper sends the processed output array for the tile back to the host/CPU in a specified format.
  • the on-board DRAM 302 is managed by memory management logic in the wrapper 300.
  • the runtime program can control the sequencing operations to complete analysis of all the arrays of tile data for all the cycles in the run in a continuous flow to provide real time analysis.
  • Fig. 4 is a diagram of a multi-cycle neural network model which can be executed using the system described herein.
  • the example shown in Fig. 4 can be referred to as a five-cycle input, one-cycle output neural network.
  • the inputs to the multi-cycle neural network model include five spatially aligned patches (e.g ., 400) from the tile data arrays of five sensing cycles of a given tile. Spatially aligned patches have the same aligned row and column dimensions (x,y) as other patches in the set, so that the information relates to the same clusters of genetic material on the tile in sequence cycles.
  • a subject patch is a patch from the array of tile data for cycle N.
  • the set of five spatially aligned patches includes a patch from cycle N-2 preceding the subject patch by two cycles, a patch from cycle N-l preceding the subject patch by one cycle, a patch from cycle N+l following the patch from the subject cycle by one cycle, and a patch from cycle N+2 following the patch from the subject cycle by two cycles.
  • the model includes a segregated stack 401 of layers of the neural network for each of the input patches.
  • stack 401 receives as input, tile data for the patch from cycle N+2, and is segregated from the stacks 402, 403, 404, and 405 so they do not share input data or intermediate data.
  • all of the stacks 410-405 can have identical models, and identical trained parameters (such as trained weights and biases).
  • the models and trained parameters may be different in the different stacks.
  • Stack 402 receives as input, tile data for the patch from cycle N+l.
  • Stack 403 receives as input, tile data for the patch from cycle N.
  • Stack 404 receives as input, tile data for the patch from cycle N-l.
  • Stack 405 receives as input, tile data for the patch from cycle N-2.
  • the layers of the segregated stacks each execute a convolution operation of a kernel including a plurality of filters over the input data for the layer.
  • the patch 400 may include three features.
  • the output of the layer 410 may include many more features, such as 10 to 20 features.
  • the outputs of each of layers 411 to 416 can include any number of features suitable for a particular implementation.
  • the parameters of the filters are trained parameters for the neural network, such as weights and biases.
  • the output feature set (intermediate data) from each of the stacks 401-405 is provided as input to an inverse hierarchy 420 of temporal combinatorial layers, in which the intermediate data from the multiple cycles is combined.
  • the inverse hierarchy 420 includes a first layer including three combinatorial layers 421, 422, 423, each receiving intermediate data from three of the segregated stacks, and a final layer including one combinatorial layer 430 receiving intermediate data from the three temporal layers 421, 422,
  • the output of the final combinatorial layer 430 is an output patch of classification data for clusters located in the corresponding patch of the tile from cycle N.
  • the output patches can be assembled into an output array classification data for the tile for cycle N.
  • the output patch may have sizes and dimensions different from the input patches.
  • the output patch may include pixel-by-pixel data that can be filtered by the host to select cluster data.
  • the output classification data can then be applied to a softmax function 440 (or other output activation function) optionally executed by the host, or on the configurable processor, depending on the particular implementation.
  • a softmax function 440 or other output activation function
  • An output function different from softmax could be used (e.g ., making a base call output parameter according to largest output, then use a learned nonlinear mapping using context/network outputs to give base quality).
  • the output of the softmax function 440 can be provided as base call probabilities for cycle N (450) and stored in host memory to be used in subsequent processing.
  • Other systems may use another function for output probability calculation, e.g., another nonlinear model.
  • the neural network can be implemented using a configurable processor with a plurality of execution clusters so as complete evaluation of one tile cycle within the duration of the time interval, or close to the duration of the time interval, of one sensing cycle, effectively providing the output data in real time.
  • Data flow logic can be configured to distribute input units of tile data and trained parameters to the execution clusters, and to distribute output patches for aggregation in memory.
  • Input units of data for a five-cycle input, one-cycle output neural network like that of Fig. 4 are described with reference to Fig. 5 and Fig. 6 for a base call operation using two- channel sensor data.
  • the base call operation can execute two flows of analyte and two reactions that generate two channels of signals, such as images, which can be processed to identify which one of four bases is located at a current position in the genetic sequence for each cluster of genetic material.
  • a different number of channels of sensing data may be utilized.
  • Fig. 5 shows arrays of tile data for five cycles for a given tile, tile M, used for the purposes of executing a five-cycle input, one-cycle output neural network.
  • the five-cycle input tile data in this example can be written to the on-board DRAM, or other memory in the system which can be accessed by the data flow logic and, for cycle N-2, includes an array 501 for channel 1 and an array 511 for channel 2, for cycle N-l, an array 502 for channel 1 and an array 512 for channel 2, for cycle N, an array 503 for channel 1 and an array 513 for channel 2, for cycle N+l, an array 504 for channel 1 and an array 514 for channel 2, for cycle N+2, an array 505 for channel 1 and an array 515 for channel 2.
  • an array 520 of metadata for the tile can be written once in the memory, in this case a DFC file, included for use as input to the neural network along with each cycle.
  • the data flow logic composes input units, which can be understood with reference to Fig. 6, of tile data that includes spatially aligned patches of the arrays of tile data for each execution cluster configured to execute a run of the neural network over an input patch.
  • An input unit for an allocated execution cluster is composed by the data flow logic by reading spatially aligned patches (e.g ., 601, 602, 611, 612, 620) from each of the arrays 501-505, 511, 515, 520 of tile data for the five input cycles, and delivering them via data paths (schematically 600) to memory on the configurable processor configured for use by the allocated execution cluster.
  • the allocated execution cluster executes a run of the five-cycle input/one-cycle output neural network, and delivers an output patch for the subject cycle N of classification data for the same patch of the tile in the subject cycle N.
  • Fig. 7 illustrates a mapping of patches over an array of tile data for a given tile.
  • input array 700 of tile data has a width of X pixels and a height of Y pixels.
  • the output tile 701 can be reduced by two rows and two columns per layer of the neural network. The reduction by two rows/columns is caused in this example, by the kernel size of 3x3 and the type of (edge) padding in use and can be different in different configurations.
  • the output tile 701 of classification data will have a width of X-L pixels, for a neural network comprising L/2 layers of convolutions of this type.
  • the output tile of classification data will have a height of Y-L pixels for a neural network comprising L/2 layers.
  • L can be 12 pixels.
  • the patch areas are not drawn to scale.
  • the input patches are formed in an overlapping manner to account for lost pixels that result from the convolutions over the patch dimensions.
  • the sizes of the input patches can be chosen according to the particular implementation.
  • an input patch may have a dimension of 76 x 76 pixels, with three channels of one or more bytes each.
  • An output patch may have a dimension of 64 x 64 pixels.
  • base call operation output classifications for A/C/T/G base calls, and the output patch may include four channels of one or more bytes for each pixel representing confidence scores for the classifications.
  • the outputs on line 435 are unnormalized confidence scores for four base calls.
  • the data flow logic can address the array of tile data to patches in a raster scan fashion, or other scanning fashion to provide input patches (e.g ., 705). For example, for the first available cluster, patch P0,0 can be provided. For a next available cluster, patch P0,1 can be provided. This sequence can be continued in a raster pattern until all of the patches of the tile are delivered to available clusters for processing.
  • Output patches (e.g., 706) can be written back in the same address space aligned with their subject input patches in some embodiments, accounting for any differences in the number of bytes per pixel used to encode the data.
  • the output patches have an area (number of pixels) reduced relative to the input patches according to the number of convolution layers, and the nature of the convolutions executed.
  • Fig. 8 is a simplified representation of a stack of a neural network usable in a system like that of Fig. 4 (e.g, 401 and 420).
  • some functions of the neural network are executed on the host (e.g, 800, 802) and other portions of the neural network are executed on the configurable processor (801).
  • a first function can be batch normalization (layer 810) formed on the CPU.
  • batch normalization as a function may be fused into one or more layers, and no separate batch normalization layer may be present.
  • a number of spatial, segregated convolution layers are executed as a first set of convolution layers of the neural network, as discussed above on the configurable processor.
  • the first set of convolution layers applies 2D convolutions spatially.
  • a first spatial convolution 821 is executed, followed by a second spatial convolution 822, followed by a third spatial convolution 823, and so on for a number L/2 of spatially segregated neural network layers in each stack (L is described with reference to Figure 7).
  • the number of spatial layers can be any practical number, which for context may range from a few to more than 20 in different embodiments.
  • kernel weights are stored for example in a (1,6,6,3,L) structure since there are 3 input channels to this layer.
  • the “6” in this structure is due to storing coefficients in the transformed Winograd domain (the kernel size is 3x3 in the spatial domain but expands in the transform domain).
  • the outputs of the stack of spatial layers are provided to temporal layers, including convolution layers 824, 825 executed on the FPGA.
  • Layers 824 and 825 can be convolution layers applying ID convolutions across cycles.
  • the number of temporal layers can be any practical number, which for context may range from a few to more than 20 in different embodiments.
  • the first temporal layer, TEMP CONV O layer 824 reduces the number of cycle channels from 5 to 3, as illustrated in Figure 4.
  • the second temporal layer, layer 825 reduces the number of cycle channels from 3 to 1 as illustrated in Fig. 4, and reduces the number of feature maps to four outputs for each pixel, representing confidence in each base call.
  • the output of the temporal layers is accumulated in output patches and delivered to the host CPU to apply for example, a softmax function 830, or other function to normalize the base call probabilities.
  • Fig. 9 illustrates an alternative implementation showing a 10-input, six-output neural network which can be executed for a base calling operation.
  • tile data for spatially aligned input patches from cycles 0 to 9 are applied to segregated stacks of spatial layers, such as stack 901 for cycle 9.
  • the outputs of the segregated stacks are applied to an inverse hierarchical arrangement of temporal stacks 920, having outputs 935(2) through 1135(7) providing base call classification data for subject cycles 2 through 7.
  • Fig. 10 illustrates one implementation of the specialized architecture of the neural network-based base caller (e.g ., Fig. 4 and Fig. 9) that is used to segregate processing of data for different sequencing cycles. The motivation for using the specialized architecture is described first.
  • the neural network-based base caller processes data for a current sequencing cycle, one or more preceding sequencing cycles, and one or more successive sequencing cycles. Data for additional sequencing cycles provides sequence-specific context. The neural network-based base caller learns the sequence-specific context during training and base call them. Furthermore, data for pre and post sequencing cycles provides second order contribution of pre-phasing and phasing signals to the current sequencing cycle.
  • the specialized architecture comprises spatial convolution layers that do not mix information between sequencing cycles and only mix information within a sequencing cycle.
  • Spatial convolution layers use so-called “segregated convolutions” that operationalize the segregation by independently processing data for each of a plurality of sequencing cycles through a “dedicated, non-shared” sequence of convolutions. The segregated convolutions convolve over data and resulting feature maps of only a given sequencing cycle, i.e., intra-cycle, without convolving over data and resulting feature maps of any other sequencing cycle.
  • the input data comprises (i) current data for a current (time t) sequencing cycle to be base called, (ii) previous data for a previous (time t-1) sequencing cycle, and (iii) next data for a next (time t+1) sequencing cycle.
  • the specialized architecture then initiates three separate data processing pipelines (or convolution pipelines), namely, a current data processing pipeline, a previous data processing pipeline, and a next data processing pipeline.
  • the current data processing pipeline receives as input the current data for the current (time t) sequencing cycle and independently processes it through a plurality of spatial convolution layers to produce a so-called “current spatially convolved representation” as the output of a final spatial convolution layer.
  • the previous data processing pipeline receives as input the previous data for the previous (time t-1) sequencing cycle and independently processes it through the plurality of spatial convolution layers to produce a so-called “previous spatially convolved representation” as the output of the final spatial convolution layer.
  • the next data processing pipeline receives as input the next data for the next (time t+1) sequencing cycle and independently processes it through the plurality of spatial convolution layers to produce a so- called “next spatially convolved representation” as the output of the final spatial convolution layer.
  • the current, previous, and next processing pipelines are executed in parallel.
  • the spatial convolution layers are part of a spatial convolutional network (or subnetwork) within the specialized architecture.
  • the neural network-based base caller further comprises temporal convolution layers that mix information between sequencing cycles, i.e., inter-cycles.
  • the temporal convolution layers receive their inputs from the spatial convolutional network and operate on the spatially convolved representations produced by the final spatial convolution layer for the respective data processing pipelines.
  • the inter-cycle operability freedom of the temporal convolution layers emanates from the fact that the misalignment property, which exists in the image data fed as input to the spatial convolutional network, is purged out from the spatially convolved representations by the stack, or cascade, of segregated convolutions performed by the sequence of spatial convolution layers.
  • Temporal convolution layers use so-called “combinatory convolutions” that groupwise convolve over input channels in successive inputs on a sliding window basis.
  • the successive inputs are successive outputs produced by a previous spatial convolution layer or a previous temporal convolution layer.
  • the temporal convolution layers are part of a temporal convolutional network (or subnetwork) within the specialized architecture.
  • the temporal convolutional network receives its inputs from the spatial convolutional network.
  • a first temporal convolution layer of the temporal convolutional network groupwise combines the spatially convolved representations between the sequencing cycles.
  • subsequent temporal convolution layers of the temporal convolutional network combine successive outputs of previous temporal convolution layers.
  • the output of the final temporal convolution layer is fed to an output layer that produces an output.
  • the output is used to base call one or more clusters at one or more sequencing cycles.
  • the specialized architecture processes information from a plurality of inputs in two stages.
  • segregated convolutions are used to prevent mixing of information between the inputs.
  • combinatory convolutions are used to mix information between the inputs.
  • the results from the second stage are used to make a single inference for the plurality of inputs.
  • the specialized architecture maps the plurality of inputs to the single inference.
  • the single inference can comprise more than one prediction, such as a classification score (e.g ., softmax or pre-softmax base-wise classification scores or base- wise regression scores) for each of the four bases (A, C, T, and G).
  • the inputs have temporal ordering such that each input is generated at a different time step and has a plurality of input channels.
  • the plurality of inputs can include the following three inputs: a current input generated by a current sequencing cycle at time step (t), a previous input generated by a previous sequencing cycle at time step (t-1), and a next input generated by a next sequencing cycle at time step (t+1).
  • each input is respectively derived from the current, previous, and next inputs by one or more previous convolution layers and includes k feature maps.
  • each input can include the following five input channels: a red image channel (in red), a red distance channel (in yellow), a green image channel (in green), a green distance channel (in purple), and a scaling channel (in blue).
  • each input can include k feature maps produced by a previous convolution layer and each feature map is treated as an input channel.
  • Fig. 11 depicts one implementation of segregated layers, each of which can include convolutions.
  • Segregated convolutions process the plurality of inputs at once by applying a convolution filter to each input in parallel.
  • the convolution filter combines input channels in a same input and does not combine input channels in different inputs.
  • a same convolution filter is applied to each input in parallel.
  • a different convolution filter is applied to each input in parallel.
  • each spatial convolution layer comprises a bank of k convolution filters, each of which applies to each input in parallel.
  • Fig. 12A depicts one implementation of combinatory layers, each of which can include convolutions.
  • Fig. 12B depicts another implementation of the combinatory layers, each of which can include convolutions.
  • Combinatory convolutions mix information between different inputs by grouping corresponding input channels of the different inputs and applying a convolution filter to each group. The grouping of the corresponding input channels and application of the convolution filter occurs on a sliding window basis.
  • a window spans two or more successive input channels representing, for instance, outputs for two successive sequencing cycles. Since the window is a sliding window, most input channels are used in two or more windows.
  • the different inputs originate from an output sequence produced by a preceding spatial or temporal convolution layer.
  • the different inputs are arranged as successive outputs and therefore viewed by a next temporal convolution layer as successive inputs.
  • the combinatory convolutions apply the convolution filter to groups of corresponding input channels in the successive inputs.
  • the successive inputs have temporal ordering such that a current input is generated by a current sequencing cycle at time step (t), a previous input is generated by a previous sequencing cycle at time step (t-1), and a next input is generated by a next sequencing cycle at time step (t+1).
  • each successive input is respectively derived from the current, previous, and next inputs by one or more previous convolution layers and includes k feature maps.
  • each input can include the following five input channels: a red image channel (in red), a red distance channel (in yellow), a green image channel (in green), a green distance channel (in purple), and a scaling channel (in blue).
  • each input can include k feature maps produced by a previous convolution layer and each feature map is treated as an input channel.
  • each temporal convolution layer comprises a bank of k convolution filters, each of which applies to the successive inputs on a sliding window basis.
  • Fig. 13 illustrates layers of a neural network, and corresponding kernels and weights to configure the neural network for base calling operation. For example, L number of layers 1302a, 1302b, ..., 1302L are illustrated in Fig. 13. Each layer 1302 of Fig. 13 corresponds to a corresponding layer of the neural network, such as any of the neural network illustrated in Figs.
  • layer 1302b of Fig. 13 may correspond to a layer implementing the second spatial convolution 822 of Fig. 8, and so on, and layer 1302L may correspond to a layer implementing the temporal convolution layer 825 of Fig. 8.
  • each layer 1302 of Fig. 13 comprises a plurality of filters.
  • filters 13041a, 13042a, ..., 1304Na of the layer 1302a are illustrated in Fig. 13.
  • the filters 1304 of Fig. 13 correspond to the various filters illustrated in Fig. 11, for example.
  • various other layers illustrated in Fig. 13 also includes corresponding filters.
  • each filter 1304 comprises a corresponding plurality of kernels 1306 (e.g ., see Fig. 11 for example kernels in a filter).
  • kernels 13061al, 13061a2 For example, kernels 13061al, 13061a2,
  • a kernel can be used in a convolution operation, or another appropriate operation of the neural network that is to be used for base calling.
  • Each kernel comprises one or more matrices (such as a square matrix), such as a 3> ⁇ 3 matrix or a 4x4 matrix (or a matrix of another appropriate dimension) comprising weight coefficients or weights.
  • matrices such as a square matrix
  • Wl, W2, ..., W9 of kernels 1306_lal and 13061 NL1 are illustrated in Fig. 13.
  • Fig. 13 does not illustrate biases
  • one or more kernels, one or more filters, and/or one or more layers can also be associated with corresponding biases.
  • the weights and biases are loaded in the reconfigurable processor 150 (see Fig. 1) along with a topology of the neural network (e.g., from the memory 104 and/or 160), and the neural network topology loaded within the reconfigurable processor 150 is configured with the weights and biases.
  • the configured neural network is used to process cluster data from flow cells, to generate base call classification, as will be discussed in further detail herein.
  • numbers are represented using floating point arithmetic.
  • floating point arithmetic a floating-point number is represented with a fixed number of significant digits (the significand) and scaled using an exponent in some fixed base, where the base for the scaling is normally two, ten, sixteen, or the like.
  • a number that can be represented using floating point arithmetic is of the following form: significand x baseexponent., where the significand is an integer, the base is an integer greater than or equal to two, and exponent is also an integer. For example, 1.2345 is represented as 12345 x 10-4, where 12345 is the significand, 10 is the base, and (-4) is the exponent.
  • floating point refers to the fact that a number’s radix point (i.e., the decimal point, or, more commonly in computers, the binary point) can “float” - that is, it can be placed anywhere relative to the significant digits of the number. This position is indicated as the exponent component.
  • the weights and biases which are to be uploaded in the configurable processor 150 to configure the neural network for base calling, are not represented using the floating-point arithmetic.
  • the configurable processor 150 may be better equipped to handle weights and biases using fixed point arithmetic, and not floating-point arithmetic.
  • a fixed-point number representation is a real data type for a number that has a fixed number of digits after (and sometimes also before) the radix point, where the radix point (also sometimes referred to as the decimal point in English decimal notation) is the symbol used in numerical representations to separate the integer part of a number (to the left of the radix point) from its fractional part (to the right of the radix point).
  • various parameters of the neural network are, thus, represented using fixed point arithmetic, prior to being uploaded to the configurable processor 150.
  • 8 binary bits are used to represent individual weights.
  • a MSB Meri Bit
  • a sign bit e.g ., if the number represents a signed value.
  • the remaining 7 bits can include zero or more integer bits, and zero or more fractional bits, and a sum of the integer and fractional bits is equal to 7.
  • Fig. 14 illustrates a table 1400 depicting example 8-bit binary fixed-point formats, at least some of which can be used to represent parameters (e.g, weights and biases) of a neural network for base calling.
  • the table 1400 includes eight rows, each representing a corresponding signed binary fixed-point format.
  • the fixed-point formats depicted in table 1400 are assumed to be signed fixed-point formats.
  • a MSB is reserved for a sign bit. For example, an MSB of 1 indicates that the number is negative and an MSB of 0 indicates that the number is positive, while in another example an MSB of 1 indicates that the number is positive and an MSB of 0 indicates that the number is negative.
  • the table 1400 and various other embodiments, examples, and figures of this disclosure assume signed binary fixed-point formats (e.g ., where the MSB is reserved for the sign bit), that is not meant to be limiting the scope of this disclosure, and the teachings of this disclosure can also be applicable to unsigned binary fixed-point formats (e.g., where the MSB is not reserved for the sign bit).
  • one or more unsigned binary fixed-point formats may also be used for representing various parameters (such as weights and biases) of a neural network for base calling.
  • the seven bits include (i) zero or more integer bits and (ii) zero or more fractional bits.
  • the sign bit in the various formats is represented using a checkered box, the zero or more integer bits are represented using diagonal boxes, and the zero or more fractional bits are represented using dotted boxes.
  • a black circle represents the radix point or decimal separator between the integer and fractional bits.
  • the first column of the table 1400 graphically illustrates the various fixed-point formats, and the second column of the table 1400 indicates the names of the fixed-point formats.
  • the format name is generally indicated as Sa.b, in which “S” indicates that this is a signed number format where the MSB is reserved for sign bit.
  • the phrase “a” in a Sa.b format indicates a number of integer bits in the format (where “a” can range from 0 to 7), and the phrase “b” in a Sa.b format indicates a number of fractional bits in the format (where “b” can also range from 7 to 0). In the example where the total number of bits is assumed to be 8, the sum of “a” and “b” is always equal to 7 (as the sign bit consumes one bit, the remaining seven bits are shared between the integer bits and the fractional bits).
  • a SO.7 fixed-point format in which “S” indicates that this is a signed number format where the MSB is reserved for sign bit.
  • the number “0” in the SO.7 format indicates that there is zero number of integer bit, and the number “7” in the SO.7 format indicates that there are seven number of fractional bits in this format.
  • the radix point is immediately after the sign bit, thereby indicating that there are no integer bits in this format.
  • SI.6 fixed-point format in which “S” indicates that this is a signed number format where the MSB is reserved for sign bit. Furthermore, there is a single integer bit, and six fractional bits in this format. Thus, there are a total of 7 integer and fractional bits, and one sign bit in this 8-bit fixed point format.
  • the radix point is after the sign bit and after the one integer bit.
  • S2.5 fixed-point format in which “S” indicates that this is a signed number format where the MSB is reserved for sign bit. Furthermore, there are two integer bit, and five fractional bits in this format. Thus, there are a total of 7 integer and fractional bits, and one sign bit in this 8-bit fixed point format.
  • the radix point is after the sign bit and after two integer bits.
  • S indicates that this is a signed number format where the MSB is reserved for sign bit. Furthermore, there are three integer bit, and four fractional bits in this format. Thus, there are a total of 7 integer and fractional bits, and one sign bit in this 8-bit fixed point format.
  • the radix point is after the sign bit and after three integer bits.
  • any given fixed-point format can be stored in two’s complement format.
  • S a.b e.g., where there are a number of integer bits and b number of fractional bits
  • a range of the format is given by:
  • a maximum value that can be represented by the format Sa.b is (2a - 2-b), and a minimum value that can be represented by the format Sa.b is (-2a).
  • a resolution of a given signed binary fixed-point format Sa.b (where the resolution is a smallest step or difference between two consecutive numbers, and is represented by a value of the LSB) is given by:
  • Equations 1 and 2 are derived from “Fixed Point Representation & Fractional Math,” by Oberstar, Erick L. (August 30, 2007), retrieved from http://www. superkits. net/whitepapers/Fixed%20Point%20Representation%20&%20Fractional% 20Math.pdf on March 8, 2021, which is incorporated by reference, as if fully set forth herein.
  • Third and fourth columns of the table 1400 provide a range (e.g, a lower and an upper range, respectively) of the various formats, and a fifth column of the table 1400 provides a resolution of the various formats.
  • the corresponding resolution represents a maximum possible quantization error, when a parameter is quantized in accordance with the format (e.g ., assuming that the parameter fits within the range of the format).
  • the maximum possible quantization error is 0.0078125.
  • the range of the SI.6 format is (-2, 1.984375), which is higher than the range (-1, 0.9921875) of the SO.6 format.
  • the resolution of the SI.6 format is 0.015625, which is lower than the resolution 0.0078125 of the SO.7 format.
  • each of two neural network parameters such as each of two example weights Wexl and Wex2
  • each weight is to be quantized using a corresponding appropriate fixed-point format illustrated in table 1400.
  • the formats illustrated in Fig. 14 are also referred to as quantization formats.
  • the weight Wexl of the neural network for base calling has a decimal value of 0.7
  • the weight Wex2 of the neural network for base calling has a decimal value of 1.5.
  • the weight Wexl falls within the range of each of the eight quantization formats illustrated in Fig. 14, and accordingly, can be quantized in accordance with any of the formats. However, if the weight Wexl is quantized with a format that has a relatively higher number of integer bits, a corresponding quantization error may be large. Merely as an example, if the weight Wexl having the value of 0.7 is quantized using S7.0 format, the value of the weight in this format would be rounded off to 1, with a relatively large quantization error of 0.3. In contrast, quantizing the weight Wexl in the SO.7 format may result in least quantization error ( e.g ., as the resolution for this format is the lowest). Accordingly, the weight Wexl having the example value of 0.7 can be optimally quantized in accordance with the quantization format SO.7.
  • the weight Wex2 having the example value of 1.5 falls within the range of formats SI.6, S2.5, S3.4, and so on, but is outside the range of the format SO.7 (note that the allowed range of SO.7 is -1 to 0.9921875).
  • the weight Wex2 having the example value of 1.5 is quantized in accordance with format SO.7, the weight Wex2 would have to be saturated to the 0.9921875. Accordingly, a quantization noise for quantizing the weight Wex2 to format SO.7 would be (1.5- 0.9921875), or 0.5078125.
  • the weight Wex2 is quantized in accordance with the format SI.6, the weight Wex2 would fit within the allowed range for this format and the maximum quantization error would be 0.015625. Furthermore, if the weight Wex2 is quantized in accordance with the format S2.5, the weight Wex2 would fit within the allowed range for this format but the quantization error might be as high as 0.03125. Accordingly, in an example, the weight Wex2 having the example value of 1.5 can be optimally quantized in accordance with the quantization format SI.6 (e.g., the weight Wex2 fits within the range of format SI.6, and the format SI.6 has minimum possible quantization error among all formats having ranges that fit this weight).
  • the quantization format SI.6 e.g., the weight Wex2 fits within the range of format SI.6, and the format SI.6 has minimum possible quantization error among all formats having ranges that fit this weight.
  • an appropriate (e.g, optimal) quantization format to quantize the weight Wex can be selected based on the ranges and the resolutions depicted within the table 1400. For example, given the example weight Wex, an absolute value of the weight
  • Wex is 1.5.
  • the quantization format selected for this value of Wex is SI. (8-1-1), or SI.6.
  • 22 or 4 is also a power of 2 that is higher than 1.5 - but this is not the power of 2 that is higher than and “nearest” to 1.5. Rather, 21 or 2 is the power of 2 is higher than and nearest to 1.5.
  • equation 3 can be used to select an appropriate quantization format for a neural network parameter (such as a weight or a bias).
  • a lookup table can also be used to select an appropriate quantization format for the neural network parameter, where the lookup table can be generated from the table 1400 of Fig. 14.
  • Fig. 15A illustrates a Look-Up Table (LUT) 1500 usable to select a quantization format for a corresponding neural network parameter
  • Fig. 15B illustrates a scale that represents at least some information of the LUT 1500 of Fig. 15 A.
  • the neural network parameter can be a weight or a bias that is to be used to configure the neural network for base calling.
  • the sixth column of the LUT 1500 of Fig. 15A represents ranges corresponding to the formats depicted in the first and second columns of the LUT 1500.
  • LUT 1500 is generated from the table 1400 of Fig. 14, by adding the sixth column to the table 1400.
  • the format SO.7 is to be selected if the neural network parameter is within the range -1 to 0.9921875.
  • the format SI.6 is to be selected if the neural network parameter is within either of the range -2 to -1, or within the range 0.9921875 to 1.984375, as also depicted in Fig. 15B.
  • the format S2.5 is to be selected if the neural network parameter is within either of the range -4 to -2, or within the range 1.984375 to 3.96875, as also depicted in Fig. 15B.
  • Other ranges for other formats are also illustrated in Figs. 15A and 15B. Note that Fig. 15B is not drawn to the scale, and only a few ranges are illustrated in Fig. 15B for purposes of illustrative clarity.
  • Fig. 15C illustrates another LUT 1550 usable to select a quantization format for a corresponding absolute value of a neural network parameter.
  • the sixth column of the LUT 1500 of Fig. 15A included both positive and negative ranges
  • the sixth column of the LUT 1550 of Fig. 15C includes only positive ranges and assumes that an absolute value of the neural network parameter is assumed when using the LUT 1550.
  • the sixth column of LUT 1550 is an approximation of the sixth column of the LUT 1500.
  • the actual optimal range for the format S3.4 is -4 to -8, and from 3.96875 to 7.9375, as depicted in the LUT 1500 of Fig.
  • LUT 15A is approximated to an absolute value range of 4 to 8 in the LUT 1550 of Fig. 15C.
  • a neural network parameter having a value of 7.99 would be assigned the format S4.3 in accordance with LUT 1500 of Fig. 15 A, but would be assigned the format S3.4 in accordance with LUT 1550 of Fig. 15C.
  • the choice of whether to use the LUT 1500 or 1550 is implementation specific. For example, the slight loss in accuracy in using LUT 1550 over LUT 1500 is compensated by the ease of use of the LUT 1550. In an example, where high accuracy is desired, the LUT 1500 of Fig. 15A may be used; and where ease of use is desired, the LUT 1550 of Fig. 15C may be used.
  • the sixth column of the LUT 1550 of Fig. 15C can also be derived using the above discussed equation 3.
  • Fig. 15D illustrates yet another LUT 1570 usable to select a quantization format for a corresponding absolute value of a neural network parameter.
  • the sixth column of the LUT 1500 of Fig. 15A included both positive and negative ranges
  • the sixth column of the LUT 1570 of Fig. 15D includes only positive ranges and assumes that an absolute value of the neural network parameter is assumed when using the LUT 1570.
  • a range in the sixth column for a specific format is based on an actual upper range of the format depicted in the fourth column of the LUT 1570.
  • equation 3 and/or any of the LUTs 1500, 1550, or 1570 are to be used to select an appropriate (e.g ., optimal) quantization format for a given neural network parameter (e.g., a weight or a bias to be used to configure the neural network), and the choice of equation 3 or any of the LUTs is implementation specific.
  • a given neural network parameter e.g., a weight or a bias to be used to configure the neural network
  • Fig. 16 illustrates a flowchart depicting a method 1600 for grouping of neural network parameters, selecting appropriate (e.g, optimal) quantization formats for individual groups, quantizing the neural network parameters of each group in accordance with the corresponding selected quantization format, and using the quantized neural network parameters to configure a neural network topology for base calling.
  • Operations 1604 to 1620 of the method 1600 can be performed by the CPU 102 (see Fig. 1) and/or by a remote computing machine (e.g, hosted by a deep learning cloud platform) that is remotely located relative to the sequencing machine 100.
  • a remote computing machine e.g, hosted by a deep learning cloud platform
  • solely the CPU 102 can perform the operations 1604-1620.
  • solely the remote computing machine can perform the operations 1604-1620.
  • the CPU 102 and the remote computing machine can perform the operations 1604-1620 (e.g ., some of the operations are performed by the remote computing machine, while some other operations are performed by the CPU 102).
  • operations 1604-1616 e.g., where quantization formats are selected, and corresponding control information are generated
  • operation 1620 e.g., where the actual quantization is performed
  • operations 1604-1608 e.g, grouping of parameters
  • operations 1612-1610 can be performed by the CPU 102 in the local machine. Any other combination of division of operations between the remote and the local machine is also possible.
  • one or more of the operations 1604-1620 are performed by quantization logic being executed by the CPU 102 or by the remote computing machine.
  • a plurality of neural network parameters are received, where the parameters are usable to configure a neural network topology for base calling.
  • the parameters include weights and biases, as discussed.
  • the parameters can be generated and tuned by training a neural network for base calling. Training of a neural network for base calling, to generate neural network parameters such as weights and biases, are discussed in further detail in U.S. Nonprovisional Patent Application No. 16/825,987, titled “TRAINING DATA GENERATION FOR ARTIFICIAL INTELLIGENCE-BASED SEQUENCING,” filed 20 March 2020 (Attorney Docket No. ILLM 1008-16/IP-1693-US), which is incorporated by reference as if fully set forth herein.
  • the parameters can be either received by the CPU 102 within the sequencing machine 100, or by the remote computing machine.
  • the CPU 102 can access a memory storing the parameters, such as the memory 104 (or memory 160).
  • the parameters can be received by the CPU 102 from the remote computing machine over a network, such as the Internet.
  • the method 1600 then proceeds from 1604 to 1608, where the plurality of parameters is grouped in a plurality of groups. Any appropriate criteria may be used to group the parameters.
  • Fig. 17 illustrates an example layer-specific grouping of neural network parameters
  • Fig. 18 illustrates an example filter- specific grouping of neural network parameters
  • Fig. 19 illustrates an example kernel- specific grouping of neural network parameters.
  • Figs. 17-19 illustrate grouping of weights (i.e., specifically discusses weights as an example of neural network parameters), the teachings of these figures can be applied to other types of neural network parameters as well, such as biases. [0186] Referring to each of Figs.
  • the topology of the neural network for base calling comprises a plurality of layers, such as layers 1302a, 1302b, ..., 1302L, as also discussed in further detail with respect to Fig. 13.
  • Each layer 1302 comprises a plurality of filters 1304, and each filter 1304 comprises a plurality of kernels 1306, and each kernel comprises a plurality of weights ( e.g ., the figures illustrate an example kernel 1306_lal comprising weights Wl, ...,
  • each dotted oval shape encompasses components including a corresponding group of weights.
  • weights of the neural network topology are grouped in accordance with corresponding layers in which the weights are included.
  • weights of layer 1302a are grouped in a first weight group 1710a
  • weights of layer 1302b are grouped in a second weight group 1710b
  • weights of layer 1302L are grouped in a Lth weight group 1710L, and so on.
  • weights of each kernel included in each filter of the layer 1302a are grouped in the first weight group 1710a
  • weights of each kernel included in each filter of the layer 1302b are grouped in the second weight group 1710b, and so on.
  • weights of the neural network topology are grouped in accordance with corresponding filters in which the weights are included.
  • weights of various kernels included in a filter 1304 1a of the layer 1302a are grouped in a corresponding weight group 1810 1a
  • weights of various kernels included in a filter 1304_2a of the layer 1302a are grouped in a corresponding weight group 1810_2a
  • weights of various kernels included in a filter 1304_Na of the layer 1302a are grouped in a corresponding weight group 1810_Na
  • weights of various kernels included in a filter 1304 1L of the layer 1302L are grouped in a corresponding weight group 1810 1L
  • weights of kernels of each filter 1304 are grouped in a corresponding specific weight group.
  • weights of the neural network topology are grouped in accordance with corresponding kernels in which the weights are included.
  • weights of a kernel 1306_lal included in a filter 1304 1a of the layer 1302a are grouped in a corresponding weight group 1910 1a
  • weights of a kernel 1306_lak included in the filter 1304 1a of the layer 1302a are grouped in a corresponding weight group 1910_lak
  • weights of a kernel 1306 NL1 included in a filter 1304 NL of the layer 1302L are grouped in a corresponding weight group 1910 NL1, and so on.
  • weights of each kernel are grouped in a corresponding weight group.
  • Figs. 17-19 illustrate example ways to group the weights. There may be other criteria for grouping the weights. For example, weights to process data from a first channel can be grouped in a first group, weights to process data from a second channel can be grouped in a second group, and so on. [0191] In Fig. 17 where a layer-specific weight grouping is done, each weight group includes a relatively higher number of weights. In contrast, In Fig. 19 where a kernel-specific weight grouping is done, each weight group includes a relatively smaller number of weights. In Fig. 18 where a filter-specific weight grouping is done, each weight group includes a relatively moderate number of weights. Thus, referring again to 1608 of Fig. 16, the manner in which the grouping is done can dictate a number of parameters included in each group, and the grouping criteria can be implementation specific. Further discussion on grouping criteria will be presented herein later in turn.
  • Fig. 20 illustrates a kernel-specific grouping of neural network parameters (e.g ., similar to Fig. 19), where a parameter that has a maximum absolute value among all parameters within a corresponding group is identified.
  • example weights of weight groups 1910_lal and 1910 NL1 are illustrated.
  • the weight group 1910_lal comprises weights of the kernel 1306_lal
  • the weight group 1910 NL1 comprises weights of the kernel 1306 NL1.
  • the example weights of the example weight group 1910_lal are 0.89, -0.36, 0.24, 0.25, 0.29, -0.29, 0.01,
  • the example weights of the example weight group 1910_NL1 are 0.93, 0.86,
  • weights of the two weight groups are generally between -1 to +1. However, there is one weight in the weight group 1910_NL1 having value -1.29, which may be considered an outlier.
  • a maximum absolute value among absolute values of all parameters within the group 1910_lal is identified as 0.97
  • a maximum absolute value among absolute values of all parameters within the group 1910 NL1 is identified as 1.29.
  • the method 1600 of Fig. 16 then proceeds from 1612 to 1616, where for each group, (i) a corresponding quantization format is selected (e.g., using equation 3 and/or any of the LUTs 1500, 1550, or 1570), based on the maximum absolute value for the group, and (ii) corresponding control information identifying the selected quantization format is generated.
  • quantization parameters e.g, which may be stored in a memory that is either coupled to the CPU 102 or the remote computing machine
  • the quantization logic e.g, being executed either by the CPU 102 or by the remote computing machine selects, for each group, a corresponding quantization format from the plurality of available quantization formats, based on the maximum absolute value for the group.
  • the quantization format is selected based on the maximum absolute value for the group 1910_lal, where the maximum absolute value for the group 1910 1 al is 0.97.
  • any of equation 3, or LUTs 1500, 1550, or 1570 can be used to select a quantization format for the parameters of the group 1910_lal.
  • the quantization format corresponding to the parameter value 0.97 is SO.7 format, and accordingly, quantization format SO.7 is selected for all the parameters of the group 1910_lal.
  • the quantization format is selected based on the maximum absolute value for the group 1910 NL1, where the maximum absolute value for the group 1910_NL1 is 1.29.
  • any of equation 3, or LUTs 1500, 1550, or 1570 can be used to select a quantization format for the parameters of the group 1910 NL1.
  • the quantization format corresponding to the parameter value 1.29 is SI.6 format, and accordingly, quantization format SI.6 is selected for all the parameters of the group 1910 NL1.
  • control information identifying the selected quantization format is generated. For example, control bits 1920_lal are generated that identifies the selected quantization format SO.7 for the group 1910_lal. Similarly, control bits 1920 NL1 are generated that identifies the selected quantization format SI.6 for the group 1910 NL1.
  • quantization formats are selected for various other parameter groups, and corresponding control information identifying the selected quantization formats are also generated.
  • the method 1600 of Fig. 16 then proceeds from 1616 to 1620, where for each group, individual parameters within the group are quantized in accordance with the selected quantization format.
  • the weights in the weight group 1910_lal may be initially (e.g ., prior to operations 1620 of Fig. 16) in a prequantized number format, such as a floating-point format or another appropriate number format. That is, prior to operations 1620, the weights are prequantized weights (i.e., the weights have not been quantized yet, and the prequantized weights are in an appropriate prequantized number format).
  • the weights of the weight group 19 lO lal are quantized in accordance with the quantization format SO.7 selected for that group.
  • the weights in the weight group 1910 NL1 may be initially in a floating point format (or another appropriate number format).
  • the weights of the weight group 1910 NL1 are quantized in accordance with the quantization format SI.6 selected for that group.
  • Fig. 20 is used as an example to illustrate various operations of the method 1600 (such as operations 1616, 1620), the specific examples illustrated in Fig. 20 are not intended to limit the scope of this disclosure.
  • Fig. 20 illustrates a kernel-specific grouping
  • another appropriate grouping may be used, such as a layer- specific grouping (see Fig. 17), a filter-specific grouping (see Fig. 18), or grouping based on another appropriate criteria (e.g ., channel-specific grouping).
  • Fig. 20 illustrates weights
  • the grouping and quantization is not limited to neural network weights, and the teachings of this disclosure is applicable to other types of neural network parameters, such as biases.
  • one or more configuration files are generated (e.g., either by the CPU 102, or by the remote computing machine) after the operations 1620, where a configuration file that includes quantized parameters and/or the corresponding control information of one or more groups.
  • a runtime logic or runtime program (discussed herein earlier) being executed in the CPU 102 generates the configuration file(s) that includes the quantized parameters of individual groups, as well as the control information for the individual groups.
  • a quantization format selected for a group is applicable to all parameters of the group. For example, for the group 1910 NL1, ideally, the format SI.6 is optimal for the weight -1.29, and the format SO.7 is optimal for the remaining weights. However, if individual weights of the group 1910 NL1 are to be assigned corresponding different quantization formats, then each weight of the group has to have corresponding control bits, which will increase the control signal overhead. Accordingly, instead of selecting individual formats for individual weights in a group, the entire group is assigned a common quantization format, thereby decreasing the control signal overhead. All weights in the group 1910 NL1 are to be quantized in accordance with the selected quantization format for the group 1910 NL1.
  • a decision on a size of the group may be based on a desired level of control signal overhead and/or desired level of quantization error, and may be implementation specific.
  • the method 1600 proceeds to 1640. It may be noted that in case the operations 1604 - 1620 are performed remotely by a remote computing machine, the quantized weights at the end of operations 1620 are transmitted from the remote computing machine to the sequencing machine 100, and stored within the memory 103 and/or memory 160.
  • Operation 1640 is performed by the CPU 102 and/or the data flow logic 151 (see Fig. 1).
  • the neural network topology e.g, that is to be used for base calling
  • the quantized parameters are loaded to the configurable processor 150, along with the control information.
  • loading the quantized parameters and the control information involves loading the configuration file(s) that includes the quantized parameters and the associated control information.
  • the method 1600 then proceeds from 1640 to 1644, where each loaded parameter is interpreted in accordance with the corresponding control information (e.g, within the configurable processor 150), and the neural network is configured using the interpreted parameters.
  • each quantized parameter is a corresponding 8-bit binary number (e.g, assuming that 8-bit quantization formats are used), and without the control information, the 8-bit binary numbers are meaningless.
  • 11111111 quantized with a SO.7 format is different from 11111111 quantized with a S 1.6 format (e.g. , the radix or decimal points for these two different formats are placed at different corresponding positions).
  • a mere 11111111, without accompanying control information indicating the format used for associated quantization would not convey any meaningful information.
  • the corresponding control information identifying the corresponding selected quantization format is also loaded in the configurable processor 150; and at 1644, the parameters are interpreted using the corresponding control information.
  • the various 8-bit numbers representing the weights of the weight group 1910_lal were quantized using the format SO.7, and the corresponding control bits 1920_lal identify the format SO.7. Accordingly, at 1644, the 8-bit weights of the weight group 1910_lal are interpreted in accordance with the format SO.7. For example, when processing the 8-bit weights of the weight group 1910_lal, the configurable processor 150 knows that for each 8-bit weight in this group, the MSB is the sign bit, the radix or decimal point is immediately after the sign bit, and the remaining 7 bits are fractional bits ( e.g ., see first row of Fig.
  • the configurable processor 150 interprets and processes the 8-bit weights of this group accordingly.
  • the configurable processor 150 knows that for each 8-bit weight in this group, the MSB is the sign bit, followed by an integer bit, then the radix or decimal point, and the remaining 6 bits are fractional bits (e.g., see second row of Fig. 15 A) - the configurable processor 150 interprets and processes the 8-bit weights of this group accordingly.
  • the configurable processor 150 shifts the radix point of the weights, based on the associated control information. For example, when processing weights of the group 1910_lal that is quantized in accordance with the format SO.7, the configurable processor 150 shifts the radix point to immediately after the sign bit (which is the MSB). When processing weights of the group 1910_NL1 that is quantized in accordance with the format SI.6, the configurable processor 150 shifts the radix point between the second and third bits (e.g, the radix point is now after the MSB or sign bit, and a single integer bit). Thus, the configurable processor 150 shifts the radix point within a weight, depending on the quantization format used for the weight.
  • the interpreted parameters (such as the interpreted weights and biases) are used by the configurable processor 150 to configure the neural network topology (e.g, that was also loaded at 1640).
  • the method 1600 then proceeds from 1644 to 1648, where the configured neural network is applied on sensor data generated by various sensors of the sequencing machine 100, to produce base call classification data.
  • Application of a configured neural network on sensor data generated by various sensors of the sequencing machine 100, to produce base call classification data is discussed in further detail in co-pending U.S. Nonprovisional Patent Application No. 16/826,126, titled “ARTIFICIAL INTELLIGENCE-BASED BASE CALLING,” filed 20 March 2020 (Attorney Docket No. ILLM 1008-18/IP- 1744-US), which is incorporated by reference as if fully set forth herein.
  • a parameter such as an outlier
  • a next higher quantization format e.g, having higher number of integer bits
  • SI.6 the quantization format SI.6. If that “-1.29” outlier weight was not considered or ignored when selecting the quantization format, then the group could have been assigned the quantization format SO.7.
  • the entire weight group is assigned the quantization format SI.6, which increases quantization noise for individual weights of that weight group.
  • it may be preferable to disregard such an outlier when selecting the quantization format e.g ., to reduce the overall quantization noise for all weights of the group.
  • the quantization format SO.7 may be selected for weight group 1910 NL1.
  • the weight -1.29 is then saturated to -1, which is the minimum allowed value for this quantization format. This results in higher quantization noise for the outlier weight, but overall higher quantization resolution (or lower quantization noise) for all other weights of that weight group.
  • the method 1600 may be modified, to apply any appropriate criteria to select a quantization format. For example, if there is only one outlier outside a quantization format range, the outlier is ignored when selecting the quantization format. For example, as there is only one weight (e.g, -1.29) that is outside the range of the quantization format SO.7, the quantization format SO.7 is selected for the weight group 1910 NL1 (the weight -1.29 is then saturated to -1). However, in an example, if there is more than one outlier outside the quantization format range, the outliers are not ignored, and the next higher quantization format (e.g, with higher number of integers) is selected.
  • the next higher quantization format e.g, with higher number of integers
  • a threshold value may be pre-specified (e.g, each quantization format can have a corresponding threshold value).
  • the threshold value for the quantization format SO.7 may be 0.2.
  • the next higher quantization format e.g, quantization format SI.6 is selected.
  • the next higher quantization format e.g, quantization format SI.6 is selected.
  • Fig. 21 illustrates a multiplication and an accumulation operation for an example input data quantization format and an example weight quantization format.
  • input data 2102 is in a format SO.7.
  • the input data 2102 may be a tensor in a matrix form, merely as an example, and individual entries of the input tensor is quantized in the SO.7 format.
  • a kernel comprising weights 2104 are to be convoluted with the input 2102, and individual ones of the weights 2104 are also in the SO.7 format. Assume a convolution operation that involves multiplication of individual weights with individual entries of the input matrix.
  • values in SO.7 format can take values in the range from -1 to +0.9921875, and in steps of 2-7 or 0.0078125, as illustrated in table 1400.
  • the quantization is performed to symmetrically limit the SO.7 format range, so that it is in the range from -0.9921875 to +0.9921875 in steps of 0.0078125 ( e.g ., see LUT 1570 in Fig. 15D), and -1 is excluded from this format (e.g., as discussed with respect to Fig. 15D), so that only 255 values are possible within this format.
  • output 2108 is a multiplication (e.g, block 2106) of the input 2102 in SO.7 format and weight 2104 in SO.7 format
  • the output 2108 also has a specific range.
  • an accumulator 2120 accumulates outputs 2108 of multiple such multiplications. Accordingly, as the accumulator output 2122 is a sum of multiple such outputs, the accumulator output 2122 can be outside the range of the SO.14 format. Merely as an example, if there are four consecutive outputs 2108 having values of 0.98, 0.88, 0.85, and 0.87, the accumulator output from accumulating the four outputs 2108 would be 3.58, which would be outside the range allowed by the SO.14 format, and the accumulator output has to saturate to the maximum value allowed by the SO.14 format.
  • the accumulator output has a format that has a higher number of integers (e.g, higher than the zero number of integer present in the SO.14 format of the output 2108).
  • the accumulator output is in accordance with the S4.14 format.
  • S4.14 format With a S4.14 format, at least 16 outputs 2108 (e.g, each having maximum possible value in the SO.14 format) can be summed and accumulated, because 24 or about 16 is a maximum number that can be represented by the S4.14 format.
  • more than 16 number of outputs 2108 can be accumulated by the accumulator 2120 without saturating, as many of the outputs 2108 may not have the maximum possible value in the SO.14 format, and some of the outputs 2108 are positive while some are negative, thereby averaging out and decreasing the value of the accumulator output.
  • Fig. 22 illustrates a multiplication and an accumulation operation for an example input data quantization format and an example weight quantization format.
  • input data 2202 is in a format SO.7, similar to Fig. 21.
  • a kernel comprising weights 2204 are to be convoluted with the input 2202.
  • individual ones of the weights 2204 are in the SI.6 format (note that in Fig. 21, the weights were stored in a different format).
  • a convolution operation that involves multiplication of individual weights with individual entries of the input matrix.
  • input 2202 in SO.7 format can take values in the range from -1 to +0.9921875, and in steps of 2-7 or 0.0078125, as illustrated in table 1400.
  • the quantization is performed to symmetrically limit the SO.7 format range, so that it is in the range from -0.9921875 to +0.9921875 in steps of 0.0078125, and -1 is excluded from this format ( e.g ., as discussed with respect to Fig. 15D), so that only 255 values are possible within this format.
  • Weight values 2204 in SI.6 format can take values in the range from -2 to +1.984375, and in steps of 2-6, as illustrated in table 1400. Note that the resolution of the weights 2204 is 2- 6, whereas the resolution of the weights 2104 of Fig. 21 is 2-7 - accordingly, quantization noise for the weights 2204 is larger than the quantization noise for the weights 2104.
  • output 2208 is a multiplication (e.g., block 2206) of the input 2202 in SO.7 format and weight 2204 in SI.6 format
  • the output 2208 also has a specific range.
  • the output 2208 of Fig. 22 has a higher range, but a lower precision or resolution.
  • an accumulator 2220 accumulates outputs 2208 of multiple such multiplications. Accordingly, as the accumulator output 2222 is a sum of multiple such outputs 2208, the accumulator output can be outside the range of the SI.13 format, as also discussed with respect to Fig. 21. Accordingly, to prevent saturation, the accumulator output has a format that has a higher number of integers ( e.g . , higher than the one integer present in the S 1.13 format of the output 2208). Merely as an example, the accumulator output 222 are in accordance with S5.13 format.
  • the S5.13 format output 2222 of the accumulator 2220 is rounded off by a rounding operator 2240 to a SO.7 format of the final output 2244.
  • the 8 most significant fractional bits are rounded off to the 7 fractional bits of the SO.7 format.
  • Fig. 23 is a block diagram of a base calling system 2300 in accordance with one implementation.
  • the base calling system 2300 may operate to obtain any information or data that relates to at least one of a biological or chemical substance.
  • the base calling system 2300 is a workstation that may be similar to a bench-top device or desktop computer. For example, a majority (or all) of the systems and components for conducting the desired reactions can be within a common housing 2316.
  • the base calling system 2300 is a nucleic acid sequencing system (or sequencer) configured for various applications, including but not limited to de novo sequencing, resequencing of whole genomes or target genomic regions, and metagenomics. The sequencer may also be used for DNA or RNA analysis.
  • the base calling system 2300 may also be configured to generate reaction sites in a biosensor.
  • the base calling system 2300 may be configured to receive a sample and generate surface attached clusters of clonally amplified nucleic acids derived from the sample. Each cluster may constitute or be part of a reaction site in the biosensor.
  • the exemplary base calling system 2300 may include a system receptacle or interface 2312 that is configured to interact with a biosensor 2302 to perform desired reactions within the biosensor 2302.
  • the biosensor 2302 is loaded into the system receptacle 2312.
  • a cartridge that includes the biosensor 2302 may be inserted into the system receptacle 2312 and in some states the cartridge can be removed temporarily or permanently.
  • the cartridge may include, among other things, fluidic control and fluidic storage components.
  • the base calling system 2300 is configured to perform a large number of parallel reactions within the biosensor 2302.
  • the biosensor 2302 includes one or more reaction sites where desired reactions can occur.
  • the reaction sites may be, for example, immobilized to a solid surface of the biosensor or immobilized to beads (or other movable substrates) that are located within corresponding reaction chambers of the biosensor.
  • the reaction sites can include, for example, clusters of clonally amplified nucleic acids.
  • the biosensor 2302 may include a solid-state imaging device (e.g ., CCD or CMOS imager) and a flow cell mounted thereto.
  • the flow cell may include one or more flow channels that receive a solution from the base calling system 2300 and direct the solution toward the reaction sites.
  • the biosensor 2302 can be configured to engage a thermal element for transferring thermal energy into or out of the flow channel.
  • the base calling system 2300 may include various components, assemblies, and systems (or sub-systems) that interact with each other to perform a predetermined method or assay protocol for biological or chemical analysis.
  • the base calling system 2300 includes a system controller 2304 that may communicate with the various components, assemblies, and sub-systems of the base calling system 2300 and also the biosensor 2302.
  • the base calling system 2300 may also include a fluidic control system 2306 to control the flow of fluid throughout a fluid network of the base calling system 2300 and the biosensor 2302; a fluidic storage system 2308 that is configured to hold all fluids (e.g., gas or liquids) that may be used by the bioassay system; a temperature control system 2310 that may regulate the temperature of the fluid in the fluid network, the fluidic storage system 2308, and/or the biosensor 2302; and an illumination system 2309 that is configured to illuminate the biosensor 2302.
  • the cartridge may also include fluidic control and fluidic storage components.
  • the base calling system 2300 may include a user interface 2314 that interacts with the user.
  • the user interface 2314 may include a display 2313 to display or request information from a user and a user input device 2315 to receive user inputs.
  • the display 2313 and the user input device 2315 are the same device.
  • the user interface 2314 may include a touch-sensitive display configured to detect the presence of an individual's touch and also identify a location of the touch on the display.
  • other user input devices 2315 may be used, such as a mouse, touchpad, keyboard, keypad, handheld scanner, voice-recognition system, motion-recognition system, and the like.
  • the base calling system 2300 may communicate with various components, including the biosensor 2302 (e.g ., in the form of a cartridge), to perform the desired reactions.
  • the base calling system 2300 may also be configured to analyze data obtained from the biosensor to provide a user with desired information.
  • the system controller 2304 may include any processor-based or microprocessor- based system, including systems using microcontrollers, reduced instruction set computers (RISC), application specific integrated circuits (ASICs), field programmable gate array (FPGAs), logic circuits, and any other circuit or processor capable of executing functions described herein.
  • RISC reduced instruction set computers
  • ASICs application specific integrated circuits
  • FPGAs field programmable gate array
  • the system controller 2304 executes a set of instructions that are stored in one or more storage elements, memories, or modules in order to at least one of obtain and analyze detection data.
  • Detection data can include a plurality of sequences of pixel signals, such that a sequence of pixel signals from each of the millions of sensors (or pixels) can be detected over many base calling cycles.
  • Storage elements may be in the form of information sources or physical memory elements within the base calling system 2300.
  • the set of instructions may include various commands that instruct the base calling system 2300 or biosensor 2302 to perform specific operations such as the methods and processes of the various implementations described herein.
  • the set of instructions may be in the form of a software program, which may form part of a tangible, non-transitory computer readable medium or media.
  • the terms “software” and “firmware” are interchangeable and include any computer program stored in memory for execution by a computer, including RAM memory, ROM memory, EPROM memory, EEPROM memory, and non-volatile RAM (NVRAM) memory.
  • RAM memory random access memory
  • ROM memory read only memory
  • EPROM memory electrically erasable programmable read-only memory
  • EEPROM memory electrically erasable programmable read-only memory
  • NVRAM non-volatile RAM
  • the software may be in various forms such as system software or application software. Further, the software may be in the form of a collection of separate programs, or a program module within a larger program or a portion of a program module. The software also may include modular programming in the form of object-oriented programming. After obtaining the detection data, the detection data may be automatically processed by the base calling system 2300, processed in response to user inputs, or processed in response to a request made by another processing machine (e.g., a remote request through a communication link).
  • the system controller 2304 includes an analysis module 2438 (see Fig. 24). In other implementations, system controller 2304 does not include the analysis module 2438 and instead has access to the analysis module 2438 ( e.g ., the analysis module 2438 may be separately hosted on cloud).
  • the system controller 2304 may be connected to the biosensor 2302 and the other components of the base calling system 2300 via communication links.
  • the system controller 2304 may also be communicatively connected to off-site systems or servers.
  • the communication links may be hardwired, corded, or wireless.
  • the system controller 2304 may receive user inputs or commands, from the user interface 2314 and the user input device 2315.
  • the fluidic control system 2306 includes a fluid network and is configured to direct and regulate the flow of one or more fluids through the fluid network.
  • the fluid network may be in fluid communication with the biosensor 2302 and the fluidic storage system 2308.
  • select fluids may be drawn from the fluidic storage system 2308 and directed to the biosensor 2302 in a controlled manner, or the fluids may be drawn from the biosensor 2302 and directed toward, for example, a waste reservoir in the fluidic storage system 2308.
  • the fluidic control system 2306 may include flow sensors that detect a flow rate or pressure of the fluids within the fluid network. The sensors may communicate with the system controller 2304.
  • the temperature control system 2310 is configured to regulate the temperature of fluids at different regions of the fluid network, the fluidic storage system 2308, and/or the biosensor 2302.
  • the temperature control system 2310 may include a thermocycler that interfaces with the biosensor 2302 and controls the temperature of the fluid that flows along the reaction sites in the biosensor 2302.
  • the temperature control system 2310 may also regulate the temperature of solid elements or components of the base calling system 2300 or the biosensor 2302.
  • the temperature control system 2310 may include sensors to detect the temperature of the fluid or other components. The sensors may communicate with the system controller 2304.
  • the fluidic storage system 2308 is in fluid communication with the biosensor 2302 and may store various reaction components or reactants that are used to conduct the desired reactions therein.
  • the fluidic storage system 2308 may also store fluids for washing or cleaning the fluid network and biosensor 2302 and for diluting the reactants.
  • the fluidic storage system 2308 may include various reservoirs to store samples, reagents, enzymes, other biomolecules, buffer solutions, aqueous, and non-polar solutions, and the like.
  • the fluidic storage system 2308 may also include waste reservoirs for receiving waste products from the biosensor 2302.
  • the cartridge may include one or more of a fluidic storage system, fluidic control system or temperature control system.
  • a cartridge can have various reservoirs to store samples, reagents, enzymes, other biomolecules, buffer solutions, aqueous, and non-polar solutions, waste, and the like.
  • a fluidic storage system, fluidic control system or temperature control system can be removably engaged with a bioassay system via a cartridge or other biosensor.
  • the illumination system 2309 may include a light source (e.g ., one or more LEDs) and a plurality of optical components to illuminate the biosensor.
  • light sources may include lasers, arc lamps, LEDs, or laser diodes.
  • the optical components may be, for example, reflectors, dichroics, beam splitters, collimators, lenses, filters, wedges, prisms, mirrors, detectors, and the like.
  • the illumination system 2309 may be configured to direct an excitation light to reaction sites.
  • fluorophores may be excited by green wavelengths of light, as such the wavelength of the excitation light may be approximately 532 nm.
  • the illumination system 2309 is configured to produce illumination that is parallel to a surface normal of a surface of the biosensor 2302. In another implementation, the illumination system 2309 is configured to produce illumination that is off-angle relative to the surface normal of the surface of the biosensor 2302. In yet another implementation, the illumination system 2309 is configured to produce illumination that has plural angles, including some parallel illumination and some off- angle illumination.
  • the system receptacle or interface 2312 is configured to engage the biosensor 2302 in at least one of a mechanical, electrical, and fluidic manner.
  • the system receptacle 2312 may hold the biosensor 2302 in a desired orientation to facilitate the flow of fluid through the biosensor 2302.
  • the system receptacle 2312 may also include electrical contacts that are configured to engage the biosensor 2302 so that the base calling system 2300 may communicate with the biosensor 2302 and/or provide power to the biosensor 2302.
  • the system receptacle 2312 may include fluidic ports (e.g., nozzles) that are configured to engage the biosensor 2302.
  • the biosensor 2302 is removably coupled to the system receptacle 2312 in a mechanical manner, in an electrical manner, and also in a fluidic manner.
  • the base calling system 2300 may communicate remotely with other systems or networks or with other bioassay systems 2300. Detection data obtained by the bioassay system(s) 2300 may be stored in a remote database.
  • Fig. 24 is a block diagram of the system controller 2304 that can be used in the system of Fig. 23.
  • the system controller 2304 includes one or more processors or modules that can communicate with one another.
  • Each of the processors or modules may include an algorithm (e.g, instructions stored on a tangible and/or non-transitory computer readable storage medium) or sub-algorithms to perform particular processes.
  • the system controller 2304 is illustrated conceptually as a collection of modules, but may be implemented utilizing any combination of dedicated hardware boards, DSPs, processors, etc. Alternatively, the system controller 2304 may be implemented utilizing an off-the-shelf PC with a single processor or multiple processors, with the functional operations distributed between the processors.
  • a communication port 2420 may transmit information (e.g ., commands) to or receive information (e.g., data) from the biosensor 2302 (Fig. 23) and/or the sub-systems 2306, 2308, 2310 (Fig. 23). In implementations, the communication port 2420 may output a plurality of sequences of pixel signals. A communication port 2420 may receive user input from the user interface 2314 (Fig.
  • Data from the biosensor 2302 or sub-systems 2306, 2308, 2310 may be processed by the system controller 2304 in real-time during a bioassay session. Additionally, or alternatively, data may be stored temporarily in a system memory during a bioassay session and processed in slower than real-time or off-line operation.
  • the system controller 2304 may include a plurality of modules 2431-2439 that communicate with a main control module 2430.
  • the main control module 2430 may communicate with the user interface 2314 (Fig. 23).
  • the modules 2431-2439 are shown as communicating directly with the main control module 2430, the modules 2431-2439 may also communicate directly with each other, the user interface 2314, and the biosensor 2302. Also, the modules 2431-2439 may communicate with the main control module 2430 through the other modules.
  • the plurality of modules 2431-2439 include system modules 2431-2433, 2439 that communicate with the sub-systems 2306, 2308, 2310, and 2309, respectively.
  • the fluidic control module 2431 may communicate with the fluidic control system 2306 to control the valves and flow sensors of the fluid network for controlling the flow of one or more fluids through the fluid network.
  • the fluidic storage module 2432 may notify the user when fluids are low or when the waste reservoir is at or near capacity.
  • the fluidic storage module 2432 may also communicate with the temperature control module 2433 so that the fluids may be stored at a desired temperature.
  • the illumination module 2439 may communicate with the illumination system 2309 to illuminate the reaction sites at designated times during a protocol, such as after the desired reactions (e.g, binding events) have occurred. In some implementations, the illumination module 2439 may communicate with the illumination system 2309 to illuminate the reaction sites at designated angles.
  • the plurality of modules 2431-2439 may also include a device module 2434 that communicates with the biosensor 2302 and an identification module 2435 that determines identification information relating to the biosensor 2302.
  • the device module 2434 may, for example, communicate with the system receptacle 2312 to confirm that the biosensor has established an electrical and fluidic connection with the base calling system 2300.
  • the identification module 2435 may receive signals that identify the biosensor 2302.
  • the identification module 2435 may use the identity of the biosensor 2302 to provide other information to the user. For example, the identification module 2435 may determine and then display a lot number, a date of manufacture, or a protocol that is recommended to be run with the biosensor 2302.
  • the plurality of modules 2431-2439 also includes an analysis module 2438 (also called signal processing module or signal processor) that receives and analyzes the signal data (e.g ., image data) from the biosensor 2302.
  • Analysis module 2438 includes memory (e.g ., RAM or Flash) to store detection data.
  • Detection data can include a plurality of sequences of pixel signals, such that a sequence of pixel signals from each of the millions of sensors (or pixels) can be detected over many base calling cycles.
  • the signal data may be stored for subsequent analysis or may be transmitted to the user interface 2314 to display desired information to the user.
  • the signal data may be processed by the solid-state imager (e.g., CMOS image sensor) before the analysis module 2438 receives the signal data.
  • the solid-state imager e.g., CMOS image sensor
  • the analysis module 2438 is configured to obtain image data from the light detectors at each of a plurality of sequencing cycles.
  • the image data is derived from the emission signals detected by the light detectors and process the image data for each of the plurality of sequencing cycles through a neural network (e.g, a neural network-based template generator 2448, a neural network-based base caller 2458 (e.g, Fig. 4 and Fig. 10), and/or a neural network-based quality scorer 2468) and produce a base call for at least some of the analytes at each of the plurality of sequencing cycle.
  • a neural network e.g, a neural network-based template generator 2448, a neural network-based base caller 2458 (e.g, Fig. 4 and Fig. 10), and/or a neural network-based quality scorer 2468
  • Protocol modules 2436 and 2437 communicate with the main control module 2430 to control the operation of the sub-systems 2306, 2308, and 2310 when conducting predetermined assay protocols.
  • the protocol modules 2436 and 2437 may include sets of instructions for instructing the base calling system 2300 to perform specific operations pursuant to predetermined protocols.
  • the protocol module may be a sequencing-by-synthesis (SBS) module 2436 that is configured to issue various commands for performing sequencing-by synthesis processes.
  • SBS sequencing-by-synthesis
  • extension of a nucleic acid primer along a nucleic acid template is monitored to determine the sequence of nucleotides in the template.
  • the underlying chemical process can be polymerization ( e.g .
  • fluorescently labeled nucleotides are added to a primer (thereby extending the primer) in a template dependent fashion such that detection of the order and type of nucleotides added to the primer can be used to determine the sequence of the template.
  • commands can be given to deliver one or more labeled nucleotides, DNA polymerase, etc., into/through a flow cell that houses an array of nucleic acid templates.
  • the nucleic acid templates may be located at corresponding reaction sites.
  • the nucleotides can further include a reversible termination property that terminates further primer extension once a nucleotide has been added to a primer.
  • a nucleotide analog having a reversible terminator moiety can be added to a primer such that subsequent extension cannot occur until a deblocking agent is delivered to remove the moiety.
  • a command can be given to deliver a deblocking reagent to the flow cell (before or after detection occurs).
  • One or more commands can be given to effect wash(es) between the various delivery steps.
  • the cycle can then be repeated n times to extend the primer by n nucleotides, thereby detecting a sequence of length n.
  • Exemplary sequencing techniques are described, for example, in Bentley et ak, Nature 456:53-59 (2008); WO 04/018497; US 7,057,026; WO 91/06678; WO 07/123744; US 7,329,492; US 7,211,414; US 7,315,019; US 7,405,281, and US 2008/014708082, each of which is incorporated herein by reference.
  • nucleotide delivery step of an SBS cycle either a single type of nucleotide can be delivered at a time, or multiple different nucleotide types (e.g, A, C, T and G together) can be delivered.
  • nucleotide delivery configuration where only a single type of nucleotide is present at a time, the different nucleotides need not have distinct labels since they can be distinguished based on temporal separation inherent in the individualized delivery. Accordingly, a sequencing method or apparatus can use single color detection. For example, an excitation source need only provide excitation at a single wavelength or in a single range of wavelengths.
  • sites that incorporate different nucleotide types can be distinguished based on different fluorescent labels that are attached to respective nucleotide types in the mixture.
  • four different nucleotides can be used, each having one of four different fluorophores.
  • the four different fluorophores can be distinguished using excitation in four different regions of the spectrum.
  • four different excitation radiation sources can be used.
  • fewer than four different excitation sources can be used, but optical filtration of the excitation radiation from a single source can be used to produce different ranges of excitation radiation at the flow cell.
  • fewer than four different colors can be detected in a mixture having four different nucleotides.
  • pairs of nucleotides can be detected at the same wavelength, but distinguished based on a difference in intensity for one member of the pair compared to the other, or based on a change to one member of the pair ( e.g ., via chemical modification, photochemical modification or physical modification) that causes apparent signal to appear or disappear compared to the signal detected for the other member of the pair.
  • Exemplary apparatus and methods for distinguishing four different nucleotides using detection of fewer than four colors are described for example in US Pat. App. Ser. Nos. 61/538,294 and 61/619,878, which are incorporated herein by reference in their entireties.
  • U.S. Application No. 13/624,200 which was filed on September 21, 2012, is also incorporated by reference in its entirety.
  • the plurality of protocol modules may also include a sample-preparation (or generation) module 2437 that is configured to issue commands to the fluidic control system 2306 and the temperature control system 2310 for amplifying a product within the biosensor 2302.
  • a sample-preparation (or generation) module 2437 may issue instructions to the fluidic control system 2306 to deliver necessary amplification components to reaction chambers within the biosensor 2302.
  • the reaction sites may already contain some components for amplification, such as the template DNA and/or primers.
  • the amplification module 2437 may instruct the temperature control system 2310 to cycle through different temperature stages according to known amplification protocols.
  • the amplification and/or nucleotide incorporation is performed isothermally.
  • the SBS module 2436 may issue commands to perform bridge PCR where clusters of clonal amplicons are formed on localized areas within a channel of a flow cell. After generating the amplicons through bridge PCR, the amplicons may be “linearized” to make single stranded template DNA, or sstDNA, and a sequencing primer may be hybridized to a universal sequence that flanks a region of interest. For example, a reversible terminator-based sequencing by synthesis method can be used as set forth above or as follows.
  • Each base calling or sequencing cycle can extend an sstDNA by a single base which can be accomplished for example by using a modified DNA polymerase and a mixture of four types of nucleotides.
  • the different types of nucleotides can have unique fluorescent labels, and each nucleotide can further have a reversible terminator that allows only a single-base incorporation to occur in each cycle. After a single base is added to the sstDNA, excitation light may be incident upon the reaction sites and fluorescent emissions may be detected. After detection, the fluorescent label and the terminator may be chemically cleaved from the sstDNA. Another similar base calling or sequencing cycle may follow.
  • the SBS module 2436 may instruct the fluidic control system 2306 to direct a flow of reagent and enzyme solutions through the biosensor 2302.
  • Exemplary reversible terminator-based SBS methods which can be utilized with the apparatus and methods set forth herein are described in US Patent Application Publication No. 2007/0166705 Al, US Patent Application Publication No. 2006/0188901 Al, US Patent No. 7,057,026, US Patent Application Publication No. 2006/0240439 Al, PCT Publication No. WO 05/065814, and PCT Publication No. WO 06/064199, each of which is incorporated herein by reference in its entirety.
  • the amplification and SBS modules may operate in a single assay protocol where, for example, template nucleic acid is amplified and subsequently sequenced within the same cartridge.
  • the base calling system 2300 may also allow the user to reconfigure an assay protocol.
  • the base calling system 2300 may offer options to the user through the user interface 2314 for modifying the determined protocol. For example, if it is determined that the biosensor 2302 is to be used for amplification, the base calling system 2300 may request a temperature for the annealing cycle. Furthermore, the base calling system 2300 may issue warnings to a user if a user has provided user inputs that are generally not acceptable for the selected assay protocol.
  • the biosensor 2302 includes millions of sensors (or pixels), each of which generates a plurality of sequences of pixel signals over successive base calling cycles.
  • the analysis module 2438 detects the plurality of sequences of pixel signals and attributes them to corresponding sensors (or pixels) in accordance to the row-wise and/or column-wise location of the sensors on an array of sensors.
  • Each sensor in the array of sensors can produce sensor data for a tile of the flow cell, where a tile in an area on the flow cell at which clusters of genetic material are disposed during the based calling operation.
  • the sensor data can comprise image data in an array of pixels.
  • the sensor data can include more than one image, producing multiple features per pixel as the tile data.
  • Logic e.g ., data flow logic
  • Logic can be implemented in the form of a computer product including a non-transitory computer readable storage medium with computer usable program code for performing the method steps described herein.
  • the “logic” can be implemented in the form of an apparatus including a memory and at least one processor that is coupled to the memory and operative to perform exemplary method steps.
  • the “logic” can be implemented in the form of means for carrying out one or more of the method steps described herein; the means can include (i) hardware module(s), (ii) software module(s) executing on one or more hardware processors, or (iii) a combination of hardware and software modules; any of (i)-(iii) implement the specific techniques set forth herein, and the software modules are stored in a computer readable storage medium (or multiple such media).
  • the logic implements a data processing function.
  • Fig. 25 is a simplified block diagram of a computer system 2500 that can be used to implement the technology disclosed.
  • Computer system 2500 includes at least one central processing unit (CPU) 2572 that communicates with a number of peripheral devices via bus subsystem 2555.
  • CPU central processing unit
  • peripheral devices can include a storage subsystem 2510 including, for example, memory devices and a file storage subsystem 2536, user interface input devices 2538, user interface output devices 2576, and a network interface subsystem 2574.
  • the input and output devices allow user interaction with computer system 2500.
  • Network interface subsystem 2574 provides an interface to outside networks, including an interface to corresponding interface devices in other computer systems.
  • User interface input devices 2538 can include a keyboard; pointing devices such as a mouse, trackball, touchpad, or graphics tablet; a scanner; a touch screen incorporated into the display; audio input devices such as voice recognition systems and microphones; and other types of input devices.
  • pointing devices such as a mouse, trackball, touchpad, or graphics tablet
  • audio input devices such as voice recognition systems and microphones
  • use of the term “input device” is intended to include all possible types of devices and ways to input information into computer system 2500.
  • User interface output devices 2576 can include a display subsystem, a printer, a fax machine, or non-visual displays such as audio output devices.
  • the display subsystem can include an LED display, a cathode ray tube (CRT), a flat-panel device such as a liquid crystal display (LCD), a projection device, or some other mechanism for creating a visible image.
  • the display subsystem can also provide a non-visual display such as audio output devices.
  • output device is intended to include all possible types of devices and ways to output information from computer system 2500 to the user or to another machine or computer system.
  • Storage subsystem 2510 stores programming and data constructs that provide the functionality of some or all of the modules and methods described herein. These software modules are generally executed by deep learning processors 2578.
  • the neural networks are implemented using deep learning processors 2578 can be configurable and reconfigurable processors, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), and/or coarse-grained reconfigurable architectures (CGRAs) and graphics processing units (GPUs) other configured devices.
  • Deep learning processors 2578 can be hosted by a deep learning cloud platform such as Google Cloud PlatformTM, XilinxTM, and CirrascaleTM.
  • Examples of deep learning processors 2578 include Google’s Tensor Processing Unit (TPU)TM, rackmount solutions like GX4 Rackmount SeriesTM, GX149 Rackmount SeriesTM, NVIDIA DGX-1TM, Microsoft’ Stratix V FPGATM, Graphcore’s Intelligent Processor Unit (IPU)TM, Qualcomm’s Zeroth PlatformTM with Snapdragon processorsTM, NVIDIA’ s VoltaTM, NVIDIA’ s DRIVE PXTM, NVIDIA’ s JETSON TX1/TX2 MODULETM, Intel’s NirvanaTM, Movidius VPUTM, Fujitsu DPITM, ARM’s DynamicIQTM, IBM TrueNorthTM, and others.
  • TPU Tensor Processing Unit
  • rackmount solutions like GX4 Rackmount SeriesTM, GX149 Rackmount SeriesTM, NVIDIA DGX-1TM, Microsoft’ Stratix V FPGATM, Graphcore’s Intelligent Processor Unit (IPU)TM
  • Memory subsystem 2522 used in the storage subsystem 2510 can include a number of memories including a main random access memory (RAM) 2534 for storage of instructions and data during program execution and a read only memory (ROM) 2532 in which fixed instructions are stored.
  • a file storage subsystem 2536 can provide persistent storage for program and data files, and can include a hard disk drive, a floppy disk drive along with associated removable media, a CD-ROM drive, an optical drive, or removable media cartridges.
  • the modules implementing the functionality of certain implementations can be stored by file storage subsystem 2536 in the storage subsystem 2510, or in other machines accessible by the processor.
  • Bus subsystem 2555 provides a mechanism for letting the various components and subsystems of computer system 2500 communicate with each other as intended. Although bus subsystem 2555 is shown schematically as a single bus, alternative implementations of the bus subsystem can use multiple busses.
  • Computer system 2500 itself can be of varying types including a personal computer, a portable computer, a workstation, a computer terminal, a network computer, a television, a mainframe, a server farm, a widely -distributed set of loosely networked computers, or any other data processing system or user device. Due to the ever-changing nature of computers and networks, the description of computer system 2500 depicted in Fig 25 is intended only as a specific example for purposes of illustrating the preferred implementations of the present invention. Many other configurations of computer system 2500 are possible having more or less components than the computer system depicted in Fig. 25.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Biophysics (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Biomedical Technology (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Artificial Intelligence (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Biotechnology (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • General Physics & Mathematics (AREA)
  • Molecular Biology (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Chemical & Material Sciences (AREA)
  • Proteomics, Peptides & Aminoacids (AREA)
  • Analytical Chemistry (AREA)
  • Neurology (AREA)
  • Bioethics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Databases & Information Systems (AREA)
  • Epidemiology (AREA)
  • Public Health (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Measuring Or Testing Involving Enzymes Or Micro-Organisms (AREA)

Abstract

A method of quantizing parameters of a neural network includes grouping a plurality of parameters of a neural network in a plurality of groups. Each group of the plurality of groups includes corresponding two or more parameters of the plurality of parameters. In an example, for each group, a corresponding quantization format is selected from a plurality of available quantization formats, such that a first quantization format selected for at least a first group is different from a second quantization format selected for at least a second group. For each group, individual parameters within the corresponding group are quantized using the quantization format selected for the corresponding group. The quantized parameters of the plurality of groups are stored in a memory.

Description

NEURAL NETWORK PARAMETER QUANTIZATION FOR
BASE CALLING
PRIORITY APPLICATIONS
[0001] This application claims the benefit of U.S. Provisional Patent Application No.: 63/161,880, titled “Tile Location and/or Cycle Based Weight Set Selection for Base Calling,” filed March 16, 2021 (Attorney Docket No. ILLM 1019-1/IP-1861-PRV); U.S. Provisional Patent Application No.: 63/161,896, titled “Neural Network Parameter Quantization for Base Calling,” filed March 16, 2021 (Attorney Docket No. ILLM 1019-2/IP-2049-PRV); U.S. Nonprovisional Patent Application No.: 17/687,551, titled “Tile Location and/or Cycle Based Weight Set Selection for Base Calling,” filed March 4, 2022 (Attorney Docket No. ILLM 1019- 3/IP- 1861 -US); U.S. Nonprovisional Patent Application No.: 17/687,583, titled “Neural Network Parameter Quantization for Base Calling,” filed March 4, 2022 (Attorney Docket No. ILLM 1019-4/IP-2049-US). The priority applications are hereby incorporated by reference for all purposes.
FIELD OF THE TECHNOLOGY DISCLOSED [0002] The technology disclosed relates to artificial intelligence type computers and digital data processing systems and corresponding data processing methods and products for emulation of intelligence (i.e., knowledge based systems, reasoning systems, and knowledge acquisition systems); and including systems for reasoning with uncertainty (e.g., fuzzy logic systems), adaptive systems, machine learning systems, and artificial neural networks. In particular, the technology disclosed relates to using deep neural networks such as deep convolutional neural networks for analyzing data.
INCORPORATIONS
[0003] The following are incorporated by reference as if fully set forth herein:
[0004] U.S. Provisional Patent Application No. 62/979,384, titled “ARTIFICIAL INTELLIGENCE-BASED BASE CALLING OF INDEX SEQUENCES,” filed 20 February 2020 (Attorney Docket No. ILLM 1015-1/IP-1857-PRV);
[0005] U.S. Provisional Patent Application No. 62/979,414, titled “ARTIFICIAL INTELLIGENCE-BASED MANY-TO-MANY BASE CALLING,” filed 20 February 2020 (Attorney Docket No. ILLM 1016-1/IP-1858-PRV);
[0006] U.S. Nonprovisional Patent Application No. 16/825,987, titled “TRAINING DATA GENERATION FOR ARTIFICIAL INTELLIGENCE-BASED SEQUENCING,” filed 20 March 2020 (Attorney Docket No. ILLM 1008-16/IP-1693-US); [0007] U.S. Nonprovisional Patent Application No. 16/825,991, titled “ARTIFICIAL INTELLIGENCE-BASED GENERATION OF SEQUENCING METADATA,” filed 20 March 2020 (Attorney Docket No. ILLM 1008- 17/IP- 1741 -US);
[0008] U.S. Nonprovisional Patent Application No. 16/826,126, titled “ARTIFICIAL INTELLIGENCE-BASED BASE CALLING,” filed 20 March 2020 (Attorney Docket No.
ILLM 1008-18/IP- 1744-US);
[0009] U.S. Nonprovisional Patent Application No. 16/826,134, titled “ARTIFICIAL INTELLIGENCE-BASED QUALITY SCORING,” filed 20 March 2020 (Attorney Docket No. ILLM 1008-19/IP- 1747-US); and
[0010] U.S. Nonprovisional Patent Application No. 16/826,168, titled “ARTIFICIAL INTELLIGENCE-BASED SEQUENCING,” filed 21 March 2020 (Attorney Docket No. ILLM 1008-20/IP- 1752-PRV-US).
BACKGROUND
[0011] The subject matter discussed in this section should not be assumed to be prior art merely as a result of its mention in this section. Similarly, a problem mentioned in this section or associated with the subject matter provided as background should not be assumed to have been previously recognized in the prior art. The subject matter in this section merely represents different approaches, which in and of themselves can also correspond to implementations of the claimed technology.
[0012] The rapid improvement in computation capability has made deep Convolution Neural Networks (CNNs) a great success in recent years on many computer vision tasks with significantly improved accuracy. During the inference phase, many applications demand low latency processing of one image with strict power consumption requirement, which reduces the efficiency of Graphics Processing Unit (GPU) and other general-purpose platform, bringing opportunities for specific acceleration hardware, e.g ., Field Programmable Gate Array (FPGA), by customizing the digital circuit specific for the deep learning algorithm inference. However, deploying CNNs on portable and embedded systems is still challenging due to large data volume, intensive computation, varying algorithm structures, and frequent memory accesses.
[0013] As convolution contributes most operations in CNNs, the convolution acceleration scheme significantly affects the efficiency and performance of a hardware CNN accelerator. Convolution involves multiply and accumulate (MAC) operations with four levels of loops that slide along kernel and feature maps. The first loop level computes the MAC of pixels within a kernel window. The second loop level accumulates the sum of products of the MAC across different input feature maps. After finishing the first and second loop levels, a final output element in the output feature map is obtained by adding the bias. The third loop level slides the kernel window within an input feature map. The fourth loop level generates different output feature maps.
[0014] FPGAs have gained increasing interest and popularity in particular to accelerate inference tasks, due to their (1) high degree of reconfigurability, (2) faster development time compared to Application Specific Integrated Circuits (ASICs) to catch up with the rapid evolving of CNNs, (3) good performance, and (4) superior energy efficiency compared to GPUs. The high performance and efficiency of an FPGA can be realized by synthesizing a circuit that is customized for a specific computation to directly process billions of operations with the customized memory systems. For instance, hundreds to thousands of digital signal processing (DSP) blocks on modern FPGAs support the core convolution operation, e.g ., multiplication and addition, with high parallelism. Dedicated data buffers between external on-chip memory and on-chip processing engines (PEs) can be designed to realize the preferred dataflow by configuring tens of Mbyte on-chip block random access memories (BRAM) on the FPGA chip. [0015] Efficient dataflow and hardware architecture of CNN acceleration are desired to minimize data communication while maximizing resource utilization to achieve high performance. An opportunity arises to design methodology and framework to accelerate the inference process of various CNN algorithms on acceleration hardware with high performance, efficiency, and flexibility.
BRIEF DESCRIPTION OF THE DRAWINGS [0016] In the drawings, like reference characters generally refer to like parts throughout the different views. Also, the drawings are not necessarily to scale, with an emphasis instead generally being placed upon illustrating the principles of the technology disclosed. In the following description, various implementations of the technology disclosed are described with reference to the following drawings, in which:
[0017] Fig. l is a simplified diagram of a base calling computation system that comprises a configurable processor.
[0018] Fig. 2 is a simplified data flow diagram which can be executed by a system like that of Fig. 1.
[0019] Fig. 3 illustrates a configuration architecture for components of a configurable or a reconfigurable array supporting base calling operations.
[0020] Fig. 4 is a diagram of a neural network architecture which can be executed using a configurable or a reconfigurable array configured as described herein. [0021] Fig. 5 is a simplified illustration of an organization of tiles of sensor data used by a neural network architecture like that of Fig. 4.
[0022] Fig. 6 is a simplified illustration of patches of tiles of sensor data used by a neural network architecture like that of Fig. 4.
[0023] Fig. 7 illustrates a configuration of patches of an input tile used by a neural network architecture like that of Fig. 4.
[0024] Fig. 8 illustrates part of a configuration for a neural network like that of Fig. 4 on a configurable or a reconfigurable array, such as a field programmable gate array (FPGA).
[0025] Fig. 9 is a diagram of another alternative neural network architecture which can be executed using a configurable or a reconfigurable array configured as described herein.
[0026] Fig. 10 illustrates one implementation of a specialized architecture of the neural network-based base caller that is used to segregate processing of data for different sequencing cycles.
[0027] Fig. 11 depicts one implementation of segregated layers, each of which can include convolutions.
[0028] Fig. 12A depicts one implementation of combinatory layers, each of which can include convolutions.
[0029] Fig. 12B depicts another implementation of the combinatory layers, each of which can include convolutions.
[0030] Fig. 13 illustrates layers of a neural network, and corresponding kernels and weights to configure the neural network for base calling operation.
[0031] Fig. 14 illustrates a table depicting example 8-bit binary fixed-point formats, at least some of which can be used to represent parameters ( e.g ., weights and biases) of a neural network for base calling.
[0032] Fig. 15A illustrates a Look-Up Table (LUT) usable to select a quantization format for a corresponding neural network parameter.
[0033] Fig. 15B illustrates a scale that represents at least some information of the LUT of Fig. 15 A.
[0034] Fig. 15C illustrates another LUT usable to select a quantization format for a corresponding absolute value of a neural network parameter.
[0035] Fig. 15D illustrates yet another LUT usable to select a quantization format for a corresponding absolute value of a neural network parameter.
[0036] Fig. 16 illustrates a flowchart depicting a method for grouping of neural network parameters, selecting appropriate quantization formats for individual groups, quantizing the neural network parameters of each group in accordance with the corresponding selected quantization format, and using the quantized neural network parameters to configure a neural network topology for base calling.
[0037] Fig. 17 illustrates an example layer- specific grouping of neural network parameters.
[0038] Fig. 18 illustrates an example filter- specific grouping of neural network parameters.
[0039] Fig. 19 illustrates an example kernel- specific grouping of neural network parameters.
[0040] Fig. 20 illustrates a kernel-specific grouping of neural network parameters, where a parameter that has a maximum absolute value among all parameters within a corresponding group is identified.
[0041] Fig. 21 illustrates a multiplication operation and an accumulation operation for an example input data quantization format and an example weight quantization format.
[0042] Fig. 22 illustrates a multiplication operation and an accumulation operation for another example input data quantization format and another example weight quantization format. [0043] Fig. 23 is a block diagram of a base calling system in accordance with one implementation.
[0044] Fig. 24 is a block diagram of a system controller that can be used in the system of Fig. 23.
[0045] Fig. 25 is a simplified block diagram of a computer system that can be used to implement the technology disclosed.
DETATEED DESCRIPTION
[0046] Embodiments described herein may be used in various biological or chemical processes and systems for academic or commercial analysis. More specifically, embodiments described herein may be used in various processes and systems where it is desired to detect an event, property, quality, or characteristic that is indicative of a desired reaction. For example, embodiments described herein include cartridges, biosensors, and their components as well as bioassay systems that operate with cartridges and biosensors. In particular embodiments, the cartridges and biosensors include a flow cell and one or more sensors, pixels, light detectors, or photodiodes that are coupled together in a substantially unitary structure.
[0047] The following detailed description of certain embodiments will be better understood when read in conjunction with the appended drawings. To the extent that the figures illustrate diagrams of the functional blocks of various embodiments, the functional blocks are not necessarily indicative of the division between hardware circuitry. Thus, for example, one or more of the functional blocks ( e.g ., processors or memories) may be implemented in a single piece of hardware (e.g., a general purpose signal processor or random access memory, hard disk, or the like). Similarly, the programs may be standalone programs, may be incorporated as subroutines in an operating system, may be functions in an installed software package, and the like. It should be understood that the various embodiments are not limited to the arrangements and instrumentality shown in the drawings.
[0048] As used herein, an element or step recited in the singular and proceeded with the word “a” or “an” should be understood as not excluding plural of said elements or steps, unless such exclusion is explicitly stated. Furthermore, references to “one embodiment” are not intended to be interpreted as excluding the existence of additional embodiments that also incorporate the recited features. Moreover, unless explicitly stated to the contrary, embodiments “comprising” or “having” or “including” an element or a plurality of elements having a particular property may include additional elements whether or not they have that property.
[0049] As used herein, a “desired reaction” includes a change in at least one of a chemical, electrical, physical, or optical property (or quality) of an analyte-of-interest. In particular embodiments, the desired reaction is a positive binding event ( e.g ., incorporation of a fluorescently labeled biomolecule with the analyte-of-interest). More generally, the desired reaction may be a chemical transformation, chemical change, or chemical interaction. The desired reaction may also be a change in electrical properties. For example, the desired reaction may be a change in ion concentration within a solution. Exemplary reactions include, but are not limited to, chemical reactions such as reduction, oxidation, addition, elimination, rearrangement, esterification, amidation, etherification, cyclization, or substitution; binding interactions in which a first chemical binds to a second chemical; dissociation reactions in which two or more chemicals detach from each other; fluorescence; luminescence; bioluminescence; chemiluminescence; and biological reactions, such as nucleic acid replication, nucleic acid amplification, nucleic acid hybridization, nucleic acid ligation, phosphorylation, enzymatic catalysis, receptor binding, or ligand binding. The desired reaction can also be an addition or elimination of a proton, for example, detectable as a change in pH of a surrounding solution or environment. An additional desired reaction can be detecting the flow of ions across a membrane (e.g., natural or synthetic bilayer membrane), for example as ions flow through a membrane the current is disrupted and the disruption can be detected.
[0050] In particular embodiments, the desired reaction includes the incorporation of a fluorescently-labeled molecule to an analyte. The analyte may be an oligonucleotide and the fluorescently-labeled molecule may be a nucleotide. The desired reaction may be detected when an excitation light is directed toward the oligonucleotide having the labeled nucleotide, and the fluorophore emits a detectable fluorescent signal. In alternative embodiments, the detected fluorescence is a result of chemiluminescence or bioluminescence. A desired reaction may also increase fluorescence (or Forster) resonance energy transfer (FRET), for example, by bringing a donor fluorophore in proximity to an acceptor fluorophore, decrease FRET by separating donor and acceptor fluorophores, increase fluorescence by separating a quencher from a fluorophore or decrease fluorescence by co-locating a quencher and fluorophore.
[0051] As used herein, a “reaction component” or “reactant” includes any substance that may be used to obtain a desired reaction. For example, reaction components include reagents, enzymes, samples, other biomolecules, and buffer solutions. The reaction components are typically delivered to a reaction site in a solution and/or immobilized at a reaction site. The reaction components may interact directly or indirectly with another substance, such as the analyte-of-interest.
[0052] As used herein, the term “reaction site” is a localized region where a desired reaction may occur. A reaction site may include support surfaces of a substrate where a substance may be immobilized thereon. For example, a reaction site may include a substantially planar surface in a channel of a flow cell that has a colony of nucleic acids thereon. Typically, but not always, the nucleic acids in the colony have the same sequence, being for example, clonal copies of a single stranded or double stranded template. However, in some embodiments a reaction site may contain only a single nucleic acid molecule, for example, in a single stranded or double stranded form. Furthermore, a plurality of reaction sites may be unevenly distributed along the support surface or arranged in a predetermined manner ( e.g ., side-by-side in a matrix, such as in microarrays). A reaction site can also include a reaction chamber (or well) that at least partially defines a spatial region or volume configured to compartmentalize the desired reaction.
[0053] This application uses the terms “reaction chamber” and “well” interchangeably. As used herein, the term “reaction chamber” or “well” includes a spatial region that is in fluid communication with a flow channel. The reaction chamber may be at least partially separated from the surrounding environment or other spatial regions. For example, a plurality of reaction chambers may be separated from each other by shared walls. As a more specific example, the reaction chamber may include a cavity defined by interior surfaces of a well and have an opening or aperture so that the cavity may be in fluid communication with a flow channel. Biosensors including such reaction chambers are described in greater detail in international application no. PCT/US2011/057111, filed on October 20, 2011, which is incorporated herein by reference in its entirety.
[0054] In some embodiments, the reaction chambers are sized and shaped relative to solids (including semi-solids) so that the solids may be inserted, fully or partially, therein. For example, the reaction chamber may be sized and shaped to accommodate only one capture bead. The capture bead may have clonally amplified DNA or other substances thereon. Alternatively, the reaction chamber may be sized and shaped to receive an approximate number of beads or solid substrates. As another example, the reaction chambers may also be filled with a porous gel or substance that is configured to control diffusion or filter fluids that may flow into the reaction chamber.
[0055] In some embodiments, sensors ( e.g ., light detectors, photodiodes) are associated with corresponding pixel areas of a sample surface of a biosensor. As such, a pixel area is a geometrical construct that represents an area on the biosensor’s sample surface for one sensor (or pixel). A sensor that is associated with a pixel area detects light emissions gathered from the associated pixel area when a desired reaction has occurred at a reaction site or a reaction chamber overlying the associated pixel area. In a flat surface embodiment, the pixel areas can overlap. In some cases, a plurality of sensors may be associated with a single reaction site or a single reaction chamber. In other cases, a single sensor may be associated with a group of reaction sites or a group of reaction chambers.
[0056] As used herein, a “biosensor” includes a structure having a plurality of reaction sites and/or reaction chambers (or wells). A biosensor may include a solid-state imaging device (e.g., CCD or CMOS imager) and, optionally, a flow cell mounted thereto. The flow cell may include at least one flow channel that is in fluid communication with the reaction sites and/or the reaction chambers. As one specific example, the biosensor is configured to fluidically and electrically couple to a bioassay system. The bioassay system may deliver reactants to the reaction sites and/or the reaction chambers according to a predetermined protocol (e.g, sequencing-by-synthesis) and perform a plurality of imaging events. For example, the bioassay system may direct solutions to flow along the reaction sites and/or the reaction chambers. At least one of the solutions may include four types of nucleotides having the same or different fluorescent labels. The nucleotides may bind to corresponding oligonucleotides located at the reaction sites and/or the reaction chambers. The bioassay system may then illuminate the reaction sites and/or the reaction chambers using an excitation light source (e.g, solid-state light sources, such as light-emitting diodes or LEDs). The excitation light may have a predetermined wavelength or wavelengths, including a range of wavelengths. The excited fluorescent labels provide emission signals that may be captured by the sensors.
[0057] In alternative embodiments, the biosensor may include electrodes or other types of sensors configured to detect other identifiable properties. For example, the sensors may be configured to detect a change in ion concentration. In another example, the sensors may be configured to detect the ion current flow across a membrane.
[0058] As used herein, a “cluster” is a colony of similar or identical molecules or nucleotide sequences or DNA strands. For example, a cluster can be an amplified oligonucleotide or any other group of a polynucleotide or polypeptide with a same or similar sequence. In other embodiments, a cluster can be any element or group of elements that occupy a physical area on a sample surface. In embodiments, clusters are immobilized to a reaction site and/or a reaction chamber during a base calling cycle.
[0059] As used herein, the term “immobilized,” when used with respect to a biomolecule or biological or chemical substance, includes substantially attaching the biomolecule or biological or chemical substance at a molecular level to a surface. For example, a biomolecule or biological or chemical substance may be immobilized to a surface of the substrate material using adsorption techniques including non-covalent interactions ( e.g ., electrostatic forces, van der Waals, and dehydration of hydrophobic interfaces) and covalent binding techniques where functional groups or linkers facilitate attaching the biomolecules to the surface. Immobilizing biomolecules or biological or chemical substances to a surface of a substrate material may be based upon the properties of the substrate surface, the liquid medium carrying the biomolecule or biological or chemical substance, and the properties of the biomolecules or biological or chemical substances themselves. In some cases, a substrate surface may be functionalized (e.g., chemically or physically modified) to facilitate immobilizing the biomolecules (or biological or chemical substances) to the substrate surface. The substrate surface may be first modified to have functional groups bound to the surface. The functional groups may then bind to biomolecules or biological or chemical substances to immobilize them thereon. A substance can be immobilized to a surface via a gel, for example, as described in US Patent Publ. No. US 2011/0059865 Al, which is incorporated herein by reference.
[0060] In some embodiments, nucleic acids can be attached to a surface and amplified using bridge amplification. Useful bridge amplification methods are described, for example, in U.S. Patent No. 5,641,658; WO 2007/010251; U.S. Pat. No. 6,090,592; U.S. Patent Publ. No. 2002/0055100 Al; U.S. Patent No. 7,115,400; U.S. Patent Publ. No. 2004/0096853 Al; U.S. Patent Publ. No. 2004/0002090 Al; U.S. Patent Publ. No. 2007/0128624 Al; and U.S. Patent Publ. No. 2008/0009420 Al, each of which is incorporated herein in its entirety. Another useful method for amplifying nucleic acids on a surface is Rolling Circle Amplification (RCA), for example, using methods set forth in further detail below. In some embodiments, the nucleic acids can be attached to a surface and amplified using one or more primer pairs. For example, one of the primers can be in solution and the other primer can be immobilized on the surface (e.g, 5'- attached). By way of example, a nucleic acid molecule can hybridize to one of the primers on the surface followed by extension of the immobilized primer to produce a first copy of the nucleic acid. The primer in solution then hybridizes to the first copy of the nucleic acid which can be extended using the first copy of the nucleic acid as a template. Optionally, after the first copy of the nucleic acid is produced, the original nucleic acid molecule can hybridize to a second immobilized primer on the surface and can be extended at the same time or after the primer in solution is extended. In any embodiment, repeated rounds of extension ( e.g ., amplification) using the immobilized primer and primer in solution provide multiple copies of the nucleic acid.
[0061] In particular embodiments, the assay protocols executed by the systems and methods described herein include the use of natural nucleotides and also enzymes that are configured to interact with the natural nucleotides. Natural nucleotides include, for example, ribonucleotides (RNA) or deoxyribonucleotides (DNA). Natural nucleotides can be in the mono-, di-, or tri phosphate form and can have a base selected from adenine (A), thymine (T), uracil (U), guanine (G) or cytosine (C). It will be understood however that non-natural nucleotides, modified nucleotides or analogs of the aforementioned nucleotides can be used. Some examples of useful non-natural nucleotides are set forth below in regard to reversible terminator-based sequencing by synthesis methods.
[0062] In embodiments that include reaction chambers, items or solid substances (including semi-solid substances) may be disposed within the reaction chambers. When disposed, the item or solid may be physically held or immobilized within the reaction chamber through an interference fit, adhesion, or entrapment. Exemplary items or solids that may be disposed within the reaction chambers include polymer beads, pellets, agarose gel, powders, quantum dots, or other solids that may be compressed and/or held within the reaction chamber. In particular embodiments, a nucleic acid superstructure, such as a DNA ball, can be disposed in or at a reaction chamber, for example, by attachment to an interior surface of the reaction chamber or by residence in a liquid within the reaction chamber. A DNA ball or other nucleic acid superstructure can be performed and then disposed in or at the reaction chamber. Alternatively, a DNA ball can be synthesized in situ at the reaction chamber. A DNA ball can be synthesized by rolling circle amplification to produce a concatemer of a particular nucleic acid sequence and the concatemer can be treated with conditions that form a relatively compact ball. DNA balls and methods for their synthesis are described, for example in, U.S. Patent Publication Nos. 2008/0242560 A1 or 2008/0234136 Al, each of which is incorporated herein in its entirety. A substance that is held or disposed in a reaction chamber can be in a solid, liquid, or gaseous state. [0063] As used herein, “base calling” identifies a nucleotide base in a nucleic acid sequence. Base calling refers to the process of determining a base call (A, C, G, T) for every cluster at a specific cycle. As an example, base calling can be performed utilizing four-channel, two-channel or one-channel methods and systems described in the incorporated materials of U.S. Patent Application Publication No. 2013/0079232. In particular embodiments, a base calling cycle is referred to as a “sampling event.” In one dye and two-channel sequencing protocol, a sampling event comprises two illumination stages in time sequence, such that a pixel signal is generated at each stage. The first illumination stage induces illumination from a given cluster indicating nucleotide bases A and T in a AT pixel signal, and the second illumination stage induces illumination from a given cluster indicating nucleotide bases C and T in a CT pixel signal.
[0064] The technology disclosed, e.g ., the disclosed base callers can be implemented on processors like Central Processing Units (CPUs), Graphics Processing Units (GPUs), Field Programmable Gate Arrays (FPGAs), Coarse-Grained Reconfigurable Architectures (CGRAs), Application-Specific Integrated Circuits (ASICs), Application Specific Instruction-set Processor (ASIP), and Digital Signal Processors (DSPs).
System diagram
[0065] Fig. l is a simplified block diagram of the system for analysis of sensor data from a sequencing system, such as base call sensor outputs. In the example of Fig. 1, the system includes a sequencing machine 100 and a configurable processor 150. The configurable processor 150 can execute a neural network-based base caller in coordination with a runtime program executed by the central processing unit Central Processing Unit (CPU) 102. The sequencing machine 100 comprises base call sensors and flow cells 101. The flow cells can comprise one or more tiles in which clusters of genetic material are exposed to a sequence of analyte flows used to cause reactions in the clusters to identify the bases in the genetic material. The sensors sense the reactions for each cycle of the sequence in each tile of the flow cell to provide tile data. Examples of this technology are described in more detail below. Genetic sequencing is a data intensive operation, which translates base call sensor data into sequences of base calls for each cluster of genetic material sensed in during a base call operation.
[0066] The system in this example includes the CPU 102 which executes a runtime program to coordinate the base call operations, memory 103 to store sequences of arrays of tile data, base call reads produced by the base calling operation, and other information used in the base call operations. Also, in this illustration the system includes memory 104 to store a configuration file (or files), such as FPGA bit files, topology of the neural network, and model parameters for the neural network used to configure and reconfigure the configurable processor 150 and execute the neural network. Examples of such model parameters include weight coefficients (also referred to as weights) and/or biases that are to be used to configure the topology of the neural network. The sequencing machine 100 can include a program for configuring a configurable processor and in some embodiments a reconfigurable processor to execute the neural network.
[0067] The sequencing machine 100 is coupled by a bus 105 to the configurable processor 150. The bus 105 can be implemented using a high throughput technology, such as in one example bus technology compatible with the PCIe standards (Peripheral Component Interconnect Express) currently maintained and developed by the PCI-SIG (PCI Special Interest Group). Also, in this example, a memory 160 is coupled to the configurable processor 150 by bus 161. The memory 160 can be on-board memory, disposed on a circuit board with the configurable processor 150. The memory 160 is used for high speed access by the configurable processor 150 of working data used in the base call operation. The bus 161 can also be implemented using a high throughput technology, such as bus technology compatible with the PCIe standards.
[0068] Configurable processors, including field programmable gate arrays FPGAs, coarse grained reconfigurable arrays CGRAs, and other configurable and reconfigurable devices, can be configured to implement a variety of functions more efficiently or faster than might be achieved using a general purpose processor executing a computer program. Configuration of configurable processors involves compiling a functional description to produce a configuration file, referred to sometimes as a bitstream or bit file, and distributing the configuration file to the configurable elements on the processor.
[0069] The configuration file defines the logic functions to be executed by the configurable processor, by configuring the circuit to set data flow patterns, use of distributed memory and other on-chip memory resources, lookup table contents, operations of configurable logic blocks and configurable execution units like multiply-and-accumulate units, configurable interconnects and other elements of the configurable array. A configurable processor is reconfigurable if the configuration file may be changed in the field, by changing the loaded configuration file. For example, the configuration file may be stored in volatile SRAM elements, in non-volatile read- write memory elements, and in combinations of the same, distributed among the array of configurable elements on the configurable or reconfigurable processor. A variety of commercially available configurable processors are suitable for use in a base calling operation as described herein. Examples include commercially available products such as Xilinx Alveo™ U200, Xilinx Alveo™ U250, Xilinx Alveo™ U280, Intel/Altera Stratix™ GX2800, Intel/Altera Stratix™ GX2800, and Intel Stratix™ GX10M. In some examples, a host CPU can be implemented on the same integrated circuit as the configurable processor.
[0070] Embodiments described herein implement the multi-cycle neural network using a configurable processor 150. The configuration file for a configurable processor can be implemented by specifying the logic functions to be executed using a high level description language HDL or a register transfer level RTL language specification. The specification can be compiled using the resources designed for the selected configurable processor to generate the configuration file. The same or similar specification can be compiled for the purposes of generating a design for an application-specific integrated circuit which may not be a configurable processor.
[0071] Alternatives for the configurable processor, in all embodiments described herein, therefore include a configured processor comprising an application specific ASIC or special purpose integrated circuit or set of integrated circuits, or a system-on-a-chip SOC device, configured to execute a neural network based base call operation as described herein.
[0072] In general, configurable processors and configured processors described herein, as configured to execute runs of a neural network, are referred to herein as neural network processors.
[0073] The configurable processor 150 is configured in this example by a configuration file loaded using a program executed by the CPU 102, or by other sources, which configures the array of configurable elements on the configurable processor 150 to execute the base call function. In this example, the configuration includes data flow logic 151 which is coupled to the buses 105 and 161 and executes functions for distributing data and control parameters among the elements used in the base call operation.
[0074] Also, the configurable processor 150 is configured with base call execution logic 152 to execute a multi-cycle neural network. The logic 152 comprises a plurality of multi-cycle execution clusters (e.g., \ 53) which, in this example, includes multi-cycle cluster 1 through multi cycle cluster X. The number of multi -cycle clusters can be selected according to a trade-off involving the desired throughput of the operation, and the available resources on the configurable processor.
[0075] The multi-cycle clusters are coupled to the data flow logic 151 by data flow paths 154 implemented using configurable interconnect and memory resources on the configurable processor. Also, the multi-cycle clusters are coupled to the data flow logic 151 by control paths 155 implemented using configurable interconnect and memory resources for example on the configurable processor, which provide control signals indicating available clusters, readiness to provide input units for execution of a run of the neural network to the available clusters, readiness to provide trained parameters for the neural network, readiness to provide output patches of base call classification data, and other control data used for execution of the neural network.
[0076] The configurable processor is configured to execute runs of a multi-cycle neural network using trained parameters to produce classification data for sensing cycles of the base flow operation. A run of the neural network is executed to produce classification data for a subject sensing cycle of the base call operation. A run of the neural network operates on a sequence including a number N of arrays of tile data from respective sensing cycles of N sensing cycles, where the N sensing cycles provide sensor data for different base call operations for one base position per operation in time sequence in the examples described herein. Optionally, some of the N sensing cycles can be out of sequence if the needed according to a particular neural network model being executed. The number N can be any number greater than one. In some examples described herein, sensing cycles of the N sensing cycles represent a set of sensing cycles for at least one sensing cycle preceding the subject sensing cycle and at least one sensing cycle following the subject cycle in time sequence. Examples are described herein in which the number N is an integer equal to or greater than five.
[0077] The data flow logic is configured to move tile data and at least some trained parameters of the model parameters from the memory 160 to the configurable processor for runs of the neural network, using input units for a given run including tile data for spatially aligned patches of the N arrays. The input units can be moved by direct memory access operations in one DMA operation, or in smaller units moved during available time slots in coordination with the execution of the neural network deployed.
[0078] Tile data for a sensing cycle as described herein can comprise an array of sensor data having one or more features. For example, the sensor data can comprise two images which are analyzed to identify one of four bases at a base position in a genetic sequence of DNA, RNA, or other genetic material. The tile data can also include metadata about the images and the sensors. For example, in embodiments of the base calling operation, the tile data can comprise information about alignment of the images with the clusters such as distance from center information indicating the distance of each pixel in the array of sensor data from the center of a cluster of genetic material on the tile.
[0079] During execution of the multi-cycle neural network as described below, tile data can also include data produced during execution of the multi-cycle neural network, referred to as intermediate data, which can be reused rather than recomputed during a run of the multi -cycle neural network. For example, during execution of the multi -cycle neural network, the data flow logic can write intermediate data to the memory 160 in place of the sensor data for a given patch of an array of tile data. Embodiments like this are described in more detail below.
[0080] As illustrated, a system is described for analysis of base call sensor output, comprising memory ( e.g ., 160) accessible by the runtime program storing tile data including sensor data for a tile from sensing cycles of a base calling operation. Also, the system includes a neural network processor, such as configurable processor 150 having access to the memory. The neural network processor is configured to execute runs of a neural network using trained parameters to produce classification data for sensing cycles. As described herein, a run of the neural network is operating on a sequence of N arrays of tile data from respective sensing cycles of N sensing cycles, including a subject cycle, to produce the classification data for the subject cycle. The data flow logic 151 is provided to move tile data and the trained parameters from the memory to the neural network processor for runs of the neural network using input units including data for spatially aligned patches of the N arrays from respective sensing cycles of N sensing cycles.
[0081] Also, a system is described in which the neural network processor has access to the memory, and includes a plurality of execution clusters, the execution logic clusters in the plurality of execution clusters configured to execute a neural network. The data flow logic has access to the memory and to execution clusters in the plurality of execution clusters, to provide input units of tile data to available execution clusters in the plurality of execution clusters, the input units including a number N of spatially aligned patches of arrays of tile data from respective sensing cycles, including a subject sensing cycle, and to cause the execution clusters to apply the N spatially aligned patches to the neural network to produce output patches of classification data for the spatially aligned patch of the subject sensing cycle, where N is greater than 1.
[0082] Fig. 2 is a simplified diagram showing aspects of the base calling operation, including functions of a runtime program executed by a host processor. In this diagram, the output of image sensors from a flow cell are provided on lines 200 to image processing threads 201, which can perform processes on images such as resampling, alignment and arrangement in an array of sensor data for the individual tiles, and can be used by processes which calculate a tile cluster mask for each tile in the flow cell, which identifies pixels in the array of sensor data that correspond to clusters of genetic material on the corresponding tile of the flow cell. To compute a cluster mask, one example algorithm is based on a process to detect clusters which are unreliable in the early sequencing cycles using a metric derived from the softmax output, and then the data from those wells/clusters is discarded, and no output data is produced for those clusters. For example, a process can identify clusters with high reliability during the first N ( e.g ., 25) base-calls, and reject the others. Rejected clusters might be polyclonal or very weak intensity or obscured by fiducials. This procedure can be performed on the host CPU. In alternative implementations, this information would potentially be used to identify the necessary clusters of interest to be passed back to the CPU, thereby limiting the storage required for intermediate data (7.t\, the ‘dehydration’ step described below could look at all pixels with wells, or it could be implemented more efficiently to only process pixels with wells/clusters that pass the filter).
[0083] The outputs of the image processing threads 201 are provided on lines 202 to a dispatch logic 210 in the CPU which routes the arrays of tile data to a data cache 204 on a high speed bus 203, or on high-speed bus 205 to the multi-cluster neural network processor hardware 220, such as the configurable processor of Figure 1, according to the state of the base calling operation. The hardware 220 returns classification data output by the neural network to the dispatch logic 210, which passes the information to the data cache 204, or on lines 211 to threads 202 that perform base call and quality score computations using the classification data, and can arrange the data in standard formats for base call reads. The outputs of the threads 202 that perform base calling and quality score computations are provided on lines 212 to threads 203 that aggregate the base call reads, perform other operations such as data compression, and write the resulting base call outputs to specified destinations for utilization by the customers.
[0084] In some embodiments, the host can include threads (not shown) that perform final processing of the output of the hardware 220 in support of the neural network. For example, the hardware 220 can provide outputs of classification data from a final layer of the multi-cluster neural network. The host processor can execute an output activation function, such as a softmax function, over the classification data to configure the data for use by the base call and quality score threads 202. Also, the host processor can execute input operations (not shown), such as resampling, batch normalization or other adjustments of the tile data prior to input to the hardware 220.
[0085] Fig. 3 is a simplified diagram of a configuration of a configurable processor such as that of Fig. 1. In Fig. 3, the configurable processor comprises in FPGA with a plurality of high speed PCIe interfaces. The FPGA is configured with a wrapper 300 which comprises the data flow logic described with reference to Fig. 1. The wrapper 300 manages the interface and coordination with a runtime program in the CPU across the CPU communication link 309 and manages communication with the on-board DRAM 302 ( e.g . memory 160) via DRAM communication link 310. The data flow logic in the wrapper 300 provides patch data retrieved by traversing the arrays of tile data on the on-board DRAM 302 for the number N cycles to a cluster 301 and retrieves process data 315 from the cluster 301 for delivery back to the on-board DRAM 302. The wrapper 300 also manages transfer of data between the on-board DRAM 302 and host memory, for both the input arrays of tile data, and for the output patches of classification data. The wrapper transfers patch data on line 313 to the allocated cluster 301. The wrapper provides trained parameters, such as weights and biases on line 312 to the cluster 301 retrieved from the on-board DRAM 302. The wrapper provides configuration and control data on line 311 to the cluster 301 provided from, or generated in response to, the runtime program on the host via the CPU communication link 309. The cluster can also provide status signals on line 316 to the wrapper 300, which are used in cooperation with control signals from the host to manage traversal of the arrays of tile data to provide spatially aligned patch data, and to execute the multi-cycle neural network over the patch data using the resources of the cluster 301. [0086] As mentioned above, there can be multiple clusters on a single configurable processor managed by the wrapper 300 configured for executing on corresponding ones of multiple patches of the tile data. Each cluster can be configured to provide classification data for base calls in a subject sensing cycle using the tile data of multiple sensing cycles described herein.
[0087] In examples of the system, model data, including kernel data like filter weights and biases can be sent from the host CPU to the configurable processor, so that the model can be updated as a function of cycle number. A base calling operation can comprise, for a representative example, on the order of hundreds of sensing cycles. Base calling operation can include paired end reads in some embodiments. For example, the model trained parameters may be updated once every 20 cycles (or other number of cycles), or according to update patterns implemented for particular systems and neural network models. In some embodiments including paired end reads in which a sequence for a given string in a genetic cluster on a tile includes a first part extending from a first end down (or up) the string, and a second part extending from a second end up (or down) the string, the trained parameters can be updated on the transition from the first part to the second part.
[0088] In some examples, image data for multiple cycles of sensing data for a tile can be sent from the CPU to the wrapper 300. The wrapper 300 can optionally do some pre-processing and transformation of the sensing data and write the information to the on-board DRAM 302. The input tile data for each sensing cycle can include arrays of sensor data including on the order of 4000 x 3000 pixels per sensing cycle per tile or more, with two features representing colors of two images of the tile, and one or two bytes per feature per pixel. For an embodiment in which the number N is three sensing cycles to be used in each run of the multi -cycle neural network, the array of tile data for each run of the multi-cycle neural network can consume on the order of hundreds of megabytes per tile. In some embodiments of the system, the tile data also includes an array of DFC data, stored once per tile, or other type of metadata about the sensor data and the tiles.
[0089] In operation, when a multi-cycle cluster is available, the wrapper allocates a patch to the cluster. The wrapper fetches a next patch of tile data in the traversal of the tile and sends it to the allocated cluster along with appropriate control and configuration information. The cluster can be configured with enough memory on the configurable processor to hold a patch of data including patches from multiple cycles in some systems, that is being worked on in place, and a patch of data that is to be worked on when the current patch of processing is finished using a ping-pong buffer technique or raster scanning technique in various embodiments.
[0090] When an allocated cluster completes its run of the neural network for the current patch and produces an output patch, it will signal the wrapper. The wrapper will read the output patch from the allocated cluster, or alternatively the allocated cluster will push the data out to the wrapper. Then the wrapper will assemble output patches for the processed tile in the DRAM 302. When the processing of the entire tile has been completed, and the output patches of data transferred to the DRAM, the wrapper sends the processed output array for the tile back to the host/CPU in a specified format. In some embodiments, the on-board DRAM 302 is managed by memory management logic in the wrapper 300. The runtime program can control the sequencing operations to complete analysis of all the arrays of tile data for all the cycles in the run in a continuous flow to provide real time analysis.
[0091] Fig. 4 is a diagram of a multi-cycle neural network model which can be executed using the system described herein. The example shown in Fig. 4 can be referred to as a five-cycle input, one-cycle output neural network. The inputs to the multi-cycle neural network model include five spatially aligned patches ( e.g ., 400) from the tile data arrays of five sensing cycles of a given tile. Spatially aligned patches have the same aligned row and column dimensions (x,y) as other patches in the set, so that the information relates to the same clusters of genetic material on the tile in sequence cycles. In this example, a subject patch is a patch from the array of tile data for cycle N. The set of five spatially aligned patches includes a patch from cycle N-2 preceding the subject patch by two cycles, a patch from cycle N-l preceding the subject patch by one cycle, a patch from cycle N+l following the patch from the subject cycle by one cycle, and a patch from cycle N+2 following the patch from the subject cycle by two cycles.
[0092] The model includes a segregated stack 401 of layers of the neural network for each of the input patches. Thus, stack 401 receives as input, tile data for the patch from cycle N+2, and is segregated from the stacks 402, 403, 404, and 405 so they do not share input data or intermediate data. In some embodiments, all of the stacks 410-405 can have identical models, and identical trained parameters (such as trained weights and biases). In other embodiments, the models and trained parameters may be different in the different stacks. Stack 402 receives as input, tile data for the patch from cycle N+l. Stack 403 receives as input, tile data for the patch from cycle N. Stack 404 receives as input, tile data for the patch from cycle N-l. Stack 405 receives as input, tile data for the patch from cycle N-2. The layers of the segregated stacks each execute a convolution operation of a kernel including a plurality of filters over the input data for the layer. As in the example above, the patch 400 may include three features. The output of the layer 410 may include many more features, such as 10 to 20 features. Likewise, the outputs of each of layers 411 to 416 can include any number of features suitable for a particular implementation.
The parameters of the filters are trained parameters for the neural network, such as weights and biases. The output feature set (intermediate data) from each of the stacks 401-405 is provided as input to an inverse hierarchy 420 of temporal combinatorial layers, in which the intermediate data from the multiple cycles is combined. In the example illustrated, the inverse hierarchy 420 includes a first layer including three combinatorial layers 421, 422, 423, each receiving intermediate data from three of the segregated stacks, and a final layer including one combinatorial layer 430 receiving intermediate data from the three temporal layers 421, 422,
423.
[0093] The output of the final combinatorial layer 430 is an output patch of classification data for clusters located in the corresponding patch of the tile from cycle N. The output patches can be assembled into an output array classification data for the tile for cycle N. In some embodiments, the output patch may have sizes and dimensions different from the input patches. In some embodiments, the output patch may include pixel-by-pixel data that can be filtered by the host to select cluster data.
[0094] The output classification data can then be applied to a softmax function 440 (or other output activation function) optionally executed by the host, or on the configurable processor, depending on the particular implementation. An output function different from softmax could be used ( e.g ., making a base call output parameter according to largest output, then use a learned nonlinear mapping using context/network outputs to give base quality).
[0095] Finally, the output of the softmax function 440 can be provided as base call probabilities for cycle N (450) and stored in host memory to be used in subsequent processing. Other systems may use another function for output probability calculation, e.g., another nonlinear model.
[0096] The neural network can be implemented using a configurable processor with a plurality of execution clusters so as complete evaluation of one tile cycle within the duration of the time interval, or close to the duration of the time interval, of one sensing cycle, effectively providing the output data in real time. Data flow logic can be configured to distribute input units of tile data and trained parameters to the execution clusters, and to distribute output patches for aggregation in memory.
[0097] Input units of data for a five-cycle input, one-cycle output neural network like that of Fig. 4 are described with reference to Fig. 5 and Fig. 6 for a base call operation using two- channel sensor data. For example, for a given base in a genetic sequence, the base call operation can execute two flows of analyte and two reactions that generate two channels of signals, such as images, which can be processed to identify which one of four bases is located at a current position in the genetic sequence for each cluster of genetic material. In other systems, a different number of channels of sensing data may be utilized.
[0098] Fig. 5 shows arrays of tile data for five cycles for a given tile, tile M, used for the purposes of executing a five-cycle input, one-cycle output neural network. The five-cycle input tile data in this example can be written to the on-board DRAM, or other memory in the system which can be accessed by the data flow logic and, for cycle N-2, includes an array 501 for channel 1 and an array 511 for channel 2, for cycle N-l, an array 502 for channel 1 and an array 512 for channel 2, for cycle N, an array 503 for channel 1 and an array 513 for channel 2, for cycle N+l, an array 504 for channel 1 and an array 514 for channel 2, for cycle N+2, an array 505 for channel 1 and an array 515 for channel 2. Also an array 520 of metadata for the tile can be written once in the memory, in this case a DFC file, included for use as input to the neural network along with each cycle.
[0099] The data flow logic composes input units, which can be understood with reference to Fig. 6, of tile data that includes spatially aligned patches of the arrays of tile data for each execution cluster configured to execute a run of the neural network over an input patch. An input unit for an allocated execution cluster is composed by the data flow logic by reading spatially aligned patches ( e.g ., 601, 602, 611, 612, 620) from each of the arrays 501-505, 511, 515, 520 of tile data for the five input cycles, and delivering them via data paths (schematically 600) to memory on the configurable processor configured for use by the allocated execution cluster. The allocated execution cluster executes a run of the five-cycle input/one-cycle output neural network, and delivers an output patch for the subject cycle N of classification data for the same patch of the tile in the subject cycle N.
[0100] Fig. 7 illustrates a mapping of patches over an array of tile data for a given tile. In this example, and input array 700 of tile data has a width of X pixels and a height of Y pixels. After convolving a kernel, such as a 3 x 3 kernel with a stride of one pixel, in a plurality of layers of the neural network, the output tile 701 can be reduced by two rows and two columns per layer of the neural network. The reduction by two rows/columns is caused in this example, by the kernel size of 3x3 and the type of (edge) padding in use and can be different in different configurations. So, for example, the output tile 701 of classification data will have a width of X-L pixels, for a neural network comprising L/2 layers of convolutions of this type. Likewise, the output tile of classification data will have a height of Y-L pixels for a neural network comprising L/2 layers. For example, taking a neural network having six layers, L can be 12 pixels. In the example shown in Fig. 7, the patch areas are not drawn to scale.
[0101] The input patches are formed in an overlapping manner to account for lost pixels that result from the convolutions over the patch dimensions. The sizes of the input patches can be chosen according to the particular implementation. In one example, an input patch may have a dimension of 76 x 76 pixels, with three channels of one or more bytes each. An output patch may have a dimension of 64 x 64 pixels. In an embodiment, base call operation output classifications for A/C/T/G base calls, and the output patch may include four channels of one or more bytes for each pixel representing confidence scores for the classifications. In the example of Figure 4, the outputs on line 435 are unnormalized confidence scores for four base calls.
[0102] The data flow logic can address the array of tile data to patches in a raster scan fashion, or other scanning fashion to provide input patches ( e.g ., 705). For example, for the first available cluster, patch P0,0 can be provided. For a next available cluster, patch P0,1 can be provided. This sequence can be continued in a raster pattern until all of the patches of the tile are delivered to available clusters for processing.
[0103] Output patches (e.g., 706) can be written back in the same address space aligned with their subject input patches in some embodiments, accounting for any differences in the number of bytes per pixel used to encode the data. The output patches have an area (number of pixels) reduced relative to the input patches according to the number of convolution layers, and the nature of the convolutions executed.
[0104] Fig. 8 is a simplified representation of a stack of a neural network usable in a system like that of Fig. 4 (e.g, 401 and 420). In this example, some functions of the neural network are executed on the host (e.g, 800, 802) and other portions of the neural network are executed on the configurable processor (801).
[0105] In an example, a first function can be batch normalization (layer 810) formed on the CPU. However, in another example, batch normalization as a function may be fused into one or more layers, and no separate batch normalization layer may be present.
[0106] A number of spatial, segregated convolution layers are executed as a first set of convolution layers of the neural network, as discussed above on the configurable processor. In this example, the first set of convolution layers applies 2D convolutions spatially.
[0107] As shown in Fig. 8, a first spatial convolution 821 is executed, followed by a second spatial convolution 822, followed by a third spatial convolution 823, and so on for a number L/2 of spatially segregated neural network layers in each stack (L is described with reference to Figure 7). As indicated at 823 A, the number of spatial layers can be any practical number, which for context may range from a few to more than 20 in different embodiments.
[0108] For SP_CONV_ 0, kernel weights are stored for example in a (1,6,6,3,L) structure since there are 3 input channels to this layer. In this example, the “6” in this structure is due to storing coefficients in the transformed Winograd domain (the kernel size is 3x3 in the spatial domain but expands in the transform domain).
[0109] For other SP CONV layers, kernel weights are stored for this example in a (1,6,6 L) structure since there are K(=L) inputs and outputs for each of these layers.
[0110] The outputs of the stack of spatial layers are provided to temporal layers, including convolution layers 824, 825 executed on the FPGA. Layers 824 and 825 can be convolution layers applying ID convolutions across cycles. As indicated at 824A, the number of temporal layers can be any practical number, which for context may range from a few to more than 20 in different embodiments.
[0111] The first temporal layer, TEMP CONV O layer 824, reduces the number of cycle channels from 5 to 3, as illustrated in Figure 4. The second temporal layer, layer 825, reduces the number of cycle channels from 3 to 1 as illustrated in Fig. 4, and reduces the number of feature maps to four outputs for each pixel, representing confidence in each base call.
[0112] The output of the temporal layers is accumulated in output patches and delivered to the host CPU to apply for example, a softmax function 830, or other function to normalize the base call probabilities.
[0113] Fig. 9 illustrates an alternative implementation showing a 10-input, six-output neural network which can be executed for a base calling operation. In this example, tile data for spatially aligned input patches from cycles 0 to 9 are applied to segregated stacks of spatial layers, such as stack 901 for cycle 9. The outputs of the segregated stacks are applied to an inverse hierarchical arrangement of temporal stacks 920, having outputs 935(2) through 1135(7) providing base call classification data for subject cycles 2 through 7.
[0114] Fig. 10 illustrates one implementation of the specialized architecture of the neural network-based base caller ( e.g ., Fig. 4 and Fig. 9) that is used to segregate processing of data for different sequencing cycles. The motivation for using the specialized architecture is described first.
[0115] The neural network-based base caller processes data for a current sequencing cycle, one or more preceding sequencing cycles, and one or more successive sequencing cycles. Data for additional sequencing cycles provides sequence-specific context. The neural network-based base caller learns the sequence-specific context during training and base call them. Furthermore, data for pre and post sequencing cycles provides second order contribution of pre-phasing and phasing signals to the current sequencing cycle.
[0116] Images captured at different sequencing cycles and in different image channels are misaligned and have residual registration error with respect to each other. To account for this misalignment, the specialized architecture comprises spatial convolution layers that do not mix information between sequencing cycles and only mix information within a sequencing cycle. [0117] Spatial convolution layers use so-called “segregated convolutions” that operationalize the segregation by independently processing data for each of a plurality of sequencing cycles through a “dedicated, non-shared” sequence of convolutions. The segregated convolutions convolve over data and resulting feature maps of only a given sequencing cycle, i.e., intra-cycle, without convolving over data and resulting feature maps of any other sequencing cycle. [0118] Consider, for example, that the input data comprises (i) current data for a current (time t) sequencing cycle to be base called, (ii) previous data for a previous (time t-1) sequencing cycle, and (iii) next data for a next (time t+1) sequencing cycle. The specialized architecture then initiates three separate data processing pipelines (or convolution pipelines), namely, a current data processing pipeline, a previous data processing pipeline, and a next data processing pipeline. The current data processing pipeline receives as input the current data for the current (time t) sequencing cycle and independently processes it through a plurality of spatial convolution layers to produce a so-called “current spatially convolved representation” as the output of a final spatial convolution layer. The previous data processing pipeline receives as input the previous data for the previous (time t-1) sequencing cycle and independently processes it through the plurality of spatial convolution layers to produce a so-called “previous spatially convolved representation” as the output of the final spatial convolution layer. The next data processing pipeline receives as input the next data for the next (time t+1) sequencing cycle and independently processes it through the plurality of spatial convolution layers to produce a so- called “next spatially convolved representation” as the output of the final spatial convolution layer.
[0119] In some implementations, the current, previous, and next processing pipelines are executed in parallel.
[0120] In some implementations, the spatial convolution layers are part of a spatial convolutional network (or subnetwork) within the specialized architecture.
[0121] The neural network-based base caller further comprises temporal convolution layers that mix information between sequencing cycles, i.e., inter-cycles. The temporal convolution layers receive their inputs from the spatial convolutional network and operate on the spatially convolved representations produced by the final spatial convolution layer for the respective data processing pipelines.
[0122] The inter-cycle operability freedom of the temporal convolution layers emanates from the fact that the misalignment property, which exists in the image data fed as input to the spatial convolutional network, is purged out from the spatially convolved representations by the stack, or cascade, of segregated convolutions performed by the sequence of spatial convolution layers. [0123] Temporal convolution layers use so-called “combinatory convolutions” that groupwise convolve over input channels in successive inputs on a sliding window basis. In one implementation, the successive inputs are successive outputs produced by a previous spatial convolution layer or a previous temporal convolution layer.
[0124] In some implementations, the temporal convolution layers are part of a temporal convolutional network (or subnetwork) within the specialized architecture. The temporal convolutional network receives its inputs from the spatial convolutional network. In one implementation, a first temporal convolution layer of the temporal convolutional network groupwise combines the spatially convolved representations between the sequencing cycles. In another implementation, subsequent temporal convolution layers of the temporal convolutional network combine successive outputs of previous temporal convolution layers.
[0125] The output of the final temporal convolution layer is fed to an output layer that produces an output. The output is used to base call one or more clusters at one or more sequencing cycles.
[0126] During a forward propagation, the specialized architecture processes information from a plurality of inputs in two stages. In the first stage, segregated convolutions are used to prevent mixing of information between the inputs. In the second stage, combinatory convolutions are used to mix information between the inputs. The results from the second stage are used to make a single inference for the plurality of inputs.
[0127] This is different from the batch mode technique where a convolution layer processes multiple inputs in a batch at the same time and makes a corresponding inference for each input in the batch. In contrast, the specialized architecture maps the plurality of inputs to the single inference. The single inference can comprise more than one prediction, such as a classification score ( e.g ., softmax or pre-softmax base-wise classification scores or base- wise regression scores) for each of the four bases (A, C, T, and G).
[0128] In one implementation, the inputs have temporal ordering such that each input is generated at a different time step and has a plurality of input channels. For example, the plurality of inputs can include the following three inputs: a current input generated by a current sequencing cycle at time step (t), a previous input generated by a previous sequencing cycle at time step (t-1), and a next input generated by a next sequencing cycle at time step (t+1). In another implementation, each input is respectively derived from the current, previous, and next inputs by one or more previous convolution layers and includes k feature maps.
[0129] In one implementation, each input can include the following five input channels: a red image channel (in red), a red distance channel (in yellow), a green image channel (in green), a green distance channel (in purple), and a scaling channel (in blue). In another implementation, each input can include k feature maps produced by a previous convolution layer and each feature map is treated as an input channel.
[0130] Fig. 11 depicts one implementation of segregated layers, each of which can include convolutions. Segregated convolutions process the plurality of inputs at once by applying a convolution filter to each input in parallel. With the segregated convolutions, the convolution filter combines input channels in a same input and does not combine input channels in different inputs. In one implementation, a same convolution filter is applied to each input in parallel. In another implementation, a different convolution filter is applied to each input in parallel. In some implementations, each spatial convolution layer comprises a bank of k convolution filters, each of which applies to each input in parallel.
[0131] Fig. 12A depicts one implementation of combinatory layers, each of which can include convolutions. Fig. 12B depicts another implementation of the combinatory layers, each of which can include convolutions. Combinatory convolutions mix information between different inputs by grouping corresponding input channels of the different inputs and applying a convolution filter to each group. The grouping of the corresponding input channels and application of the convolution filter occurs on a sliding window basis. In this context, a window spans two or more successive input channels representing, for instance, outputs for two successive sequencing cycles. Since the window is a sliding window, most input channels are used in two or more windows.
[0132] In some implementations, the different inputs originate from an output sequence produced by a preceding spatial or temporal convolution layer. In the output sequence, the different inputs are arranged as successive outputs and therefore viewed by a next temporal convolution layer as successive inputs. Then, in the next temporal convolution layer, the combinatory convolutions apply the convolution filter to groups of corresponding input channels in the successive inputs.
[0133] In one implementation, the successive inputs have temporal ordering such that a current input is generated by a current sequencing cycle at time step (t), a previous input is generated by a previous sequencing cycle at time step (t-1), and a next input is generated by a next sequencing cycle at time step (t+1). In another implementation, each successive input is respectively derived from the current, previous, and next inputs by one or more previous convolution layers and includes k feature maps.
[0134] In one implementation, each input can include the following five input channels: a red image channel (in red), a red distance channel (in yellow), a green image channel (in green), a green distance channel (in purple), and a scaling channel (in blue). In another implementation, each input can include k feature maps produced by a previous convolution layer and each feature map is treated as an input channel.
[0135] The depth B of the convolution filter is dependent upon the number of successive inputs whose corresponding input channels are groupwise convolved by the convolution filter on a sliding window basis. In other words, the depth B is equal to the number of successive inputs in each sliding window and the group size. [0136] In Fig. 12A, corresponding input channels from two successive inputs are combined in each sliding window, and therefore B = 2. In Fig. 12B, corresponding input channels from three successive inputs are combined in each sliding window, and therefore B = 3.
[0137] In one implementation, the sliding windows share a same convolution filter. In another implementation, a different convolution filter is used for each sliding window. In some implementations, each temporal convolution layer comprises a bank of k convolution filters, each of which applies to the successive inputs on a sliding window basis.
[0138] Fig. 13 illustrates layers of a neural network, and corresponding kernels and weights to configure the neural network for base calling operation. For example, L number of layers 1302a, 1302b, ..., 1302L are illustrated in Fig. 13. Each layer 1302 of Fig. 13 corresponds to a corresponding layer of the neural network, such as any of the neural network illustrated in Figs.
4, 8, 9, 10, and 11 that is to be used for base calling. Merely as an example, layer 1302a of Fig.
13 may correspond to a layer implementing the first spatial convolution 821 of Fig. 8, layer 1302b of Fig. 13 may correspond to a layer implementing the second spatial convolution 822 of Fig. 8, and so on, and layer 1302L may correspond to a layer implementing the temporal convolution layer 825 of Fig. 8.
[0139] In an embodiment, each layer 1302 of Fig. 13 comprises a plurality of filters. For example, filters 13041a, 13042a, ..., 1304Na of the layer 1302a are illustrated in Fig. 13. The filters 1304 of Fig. 13 correspond to the various filters illustrated in Fig. 11, for example. Similarly, various other layers illustrated in Fig. 13 also includes corresponding filters.
[0140] In an embodiment, each filter 1304 comprises a corresponding plurality of kernels 1306 ( e.g ., see Fig. 11 for example kernels in a filter). For example, kernels 13061al, 13061a2,
..., 13061ak of the filter 1304 1a are illustrated in Fig. 13. Similarly, various other filters of Fig. 13 also include corresponding kernels, although such kernels are not illustrated in Fig. 13 for purposes of illustrative clarity. In an example, a kernel can be used in a convolution operation, or another appropriate operation of the neural network that is to be used for base calling.
[0141] Each kernel comprises one or more matrices (such as a square matrix), such as a 3><3 matrix or a 4x4 matrix (or a matrix of another appropriate dimension) comprising weight coefficients or weights. For example, example weights Wl, W2, ..., W9 of kernels 1306_lal and 13061 NL1 are illustrated in Fig. 13.
[0142] Although Fig. 13 does not illustrate biases, in an embodiment, one or more kernels, one or more filters, and/or one or more layers can also be associated with corresponding biases. The weights and biases are loaded in the reconfigurable processor 150 (see Fig. 1) along with a topology of the neural network (e.g., from the memory 104 and/or 160), and the neural network topology loaded within the reconfigurable processor 150 is configured with the weights and biases. The configured neural network is used to process cluster data from flow cells, to generate base call classification, as will be discussed in further detail herein.
[0143] In some computing systems, numbers are represented using floating point arithmetic. In floating point arithmetic, a floating-point number is represented with a fixed number of significant digits (the significand) and scaled using an exponent in some fixed base, where the base for the scaling is normally two, ten, sixteen, or the like. A number that can be represented using floating point arithmetic is of the following form: significand x baseexponent., where the significand is an integer, the base is an integer greater than or equal to two, and exponent is also an integer. For example, 1.2345 is represented as 12345 x 10-4, where 12345 is the significand, 10 is the base, and (-4) is the exponent. The term floating point refers to the fact that a number’s radix point (i.e., the decimal point, or, more commonly in computers, the binary point) can “float” - that is, it can be placed anywhere relative to the significant digits of the number. This position is indicated as the exponent component.
[0144] In an example, the weights and biases, which are to be uploaded in the configurable processor 150 to configure the neural network for base calling, are not represented using the floating-point arithmetic. For example, the configurable processor 150 may be better equipped to handle weights and biases using fixed point arithmetic, and not floating-point arithmetic. A fixed-point number representation is a real data type for a number that has a fixed number of digits after (and sometimes also before) the radix point, where the radix point (also sometimes referred to as the decimal point in English decimal notation) is the symbol used in numerical representations to separate the integer part of a number (to the left of the radix point) from its fractional part (to the right of the radix point).
[0145] In an embodiment, various parameters of the neural network (such as weights and biases) are, thus, represented using fixed point arithmetic, prior to being uploaded to the configurable processor 150. For example, assume 8 binary bits are used to represent individual weights. Depending on where the radix point is placed within the 8 bits, the representation or interpretation of the number changes. For example, of the 8 binary bits used to represent a weight, a MSB (Most Significant Bit) may be reserved for a sign bit ( e.g ., if the number represents a signed value). The remaining 7 bits can include zero or more integer bits, and zero or more fractional bits, and a sum of the integer and fractional bits is equal to 7. Thus, depending on where the radix point is placed, the number format changes. An 8-bit number in fixed point arithmetic can be represented and interpreted in one of many possible number fixed-point formats, e.g., depending on where the radix point is placed.
[0146] Fig. 14 illustrates a table 1400 depicting example 8-bit binary fixed-point formats, at least some of which can be used to represent parameters (e.g, weights and biases) of a neural network for base calling. The table 1400 includes eight rows, each representing a corresponding signed binary fixed-point format.
[0147] The fixed-point formats depicted in table 1400 are assumed to be signed fixed-point formats. Thus, a MSB is reserved for a sign bit. For example, an MSB of 1 indicates that the number is negative and an MSB of 0 indicates that the number is positive, while in another example an MSB of 1 indicates that the number is positive and an MSB of 0 indicates that the number is negative.
[0148] Although the table 1400 and various other embodiments, examples, and figures of this disclosure assume signed binary fixed-point formats ( e.g ., where the MSB is reserved for the sign bit), that is not meant to be limiting the scope of this disclosure, and the teachings of this disclosure can also be applicable to unsigned binary fixed-point formats (e.g., where the MSB is not reserved for the sign bit). Thus, in another example, one or more unsigned binary fixed-point formats may also be used for representing various parameters (such as weights and biases) of a neural network for base calling.
[0149] Referring again to the table 1400, in addition to the MSB sign bit, there are seven more bits to indicate a value of a parameter, where the seven bits include (i) zero or more integer bits and (ii) zero or more fractional bits. As shown in the drawing legend, the sign bit in the various formats is represented using a checkered box, the zero or more integer bits are represented using diagonal boxes, and the zero or more fractional bits are represented using dotted boxes. In each fixed-point format in table 1400, a black circle represents the radix point or decimal separator between the integer and fractional bits.
[0150] The first column of the table 1400 graphically illustrates the various fixed-point formats, and the second column of the table 1400 indicates the names of the fixed-point formats. The format name is generally indicated as Sa.b, in which “S” indicates that this is a signed number format where the MSB is reserved for sign bit. The phrase “a” in a Sa.b format indicates a number of integer bits in the format (where “a” can range from 0 to 7), and the phrase “b” in a Sa.b format indicates a number of fractional bits in the format (where “b” can also range from 7 to 0). In the example where the total number of bits is assumed to be 8, the sum of “a” and “b” is always equal to 7 (as the sign bit consumes one bit, the remaining seven bits are shared between the integer bits and the fractional bits).
[0151] Referring now to the first row of the table 1400, illustrated is a SO.7 fixed-point format, in which “S” indicates that this is a signed number format where the MSB is reserved for sign bit. The number “0” in the SO.7 format indicates that there is zero number of integer bit, and the number “7” in the SO.7 format indicates that there are seven number of fractional bits in this format. Thus, there are a total of 7 integer and fractional bits, and one sign bit in this 8-bit fixed point format. Here the radix point is immediately after the sign bit, thereby indicating that there are no integer bits in this format.
[0152] Referring now to the second row of the table 1400, illustrated is a SI.6 fixed-point format, in which “S” indicates that this is a signed number format where the MSB is reserved for sign bit. Furthermore, there is a single integer bit, and six fractional bits in this format. Thus, there are a total of 7 integer and fractional bits, and one sign bit in this 8-bit fixed point format. Here the radix point is after the sign bit and after the one integer bit.
[0153] Referring now to the third row of the table 1400, illustrated is a S2.5 fixed-point format, in which “S” indicates that this is a signed number format where the MSB is reserved for sign bit. Furthermore, there are two integer bit, and five fractional bits in this format. Thus, there are a total of 7 integer and fractional bits, and one sign bit in this 8-bit fixed point format. Here the radix point is after the sign bit and after two integer bits.
[0154] Referring now to the fourth row of the table 1400, illustrated is a S3.4 fixed-point format, in which “S” indicates that this is a signed number format where the MSB is reserved for sign bit. Furthermore, there are three integer bit, and four fractional bits in this format. Thus, there are a total of 7 integer and fractional bits, and one sign bit in this 8-bit fixed point format. Here the radix point is after the sign bit and after three integer bits.
[0155] The various other fixed-point formats in the table 1400 (such as S4.3, ... , S7.0) will be readily understood by those skilled in the art, based on the teachings of this disclosure.
[0156] Note that the numbers in any given fixed-point format can be stored in two’s complement format. For a given signed binary fixed-point format S a.b (e.g., where there are a number of integer bits and b number of fractional bits), a range of the format is given by:
Range = [-(2a); (2a - 2b) ]. Equation 1
[0157] Thus, a maximum value that can be represented by the format Sa.b is (2a - 2-b), and a minimum value that can be represented by the format Sa.b is (-2a).
[0158] Also, a resolution of a given signed binary fixed-point format Sa.b (where the resolution is a smallest step or difference between two consecutive numbers, and is represented by a value of the LSB) is given by:
Resolution = 2b. Equation 2
[0159] Equations 1 and 2 are derived from “Fixed Point Representation & Fractional Math,” by Oberstar, Erick L. (August 30, 2007), retrieved from http://www. superkits. net/whitepapers/Fixed%20Point%20Representation%20&%20Fractional% 20Math.pdf on March 8, 2021, which is incorporated by reference, as if fully set forth herein. Third and fourth columns of the table 1400 provide a range (e.g, a lower and an upper range, respectively) of the various formats, and a fifth column of the table 1400 provides a resolution of the various formats.
[0160] Thus, referring to the first row of the table 1400 ( i.e ., the SO.7 format, where a = 0, b = 7), a lower range is given by -20, or -1; and an upper range is given by (20 - 2-7) = (1- 0.0078125) = 0.9921875. Also, the resolution for this format is given by 2-7, or 0.0078125.
There are 256 possible values within the range specified for SO.7 format, in steps of 0.0078125. [0161] Similarly, referring to the second row of the table 1400 (; i.e ., the SI.6 format, where a = 1, b = 6), a lower range is given by -21, or -2; and an upper range is given by (21 - 2-6) = 0.984375. Also, the resolution for this format is given by 2-6, or 0.015625. There are 256 possible values within the range specified for SO.7 format, in steps of 0. 015625.
[0162] Note that for a given format, the corresponding resolution represents a maximum possible quantization error, when a parameter is quantized in accordance with the format ( e.g ., assuming that the parameter fits within the range of the format). Thus, if a parameter that is between -1 and 0.9921875 is quantized in accordance with the format SO.7, the maximum possible quantization error is 0.0078125.
[0163] Ranges and resolutions for various other formats are similarly calculated and illustrated in the table 1400.
[0164] Thus, referring to the table 1400, as the number of integer bits in the fixed-point format increase, a range of the format correspondingly increase. However, such as increase in the range is accompanied by a corresponding decrease in precision.
[0165] For example, the range of the SI.6 format is (-2, 1.984375), which is higher than the range (-1, 0.9921875) of the SO.6 format. However, the resolution of the SI.6 format is 0.015625, which is lower than the resolution 0.0078125 of the SO.7 format. Thus, an improvement in the range in the SI.6 format relative to the SO.7 format is accompanied by a sacrifice in the resolution.
[0166] Assume each of two neural network parameters, such as each of two example weights Wexl and Wex2, is to be quantized using a corresponding appropriate fixed-point format illustrated in table 1400. Because each weight is to be quantized using a corresponding format, the formats illustrated in Fig. 14 are also referred to as quantization formats. Assume that the weight Wexl of the neural network for base calling has a decimal value of 0.7, and assume that the weight Wex2 of the neural network for base calling has a decimal value of 1.5.
[0167] The weight Wexl falls within the range of each of the eight quantization formats illustrated in Fig. 14, and accordingly, can be quantized in accordance with any of the formats. However, if the weight Wexl is quantized with a format that has a relatively higher number of integer bits, a corresponding quantization error may be large. Merely as an example, if the weight Wexl having the value of 0.7 is quantized using S7.0 format, the value of the weight in this format would be rounded off to 1, with a relatively large quantization error of 0.3. In contrast, quantizing the weight Wexl in the SO.7 format may result in least quantization error ( e.g ., as the resolution for this format is the lowest). Accordingly, the weight Wexl having the example value of 0.7 can be optimally quantized in accordance with the quantization format SO.7.
[0168] On the other hand, the weight Wex2 having the example value of 1.5 falls within the range of formats SI.6, S2.5, S3.4, and so on, but is outside the range of the format SO.7 (note that the allowed range of SO.7 is -1 to 0.9921875). Thus, if the weight Wex2 having the example value of 1.5 is quantized in accordance with format SO.7, the weight Wex2 would have to be saturated to the 0.9921875. Accordingly, a quantization noise for quantizing the weight Wex2 to format SO.7 would be (1.5- 0.9921875), or 0.5078125. On the other hand, if the weight Wex2 is quantized in accordance with the format SI.6, the weight Wex2 would fit within the allowed range for this format and the maximum quantization error would be 0.015625. Furthermore, if the weight Wex2 is quantized in accordance with the format S2.5, the weight Wex2 would fit within the allowed range for this format but the quantization error might be as high as 0.03125. Accordingly, in an example, the weight Wex2 having the example value of 1.5 can be optimally quantized in accordance with the quantization format SI.6 (e.g., the weight Wex2 fits within the range of format SI.6, and the format SI.6 has minimum possible quantization error among all formats having ranges that fit this weight).
[0169] Generally speaking, given an example weight Wex, an appropriate (e.g, optimal) quantization format to quantize the weight Wex can be selected based on the ranges and the resolutions depicted within the table 1400. For example, given the example weight Wex, an absolute value of the weight |Wex| is calculated, and a next higher power of 2, that is higher than and closest to the absolute value of the weight |Wex|, is determined. For example, assume that the next higher power of 2, which is higher than the absolute value |Wex|, is 2P. Then a weight having a format SP.(T-P-l) is selected, where T is a total number of bits used in the quantization format, and the format is assumed to represent signed values. When expressed as an equation, the selected format is:
Selected format for Weight Wex = SP.(T-P-l), where the 2P is a next higher power of 2 relative to |Wex|, and T is a total number of bits in the selected format. Equation 3
[0170] For example, assume that Wex is 1.5. The power of 2, that is higher than and nearest to 1.5, is 21, or 2 (i.e., P = 1). Also assuming that a 8-bit signed quantization format is to be used, the quantization format selected for this value of Wex is SI. (8-1-1), or SI.6. Note that 22 or 4 is also a power of 2 that is higher than 1.5 - but this is not the power of 2 that is higher than and “nearest” to 1.5. Rather, 21 or 2 is the power of 2 is higher than and nearest to 1.5.
[0171] In another example, assume that Wex is -5.5. The power of 2, that is higher than but nearest to |-5.5|, is 23, or 8 (z.e., P = 3). Also assuming that a 8-bit signed quantization format is to be used, the quantization format selected for this value of Wex is S3. (8-3-1), or S3.4.
[0172] In yet another example, assume that Wex is 105.5. The power of 2, that is higher than but nearest to 105.5, is 27, or 128 (z.e., P = 7). Also assuming that a 8-bit signed quantization format is to be used, the quantization format selected for this value of Wex is S7. (8-7-1), or S7.0. [0173] If, however, the value of the weight Wex is higher than 127, then the format SO.7 can be used for this weight, and the weight Wex saturates to 127.
[0174] Thus, in some embodiments, equation 3 can be used to select an appropriate quantization format for a neural network parameter (such as a weight or a bias). In some other embodiments, instead of (or in addition to) using equation 3, a lookup table can also be used to select an appropriate quantization format for the neural network parameter, where the lookup table can be generated from the table 1400 of Fig. 14. Fig. 15A illustrates a Look-Up Table (LUT) 1500 usable to select a quantization format for a corresponding neural network parameter, and Fig. 15B illustrates a scale that represents at least some information of the LUT 1500 of Fig. 15 A. The neural network parameter can be a weight or a bias that is to be used to configure the neural network for base calling. The sixth column of the LUT 1500 of Fig. 15A represents ranges corresponding to the formats depicted in the first and second columns of the LUT 1500. LUT 1500 is generated from the table 1400 of Fig. 14, by adding the sixth column to the table 1400.
[0175] For example, referring to the first row of the LUT 1500 of Fig. 15 A, the format SO.7 is to be selected if the neural network parameter is within the range -1 to 0.9921875. Referring to the second row of the LUT 1500 of Fig. 15 A, the format SI.6 is to be selected if the neural network parameter is within either of the range -2 to -1, or within the range 0.9921875 to 1.984375, as also depicted in Fig. 15B. Referring to the third row of the LUT 1500 of Fig. 15A, the format S2.5 is to be selected if the neural network parameter is within either of the range -4 to -2, or within the range 1.984375 to 3.96875, as also depicted in Fig. 15B. Other ranges for other formats are also illustrated in Figs. 15A and 15B. Note that Fig. 15B is not drawn to the scale, and only a few ranges are illustrated in Fig. 15B for purposes of illustrative clarity.
[0176] Fig. 15C illustrates another LUT 1550 usable to select a quantization format for a corresponding absolute value of a neural network parameter. Thus, while the sixth column of the LUT 1500 of Fig. 15A included both positive and negative ranges, the sixth column of the LUT 1550 of Fig. 15C includes only positive ranges and assumes that an absolute value of the neural network parameter is assumed when using the LUT 1550. Note that the sixth column of LUT 1550 is an approximation of the sixth column of the LUT 1500. Merely as an example, referring to the fourth row of tables 1500 and 1550, the actual optimal range for the format S3.4 is -4 to -8, and from 3.96875 to 7.9375, as depicted in the LUT 1500 of Fig. 15A. However, this is approximated to an absolute value range of 4 to 8 in the LUT 1550 of Fig. 15C. Thus, for example, a neural network parameter having a value of 7.99 would be assigned the format S4.3 in accordance with LUT 1500 of Fig. 15 A, but would be assigned the format S3.4 in accordance with LUT 1550 of Fig. 15C. The choice of whether to use the LUT 1500 or 1550 is implementation specific. For example, the slight loss in accuracy in using LUT 1550 over LUT 1500 is compensated by the ease of use of the LUT 1550. In an example, where high accuracy is desired, the LUT 1500 of Fig. 15A may be used; and where ease of use is desired, the LUT 1550 of Fig. 15C may be used. Note that the sixth column of the LUT 1550 of Fig. 15C can also be derived using the above discussed equation 3.
[0177] Fig. 15D illustrates yet another LUT 1570 usable to select a quantization format for a corresponding absolute value of a neural network parameter. Thus, while the sixth column of the LUT 1500 of Fig. 15A included both positive and negative ranges, the sixth column of the LUT 1570 of Fig. 15D includes only positive ranges and assumes that an absolute value of the neural network parameter is assumed when using the LUT 1570. There is a slight difference between the ranges presented in the sixth columns of LUTs 1550 and 1570 of Figs. 15C and 15D, respectively. For example, in Fig. 15D, a range in the sixth column for a specific format is based on an actual upper range of the format depicted in the fourth column of the LUT 1570.
[0178] Thus, in an example, equation 3 and/or any of the LUTs 1500, 1550, or 1570 are to be used to select an appropriate ( e.g ., optimal) quantization format for a given neural network parameter (e.g., a weight or a bias to be used to configure the neural network), and the choice of equation 3 or any of the LUTs is implementation specific.
[0179] Fig. 16 illustrates a flowchart depicting a method 1600 for grouping of neural network parameters, selecting appropriate (e.g, optimal) quantization formats for individual groups, quantizing the neural network parameters of each group in accordance with the corresponding selected quantization format, and using the quantized neural network parameters to configure a neural network topology for base calling.
[0180] Operations 1604 to 1620 of the method 1600 can be performed by the CPU 102 (see Fig. 1) and/or by a remote computing machine (e.g, hosted by a deep learning cloud platform) that is remotely located relative to the sequencing machine 100. In a first example, solely the CPU 102 can perform the operations 1604-1620. In a second example, solely the remote computing machine can perform the operations 1604-1620. [0181] In a third example, the CPU 102 and the remote computing machine can perform the operations 1604-1620 ( e.g ., some of the operations are performed by the remote computing machine, while some other operations are performed by the CPU 102). Merely as an example, operations 1604-1616 (e.g., where quantization formats are selected, and corresponding control information are generated) can be performed by the remote computing machine, while operation 1620 (e.g, where the actual quantization is performed) can be performed by the CPU 102 in the local machine. In yet another example, operations 1604-1608 (e.g, grouping of parameters) can be performed by the remote computing machine, while operations 1612-1610 can be performed by the CPU 102 in the local machine. Any other combination of division of operations between the remote and the local machine is also possible.
[0182] In an embodiment, one or more of the operations 1604-1620 are performed by quantization logic being executed by the CPU 102 or by the remote computing machine.
[0183] At 1604 of the method 1600, a plurality of neural network parameters (also referred to simply as parameters) are received, where the parameters are usable to configure a neural network topology for base calling. Example of the parameters include weights and biases, as discussed. In an embodiment, the parameters can be generated and tuned by training a neural network for base calling. Training of a neural network for base calling, to generate neural network parameters such as weights and biases, are discussed in further detail in U.S. Nonprovisional Patent Application No. 16/825,987, titled “TRAINING DATA GENERATION FOR ARTIFICIAL INTELLIGENCE-BASED SEQUENCING,” filed 20 March 2020 (Attorney Docket No. ILLM 1008-16/IP-1693-US), which is incorporated by reference as if fully set forth herein.
[0184] As discussed above, the parameters can be either received by the CPU 102 within the sequencing machine 100, or by the remote computing machine. In an example where the CPU 102 receives the parameters, the CPU 102 can access a memory storing the parameters, such as the memory 104 (or memory 160). In another example, the parameters can be received by the CPU 102 from the remote computing machine over a network, such as the Internet.
[0185] The method 1600 then proceeds from 1604 to 1608, where the plurality of parameters is grouped in a plurality of groups. Any appropriate criteria may be used to group the parameters. For example, Fig. 17 illustrates an example layer-specific grouping of neural network parameters, Fig. 18 illustrates an example filter- specific grouping of neural network parameters, and Fig. 19 illustrates an example kernel- specific grouping of neural network parameters. Although Figs. 17-19 illustrate grouping of weights (i.e., specifically discusses weights as an example of neural network parameters), the teachings of these figures can be applied to other types of neural network parameters as well, such as biases. [0186] Referring to each of Figs. 17, 18, and 19, the topology of the neural network for base calling comprises a plurality of layers, such as layers 1302a, 1302b, ..., 1302L, as also discussed in further detail with respect to Fig. 13. Each layer 1302 comprises a plurality of filters 1304, and each filter 1304 comprises a plurality of kernels 1306, and each kernel comprises a plurality of weights ( e.g ., the figures illustrate an example kernel 1306_lal comprising weights Wl, ...,
W9), as discussed in further detail with respect to Fig. 13. In each of Figs. 17-19, each dotted oval shape encompasses components including a corresponding group of weights.
[0187] Now referring to the example of Fig. 17, the weights of the neural network topology are grouped in accordance with corresponding layers in which the weights are included. For example, weights of layer 1302a are grouped in a first weight group 1710a, weights of layer 1302b are grouped in a second weight group 1710b, weights of layer 1302L are grouped in a Lth weight group 1710L, and so on. Thus, for example, weights of each kernel included in each filter of the layer 1302a are grouped in the first weight group 1710a, weights of each kernel included in each filter of the layer 1302b are grouped in the second weight group 1710b, and so on.
[0188] Now referring to the example of Fig. 18, the weights of the neural network topology are grouped in accordance with corresponding filters in which the weights are included. For example, weights of various kernels included in a filter 1304 1a of the layer 1302a are grouped in a corresponding weight group 1810 1a, weights of various kernels included in a filter 1304_2a of the layer 1302a are grouped in a corresponding weight group 1810_2a, weights of various kernels included in a filter 1304_Na of the layer 1302a are grouped in a corresponding weight group 1810_Na, weights of various kernels included in a filter 1304 1L of the layer 1302L are grouped in a corresponding weight group 1810 1L, and so on. Thus, weights of kernels of each filter 1304 are grouped in a corresponding specific weight group.
[0189] Now referring to the example of Fig. 19, the weights of the neural network topology are grouped in accordance with corresponding kernels in which the weights are included. For example, weights of a kernel 1306_lal included in a filter 1304 1a of the layer 1302a are grouped in a corresponding weight group 1910 1a 1, weights of a kernel 1306_lak included in the filter 1304 1a of the layer 1302a are grouped in a corresponding weight group 1910_lak, weights of a kernel 1306 NL1 included in a filter 1304 NL of the layer 1302L are grouped in a corresponding weight group 1910 NL1, and so on. Thus, weights of each kernel are grouped in a corresponding weight group.
[0190] Thus, Figs. 17-19 illustrate example ways to group the weights. There may be other criteria for grouping the weights. For example, weights to process data from a first channel can be grouped in a first group, weights to process data from a second channel can be grouped in a second group, and so on. [0191] In Fig. 17 where a layer-specific weight grouping is done, each weight group includes a relatively higher number of weights. In contrast, In Fig. 19 where a kernel-specific weight grouping is done, each weight group includes a relatively smaller number of weights. In Fig. 18 where a filter-specific weight grouping is done, each weight group includes a relatively moderate number of weights. Thus, referring again to 1608 of Fig. 16, the manner in which the grouping is done can dictate a number of parameters included in each group, and the grouping criteria can be implementation specific. Further discussion on grouping criteria will be presented herein later in turn.
[0192] The method 1600 then proceeds from 1608 to 1612, where for each group of parameters, a maximum absolute value among absolute values of all parameters within the corresponding group is identified. For example, Fig. 20 illustrates a kernel-specific grouping of neural network parameters ( e.g ., similar to Fig. 19), where a parameter that has a maximum absolute value among all parameters within a corresponding group is identified. In Fig. 20, example weights of weight groups 1910_lal and 1910 NL1 are illustrated. For example, the weight group 1910_lal comprises weights of the kernel 1306_lal, and the weight group 1910 NL1 comprises weights of the kernel 1306 NL1. In the example of Fig. 20, the example weights of the example weight group 1910_lal are 0.89, -0.36, 0.24, 0.25, 0.29, -0.29, 0.01,
0.23, and 0.97. The example weights of the example weight group 1910_NL1 are 0.93, 0.86,
0.48, 0.25, -1.29, 0.36, 0.11, 0.33, and 0.84. Thus, weights of the two weight groups are generally between -1 to +1. However, there is one weight in the weight group 1910_NL1 having value -1.29, which may be considered an outlier.
[0193] Referring to Figs. 16 and 20, at 1612 of method 1600, a maximum absolute value among absolute values of all parameters within the group 1910_lal is identified as 0.97, and a maximum absolute value among absolute values of all parameters within the group 1910 NL1 is identified as 1.29.
[0194] The method 1600 of Fig. 16 then proceeds from 1612 to 1616, where for each group, (i) a corresponding quantization format is selected (e.g., using equation 3 and/or any of the LUTs 1500, 1550, or 1570), based on the maximum absolute value for the group, and (ii) corresponding control information identifying the selected quantization format is generated. [0195] In an example, quantization parameters (e.g, which may be stored in a memory that is either coupled to the CPU 102 or the remote computing machine) stores indication of a plurality of possible or available quantization formats in which the parameters can possibly be quantized. At 1616, the quantization logic (e.g, being executed either by the CPU 102 or by the remote computing machine) selects, for each group, a corresponding quantization format from the plurality of available quantization formats, based on the maximum absolute value for the group.
[0196] For example, referring to Figs. 16 and 20, for the group 1910_lal, the quantization format is selected based on the maximum absolute value for the group 1910_lal, where the maximum absolute value for the group 1910 1 al is 0.97. Now, any of equation 3, or LUTs 1500, 1550, or 1570 can be used to select a quantization format for the parameters of the group 1910_lal. As discussed with respect to equation 3 and as illustrated in the LUTs 1500, 1550, and 1570, the quantization format corresponding to the parameter value 0.97 is SO.7 format, and accordingly, quantization format SO.7 is selected for all the parameters of the group 1910_lal. [0197] On the other hand, for the group 1910 NL1, the quantization format is selected based on the maximum absolute value for the group 1910 NL1, where the maximum absolute value for the group 1910_NL1 is 1.29. Now, any of equation 3, or LUTs 1500, 1550, or 1570 can be used to select a quantization format for the parameters of the group 1910 NL1. As discussed with respect to equation 3 and as illustrated in the LUTs, the quantization format corresponding to the parameter value 1.29 is SI.6 format, and accordingly, quantization format SI.6 is selected for all the parameters of the group 1910 NL1.
[0198] Furthermore, for each group, control information identifying the selected quantization format is generated. For example, control bits 1920_lal are generated that identifies the selected quantization format SO.7 for the group 1910_lal. Similarly, control bits 1920 NL1 are generated that identifies the selected quantization format SI.6 for the group 1910 NL1. In a similar manner, quantization formats are selected for various other parameter groups, and corresponding control information identifying the selected quantization formats are also generated.
[0199] The method 1600 of Fig. 16 then proceeds from 1616 to 1620, where for each group, individual parameters within the group are quantized in accordance with the selected quantization format. For example, referring to Fig. 20, the weights in the weight group 1910_lal may be initially ( e.g ., prior to operations 1620 of Fig. 16) in a prequantized number format, such as a floating-point format or another appropriate number format. That is, prior to operations 1620, the weights are prequantized weights (i.e., the weights have not been quantized yet, and the prequantized weights are in an appropriate prequantized number format). At 1620 of the method 1600, the weights of the weight group 19 lO lal are quantized in accordance with the quantization format SO.7 selected for that group.
[0200] Similarly, the weights in the weight group 1910 NL1 may be initially in a floating point format (or another appropriate number format). At 1620 of the method 1600, the weights of the weight group 1910 NL1 are quantized in accordance with the quantization format SI.6 selected for that group.
[0201] It is to be noted that although Fig. 20 is used as an example to illustrate various operations of the method 1600 (such as operations 1616, 1620), the specific examples illustrated in Fig. 20 are not intended to limit the scope of this disclosure. For example, although Fig. 20 illustrates a kernel-specific grouping, another appropriate grouping may be used, such as a layer- specific grouping (see Fig. 17), a filter-specific grouping (see Fig. 18), or grouping based on another appropriate criteria ( e.g ., channel-specific grouping). Moreover, although Fig. 20 illustrates weights, the grouping and quantization is not limited to neural network weights, and the teachings of this disclosure is applicable to other types of neural network parameters, such as biases.
[0202] Although not illustrated in Fig. 16, in an embodiment, one or more configuration files are generated (e.g., either by the CPU 102, or by the remote computing machine) after the operations 1620, where a configuration file that includes quantized parameters and/or the corresponding control information of one or more groups. For example, a runtime logic or runtime program (discussed herein earlier) being executed in the CPU 102 generates the configuration file(s) that includes the quantized parameters of individual groups, as well as the control information for the individual groups.
[0203] It may be noted that a quantization format selected for a group is applicable to all parameters of the group. For example, for the group 1910 NL1, ideally, the format SI.6 is optimal for the weight -1.29, and the format SO.7 is optimal for the remaining weights. However, if individual weights of the group 1910 NL1 are to be assigned corresponding different quantization formats, then each weight of the group has to have corresponding control bits, which will increase the control signal overhead. Accordingly, instead of selecting individual formats for individual weights in a group, the entire group is assigned a common quantization format, thereby decreasing the control signal overhead. All weights in the group 1910 NL1 are to be quantized in accordance with the selected quantization format for the group 1910 NL1. [0204] Furthermore, increasing the number of parameters in each group decreases the control signal overhead, but may result in larger quantization errors. For example, even if a single outlier parameter within a large group has a relatively high absolute value, to fit the single outlier parameter within a range of a format, a format with higher number of integer bits is to be selected for the entire group, and as seen in Fig. 14, quantization error (e.g, resolution) increases with an increase in the number of integer bits in the selected format. Thus, increasing the number of parameters in each group increases possibility of larger overall quantization errors. On the other hand, decreasing the number of parameters in each group increases the control signal overhead ( e.g ., as control information has to be generated for each group), but may result in smaller overall quantization errors. Thus, a decision on a size of the group (e.g., whether to select the layer-specific larger group of Fig. 17, to select the filter-specific moderate-sized group of Fig. 18, or to select the kernel-specific smaller group of Fig. 19) may be based on a desired level of control signal overhead and/or desired level of quantization error, and may be implementation specific.
[0205] Referring again to the method 1600 of Fig. 16, subsequent to 1620, the method 1600 proceeds to 1640. It may be noted that in case the operations 1604 - 1620 are performed remotely by a remote computing machine, the quantized weights at the end of operations 1620 are transmitted from the remote computing machine to the sequencing machine 100, and stored within the memory 103 and/or memory 160.
[0206] Operation 1640 is performed by the CPU 102 and/or the data flow logic 151 (see Fig. 1). At 1640, the neural network topology (e.g, that is to be used for base calling) and the quantized parameters are loaded to the configurable processor 150, along with the control information. In an embodiment, loading the quantized parameters and the control information involves loading the configuration file(s) that includes the quantized parameters and the associated control information.
[0207] The method 1600 then proceeds from 1640 to 1644, where each loaded parameter is interpreted in accordance with the corresponding control information (e.g, within the configurable processor 150), and the neural network is configured using the interpreted parameters.
[0208] Note that each quantized parameter is a corresponding 8-bit binary number (e.g, assuming that 8-bit quantization formats are used), and without the control information, the 8-bit binary numbers are meaningless. For example, 11111111 quantized with a SO.7 format is different from 11111111 quantized with a S 1.6 format (e.g. , the radix or decimal points for these two different formats are placed at different corresponding positions). Thus, a mere 11111111, without accompanying control information indicating the format used for associated quantization, would not convey any meaningful information. Accordingly, at 1640, for each parameter group, the corresponding control information identifying the corresponding selected quantization format is also loaded in the configurable processor 150; and at 1644, the parameters are interpreted using the corresponding control information.
[0209] For example, the various 8-bit numbers representing the weights of the weight group 1910_lal were quantized using the format SO.7, and the corresponding control bits 1920_lal identify the format SO.7. Accordingly, at 1644, the 8-bit weights of the weight group 1910_lal are interpreted in accordance with the format SO.7. For example, when processing the 8-bit weights of the weight group 1910_lal, the configurable processor 150 knows that for each 8-bit weight in this group, the MSB is the sign bit, the radix or decimal point is immediately after the sign bit, and the remaining 7 bits are fractional bits ( e.g ., see first row of Fig. 15 A) - the configurable processor 150 interprets and processes the 8-bit weights of this group accordingly. [0210] On the other hand, when processing the 8-bit weights of the weight group 1910 NL1 that were quantized in accordance with the format SI.6 (see Fig. 20), the configurable processor 150 knows that for each 8-bit weight in this group, the MSB is the sign bit, followed by an integer bit, then the radix or decimal point, and the remaining 6 bits are fractional bits (e.g., see second row of Fig. 15 A) - the configurable processor 150 interprets and processes the 8-bit weights of this group accordingly.
[0211] Thus, when interpreting and processing weights of a specific group, the configurable processor 150 shifts the radix point of the weights, based on the associated control information. For example, when processing weights of the group 1910_lal that is quantized in accordance with the format SO.7, the configurable processor 150 shifts the radix point to immediately after the sign bit (which is the MSB). When processing weights of the group 1910_NL1 that is quantized in accordance with the format SI.6, the configurable processor 150 shifts the radix point between the second and third bits (e.g, the radix point is now after the MSB or sign bit, and a single integer bit). Thus, the configurable processor 150 shifts the radix point within a weight, depending on the quantization format used for the weight.
[0212] Also, at 1644, the interpreted parameters (such as the interpreted weights and biases) are used by the configurable processor 150 to configure the neural network topology (e.g, that was also loaded at 1640).
[0213] The method 1600 then proceeds from 1644 to 1648, where the configured neural network is applied on sensor data generated by various sensors of the sequencing machine 100, to produce base call classification data. Application of a configured neural network on sensor data generated by various sensors of the sequencing machine 100, to produce base call classification data, is discussed in further detail in co-pending U.S. Nonprovisional Patent Application No. 16/826,126, titled “ARTIFICIAL INTELLIGENCE-BASED BASE CALLING,” filed 20 March 2020 (Attorney Docket No. ILLM 1008-18/IP- 1744-US), which is incorporated by reference as if fully set forth herein.
[0214] In the method 1600 discussed herein, if a parameter (such as an outlier) is outside a specific quantization range of an associated quantization format, a next higher quantization format (e.g, having higher number of integer bits) with a higher range is considered for the parameter and for each parameter in the associated parameter group. For example, in the weight group 1910 NL1 (see Fig. 20), based on the outlier weight of -1.29, all weights of that group are assigned the quantization format SI.6. If that “-1.29” outlier weight was not considered or ignored when selecting the quantization format, then the group could have been assigned the quantization format SO.7. Thus, because of merely one outlier parameter, the entire weight group is assigned the quantization format SI.6, which increases quantization noise for individual weights of that weight group. In some examples, it may be preferable to disregard such an outlier when selecting the quantization format, e.g ., to reduce the overall quantization noise for all weights of the group. Thus, in such an example, the quantization format SO.7 may be selected for weight group 1910 NL1. The weight -1.29 is then saturated to -1, which is the minimum allowed value for this quantization format. This results in higher quantization noise for the outlier weight, but overall higher quantization resolution (or lower quantization noise) for all other weights of that weight group.
[0215] In an example, the method 1600 may be modified, to apply any appropriate criteria to select a quantization format. For example, if there is only one outlier outside a quantization format range, the outlier is ignored when selecting the quantization format. For example, as there is only one weight (e.g, -1.29) that is outside the range of the quantization format SO.7, the quantization format SO.7 is selected for the weight group 1910 NL1 (the weight -1.29 is then saturated to -1). However, in an example, if there is more than one outlier outside the quantization format range, the outliers are not ignored, and the next higher quantization format (e.g, with higher number of integers) is selected.
[0216] In yet another example, if there is only one outlier outside a quantization format range, then it is determined as to how much the outlier is outside the range of the quantization format. For example, a threshold value may be pre-specified (e.g, each quantization format can have a corresponding threshold value). Merely as an example, the threshold value for the quantization format SO.7 may be 0.2. Thus, if there is only one outlier and that outlier is more than 0.2 apart from the range of the quantization format SO.7, then the next higher quantization format (e.g, quantization format SI.6) is selected. In the above discussed example, as -1.29 is 0.29 apart from the range of the quantization format SO.7, the next higher quantization format (e.g, quantization format SI.6) is selected.
[0217] Thus, the principles of this disclosure allow use of multiple useful quantization formats that have their own range and/or noise tradeoffs, and the selection criteria of a quantization format can be easily modified based on implementation.
[0218] Fig. 21 illustrates a multiplication and an accumulation operation for an example input data quantization format and an example weight quantization format. For example, input data 2102 is in a format SO.7. The input data 2102 may be a tensor in a matrix form, merely as an example, and individual entries of the input tensor is quantized in the SO.7 format. Also, merely as an example, a kernel comprising weights 2104 are to be convoluted with the input 2102, and individual ones of the weights 2104 are also in the SO.7 format. Assume a convolution operation that involves multiplication of individual weights with individual entries of the input matrix. [0219] As discussed, values in SO.7 format can take values in the range from -1 to +0.9921875, and in steps of 2-7 or 0.0078125, as illustrated in table 1400. There are 256 possible values within the range specified for SO.7 format. In an example, the quantization is performed to symmetrically limit the SO.7 format range, so that it is in the range from -0.9921875 to +0.9921875 in steps of 0.0078125 ( e.g ., see LUT 1570 in Fig. 15D), and -1 is excluded from this format (e.g., as discussed with respect to Fig. 15D), so that only 255 values are possible within this format.
[0220] Because output 2108 is a multiplication (e.g, block 2106) of the input 2102 in SO.7 format and weight 2104 in SO.7 format, the output 2108 also has a specific range. For example, a maximum value of the output 2108 is (-1) x (-0.9921875) = 0.9921875, and a minimum value of the output 2108 is (-1) x 0.9921875 = -0.9921875. In an example, the output 2018 is quantized and stored using a SO.14 format with no loss of precision due to the quantization or multiplication, and with a step size of 2-7 x 2-7 = 2-14.
[0221] In an embodiment, an accumulator 2120 accumulates outputs 2108 of multiple such multiplications. Accordingly, as the accumulator output 2122 is a sum of multiple such outputs, the accumulator output 2122 can be outside the range of the SO.14 format. Merely as an example, if there are four consecutive outputs 2108 having values of 0.98, 0.88, 0.85, and 0.87, the accumulator output from accumulating the four outputs 2108 would be 3.58, which would be outside the range allowed by the SO.14 format, and the accumulator output has to saturate to the maximum value allowed by the SO.14 format. Accordingly, to prevent such saturation, the accumulator output has a format that has a higher number of integers (e.g, higher than the zero number of integer present in the SO.14 format of the output 2108). For example, the accumulator output is in accordance with the S4.14 format. With a S4.14 format, at least 16 outputs 2108 (e.g, each having maximum possible value in the SO.14 format) can be summed and accumulated, because 24 or about 16 is a maximum number that can be represented by the S4.14 format. In practice, more than 16 number of outputs 2108 can be accumulated by the accumulator 2120 without saturating, as many of the outputs 2108 may not have the maximum possible value in the SO.14 format, and some of the outputs 2108 are positive while some are negative, thereby averaging out and decreasing the value of the accumulator output.
[0222] Some of the outputs 2108 accumulated by the accumulator 2120, as discussed, can be positive, while some can be negative. Accordingly, the final sum or final accumulation of these outputs 2108 may not need the higher range provided by the S4.14 format. For example, some or all the integer bits can be dropped in the output 2122, as these integer bits are likely to be zero. Moreover, the 14 fractional bits can also be truncated or rounded off- such reduction in the fractional bits can result in some loss of precision. In an example, the quantization noise introduced by 14 fractional bits is relatively less than the noise in the input signal. Therefore, rounding away some of these LSBs does not impact system performance in a measurable way. Accordingly, in the example of Fig. 21, the S4.14 format output 2122 of the accumulator 2120 is rounded off by a rounding operator 2140 to a SO.7 format of the final output 2144. For example, the 8 most significant fractional bits are rounded off to the 7 fractional bits of the SO.7 format. [0223] Fig. 22 illustrates a multiplication and an accumulation operation for an example input data quantization format and an example weight quantization format. For example, input data 2202 is in a format SO.7, similar to Fig. 21. In Fig. 22 a kernel comprising weights 2204 are to be convoluted with the input 2202. Unlike Fig. 21, in Fig. 22 individual ones of the weights 2204 are in the SI.6 format (note that in Fig. 21, the weights were stored in a different format). Assume a convolution operation that involves multiplication of individual weights with individual entries of the input matrix.
[0224] As discussed, input 2202 in SO.7 format can take values in the range from -1 to +0.9921875, and in steps of 2-7 or 0.0078125, as illustrated in table 1400. There are 256 possible values within the range specified for SO.7 format. In an example, the quantization is performed to symmetrically limit the SO.7 format range, so that it is in the range from -0.9921875 to +0.9921875 in steps of 0.0078125, and -1 is excluded from this format ( e.g ., as discussed with respect to Fig. 15D), so that only 255 values are possible within this format.
[0225] Weight values 2204 in SI.6 format can take values in the range from -2 to +1.984375, and in steps of 2-6, as illustrated in table 1400. Note that the resolution of the weights 2204 is 2- 6, whereas the resolution of the weights 2104 of Fig. 21 is 2-7 - accordingly, quantization noise for the weights 2204 is larger than the quantization noise for the weights 2104.
[0226] Because output 2208 is a multiplication (e.g., block 2206) of the input 2202 in SO.7 format and weight 2204 in SI.6 format, the output 2208 also has a specific range. For example, a maximum value of the output 2108 is (-1) x (-1.984375) = 1.984375, and a minimum value of the output 2108 is (-1) x 0. 984375 = -1. 984375. In an example, the output 2018 is quantized and stored using a SI.13 format with no loss of precision due to the quantization or multiplication, and with a step size of 2-7 x 2-6 = 2-13.
[0227] Thus, compared to the output 2108 of Fig. 21, the output 2208 of Fig. 22 has a higher range, but a lower precision or resolution.
[0228] In an embodiment, an accumulator 2220 accumulates outputs 2208 of multiple such multiplications. Accordingly, as the accumulator output 2222 is a sum of multiple such outputs 2208, the accumulator output can be outside the range of the SI.13 format, as also discussed with respect to Fig. 21. Accordingly, to prevent saturation, the accumulator output has a format that has a higher number of integers ( e.g . , higher than the one integer present in the S 1.13 format of the output 2208). Merely as an example, the accumulator output 222 are in accordance with S5.13 format.
[0229] Some of the outputs 2208 accumulated by the accumulator 2220, as discussed, can be positive, while others can be negative. Accordingly, the final sum or final accumulation of these outputs 2208 may not need the higher range provided by the S5.13 format. For example, some or all the integer bits can be dropped, as these integer bits are likely to be zero. Moreover, the 13 fractional bits can also be truncated or rounded off - such reduction in the fractional bits can result in some loss of resolution, but the final output 2244 may not need the resolution of the 13 fractional bits. Accordingly, in the example of Fig. 22, the S5.13 format output 2222 of the accumulator 2220 is rounded off by a rounding operator 2240 to a SO.7 format of the final output 2244. For example, the 8 most significant fractional bits are rounded off to the 7 fractional bits of the SO.7 format.
[0230] Fig. 23 is a block diagram of a base calling system 2300 in accordance with one implementation. The base calling system 2300 may operate to obtain any information or data that relates to at least one of a biological or chemical substance. In some implementations, the base calling system 2300 is a workstation that may be similar to a bench-top device or desktop computer. For example, a majority (or all) of the systems and components for conducting the desired reactions can be within a common housing 2316.
[0231] In particular implementations, the base calling system 2300 is a nucleic acid sequencing system (or sequencer) configured for various applications, including but not limited to de novo sequencing, resequencing of whole genomes or target genomic regions, and metagenomics. The sequencer may also be used for DNA or RNA analysis. In some implementations, the base calling system 2300 may also be configured to generate reaction sites in a biosensor. For example, the base calling system 2300 may be configured to receive a sample and generate surface attached clusters of clonally amplified nucleic acids derived from the sample. Each cluster may constitute or be part of a reaction site in the biosensor.
[0232] The exemplary base calling system 2300 may include a system receptacle or interface 2312 that is configured to interact with a biosensor 2302 to perform desired reactions within the biosensor 2302. In the following description with respect to Fig. 23, the biosensor 2302 is loaded into the system receptacle 2312. However, it is understood that a cartridge that includes the biosensor 2302 may be inserted into the system receptacle 2312 and in some states the cartridge can be removed temporarily or permanently. As described above, the cartridge may include, among other things, fluidic control and fluidic storage components.
[0233] In particular implementations, the base calling system 2300 is configured to perform a large number of parallel reactions within the biosensor 2302. The biosensor 2302 includes one or more reaction sites where desired reactions can occur. The reaction sites may be, for example, immobilized to a solid surface of the biosensor or immobilized to beads (or other movable substrates) that are located within corresponding reaction chambers of the biosensor. The reaction sites can include, for example, clusters of clonally amplified nucleic acids. The biosensor 2302 may include a solid-state imaging device ( e.g ., CCD or CMOS imager) and a flow cell mounted thereto. The flow cell may include one or more flow channels that receive a solution from the base calling system 2300 and direct the solution toward the reaction sites. Optionally, the biosensor 2302 can be configured to engage a thermal element for transferring thermal energy into or out of the flow channel.
[0234] The base calling system 2300 may include various components, assemblies, and systems (or sub-systems) that interact with each other to perform a predetermined method or assay protocol for biological or chemical analysis. For example, the base calling system 2300 includes a system controller 2304 that may communicate with the various components, assemblies, and sub-systems of the base calling system 2300 and also the biosensor 2302. For example, in addition to the system receptacle 2312, the base calling system 2300 may also include a fluidic control system 2306 to control the flow of fluid throughout a fluid network of the base calling system 2300 and the biosensor 2302; a fluidic storage system 2308 that is configured to hold all fluids (e.g., gas or liquids) that may be used by the bioassay system; a temperature control system 2310 that may regulate the temperature of the fluid in the fluid network, the fluidic storage system 2308, and/or the biosensor 2302; and an illumination system 2309 that is configured to illuminate the biosensor 2302. As described above, if a cartridge having the biosensor 2302 is loaded into the system receptacle 2312, the cartridge may also include fluidic control and fluidic storage components.
[0235] Also shown, the base calling system 2300 may include a user interface 2314 that interacts with the user. For example, the user interface 2314 may include a display 2313 to display or request information from a user and a user input device 2315 to receive user inputs. In some implementations, the display 2313 and the user input device 2315 are the same device. For example, the user interface 2314 may include a touch-sensitive display configured to detect the presence of an individual's touch and also identify a location of the touch on the display. However, other user input devices 2315 may be used, such as a mouse, touchpad, keyboard, keypad, handheld scanner, voice-recognition system, motion-recognition system, and the like. As will be discussed in greater detail below, the base calling system 2300 may communicate with various components, including the biosensor 2302 ( e.g ., in the form of a cartridge), to perform the desired reactions. The base calling system 2300 may also be configured to analyze data obtained from the biosensor to provide a user with desired information.
[0236] The system controller 2304 may include any processor-based or microprocessor- based system, including systems using microcontrollers, reduced instruction set computers (RISC), application specific integrated circuits (ASICs), field programmable gate array (FPGAs), logic circuits, and any other circuit or processor capable of executing functions described herein. The above examples are exemplary only, and are thus not intended to limit in any way the definition and/or meaning of the term system controller. In the exemplary implementation, the system controller 2304 executes a set of instructions that are stored in one or more storage elements, memories, or modules in order to at least one of obtain and analyze detection data. Detection data can include a plurality of sequences of pixel signals, such that a sequence of pixel signals from each of the millions of sensors (or pixels) can be detected over many base calling cycles. Storage elements may be in the form of information sources or physical memory elements within the base calling system 2300.
[0237] The set of instructions may include various commands that instruct the base calling system 2300 or biosensor 2302 to perform specific operations such as the methods and processes of the various implementations described herein. The set of instructions may be in the form of a software program, which may form part of a tangible, non-transitory computer readable medium or media. As used herein, the terms “software” and “firmware” are interchangeable and include any computer program stored in memory for execution by a computer, including RAM memory, ROM memory, EPROM memory, EEPROM memory, and non-volatile RAM (NVRAM) memory. The above memory types are exemplary only, and are thus not limiting as to the types of memory usable for storage of a computer program.
[0238] The software may be in various forms such as system software or application software. Further, the software may be in the form of a collection of separate programs, or a program module within a larger program or a portion of a program module. The software also may include modular programming in the form of object-oriented programming. After obtaining the detection data, the detection data may be automatically processed by the base calling system 2300, processed in response to user inputs, or processed in response to a request made by another processing machine (e.g., a remote request through a communication link). In the illustrated implementation, the system controller 2304 includes an analysis module 2438 (see Fig. 24). In other implementations, system controller 2304 does not include the analysis module 2438 and instead has access to the analysis module 2438 ( e.g ., the analysis module 2438 may be separately hosted on cloud).
[0239] The system controller 2304 may be connected to the biosensor 2302 and the other components of the base calling system 2300 via communication links. The system controller 2304 may also be communicatively connected to off-site systems or servers. The communication links may be hardwired, corded, or wireless. The system controller 2304 may receive user inputs or commands, from the user interface 2314 and the user input device 2315.
[0240] The fluidic control system 2306 includes a fluid network and is configured to direct and regulate the flow of one or more fluids through the fluid network. The fluid network may be in fluid communication with the biosensor 2302 and the fluidic storage system 2308. For example, select fluids may be drawn from the fluidic storage system 2308 and directed to the biosensor 2302 in a controlled manner, or the fluids may be drawn from the biosensor 2302 and directed toward, for example, a waste reservoir in the fluidic storage system 2308. Although not shown, the fluidic control system 2306 may include flow sensors that detect a flow rate or pressure of the fluids within the fluid network. The sensors may communicate with the system controller 2304.
[0241] The temperature control system 2310 is configured to regulate the temperature of fluids at different regions of the fluid network, the fluidic storage system 2308, and/or the biosensor 2302. For example, the temperature control system 2310 may include a thermocycler that interfaces with the biosensor 2302 and controls the temperature of the fluid that flows along the reaction sites in the biosensor 2302. The temperature control system 2310 may also regulate the temperature of solid elements or components of the base calling system 2300 or the biosensor 2302. Although not shown, the temperature control system 2310 may include sensors to detect the temperature of the fluid or other components. The sensors may communicate with the system controller 2304.
[0242] The fluidic storage system 2308 is in fluid communication with the biosensor 2302 and may store various reaction components or reactants that are used to conduct the desired reactions therein. The fluidic storage system 2308 may also store fluids for washing or cleaning the fluid network and biosensor 2302 and for diluting the reactants. For example, the fluidic storage system 2308 may include various reservoirs to store samples, reagents, enzymes, other biomolecules, buffer solutions, aqueous, and non-polar solutions, and the like. Furthermore, the fluidic storage system 2308 may also include waste reservoirs for receiving waste products from the biosensor 2302. In implementations that include a cartridge, the cartridge may include one or more of a fluidic storage system, fluidic control system or temperature control system. Accordingly, one or more of the components set forth herein as relating to those systems can be contained within a cartridge housing. For example, a cartridge can have various reservoirs to store samples, reagents, enzymes, other biomolecules, buffer solutions, aqueous, and non-polar solutions, waste, and the like. As such, one or more of a fluidic storage system, fluidic control system or temperature control system can be removably engaged with a bioassay system via a cartridge or other biosensor.
[0243] The illumination system 2309 may include a light source ( e.g ., one or more LEDs) and a plurality of optical components to illuminate the biosensor. Examples of light sources may include lasers, arc lamps, LEDs, or laser diodes. The optical components may be, for example, reflectors, dichroics, beam splitters, collimators, lenses, filters, wedges, prisms, mirrors, detectors, and the like. In implementations that use an illumination system, the illumination system 2309 may be configured to direct an excitation light to reaction sites. As one example, fluorophores may be excited by green wavelengths of light, as such the wavelength of the excitation light may be approximately 532 nm. In one implementation, the illumination system 2309 is configured to produce illumination that is parallel to a surface normal of a surface of the biosensor 2302. In another implementation, the illumination system 2309 is configured to produce illumination that is off-angle relative to the surface normal of the surface of the biosensor 2302. In yet another implementation, the illumination system 2309 is configured to produce illumination that has plural angles, including some parallel illumination and some off- angle illumination.
[0244] The system receptacle or interface 2312 is configured to engage the biosensor 2302 in at least one of a mechanical, electrical, and fluidic manner. The system receptacle 2312 may hold the biosensor 2302 in a desired orientation to facilitate the flow of fluid through the biosensor 2302. The system receptacle 2312 may also include electrical contacts that are configured to engage the biosensor 2302 so that the base calling system 2300 may communicate with the biosensor 2302 and/or provide power to the biosensor 2302. Furthermore, the system receptacle 2312 may include fluidic ports (e.g., nozzles) that are configured to engage the biosensor 2302.
In some implementations, the biosensor 2302 is removably coupled to the system receptacle 2312 in a mechanical manner, in an electrical manner, and also in a fluidic manner.
[0245] In addition, the base calling system 2300 may communicate remotely with other systems or networks or with other bioassay systems 2300. Detection data obtained by the bioassay system(s) 2300 may be stored in a remote database.
[0246] Fig. 24 is a block diagram of the system controller 2304 that can be used in the system of Fig. 23. In one implementation, the system controller 2304 includes one or more processors or modules that can communicate with one another. Each of the processors or modules may include an algorithm (e.g, instructions stored on a tangible and/or non-transitory computer readable storage medium) or sub-algorithms to perform particular processes. The system controller 2304 is illustrated conceptually as a collection of modules, but may be implemented utilizing any combination of dedicated hardware boards, DSPs, processors, etc. Alternatively, the system controller 2304 may be implemented utilizing an off-the-shelf PC with a single processor or multiple processors, with the functional operations distributed between the processors. As a further option, the modules described below may be implemented utilizing a hybrid configuration in which certain modular functions are performed utilizing dedicated hardware, while the remaining modular functions are performed utilizing an off-the-shelf PC and the like. The modules also may be implemented as software modules within a processing unit. [0247] During operation, a communication port 2420 may transmit information ( e.g ., commands) to or receive information (e.g., data) from the biosensor 2302 (Fig. 23) and/or the sub-systems 2306, 2308, 2310 (Fig. 23). In implementations, the communication port 2420 may output a plurality of sequences of pixel signals. A communication port 2420 may receive user input from the user interface 2314 (Fig. 23) and transmit data or information to the user interface 2314. Data from the biosensor 2302 or sub-systems 2306, 2308, 2310 may be processed by the system controller 2304 in real-time during a bioassay session. Additionally, or alternatively, data may be stored temporarily in a system memory during a bioassay session and processed in slower than real-time or off-line operation.
[0248] As shown in Fig. 24, the system controller 2304 may include a plurality of modules 2431-2439 that communicate with a main control module 2430. The main control module 2430 may communicate with the user interface 2314 (Fig. 23). Although the modules 2431-2439 are shown as communicating directly with the main control module 2430, the modules 2431-2439 may also communicate directly with each other, the user interface 2314, and the biosensor 2302. Also, the modules 2431-2439 may communicate with the main control module 2430 through the other modules.
[0249] The plurality of modules 2431-2439 include system modules 2431-2433, 2439 that communicate with the sub-systems 2306, 2308, 2310, and 2309, respectively. The fluidic control module 2431 may communicate with the fluidic control system 2306 to control the valves and flow sensors of the fluid network for controlling the flow of one or more fluids through the fluid network. The fluidic storage module 2432 may notify the user when fluids are low or when the waste reservoir is at or near capacity. The fluidic storage module 2432 may also communicate with the temperature control module 2433 so that the fluids may be stored at a desired temperature. The illumination module 2439 may communicate with the illumination system 2309 to illuminate the reaction sites at designated times during a protocol, such as after the desired reactions (e.g, binding events) have occurred. In some implementations, the illumination module 2439 may communicate with the illumination system 2309 to illuminate the reaction sites at designated angles.
[0250] The plurality of modules 2431-2439 may also include a device module 2434 that communicates with the biosensor 2302 and an identification module 2435 that determines identification information relating to the biosensor 2302. The device module 2434 may, for example, communicate with the system receptacle 2312 to confirm that the biosensor has established an electrical and fluidic connection with the base calling system 2300. The identification module 2435 may receive signals that identify the biosensor 2302. The identification module 2435 may use the identity of the biosensor 2302 to provide other information to the user. For example, the identification module 2435 may determine and then display a lot number, a date of manufacture, or a protocol that is recommended to be run with the biosensor 2302.
[0251] The plurality of modules 2431-2439 also includes an analysis module 2438 (also called signal processing module or signal processor) that receives and analyzes the signal data ( e.g ., image data) from the biosensor 2302. Analysis module 2438 includes memory ( e.g ., RAM or Flash) to store detection data. Detection data can include a plurality of sequences of pixel signals, such that a sequence of pixel signals from each of the millions of sensors (or pixels) can be detected over many base calling cycles. The signal data may be stored for subsequent analysis or may be transmitted to the user interface 2314 to display desired information to the user. In some implementations, the signal data may be processed by the solid-state imager (e.g., CMOS image sensor) before the analysis module 2438 receives the signal data.
[0252] The analysis module 2438 is configured to obtain image data from the light detectors at each of a plurality of sequencing cycles. The image data is derived from the emission signals detected by the light detectors and process the image data for each of the plurality of sequencing cycles through a neural network (e.g, a neural network-based template generator 2448, a neural network-based base caller 2458 (e.g, Fig. 4 and Fig. 10), and/or a neural network-based quality scorer 2468) and produce a base call for at least some of the analytes at each of the plurality of sequencing cycle.
[0253] Protocol modules 2436 and 2437 communicate with the main control module 2430 to control the operation of the sub-systems 2306, 2308, and 2310 when conducting predetermined assay protocols. The protocol modules 2436 and 2437 may include sets of instructions for instructing the base calling system 2300 to perform specific operations pursuant to predetermined protocols. As shown, the protocol module may be a sequencing-by-synthesis (SBS) module 2436 that is configured to issue various commands for performing sequencing-by synthesis processes. In SBS, extension of a nucleic acid primer along a nucleic acid template is monitored to determine the sequence of nucleotides in the template. The underlying chemical process can be polymerization ( e.g . as catalyzed by a polymerase enzyme) or ligation (e.g. catalyzed by a ligase enzyme). In a particular polymerase-based SBS implementation, fluorescently labeled nucleotides are added to a primer (thereby extending the primer) in a template dependent fashion such that detection of the order and type of nucleotides added to the primer can be used to determine the sequence of the template. For example, to initiate a first SBS cycle, commands can be given to deliver one or more labeled nucleotides, DNA polymerase, etc., into/through a flow cell that houses an array of nucleic acid templates. The nucleic acid templates may be located at corresponding reaction sites. Those reaction sites where primer extension causes a labeled nucleotide to be incorporated can be detected through an imaging event. During an imaging event, the illumination system 2309 may provide an excitation light to the reaction sites. Optionally, the nucleotides can further include a reversible termination property that terminates further primer extension once a nucleotide has been added to a primer. For example, a nucleotide analog having a reversible terminator moiety can be added to a primer such that subsequent extension cannot occur until a deblocking agent is delivered to remove the moiety. Thus, for implementations that use reversible termination a command can be given to deliver a deblocking reagent to the flow cell (before or after detection occurs). One or more commands can be given to effect wash(es) between the various delivery steps. The cycle can then be repeated n times to extend the primer by n nucleotides, thereby detecting a sequence of length n. Exemplary sequencing techniques are described, for example, in Bentley et ak, Nature 456:53-59 (2008); WO 04/018497; US 7,057,026; WO 91/06678; WO 07/123744; US 7,329,492; US 7,211,414; US 7,315,019; US 7,405,281, and US 2008/014708082, each of which is incorporated herein by reference.
[0254] For the nucleotide delivery step of an SBS cycle, either a single type of nucleotide can be delivered at a time, or multiple different nucleotide types (e.g, A, C, T and G together) can be delivered. For a nucleotide delivery configuration where only a single type of nucleotide is present at a time, the different nucleotides need not have distinct labels since they can be distinguished based on temporal separation inherent in the individualized delivery. Accordingly, a sequencing method or apparatus can use single color detection. For example, an excitation source need only provide excitation at a single wavelength or in a single range of wavelengths. For a nucleotide delivery configuration where delivery results in multiple different nucleotides being present in the flow cell at one time, sites that incorporate different nucleotide types can be distinguished based on different fluorescent labels that are attached to respective nucleotide types in the mixture. For example, four different nucleotides can be used, each having one of four different fluorophores. In one implementation, the four different fluorophores can be distinguished using excitation in four different regions of the spectrum. For example, four different excitation radiation sources can be used. Alternatively, fewer than four different excitation sources can be used, but optical filtration of the excitation radiation from a single source can be used to produce different ranges of excitation radiation at the flow cell.
[0255] In some implementations, fewer than four different colors can be detected in a mixture having four different nucleotides. For example, pairs of nucleotides can be detected at the same wavelength, but distinguished based on a difference in intensity for one member of the pair compared to the other, or based on a change to one member of the pair ( e.g ., via chemical modification, photochemical modification or physical modification) that causes apparent signal to appear or disappear compared to the signal detected for the other member of the pair. Exemplary apparatus and methods for distinguishing four different nucleotides using detection of fewer than four colors are described for example in US Pat. App. Ser. Nos. 61/538,294 and 61/619,878, which are incorporated herein by reference in their entireties. U.S. Application No. 13/624,200, which was filed on September 21, 2012, is also incorporated by reference in its entirety.
[0256] The plurality of protocol modules may also include a sample-preparation (or generation) module 2437 that is configured to issue commands to the fluidic control system 2306 and the temperature control system 2310 for amplifying a product within the biosensor 2302. For example, the biosensor 2302 may be engaged to the base calling system 2300. The amplification module 2437 may issue instructions to the fluidic control system 2306 to deliver necessary amplification components to reaction chambers within the biosensor 2302. In other implementations, the reaction sites may already contain some components for amplification, such as the template DNA and/or primers. After delivering the amplification components to the reaction chambers, the amplification module 2437 may instruct the temperature control system 2310 to cycle through different temperature stages according to known amplification protocols.
In some implementations, the amplification and/or nucleotide incorporation is performed isothermally.
[0257] The SBS module 2436 may issue commands to perform bridge PCR where clusters of clonal amplicons are formed on localized areas within a channel of a flow cell. After generating the amplicons through bridge PCR, the amplicons may be “linearized” to make single stranded template DNA, or sstDNA, and a sequencing primer may be hybridized to a universal sequence that flanks a region of interest. For example, a reversible terminator-based sequencing by synthesis method can be used as set forth above or as follows.
[0258] Each base calling or sequencing cycle can extend an sstDNA by a single base which can be accomplished for example by using a modified DNA polymerase and a mixture of four types of nucleotides. The different types of nucleotides can have unique fluorescent labels, and each nucleotide can further have a reversible terminator that allows only a single-base incorporation to occur in each cycle. After a single base is added to the sstDNA, excitation light may be incident upon the reaction sites and fluorescent emissions may be detected. After detection, the fluorescent label and the terminator may be chemically cleaved from the sstDNA. Another similar base calling or sequencing cycle may follow. In such a sequencing protocol, the SBS module 2436 may instruct the fluidic control system 2306 to direct a flow of reagent and enzyme solutions through the biosensor 2302. Exemplary reversible terminator-based SBS methods which can be utilized with the apparatus and methods set forth herein are described in US Patent Application Publication No. 2007/0166705 Al, US Patent Application Publication No. 2006/0188901 Al, US Patent No. 7,057,026, US Patent Application Publication No. 2006/0240439 Al, PCT Publication No. WO 05/065814, and PCT Publication No. WO 06/064199, each of which is incorporated herein by reference in its entirety. Exemplary reagents for reversible terminator-based SBS are described in US 7,541,444; US 7,057,026; US 7,427,673; US 7,566,537; and US 7,592,435, each of which is incorporated herein by reference in its entirety.
[0259] In some implementations, the amplification and SBS modules may operate in a single assay protocol where, for example, template nucleic acid is amplified and subsequently sequenced within the same cartridge.
[0260] The base calling system 2300 may also allow the user to reconfigure an assay protocol. For example, the base calling system 2300 may offer options to the user through the user interface 2314 for modifying the determined protocol. For example, if it is determined that the biosensor 2302 is to be used for amplification, the base calling system 2300 may request a temperature for the annealing cycle. Furthermore, the base calling system 2300 may issue warnings to a user if a user has provided user inputs that are generally not acceptable for the selected assay protocol.
[0261] In implementations, the biosensor 2302 includes millions of sensors (or pixels), each of which generates a plurality of sequences of pixel signals over successive base calling cycles. The analysis module 2438 detects the plurality of sequences of pixel signals and attributes them to corresponding sensors (or pixels) in accordance to the row-wise and/or column-wise location of the sensors on an array of sensors.
[0262] Each sensor in the array of sensors can produce sensor data for a tile of the flow cell, where a tile in an area on the flow cell at which clusters of genetic material are disposed during the based calling operation. The sensor data can comprise image data in an array of pixels. For a given cycle, the sensor data can include more than one image, producing multiple features per pixel as the tile data.
[0263] “Logic” ( e.g ., data flow logic), as used herein, can be implemented in the form of a computer product including a non-transitory computer readable storage medium with computer usable program code for performing the method steps described herein. The “logic” can be implemented in the form of an apparatus including a memory and at least one processor that is coupled to the memory and operative to perform exemplary method steps. The “logic” can be implemented in the form of means for carrying out one or more of the method steps described herein; the means can include (i) hardware module(s), (ii) software module(s) executing on one or more hardware processors, or (iii) a combination of hardware and software modules; any of (i)-(iii) implement the specific techniques set forth herein, and the software modules are stored in a computer readable storage medium (or multiple such media). In one implementation, the logic implements a data processing function. The logic can be a general purpose, single core or multicore, processor with a computer program specifying the function, a digital signal processor with a computer program, configurable logic such as an FPGA with a configuration file, a special purpose circuit such as a state machine, or any combination of these. Also, a computer program product can embody the computer program and configuration file portions of the logic. [0264] Fig. 25 is a simplified block diagram of a computer system 2500 that can be used to implement the technology disclosed. Computer system 2500 includes at least one central processing unit (CPU) 2572 that communicates with a number of peripheral devices via bus subsystem 2555. These peripheral devices can include a storage subsystem 2510 including, for example, memory devices and a file storage subsystem 2536, user interface input devices 2538, user interface output devices 2576, and a network interface subsystem 2574. The input and output devices allow user interaction with computer system 2500. Network interface subsystem 2574 provides an interface to outside networks, including an interface to corresponding interface devices in other computer systems.
[0265] User interface input devices 2538 can include a keyboard; pointing devices such as a mouse, trackball, touchpad, or graphics tablet; a scanner; a touch screen incorporated into the display; audio input devices such as voice recognition systems and microphones; and other types of input devices. In general, use of the term “input device” is intended to include all possible types of devices and ways to input information into computer system 2500.
[0266] User interface output devices 2576 can include a display subsystem, a printer, a fax machine, or non-visual displays such as audio output devices. The display subsystem can include an LED display, a cathode ray tube (CRT), a flat-panel device such as a liquid crystal display (LCD), a projection device, or some other mechanism for creating a visible image. The display subsystem can also provide a non-visual display such as audio output devices. In general, use of the term “output device” is intended to include all possible types of devices and ways to output information from computer system 2500 to the user or to another machine or computer system. [0267] Storage subsystem 2510 stores programming and data constructs that provide the functionality of some or all of the modules and methods described herein. These software modules are generally executed by deep learning processors 2578.
[0268] In one implementation, the neural networks are implemented using deep learning processors 2578 can be configurable and reconfigurable processors, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), and/or coarse-grained reconfigurable architectures (CGRAs) and graphics processing units (GPUs) other configured devices. Deep learning processors 2578 can be hosted by a deep learning cloud platform such as Google Cloud Platform™, Xilinx™, and Cirrascale™. Examples of deep learning processors 2578 include Google’s Tensor Processing Unit (TPU)™, rackmount solutions like GX4 Rackmount Series™, GX149 Rackmount Series™, NVIDIA DGX-1™, Microsoft’ Stratix V FPGA™, Graphcore’s Intelligent Processor Unit (IPU)™, Qualcomm’s Zeroth Platform™ with Snapdragon processors™, NVIDIA’ s Volta™, NVIDIA’ s DRIVE PX™, NVIDIA’ s JETSON TX1/TX2 MODULE™, Intel’s Nirvana™, Movidius VPU™, Fujitsu DPI™, ARM’s DynamicIQ™, IBM TrueNorth™, and others.
[0269] Memory subsystem 2522 used in the storage subsystem 2510 can include a number of memories including a main random access memory (RAM) 2534 for storage of instructions and data during program execution and a read only memory (ROM) 2532 in which fixed instructions are stored. A file storage subsystem 2536 can provide persistent storage for program and data files, and can include a hard disk drive, a floppy disk drive along with associated removable media, a CD-ROM drive, an optical drive, or removable media cartridges. The modules implementing the functionality of certain implementations can be stored by file storage subsystem 2536 in the storage subsystem 2510, or in other machines accessible by the processor. [0270] Bus subsystem 2555 provides a mechanism for letting the various components and subsystems of computer system 2500 communicate with each other as intended. Although bus subsystem 2555 is shown schematically as a single bus, alternative implementations of the bus subsystem can use multiple busses.
[0271] Computer system 2500 itself can be of varying types including a personal computer, a portable computer, a workstation, a computer terminal, a network computer, a television, a mainframe, a server farm, a widely -distributed set of loosely networked computers, or any other data processing system or user device. Due to the ever-changing nature of computers and networks, the description of computer system 2500 depicted in Fig 25 is intended only as a specific example for purposes of illustrating the preferred implementations of the present invention. Many other configurations of computer system 2500 are possible having more or less components than the computer system depicted in Fig. 25.
[0272] We claim as follows:

Claims

1. A method of quantizing parameters of a neural network, comprising: grouping a plurality of parameters of a neural network in a plurality of groups, such that each group of the plurality of groups includes corresponding two or more parameters of the plurality of parameters; for each group, selecting a corresponding quantization format from a plurality of available quantization formats, such that a first quantization format selected for at least a first group is different from a second quantization format selected for at least a second group; for each group, quantizing individual parameters within the corresponding group using the quantization format selected for the corresponding group; and storing the quantized parameters of the plurality of groups.
2. The method of claim 1, wherein selecting the first quantization format for the first group comprises: identifying a parameter of the first group that has a maximum absolute value among absolute values of all parameters of the first group; and selecting the first quantization format for the first group, based on the maximum absolute value of the identified parameter of the first group.
3. The method of claim 1 or 2, wherein selecting the first quantization format for the first group further comprises: determining that the maximum absolute value is within a first range of values in a Lookup Table (LUT); and selecting the first quantization format for the first group, based on the first range of values being mapped to the first quantization format in the LUT.
4. The method of any of claims 1-3, wherein selecting the first quantization format for the first group further comprises: determining a power of 2 that is higher than, and closest to, the maximum absolute value, where the power of 2 is represented as 2N; selecting the first quantization format such that the first quantization format is represented by a sign bit, N number of integer bits, (T-N-l) number of fractional bits, wherein T is a total number of bits in each of the plurality of available quantization formats.
5. The method of any of claims 1-4, wherein the first quantization format has a first range and a first number of integer bits, wherein the second quantization format has a second range and a second number of integer bits, wherein the second range is higher than the first range, and wherein selecting the first quantization format for the first group comprises: identifying a first parameter of the first group that has a maximum absolute value among absolute values of all parameters of the first group, determining that the maximum absolute value is within the second range and outside the first range; determining that all parameters of the first group, other than the first parameter, is within the first range; and in response to determining that all parameters of the first group, other than the first parameter, is within the first range, selecting the first quantization format for the first group.
6. The method of any of claims 1-5, wherein the first quantization format has a first range and a first number of integer bits, wherein the second quantization format has a second range and a second number of integer bits, wherein the second range is higher than the first range, and wherein selecting the first quantization format for the first group comprises: identifying a first parameter of the first group that has a maximum absolute value among absolute values of all parameters of the first group, determining that the maximum absolute value is within the second range and outside the first range; determining that (i) the maximum absolute value is within a threshold value of the first range and (ii) only the first parameter of the first group, and no other parameters of the first group, is outside the first range; and in response to determining that (i) the maximum absolute value is within the threshold value of the first range and (ii) only the first parameter of the first group, and no other parameters of the first group, is outside the first range, selecting the first quantization format for the first group.
7. The method of any of claims 1-6, wherein: the first quantization format and the second quantization format have a same number of total bits; the first quantization format has a first number of integer bits and a second number of fractional bits; and the second quantization format has a third number of integer bits that is different from the first number of integer bits, and a fourth number of fractional bits that is different from the second number of fractional bits.
8. The method of any of claims 1-7, wherein each of the first quantization format and the second quantization format has a corresponding sign bit.
9. The method of any of claims 1-8, wherein: the plurality of parameters of the neural network comprises a first plurality of trained weights of the neural network and/or a second plurality of trained biases of the neural network.
10. The method of any of claims 1-9, further comprising: training the neural network to compute the plurality of parameters of the neural network.
11. The method of any of claims 1-10, further comprising: for each group, generating corresponding control information that identifies the quantization format of the plurality of available quantization formats selected for the corresponding group.
12. The method of claim 11, further comprising: loading a topology of the neural network, the quantized parameters, and the control information to a configurable processor; and interpreting, by the configurable processor, the quantized parameters based on the corresponding control information, such that the quantized parameters of the first group are interpreted based on control information associated with the first group, and the quantized parameters of the second group are interpreted based on control information associated with the second group.
13. The method of any of claims 1-12, further comprising: configuring, by the configurable processor, the topology of the neural network, based on the quantized parameters interpreted by the configurable processor; and applying the configured neural network on sensor data generated by a flow cell, to generate base call classification data.
14. A method of quantizing parameters of a neural network, comprising: selecting, for a first parameter of a neural network, a first quantization format; selecting, for a second parameter of the neural network, a second quantization format, wherein the first quantization format and the second quantization format have a same number of total bits, wherein the first quantization format has a first number of integer bits and a second number of fractional bits, and wherein the second quantization format has (i) a third number of integer bits that is different from the first number of integer bits and (ii) a fourth number of fractional bits that is different from the second number of fractional bits; generating first control information that identifies the first quantization format selected for the first parameter; generating second control information that identifies the second quantization format selected for the second parameter; quantizing the first parameter and the second parameter in accordance with the first quantization format and the second quantization format, respectively; and storing the quantized first parameter, the quantized second parameter, the first control information, and the second control information.
15. The method of claim 14, further comprising: loading a topology of the neural network, the quantized first and second parameters, the first control information, and the second control information on a processor; interpreting, by the processor, the quantized first and second parameters, based on the first control information and the second control information, respectively; configuring, by the processor, the topology of the neural network, based on the quantized first and second parameters interpreted by the processor; and applying the configured neural network on sensor data generated by a flow cell, to generate base call classification data.
16. The method of claim 14 or 15, wherein the first parameter and the second parameter are a first trained weight and a second trained weight of the neural network.
17. The method of any of claims 14-16, wherein the first parameter and the second parameter are a first trained bias and a second trained bias of the neural network.
18. A method of generating base call classification data, comprising: loading, on a configurable processor, (i) a topology of a neural networks, (ii) a plurality of groups of parameters, each group of parameters including two or more corresponding parameters, and (iii) for each group of parameters, corresponding control information, wherein control information of each group of parameters identifies a corresponding quantization format in which each parameter of the corresponding group of parameters is quantized; interpreting, by the configurable processor, the parameters in each group of parameters, based on the corresponding control information; configuring, by the configurable processor, the topology of the neural network, based on the parameters as interpreted by the configurable processor; and applying the configured neural network on sensor data generated by a flow cell, to generate base call classification data.
19. The method of claim 18, wherein: first control information identifies a first quantization format in which parameters of a corresponding first group of parameters are quantized; second control information identifies a second quantization format in which parameters of a corresponding second group of parameters are quantized; the first quantization format and the second quantization format have a same number of total bits; the first quantization format has a sign bit, a first number of integer bits, and a second number of fractional bits; and the second quantization format has a sign bit, a third number of integer bits that is different from the first number of integer bits, and a fourth number of fractional bits that is different from the second number of fractional bits.
20. A system, comprising: memory storing trained weights and biases for a neural network in a prequantized format, and quantization parameters specifying a plurality of available quantization formats implemented by a configurable processor, wherein available quantization formats in the plurality of available quantization formats have a same total bit width, with variations in fractional bit widths; quantization logic configured to use the quantization parameters to quantize the trained weights and biases from the prequantized format to one or more of the available quantization formats; runtime logic configured to generate a configuration file that includes the quantized trained weights and biases, and control information that identifies the one or more of the available quantization formats as selected quantization formats, and to load the configuration file on the configurable processor; and the configurable processor configured to store and process the quantized trained weights and biases based on the control information, and to compensate for the variations in fractional bit widths between the selected quantization formats using bit shift operations.
21. The system of claim 20, wherein the neural network has a plurality of layers, and the quantization parameters specify the plurality of available quantization formats for each layer in the plurality of layers.
22. The system of claim 20 or 21, wherein the control information includes one or more control bits that are configured to indicate the selected quantization formats.
23. The system of any of claims 20-22, wherein the control information includes the control bits for each layer in the plurality of layers.
24. The system of any of claims 20-23, wherein the quantization parameters specify a first selected quantization format for a first layer in the plurality of layers, a second selected quantization factor for a second layer in the plurality of layers, and a third selected quantization factor for a third layer in the plurality of layers.
25. The system of any of claims 20-24, wherein the quantization logic is further configured to use the first selected quantization format to quantize a first set of the trained weights and biases for the first layer, the second selected quantization format to quantize a second set of the trained weights and biases for the second layer, and the third selected quantization format to quantize a third set of the trained weights and biases for the third layer.
26. The system of any of claims 20-25, wherein, for a sequencing run, the runtime logic is further configured to load, on the configurable processor, a first set of the trained weights and biases, then a second set of the trained weights and biases, and then a third set of the trained weights and biases.
27. The system of any of claims 20-26, wherein the neural network processes input that has a plurality of channels, and the quantization parameters specify the plurality of available quantization formats for each channel in the plurality of channels.
28. The system of any of claims 20-27, wherein each operation in a plurality of operations of the neural network has a plurality of groups of trained weights and biases, and the quantization parameters specify the plurality of available quantization formats for each group of trained weights and biases in the plurality of groups of trained weights and biases.
29. The system of any of claims 20-28, wherein the configurable processor is further configured to quantize weighted sums and post-nonlinearized outputs generated from the quantized trained weights and biases in the selected quantization formats using the bit shift operations.
30. The system of any of claims 20-29, wherein the available quantization formats are signed values.
31. The system of any of claims 20-30, wherein the available quantization formats are unsigned values.
32. A system, comprising: memory storing a set of trained weights and biases for a neural network in a prequantized format, and quantization parameters specifying a plurality of available quantization formats implemented by a configurable processor, wherein available quantization formats in the plurality of available quantization formats have same total width but different fractional width; quantization logic configured to quantize a first subset of the trained weights and biases in a first one of the available quantization formats, and to quantize a second subset of the trained weights and biases in a second one of the available quantization formats, wherein the second subset of the trained weights and biases would saturate if quantized in the first one of the available quantization formats; runtime logic configured to generate a configuration file that includes the quantized first and second subsets of the trained weights and biases, and control information that identifies the first and second ones of the available quantization formats as selected quantization formats, and to load the configuration file on the configurable processor; and the configurable processor configured to store and process the quantized first and second subsets of the trained weights and biases based on the control information.
33. A system, comprising: memory storing quantization parameters that specify a first available quantization format configured to quantize a first set of prequantized numbers to a first number of bits, and a second available quantization format configured to quantize a second set of prequantized numbers to the first number of bits, wherein the second set of prequantized numbers would saturate if quantized in the first available quantization format, and wherein the first and second available quantization formats have different number of integer bits that produce a corresponding different range of magnitudes; control information configured to identify the first and second available quantization formats; quantization logic to quantize the first set of prequantized numbers in the first available quantization format and to quantize the second set of prequantized numbers in the second available quantization format; and a configurable processor configured with the control information to interpret the first set of quantized numbers in accordance with the first available quantization format and to interpret the second set of quantized numbers in accordance with the second available quantization format.
34. A non-transitory computer readable storage medium impressed with computer program instructions to quantize parameters of a neural network, the instructions, when executed on a processor, implement a method comprising: grouping a plurality of parameters of a neural network in a plurality of groups, such that each group of the plurality of groups includes corresponding two or more parameters of the plurality of parameters; for each group, selecting a corresponding quantization format from a plurality of available quantization formats, such that a first quantization format selected for at least a first group is different from a second quantization format selected for at least a second group; for each group, quantizing individual parameters within the corresponding group using the quantization format selected for the corresponding group; and storing the quantized parameters of the plurality of groups.
35. The computer readable storage medium of claim 34, wherein selecting the first quantization format for the first group comprises: identifying a parameter of the first group that has a maximum absolute value among absolute values of all parameters of the first group; and selecting the first quantization format for the first group, based on the maximum absolute value of the identified parameter of the first group.
36. The computer readable storage medium of claim 34 or 35, wherein selecting the first quantization format for the first group further comprises: determining that the maximum absolute value is within a first range of values in a Lookup Table (LUT); and selecting the first quantization format for the first group, based on the first range of values being mapped to the first quantization format in the LUT.
37. The computer readable storage medium of any of claims 34-36, wherein selecting the first quantization format for the first group further comprises: determining a power of 2 that is higher than, and closest to, the maximum absolute value, where the power of 2 is represented as 2N; selecting the first quantization format such that the first quantization format is represented by a sign bit, N number of integer bits, (T-N-l) number of fractional bits, wherein T is a total number of bits in each of the plurality of available quantization formats.
38. The computer readable storage medium of any of claims 34-37, wherein: the first quantization format and the second quantization format have a same number of total bits; the first quantization format has a first number of integer bits and a second number of fractional bits; and the second quantization format has a third number of integer bits that is different from the first number of integer bits, and a fourth number of fractional bits that is different from the second number of fractional bits.
39. The computer readable storage medium of any of claims 34-38, wherein each of the first quantization format and the second quantization format has a corresponding sign bit.
40. The computer readable storage medium of any of claims 34-39, wherein: the plurality of parameters of the neural network comprises a first plurality of trained weights of the neural network and/or a second plurality of trained biases of the neural network.
41. The computer readable storage medium of any of claims 34-40, further comprising: training the neural network to compute the plurality of parameters of the neural network.
42. The computer readable storage medium of any of claims 34-41, wherein the instructions implement the method further comprising: for each group, generating corresponding control information that identifies the quantization format of the plurality of available quantization formats selected for the corresponding group.
43. The computer readable storage medium of claim 42, wherein the instructions implement the method further comprising: loading a topology of the neural network, the quantized parameters, and the control information to a configurable processor; and interpreting, by the configurable processor, the quantized parameters based on the corresponding control information, such that the quantized parameters of the first group are interpreted based on control information associated with the first group, and the quantized parameters of the second group are interpreted based on control information associated with the second group.
44. The computer readable storage medium of any of claims 34-43, wherein the instructions implement the method further comprising: configuring, by the configurable processor, the topology of the neural network, based on the quantized parameters interpreted by the configurable processor; and applying the configured neural network on sensor data generated by a flow cell, to generate base call classification data.
45. A non-transitory computer readable storage medium impressed with computer program instructions to quantize parameters of a neural network, the instructions, when executed on a processor, implement a method comprising: selecting, for a first parameter of a neural network, a first quantization format; selecting, for a second parameter of the neural network, a second quantization format, wherein the first quantization format and the second quantization format have a same number of total bits, wherein the first quantization format has a first number of integer bits and a second number of fractional bits, and wherein the second quantization format has (i) a third number of integer bits that is different from the first number of integer bits and (ii) a fourth number of fractional bits that is different from the second number of fractional bits; generating first control information that identifies the first quantization format selected for the first parameter; generating second control information that identifies the second quantization format selected for the second parameter; quantizing the first parameter and the second parameter in accordance with the first quantization format and the second quantization format, respectively; and storing the quantized first parameter, the quantized second parameter, the first control information, and the second control information.
46. The computer readable storage medium of claim 45, wherein the instructions implement the method further comprising: loading a topology of the neural network, the quantized first and second parameters, the first control information, and the second control information on a processor; interpreting, by the processor, the quantized first and second parameters, based on the first control information and the second control information, respectively; configuring, by the processor, the topology of the neural network, based on the quantized first and second parameters interpreted by the processor; and applying the configured neural network on sensor data generated by a flow cell, to generate base call classification data.
47. The computer readable storage medium of claim 45 or 46, wherein the first parameter and the second parameter are a first trained weight and a second trained weight of the neural network.
48. The computer readable storage medium of any of claims 45-47, wherein the first parameter and the second parameter are a first trained bias and a second trained bias of the neural network.
49. A non-transitory computer readable storage medium impressed with computer program instructions to generate base call classification data, the instructions, when executed on a processor, implement a method comprising: loading, on a configurable processor, (i) a topology of a neural networks, (ii) a plurality of groups of parameters, each group of parameters including two or more corresponding parameters, and (iii) for each group of parameters, corresponding control information, wherein control information of each group of parameters identifies a corresponding quantization format in which each parameter of the corresponding group of parameters is quantized; interpreting, by the configurable processor, the parameters in each group of parameters, based on the corresponding control information; configuring, by the configurable processor, the topology of the neural network, based on the parameters as interpreted by the configurable processor; and applying the configured neural network on sensor data generated by a flow cell, to generate base call classification data.
50. The computer readable storage medium of claim 49, wherein: first control information identifies a first quantization format in which parameters of a corresponding first group of parameters are quantized; second control information identifies a second quantization format in which parameters of a corresponding second group of parameters are quantized; the first quantization format and the second quantization format have a same number of total bits; the first quantization format has a sign bit, a first number of integer bits, and a second number of fractional bits; and the second quantization format has a sign bit, a third number of integer bits that is different from the first number of integer bits, and a fourth number of fractional bits that is different from the second number of fractional bits.
PCT/US2022/020462 2021-03-16 2022-03-15 Neural network parameter quantization for base calling WO2022197754A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP22714690.9A EP4309080A1 (en) 2021-03-16 2022-03-15 Neural network parameter quantization for base calling
CN202280005057.3A CN115699019A (en) 2021-03-16 2022-03-15 Neural network parameter quantification for base detection
CA3183567A CA3183567A1 (en) 2021-03-16 2022-03-15 Neural network parameter quantization for base calling
AU2022237501A AU2022237501A1 (en) 2021-03-16 2022-03-15 Neural network parameter quantization for base calling

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
US202163161880P 2021-03-16 2021-03-16
US202163161896P 2021-03-16 2021-03-16
US63/161,896 2021-03-16
US63/161,880 2021-03-16
US17/687,551 US20220301657A1 (en) 2021-03-16 2022-03-04 Tile location and/or cycle based weight set selection for base calling
US17/687,583 US20220300811A1 (en) 2021-03-16 2022-03-04 Neural network parameter quantization for base calling
US17/687,583 2022-03-04
US17/687,551 2022-03-04

Publications (1)

Publication Number Publication Date
WO2022197754A1 true WO2022197754A1 (en) 2022-09-22

Family

ID=81325254

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/US2022/020462 WO2022197754A1 (en) 2021-03-16 2022-03-15 Neural network parameter quantization for base calling
PCT/US2022/020460 WO2022197752A1 (en) 2021-03-16 2022-03-15 Tile location and/or cycle based weight set selection for base calling

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/US2022/020460 WO2022197752A1 (en) 2021-03-16 2022-03-15 Tile location and/or cycle based weight set selection for base calling

Country Status (1)

Country Link
WO (2) WO2022197754A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10491239B1 (en) * 2017-02-02 2019-11-26 Habana Labs Ltd. Large-scale computations using an adaptive numerical format
US20200125947A1 (en) * 2018-10-17 2020-04-23 Samsung Electronics Co., Ltd. Method and apparatus for quantizing parameters of neural network

Family Cites Families (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2044616A1 (en) 1989-10-26 1991-04-27 Roger Y. Tsien Dna sequencing
US6090592A (en) 1994-08-03 2000-07-18 Mosaic Technologies, Inc. Method for performing amplification of nucleic acid on supports
US5641658A (en) 1994-08-03 1997-06-24 Mosaic Technologies, Inc. Method for performing amplification of nucleic acid with two primers bound to a single solid support
JP2001517948A (en) 1997-04-01 2001-10-09 グラクソ、グループ、リミテッド Nucleic acid sequencing
AR021833A1 (en) 1998-09-30 2002-08-07 Applied Research Systems METHODS OF AMPLIFICATION AND SEQUENCING OF NUCLEIC ACID
DE60131194T2 (en) 2000-07-07 2008-08-07 Visigen Biotechnologies, Inc., Bellaire SEQUENCE PROVISION IN REAL TIME
AU2002227156A1 (en) 2000-12-01 2002-06-11 Visigen Biotechnologies, Inc. Enzymatic nucleic acid synthesis: compositions and methods for altering monomer incorporation fidelity
AR031640A1 (en) 2000-12-08 2003-09-24 Applied Research Systems ISOTHERMAL AMPLIFICATION OF NUCLEIC ACIDS IN A SOLID SUPPORT
US7057026B2 (en) 2001-12-04 2006-06-06 Solexa Limited Labelled nucleotides
US20040002090A1 (en) 2002-03-05 2004-01-01 Pascal Mayer Methods for detecting genome-wide sequence variations associated with a phenotype
EP3002289B1 (en) 2002-08-23 2018-02-28 Illumina Cambridge Limited Modified nucleotides for polynucleotide sequencing
GB0321306D0 (en) 2003-09-11 2003-10-15 Solexa Ltd Modified polymerases for improved incorporation of nucleotide analogues
ES2949821T3 (en) 2004-01-07 2023-10-03 Illumina Cambridge Ltd Molecular arrays
AU2005296200B2 (en) 2004-09-17 2011-07-14 Pacific Biosciences Of California, Inc. Apparatus and method for analysis of molecules
EP1828412B2 (en) 2004-12-13 2019-01-09 Illumina Cambridge Limited Improved method of nucleotide detection
US8045998B2 (en) 2005-06-08 2011-10-25 Cisco Technology, Inc. Method and system for communicating using position information
DK2463386T3 (en) 2005-06-15 2017-07-31 Complete Genomics Inc Nucleic acid analysis using random mixtures of non-overlapping fragments
GB0514936D0 (en) 2005-07-20 2005-08-24 Solexa Ltd Preparation of templates for nucleic acid sequencing
GB0517097D0 (en) 2005-08-19 2005-09-28 Solexa Ltd Modified nucleosides and nucleotides and uses thereof
US7405281B2 (en) 2005-09-29 2008-07-29 Pacific Biosciences Of California, Inc. Fluorescent nucleotide analogs and uses therefor
GB0522310D0 (en) 2005-11-01 2005-12-07 Solexa Ltd Methods of preparing libraries of template polynucleotides
US20080009420A1 (en) 2006-03-17 2008-01-10 Schroth Gary P Isothermal methods for creating clonal single molecule arrays
CN101460953B (en) 2006-03-31 2012-05-30 索雷克萨公司 Systems and devices for sequence by synthesis analysis
US20080242560A1 (en) 2006-11-21 2008-10-02 Gunderson Kevin L Methods for generating amplified nucleic acid arrays
US7595882B1 (en) 2008-04-14 2009-09-29 Geneal Electric Company Hollow-core waveguide-based raman systems and methods
HRP20211523T1 (en) 2011-09-23 2021-12-24 Illumina, Inc. Compositions for nucleic acid sequencing
NL2018852B1 (en) * 2017-05-05 2018-11-14 Illumina Inc Optical distortion correction for imaged samples
US11783917B2 (en) * 2019-03-21 2023-10-10 Illumina, Inc. Artificial intelligence-based base calling
EP3969884B1 (en) * 2019-05-16 2024-04-17 Illumina, Inc. Systems and methods for characterization and performance analysis of pixel-based sequencing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10491239B1 (en) * 2017-02-02 2019-11-26 Habana Labs Ltd. Large-scale computations using an adaptive numerical format
US20200125947A1 (en) * 2018-10-17 2020-04-23 Samsung Electronics Co., Ltd. Method and apparatus for quantizing parameters of neural network

Also Published As

Publication number Publication date
WO2022197752A1 (en) 2022-09-22

Similar Documents

Publication Publication Date Title
US20220300811A1 (en) Neural network parameter quantization for base calling
US20210265015A1 (en) Hardware Execution and Acceleration of Artificial Intelligence-Based Base Caller
US20210265016A1 (en) Data Compression for Artificial Intelligence-Based Base Calling
US20230041989A1 (en) Base calling using multiple base caller models
WO2022197754A1 (en) Neural network parameter quantization for base calling
EP4309080A1 (en) Neural network parameter quantization for base calling
US20230029970A1 (en) Quality score calibration of basecalling systems
WO2023009758A1 (en) Quality score calibration of basecalling systems
US20230026084A1 (en) Self-learned base caller, trained using organism sequences
US20220415445A1 (en) Self-learned base caller, trained using oligo sequences
KR20240035413A (en) Base calling using the multi-base caller model
EP4381514A1 (en) Base calling using multiple base caller models
CA3224387A1 (en) Self-learned base caller, trained using organism sequences
CN117529780A (en) Mass fraction calibration of base detection systems
CN117546248A (en) Base detection using multiple base detector model

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22714690

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 3183567

Country of ref document: CA

ENP Entry into the national phase

Ref document number: 2022237501

Country of ref document: AU

Date of ref document: 20220315

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2022714690

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2022714690

Country of ref document: EP

Effective date: 20231016