Control system and control circuit
The control system and circuit allow for dynamic updating of hardware-based malware detection in IoT devices using a complete binary tree structure with rewritable registers, addressing the limitations of static hardware implementations and improving threat detection efficacy.
Patent Information
- Application Number
- JP2023052450
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-10
AI Technical Summary
Conventional malware detection mechanisms implemented in hardware cannot be updated once embedded in IoT devices, leading to ineffective detection of new cyber threats and potential defects during the design stage.
A control system and control circuit that utilize a complete binary tree structure with rewritable registers to store and update tree structures and data, enabling dynamic discrimination and updating of malware detection in hardware.
Enables the update of tree structures and data in hardware discriminators, enhancing malware detection capabilities and maintaining effectiveness against evolving threats while maintaining a small hardware scale and low power consumption.
Smart Images

Figure 2024141024000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a control system and a control circuit. [Background technology]
[0002] Conventionally, there is technology for detecting anomalies in cyber attacks.
[0003] For example, there is a technology related to a method for appropriately determining the importance of logs (see Patent Document 1). This technology discloses an analysis device that creates an analysis model using a random forest or the like and runs a software program that can determine the importance of log entries.
[0004] There is also a technique for verifying tampering of a startup program using a microcomputer (see Patent Document 2). In this technique, a hash value is calculated from the startup program and compared with the hash value of the signature data for verification.
[0005] Furthermore, a technology for malware detection by circuit-level hardware using processor information is being considered (see Non-Patent Document 1). This technology considers the implementation of a detection circuit adjacent to a core in a single LSI. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] Re-tabled publication No. 2018-235252 [Patent Document 2] JP 2019-128792 A [Non-patent literature]
[0007] [Non-Patent Document 1] Kazuki Koike, Ryotaro Kobayashi, Masahiko Katoh. "IoT-oriented high-efficient anti-malware hardware focusing on time series metadata extractable from inside a processor core". International Journal of Information Security: 2022-02-25. Summary of the Invention [Problem to be solved by the invention]
[0008] Recently, there have been a series of cases of IoT devices being infected with malware. However, conventional security software for PCs and servers is complex software, and can slow down the operation of PCs and servers. Therefore, it is not realistic to install it in IoT devices that need to be small and inexpensive. For example, security software cannot be installed and operated on a surveillance camera. In addition, the verification method described in Patent Document 2 cannot detect various types of malware. On the other hand, a technology has been proposed to implement a malware detection mechanism in hardware rather than software, as described in Non-Patent Document 1.
[0009] However, the technology of Non-Patent Document 1 has a problem that once implemented in hardware, information on malware cannot be updated. If a value is embedded in a circuit by wiring, the value cannot be updated. In the above mechanism, a classifier obtained by machine learning is implemented as hardware for detection. As a machine learning algorithm, a random forest that can be realized with small-scale hardware is used. A random forest is a tree structure model, and each node only performs a comparison operation, so it has a relatively simple hardware structure. However, once the random forest used in the existing technology is implemented as a circuit in hardware, the tree structure and data cannot be changed. Therefore, even if new malware occurs, it is not possible to learn new cyber attacks and update the classifier. In addition, if the classifier contains defects at the design stage, it cannot be corrected after manufacturing.
[0010] The present invention has been made to solve the above problems, and has an object to provide a control system and a control circuit that make it possible to update the tree structure and data of a classifier built into hardware. [Means for solving the problem]
[0011] In order to achieve the above-mentioned object, the control system of the present invention is a control system that enables discrimination and updating in a discriminator in a processor mounted on an equipment, and is configured to include: a structure memory circuit that stores a first tree structure of a predetermined complete binary tree as a discriminator, the first tree structure including a set of node numbers, feature numbers, and threshold values for each node configured as a rewritable register; an update unit that receives a second tree structure that is a machine-learned second tree structure to be updated, the second tree structure being a set of node numbers, feature numbers, and threshold values, and rewrites and updates the first tree structure of the structure memory circuit using the set of node numbers, feature numbers, and threshold values of the second tree structure; and a control unit that controls a discrimination operation for the feature to be discriminated using each node of the first tree structure of the structure memory circuit in accordance with the feature output from a core.
[0012] In addition, the control circuit of the present invention is a control circuit that enables discrimination and updating in a discriminator in a processor mounted on an equipment, and is configured to include: a structure memory circuit that stores a first tree structure of a predetermined complete binary tree as a discriminator, the first tree structure including a set of node numbers, feature numbers, and threshold values for each node configured as a rewritable register; an update unit that receives a second tree structure that is a machine-learned second tree structure to be updated, the second tree structure being a set of node numbers, feature numbers, and threshold values, and rewrites and updates the first tree structure of the structure memory circuit using the set of node numbers, feature numbers, and threshold values of the second tree structure; and a control unit that controls a discrimination operation for the feature to be discriminated using each node of the first tree structure of the structure memory circuit in accordance with the feature output from a core. Effect of the Invention
[0013] According to the control system and control circuit of the present invention, it is possible to obtain an effect that the tree structure and data of the classifiers built into the hardware can be updated. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a schematic diagram showing a case where the re-learned updated tree structure above differs from the implemented tree structure below. [Diagram 2] FIG. 2 is a diagram showing an example of a tree structure generated by a random forest and an extension process. [Diagram 3] FIG. 3 is a diagram showing an example of a tree structure for assigning classification conditions. [Figure 4] FIG. 4 is a diagram showing an example of assigning a value to a dummy node in a tree structure. [Diagram 5] FIG. 5 is a diagram showing an example of a tree-structured register. [Figure 6] FIG. 6 is a diagram showing the configuration of a control system according to an embodiment of the present invention. [Figure 7] FIG. 7 is a sequence diagram showing the flow of control processing in the control system. [Figure 8] FIG. 8 is a diagram illustrating data stored in a register and each node in a tree structure. [Figure 9] FIG. 9 is a diagram illustrating an example of updating a terminal node. [Figure 10] FIG. 10 is a diagram showing an example of a discrimination process using a tree-structured discriminator. [Figure 11] FIG. 11 shows an example in which each process of the control unit 114 is modularized using a hardware description language, and each module is operated programmatically as a state transition mechanism. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
[0016] First, a background and overview that are the premise of the embodiment of the present invention will be described.
[0017] When a hardware-implemented classifier trained with a random forest tree structure is re-trained, the tree structure of the decision tree changes each time, but there is a problem in that if the implemented tree structure differs from the tree structure to be updated, it cannot be updated properly.
[0018] Here, we define a tree structure as a classifier. A tree structure is made up of branches (edges) that connect nodes. Of all the nodes, the first node is called the root, and the terminal nodes are called leaves. The depth n of a node is its distance from the root. The depth of the root is 0, and the depth when the shortest distance from a node passes through n branches is n.
[0019] Figure 1 is a diagram that shows a schematic diagram of a case where the re-learned updated tree structure at the top is different from the implemented tree structure at the bottom. When the tree structures are different, there may be cases where the updated node does not exist (nodes 10 and 11 cases) or the pre-update node does not exist (nodes I and J cases), and the tree structure information cannot be updated appropriately.
[0020] In addition, in previous research, random forests have been implemented on hardware by making the tree structure of the decision trees the same. In this case, all generated decision trees have the same tree structure up to a certain depth. Therefore, it is possible to generate identical tree structures by pruning nodes deeper than a certain depth and extracting only the remaining parts. However, when creating an identical tree structure, the depth must be made shallow, which results in lower judgment accuracy.
[0021] (Overview of update method) In the method of this embodiment, we propose a malware detection mechanism that can update the classifier to the content obtained by re-learning even after it is implemented on hardware, and has high judgment accuracy. In this method, in generating a tree structure, a decision tree is generated after specifying the depth using hyperparameters, and for parts where the branches do not extend to the specified depth, a process is performed to complement nodes so that the judgment results are the same before and after the process. In this way, the decision tree is shaped to reach a certain depth and have the same tree structure.
[0022] One of the key features of this method is that an incomplete binary tree is generated by random forest, but the difference with the complete binary tree is complemented by setting dummy nodes. An arbitrary value is set in the register of each dummy node, and the leaf of the dummy node (dummy leaf) is given the label of the leaf that is the nearest ancestor of the dummy leaf. This makes it possible to reflect the tree structure on the hardware no matter what kind of incomplete binary tree is generated. However, since there are several patterns for setting the dummy nodes, it is necessary not to determine a unique structure. An example of one of the patterns is explained below. In the following patterns, the dummy nodes are expressed as extending, extending, adding, etc., but they all have the same meaning.
[0023] An example of a pattern will be described. First, the depth is specified by a hyperparameter to generate a random forest. FIG. 2 is a diagram showing an example of a tree structure generated by a random forest and an extension process. Even if the depth is specified by a hyperparameter, in order to avoid overlearning, there are parts where the branches do not reach the specified depth (depth 3) as shown in the upper tree structure of FIG. 2. Therefore, nodes are added to the parts where the depth is insufficient as shown in the lower tree structure of FIG. 2. After that, the Value of the terminal node information and the classification condition are assigned to the dummy node added so that the judgment result is the same before and after the extension process and to the parent node of the dummy node. The terminal node information is Value=100 (backup), Value=400 (backup), etc. Note that data [number] in the node indicates the feature number, and the feature of the corresponding feature number is read in the judgment. The value to the right of the symbol "<" is the threshold assigned to the node. In the tree structure of this method, the node number, feature number, and threshold are determined in advance for each node (non-terminal node) in the hierarchy above the parent of the leaf. A non-terminal node functions as a comparator by reading in a feature amount and a threshold value.
[0024] Figure 3 shows an example of a tree structure to which classification conditions are assigned. Since the parent node of the added node is originally a terminal node, the parent node does not have a classification condition. Therefore, classification conditions are assigned to the parent node. If a random forest is generated by specifying a depth of a certain level or more, the tree structure will be the same up to depth 2. Therefore, as shown in Figure 3, the classification condition of the parent node located at a depth of -2 of the node to which you want to assign the classification condition is copied and used. In this example, the classification condition "If(data
[10] <30000)" is copied to the parent node of the dummy node.
[0025] After that, the added dummy node is assigned a value of Value, which is the terminal node information. FIG. 4 is a diagram showing an example of assigning a value to a dummy node in a tree structure. As shown in FIG. 4, the terminal node information of the extension source is moved to either the left or right of the added terminal node, taking into consideration the classification conditions previously assigned. Here, it is moved to the node on the side where the copied classification conditions branch out. Since the classification conditions are the same, it branches only to the terminal node. In addition, two terminal nodes are added, and a value has not yet been assigned to the other terminal node. By assigning the classification conditions of the extension source node, the result of the random forest will not reach a terminal node to which a value has not yet been assigned. Therefore, an appropriate value is entered as a temporary Value value for terminal nodes to which a value has not been assigned. Here, 0 is entered because there is no data to be assigned. This makes it possible to make the judgment results the same for the decision tree before the extension process and the decision tree after the extension process, and fills the difference with the complete binary tree.
[0026] FIG. 5 is a diagram showing an example of a case where a tree-structured register is configured. In a conventional hardware structure, values such as thresholds are embedded in a circuit by wiring, and tree-structure information cannot be updated. Therefore, as shown in FIG. 5, a register is prepared for each node of the decision tree, and tree-structure information such as thresholds is stored in the registers (node registers and threshold registers in the example), so that tree-structure information can be updated by overwriting new tree-structure information in the register. Conventionally, the threshold register part was the ground and power supply, and the threshold value was embedded in the register by wiring. In this method, the threshold is handled by an 8-bit updatable threshold register. Therefore, updating is possible by rewriting the threshold register with the threshold to be updated. In addition, the feature number corresponding to the node can be similarly rewritten using the node register, and each node can be configured so that the feature corresponding to the updated feature number is input. The above extension process and hardware structure change are performed to realize the proposed malware detection mechanism. As a result, for example, the hyperparameter can be set to a depth of 4 and the number of decision trees in the random forest can be set to 4.
[0027] <System configuration> Next, the configuration of the control system according to the embodiment of the present invention will be described. As shown in FIG. 6, the control system 1 includes a device 2 and a re-learning unit 120. The device 2 includes a processor 10 (LSI) and a communication unit 30, and the processor 10 includes a core 20 and a control circuit 100 adjacent to each other. The core 20, the communication unit 30, and the control circuit 100 are connected via a communication bus 60. The control circuit 100 includes a structure storage circuit 110, an update unit 112, and a control unit 114. Under the control of the control unit 114, the control circuit 100 uses a tree structure (first tree structure) as a discriminator of the structure storage circuit 110 to discriminate whether the feature output from the core 20 is malware or normal. Note that the update unit 112 and the control unit 114 are separated, but they may be configured as one unit in the control unit 114 and updated by the control unit 114.
[0028] The core 20 is a circuit that executes a program and performs calculations as a CPU, and outputs a feature amount to the control circuit 100. Note that the processor information output by the CPU is input to the control circuit 100 as a feature amount via a multiplexer (not shown), but since this is not the main technical aspect of the present method, a description thereof will be omitted.
[0029] The re-learning unit 120 is installed outside the processor 10, and generates a second tree structure that is machine-learned and is to be updated by re-learning. As described above, the second tree structure as circuit information is generated so that nodes that are incomplete binary trees are dummy nodes, and arbitrary values are set to each dummy node, so as to fill in the difference with the first tree structure of a predetermined complete binary tree. The second tree structure is generated as a tree structure in a format that can be stored in the structure storage circuit 110 as circuit information, and a set of node numbers, feature numbers, and threshold values is generated. As the hardware of the re-learning unit 120, any computer capable of machine learning such as random forest may be used. Note that the tree structure generated by the re-learning unit 120 using random forest is set to have hyperparameters and the like so that it is the same tree structure as the first tree structure of the structure storage circuit 110.
[0030] The communication unit 30 is connected to a network N such as the Internet, and receives the second tree structure as circuit information that has been re-learned and output by the re-learning unit 120. The second tree structure as circuit information is, for example, a set of node numbers, feature numbers, and threshold values.
[0031] In the structure storage circuit 110, a tree structure (first tree structure) serving as a discriminator is stored in a rewritable register. The structure storage circuit 110 is composed of a plurality of registers. The registers are set with various registers required for configuring the tree structure, such as node registers, feature number registers, feature registers, threshold registers, and value registers, as appropriate. Note that the form of the registers is not important as long as the plurality of registers constituting each node are configured to manage a set of node numbers, feature numbers, and thresholds of the first tree structure. In the following example, a node register is associated with a node number, and a feature number register and a threshold register are associated with the node register.
[0032] The update unit 112 receives the second tree structure from the communication unit 30, and rewrites and updates the first tree structure in the structure storage circuit 110 using a set of node numbers, feature numbers, and thresholds of the second tree structure. The update may be performed by rewriting and updating each non-terminal node of the first tree structure using information of the second tree structure corresponding to the non-terminal node (a set of node numbers, feature numbers, and thresholds corresponding to the non-terminal node). Also, each terminal node of the first tree structure may be updated using information from the core 20.
[0033] The control unit 114 reads and writes the feature to be discriminated, the node number, the feature number, and a threshold value into the first tree structure of the structure storage circuit 110 according to the feature output from the core, and controls the discrimination operation. After the update by the update unit 112, the control unit 114 uses the updated first tree structure to discriminate non-terminal nodes from the root node, and controls the discrimination operation by outputting the discrimination result according to the value of the terminal node.
[0034] Here, (1) the determination operation and (2) the update operation of the re-learning result in the control circuit 100 will be described.
[0035] (1) Discrimination operation (feature set and discrimination process) The discrimination operation is executed by the processing of the control unit 114. The discrimination operation is divided into (1-1) a prior feature set and (1-2) discrimination processing.
[0036] (1-1) Before performing the discrimination process, the control unit 114 first sets a feature to each node. When the feature during program execution (e.g., F[1], F[2], F[3], etc.) is sent from the core 20, the control unit 114 sets the feature to each node. Note that which feature should be set to which node can be determined by referring to the feature number register held by each node. For example, in a certain node, if the feature number is 2, the feature F[2] is set to the feature register. Note that there are several methods for setting a feature, but the method is not limited to a specific method. An example of a feature setting method will be described later. For example, the features are sent one by one in order from the root node to the child nodes so that they flow. When sending, the feature number and the feature are sent as a set, such as {n, F[n]}. A method is possible in which each node receives a feature if the feature number that has flowed matches its own.
[0037] (1-2) Discriminatory process will be explained. When a node is activated, it performs "node-based judgment". In node-based judgment, a condition judgment is made by comparing the feature amount stored in its own register with a threshold value. If the condition is satisfied, one of the child nodes (satisfied child node) is activated, and if not, the other (not satisfied child node) is activated. If the feature amount > threshold value, the condition is satisfied (in some cases, the pattern of feature amount < threshold value judgment may be adopted, but this is a design matter). When the root node is activated, the node-based judgment at the non-terminal node is propagated from the root to the leaves, and finally reaches one leaf (terminal node). Each leaf is assigned a label of "attack" or "normal", and the label of the leaf where the node-based judgment has been reached becomes the judgment result in that tree structure. In addition, in random forest, judgments are made in parallel using multiple trees, and the results are compiled to output the final result of the entire tree, but this is an existing technology and is not within the scope of this method.
[0038] (2) Update operation of re-learning results The operation of updating the re-learning result is executed by the processing of update unit 112.
[0039] When a set of a node number, a feature number, and a threshold is sent from outside the processor 10, the feature number and the threshold are set in the register of each node. As an example, assume that {node number, feature number, threshold}={1, 3, 50}, {2, 1, 83}, and {3, 2, 173} are received. Note that which value should be set in which node is determined by referring to the node number assigned to each node. For example, the node number is 1 for the root, 2 for the node to the left of the root, and 3 for the node to the right of the root. In this case, the feature number and threshold paired with the node number are set in the registers of the nodes with node numbers 1, 2, and 3 (the feature number registers and threshold registers corresponding to the node registers).
[0040] Normally, only the discrimination operation (1) is performed. The update operation (2) is performed at an appropriate timing that the owner or manager of the device considers appropriate. For example, it can be performed on a daily, monthly, or yearly basis, but the frequency is set lower than the frequency (cycle level) of the discrimination operation (1). In addition, since the procedure is to stop the discrimination operation (1), perform the update operation (2), and resume the discrimination operation (1), the order of the operations (1) and (2) does not need to be considered. Regarding re-learning, the re-learning unit 120 uses software to perform machine learning to generate a discriminator, and outputs a set of {node number, feature number, threshold} to the control circuit 100 as information on the discriminator.
[0041] Since the feature number and the threshold value are values held in the register of each node, it is assumed that when the power supply of the device 2 is turned off, the information in the register is reset. Therefore, an implementation in which the information in the structure storage circuit 110 is stored in a flash memory (not shown) and updated again when the power supply of the device 2 is turned on can be assumed. When the power supply of the device 2 is turned on again, the update unit 112 reads the information from the flash memory and performs an update operation to form the latest first tree structure after the update in the structure storage circuit 110. In this implementation, the update of the re-learning result is performed by rewriting the register using the feature number and the threshold value in the flash memory. However, the above is merely one example of implementation, and another means, such as receiving the feature number and the threshold value from the re-learning unit 120 via a network at the time of startup, may be used.
[0042] Next, the operation of the control system 1 according to the embodiment of the present invention will be described with reference to Fig. 7. Fig. 7 is a sequence showing the flow of control processing of the control system 1. Steps S100 to S106 correspond to the update operation of (2) above, and are processed when executed by the administrator at a predetermined timing. The control circuit 100 periodically executes steps S104 and after, and normally processes steps S108 and after.
[0043] In step S100, the re-learning unit 120 generates a set of a node number, a feature number, and a threshold value as the machine-learned second tree structure to be updated by re-learning.
[0044] In step S102, the re-learning unit 120 outputs the second tree structure as circuit information to the device 2. In the device 2, the communication unit 30 receives it.
[0045] In step S104, the communication unit 30 of the device 2 determines whether or not the second tree structure to be updated has been received. If it has been received, the process proceeds to step S106. If it has not been received, the process proceeds to step S108.
[0046] In step S106, the update unit 112 receives the second tree structure from the communication unit 30, and rewrites and updates the first tree structure in the structure storage circuit 110 using the sets of node numbers, feature amount numbers, and thresholds of the second tree structure.
[0047] In step S108, the control unit 114 determines whether or not the output of the feature amount has been received from the core 20. If the output of the feature amount has been received, the process proceeds to step 110. If the output of the feature amount has not been received, the process returns to step S104 and the process is repeated.
[0048] In step S110, the control unit 114 uses the feature amount output from the core 20 to set the feature amount in each node (non-terminal node) of the structure storage circuit 110.
[0049] In step S112, the control unit 114 performs a judgment using each node of the structure storage circuit 110, and outputs the discrimination result of the terminal node reached in the judgment. The control unit 114 starts the judgment from the root node, and performs judgment at each non-terminal node to obtain the discrimination result by the output of the terminal node. Note that, as described later, the average of the values for each decision tree may be output as the final discrimination result using the feature amount for multiple clocks.
[0050] As described above, according to the control system 1 of this embodiment, the tree structure and data of the classifiers built into the hardware can be updated.
[0051] In addition, the tree structure used in the method of this embodiment is relatively simple, and the calculations are mostly comparisons, so the hardware scale is small and the power consumption is low. Therefore, it is suitable for application to processors for IoT devices, and can be embedded in a position adjacent to the core on the processor. It can also be applied to surveillance cameras, factory equipment, and transportation equipment such as automobiles.
[0052] In the above embodiment, the classifier that determines whether or not an IoT device is attacked by malware has been described as an example, but the present invention is not limited to this. For example, the classifier may be introduced into another classifier such as image recognition, voice recognition, and acoustic recognition (for example, fault inspection) in the IoT device.
[0053] (An example of an update operation) An example of the above-mentioned update operation will be described. Note that this is one example in a form that can be realized as hardware, and other update operations are also possible.
[0054] FIG. 8 is a diagram showing data stored in a register and each node in a tree structure. The upper part of FIG. 8 shows a legend for data stored in a register. Reg:Features is a register in which features are stored, Reg:Features_Num is a register in which feature numbers are stored, Reg:Threshold is a register in which thresholds are stored, and Reg:Value is a register in which the value of Value is stored. As shown in the lower part of FIG. 8, among the nodes placed as registers, the feature numbers and thresholds required for the classification conditions are stored in the registers of each non-terminal node in order starting from the root node. In this example, the feature number: 2 and threshold: 5000 are stored in the root node. The feature number: 10 and threshold: 240000 are stored in the non-terminal node with node number 2. FIG. 9 is a diagram showing an example of updating a terminal node. After the feature numbers and thresholds are stored in the registers of all non-terminal nodes, the values of Value required for outputting the judgment result are stored in the registers of the terminal nodes in order starting from the leftmost node as shown in FIG. 9. This completes the update operation, and the determination operation can now be performed.
[0055] Fig. 10 is a diagram showing an example of discrimination processing using a tree-structured discriminator. When the discrimination operation is started, a random forest judgment is performed. Judgments are made based on classification conditions from the root node to non-terminal nodes, and when a terminal node is reached, the value stored in the terminal node is output as a result. Also, if a signal is received during the discrimination operation, the update operation can be performed after the output is completed.
[0056] 11 shows an example of modularizing each process of the control unit 114 using a hardware description language and operating each module programmatically as a state transition mechanism. As an example, the modules to be implemented can be six modules: a state transition module, a feature number / threshold value acquisition module, a value acquisition module, a feature acquisition module, a feature distribution module, and a judgment module.
[0057] The state transition module, as a higher-level module, manages the execution timing of the discrimination process and each register (registers for features, feature numbers, thresholds, and values that change depending on the lower-level modules). Data acquired by each module during the discrimination operations described below is transferred to registers managed by the state transition module. The state transition module may also control the timing of the update operation of the update unit 112.
[0058] The feature number / threshold acquisition module acquires the feature number and threshold from core 20. The Value acquisition module acquires the Value from core 20 in order, starting from the leftmost terminal node. The feature acquisition module acquires features from core 20, starting from feature number 1. The feature distribution module distributes the features that each node wants to use for judgment based on the feature number. One feature is distributed per clock, and when all features have been distributed, it moves on to judgment. The judgment module makes a judgment using a random forest. It extracts the features and threshold from the register, judges the classification conditions in order starting from the root node, and outputs a Value.
[0059] The control unit 114 executes the above discrimination operation in each decision tree using, for example, feature quantities for a plurality of clocks of the core 20, and outputs the average of the values as the final discrimination result.
[0060] The present invention is not limited to the above-described embodiment, and various modifications and applications are possible without departing from the spirit and scope of the present invention. [Explanation of symbols]
[0061] 1. Control System 2 equipment 10 Processors 20 cores 30 Communications Department 60 Communication Bus 100 Control circuit 110 Structure memory circuit 112 Update Department 114 Control Unit 120 Re-learning section
Claims
1. A control system that enables discrimination and updating of a discriminator in a processor mounted on an apparatus, a structure storage circuit that stores a first tree structure of a predetermined complete binary tree as a classifier, the first tree structure including a set of a node number, a feature number, and a threshold value for each node configured as a rewritable register; an update unit that receives a second tree structure that is a machine-learned second tree structure to be updated, the second tree structure being a set of node numbers, feature numbers, and a threshold value, and rewrites and updates the first tree structure in the structure storage circuit using the set of node numbers, feature numbers, and a threshold value of the second tree structure; a control unit for controlling a discrimination operation for a feature to be discriminated using each node of the first tree structure of the structure storage circuit in accordance with the feature output from the core; A control system including:
2. A re-learning unit that is installed outside the processor and communicatively connected to the update unit, a re-learning unit that generates a tree structure by re-learning, sets a node that becomes an incomplete binary tree as a dummy node, and sets an arbitrary value to each dummy node, thereby generating the second tree structure as circuit information so as to fill in a difference between the first tree structure of a predetermined complete binary tree and the second tree structure as circuit information. The control system of claim 1 .
3. 2. The control system according to claim 1, wherein the update unit rewrites and updates each non-terminal node of the first tree structure using a set of a node number, a feature number, and a threshold value of the second tree structure corresponding to the non-terminal node.
4. 2. The control system according to claim 1, wherein the structure storage circuit has a plurality of registers constituting each node, and the plurality of registers manages the sets of the node numbers, the feature numbers, and the threshold values of the first tree structure.
5. when the control unit receives the second tree structure, the control unit executes a discrimination operation using a discriminator in the structure storage circuit, and then stops the discrimination operation; the update unit updates the first tree structure with the received second tree structure after the determination operation is stopped. The control system of claim 1 .
6. The control system according to claim 1, wherein the control unit, after updating by the update unit, uses the updated first tree structure to determine non-terminal nodes from the root node, and controls the discrimination operation by outputting a determination result based on the value of the terminal node.
7. The information of the structure memory circuit is stored in a flash memory, and when the power supply of the device is turned off, 2. The control system according to claim 1, wherein the update unit reads information from the flash memory when the power is turned on again, and performs an update operation on the structure storage circuit so as to form the first tree structure after updating.
8. A control circuit that enables discrimination and updating in a discriminator in a processor mounted on the device, a structure storage circuit that stores a first tree structure of a predetermined complete binary tree as a classifier, the first tree structure including a set of a node number, a feature number, and a threshold value for each node configured as a rewritable register; an update unit that receives a second tree structure that is a machine-learned second tree structure to be updated, the second tree structure being a set of node numbers, feature numbers, and a threshold value, and rewrites and updates the first tree structure in the structure storage circuit using the set of node numbers, feature numbers, and a threshold value of the second tree structure; a control unit for controlling a discrimination operation for a feature to be discriminated using each node of the first tree structure of the structure storage circuit in accordance with the feature output from the core; A control circuit including:
Citation Information
Patent Citations
Image processing apparatus, control method therefor, and program
JP2019128792A
