# US 2021/0342677 A1 · Architecture for a hardware based explainable neural network

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0342677 A1
- Document ID: US20210342677A1
- Status: Published application
- Kind: A1
- Application number: 17/245,328
- Filed: 2021-04-30
- Published: 2021-11-04
- Earliest claimed: 2020-05-01
- Assignees: UMNAI Limited
- Applicants: UMNAI Limited
- Inventors: Angelo DALLI; Mauro PIRRONE
- Web page: https://patentgrep.com/patent/US20210342677A1

## CPC

- G06N 3/042: Knowledge-based neural networks; Logical representations of neural networks
- G06N 3/063: using electronic means
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/08: Learning methods
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/09: Supervised learning
- G06N 3/092: Reinforcement learning
- G06N 3/098: Distributed learning, e.g. federated learning
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Explainable neural networks may be designed to be easily implementable in hardware efficiently, leading to substantial speed and space improvements. An exemplary embodiment extends upon possible hardware embodiments of XNNs, making them suitable for low power applications, smartphones, mobile computing devices, autonomous machines, server accelerators, Internet of Things (IoT) and edge computing applications amongst many other applications. The capability of XNNs to be transformed from one form to another while preserving their logical equivalence is exploited to create efficient, secure hardware implementations that are optimized for the desired application domain and predictable in their behavior.

## Claims

### Claim 1

A system for an artificial neural network that is implemented by hardware and that is interpretable and explainable, comprising:
an input layer configured to receive an input and identify one or more input features;
a conditional network, comprising:
a conditional layer configured to model the input features based on one or more partitions, wherein each of the one or more partitions comprises a rule;
an aggregation layer configured to aggregate one or more rules into one or more aggregated partitions; and
a switch output layer configured to selectively pool the aggregated partitions from the aggregation layer with the one or more partitions from the conditional layer;
a prediction network, comprising:
a feature generation and transformation network comprising one or more transformation neurons configured to apply one or more transformations to the input features;
a fit layer configured to combine features which have been transformed by the feature generation and transformation network to identify one or more coefficients related to at least one of: one or more features and one or more partitions;
a value output layer configured to analyze the one or more coefficients and configured to output a value related to at least one of the one or more features or the one or more partitions; and
an output layer configured to generate an output which is interpretable and explainable by at least one of a machine program or a human;
wherein at least one layer is implemented in at least one hardware circuit;
wherein each of the one or more partitions forms at least one local model and a combination of local models forms a global model; and
wherein one or more execution paths throughout the partitions are identifiable by an external process.

### Claim 2 (depends on 1)

The system of claim 1, wherein at least one of the conditional network and the prediction network is implemented as a wide neural network and wherein one of the conditional network and the prediction network are implemented on one or more separate hardware circuits; and wherein one or more of: the input layer, the conditional layer, the aggregation layer, the switch output layer, the feature generation and transformation network, the fit layer, the value output layer, and the output layer are each separately implemented on the one or more hardware circuits in communication with one another.

### Claim 3 (depends on 1)

The system of claim 1, wherein the output layer is further configured to embed an action trigger on a hardware circuit connected to the output layer, wherein the output of the output layer is configured to activate the action trigger for real-time processing without pausing the system.

### Claim 4 (depends on 1)

The system of claim 1 wherein the local models are updated using one or more of Genetic Algorithms (GAs) and Monte Carlo Simulation Methods (MCSM), Particle Swarm Optimization (PSO), Multiple Objective Optimization (MOO), simulated annealing, reinforcement learning, and causal logic models.

### Claim 5 (depends on 1)

The system of claim 1, wherein one or more rules or one or more coefficients of the fit layer are identified by a human user, wherein the identified rules or coefficients are directly hard-coded into the hardware circuit and are unchangeable by the neural network.

### Claim 6 (depends on 1)

The system of claim 1, wherein the hardware is one or more of a digital electronic circuitry, analog circuitry, a digital-analog hybrid, integrated circuitry, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), neuromorphic circuits, optical circuits, optical-electronic hybrid, and quantum computing hardware, wherein quantum computing hardware comprises one or more of: quantum logic specific operators, quantum CNOT, CSWAP, XX, YY, ZZ gates, Pauli gates, Hadamard gates, and Toffoli gates, wherein the quantum computing hardware is configured to combine one or more quantum logic specific operators serially or in parallel.

### Claim 7 (depends on 1)

The system of claim 1, further comprising a processor configured to receive an input and configured to produce an output, wherein the input is from one or more sensors, and wherein the output is human or machine readable, wherein the output identifies at least one of a predicted behavior and consequences of the predicted behavior of an external system or an autonomous machinery.

### Claim 8 (depends on 1)

The system of claim 1, wherein one or more of the rules and one or more of the coefficients are directly implemented in hardware, wherein the directly implemented rules and coefficients are unchangeable by software.

### Claim 9 (depends on 1)

The system of claim 1, wherein a plurality of identical redundant functions is identified and wherein the identical redundant functions are implemented on a single circuit, wherein the neural network is configured to activate the single circuit when executing the identical redundant functions.

### Claim 10 (depends on 1)

The system of claim 1, wherein a quantization is applied to at least one of the conditional network and the prediction network, wherein a plurality of zero-valued coefficients is identified and the identified zero-valued coefficients are not implemented on the hardware circuit(s), and one or more redundant local models are identified and the identified redundant local models are merged and optimized based on one or more logical circuit merging and optimization decisions such that a set of identical identified redundant local models is implemented as one hardware circuit and as one local model configured to reactivate in place of the one or more redundant local models.

### Claim 11 (depends on 1)

The system of claim 1, wherein the output further comprises an explanation and a justification.

### Claim 12 (depends on 1)

The system of claim 1, wherein the output layer further produces an output signal, wherein the output signal comprises a set of instructions for performing an action.

### Claim 13 (depends on 1)

The system of claim 1, wherein the hardware circuit is one or more of a neuromorphic chip, spintronics, memristor, spiking neurons, or quantum computing hardware.

### Claim 14 (depends on 1)

The system of claim 1, wherein each partition is explainable and interpretable, such that each local model formed from the partitions is explainable and interpretable, and the global model formed from the combination of local models is explainable and interpretable, and wherein an explanation is formed with the output in a single feed forward step.

### Claim 15 (depends on 1)

The system of claim 1, wherein the feature generation and transformation layer is configured to apply at least one of a linear transformation and a non-linear transformation, wherein the transformation functions comprise one or more of polynomial expansions, rotations, dimensional scaling, dimensionless scaling, Fourier transforms, integer/real/complex/quaternion/octonion transforms, Walsh functions, state-space transforms, phase-space transforms, Haar and non-Haar wavelets, generalized L2 functions, fractal-based transforms, Hadamard transforms, Type 1 fuzzy logic, Type 2 fuzzy logic, modal transforms, probabilistic transforms, quantum/qubit transforms, knowledge graph networks, categorical encoding, difference analysis, normalization, standardization, scaling, multi-dimensional Bezier curves, recurrence relations, causal operators, gradient descent based transformations, and subsets of an explainable neural network.

### Claim 16 (depends on 1)

The system of claim 1, wherein the transformation layer is further configured to perform a plurality of transformations in a transformation pipeline, wherein the transformation pipeline is configured to perform transformations that analyze one or more data sequences according to the value of one or more variables, wherein the data sequences comprise at least one of temporally ordered data sequences and event-driven data.

### Claim 17 (depends on 1)

The system of claim 1, wherein the system is further configured to form the partitions, based on the input, by comparing features from the input to a set of localization values and conditions, wherein the localization values and conditions are identified using an internal and/or external process.

### Claim 18 (depends on 1)

The system of claim 1, wherein the hardware circuit is configured to operate without a processor or sensors.

### Claim 19 (depends on 1)

The system of claim 1, wherein the hardware circuit is created by creating a Hardware Description Language (HDL) or Very High-Speed Integrated Circuits Program (VHSIC) Hardware Description Language (VHDL) description of the rules of the neural network and converting the HDL or VHDL description into an application specific integrated circuit (ASIC).

### Claim 20 (depends on 1)

The system of claim 1, wherein the hardware circuit further comprises one or more hard-coded safety rules, wherein the hard-coded safety rules are unchangeable by software and wherein the hard-coded safety rules are configured to perform an action based on a detected future hazard.

### Claim 21 (depends on 20)

The system of claim 20, wherein the action comprises shutting down the system.

### Claim 22 (depends on 1)

The system of claim 1, wherein the neural network is implemented in hardware as a Fixed Resource Model configured to interface with one or more systems selected from at least one of: a Real Time Operating System and a Robotic Operating System.

### Claim 23 (depends on 1)

The system of claim 1, wherein at least one of the layers is implemented as a micro neural network, wherein an activation path comprising a combination of micro neural networks which are activated to produce the output is identified and presented with the output.

### Claim 24 (depends on 1)

The system of claim 1, further comprising an encryption layer, wherein the encryption layer is configured to encrypt at least one of the input, the partitions, the rules, and the output, according to a homomorphic encryption protocol.

### Claim 25 (depends on 24)

The system of claim 24, wherein the encryption layer is configured to re-linearize the encrypted data, wherein the encrypted data is rescaled based on a predetermined maximum allowable amount of overall noise.

### Claim 26 (depends on 24)

The system of claim 24, wherein the output layer is configured to produce an encrypted output and encrypted explanation, wherein the encrypted output and encrypted explanation are configured to be decrypted in a recipient's secure environment.

### Claim 27

A computer implemented method for providing an artificial neural network in hardware that is explainable and interpretable, comprising executing on a processor the steps of:
inputting a set of data into an input layer;
partitioning the input based on one or more input features identified in the input, creating one or more partitions;
aggregating one or more of the partitions;
applying one or more transformation functions to the partitioned input features, providing a set of transformed features;
combining the transformed features and identifying one or more coefficients corresponding to the transformed features;
compiling one or more equations based on the coefficients and the transformed features;
compiling one or more rules based on the equation and the partitions;
implementing at least one of the one or more rules and the one or more equations into one or more hardware circuits,
applying the equations and rules to the set of input features to obtain an output value; and
outputting the output value and generating an explanation of the output value, wherein the explanation accounts for at least one of the coefficients;
wherein each of the one or more partitions forms at least one local model and a combination of local models forms a global model; and
wherein one or more paths throughout the partitions are identifiable by an external process.

### Claim 28 (depends on 27)

The method of claim 27, further comprising embedding an action trigger on at least one hardware type so that the outputted computation serves as the action trigger for real-time processing without pausing the system

### Claim 29 (depends on 27)

The method of claim 27, wherein the hardware circuits comprise one or more of an application specific integrated circuit (ASIC), field programmable gate array (FPGA), a Spintronic circuit, a neuromorphic computing chip, acceleration hardware, optical computing hardware, mechanical relays, low-powered chip, network device, hard-wired signaling mechanism, memristor circuit, firmware chip, or a quantum computing architecture.

### Claim 30 (depends on 27)

The method of claim 27, further comprising: receiving, by a user, a user input comprising at least one of a rule and a coefficient, updating the compiled rules based on the user input, and implementing a rule corresponding the user input in an unchangeable hardware circuit, wherein the rule corresponding to the user input is unchangeable by software.
