Electronic device and control method thereof

By introducing artificial intelligence-driven additional security mechanisms into electronic devices and utilizing the training of input values ​​and output values, the problem of lag in error detection operations in the existing technology is solved, and fast and effective error handling and resource optimization are achieved.

CN112567343BActive Publication Date: 2024-09-06SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980052748.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-10-10
Filing Date
2019-10-08
Publication Date
2024-09-06
Estimated Expiration
2039-10-08

AI Technical Summary

Technical Problem

When detecting errors, existing electronic equipment often relies on a single safety mechanism and cannot quickly and effectively detect the incorrect operation of functional modules, especially when the safety function level is high or low, resulting in delayed or unnecessary error processing. waste of resources.

Method used

An additional security mechanism based on artificial intelligence is used to determine the additional security mechanism in addition to the previously applied security mechanism by training the input value and output value to detect the incorrect operation of the functional module and convert the electronic device to safe status.

Benefits of technology

It achieves rapid detection and processing of errors not detected by existing security mechanisms, reduces waste of resources, and improves the safety and reliability of electronic equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112567343B_ABST
    Figure CN112567343B_ABST
Patent Text Reader

Abstract

An artificial intelligence (AI) system and its application using a machine learning algorithm are provided. A method for controlling an electronic device includes: obtaining an output value by inputting an input value into a function module included in the electronic device to execute a function corresponding to the function module; determining a safety mechanism to be applied to the function module based on the input value and the output value; and detecting an erroneous operation of the function module based on the determined safety mechanism.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an electronic device and a control method thereof. More particularly, the present disclosure relates to an electronic device and a method for controlling the electronic device to detect an error of the electronic device using an additional safety mechanism. Background Art

[0002] Safety integrity level (SIL) refers to the safety level for safety of electronic devices such as automobiles, facilities installed in the field, robots, etc. In detail, the safety integrity level may represent a statistical standard for functional safety to ensure whether the electronic device operates as expected. In particular, the safety integrity level is designated as the automotive safety integrity level (ASIL) in the automotive industry.

[0003] In each area, the safety integrity level of electronic equipment is evaluated according to various standards. These safety integrity levels are determined based on the analysis of risk sources and risk assessment for each safety function of the electronic equipment.

[0004] Specifically, when an error occurs in a safety function of an electronic device, the safety integrity level assigns a low level to a safety function that slightly damages the electronic device and has a low probability of failure, and assigns a high level to a safety function that is difficult to achieve or is expected to cause loss of life.

[0005] The standard specifies a method for a safety mechanism to detect whether an error has occurred in a safety function and to determine how to handle the error based on the current level of the safety function.

[0006] Therefore, the minimum safety mechanism proposed by the functional level should be applied. Due to the minimum safety mechanism, a safety mechanism for each functional level is recommended in order to detect whether the safety function has an error according to the level of the safety function. Usually, only the recommended safety mechanism is used to detect the safety integrity of the safety function.

[0007] In addition, as the field of automation expands with the development of technology, external environment recognition and function control based thereon are being implemented by systems of electronic devices.

[0008] In detail, the surrounding environment is recognized by a sensor included in the electronic device or an external sensor, the surrounding situation or the state of the electronic device itself is recognized based on the recognized result value, and an operation is performed based on the recognized result. For example, each function (e.g., recognition, determination, control, etc.) module of the current electronic device checks whether the security function of each function module is operating normally based on the security mechanism applied according to the security level when executing the function.

[0009] In addition, with the advancement of technology, electronic equipment systems are evolving from existing electronic equipment systems that operate only according to configured programs to artificial intelligence systems that achieve human-level intelligence. An artificial intelligence system is a system in which a machine learns and determines by itself and has an improved recognition rate as the machine is used.

[0010] Artificial intelligence technologies include machine learning (deep learning) technologies that use algorithms to classify / learn the characteristics of input data, and meta-technologies that use machine learning algorithms to simulate the recognition and confirmation functions of the human brain.

[0011] Examples of meta-technologies include at least one of the following: language understanding technology for recognizing human language / characters, visual understanding technology for recognizing objects (such as human vision), reasoning / prediction technology for logically inferring and predicting information by determining the information, knowledge expression technology for processing human experience information using knowledge data, or motion control technology for controlling autonomous driving of vehicles and movement of robots.

[0012] The present disclosure provides a method for detecting errors or problems of electronic devices or detecting errors or problems more quickly by using artificial intelligence when the detection of errors or problems of electronic devices fails or is only delayed by a safety mechanism, wherein the safety mechanism has been applied according to the level of safety functions when the electronic device system trains itself and processes data.

[0013] The above information is presented as background information only to assist with an understanding of the present disclosure. No determination has been made, and no assertion is made, as to whether any of the above might be applicable as prior art with respect to the present disclosure. Summary of the invention

[0014] Technical issues

[0015] Aspects of the present disclosure are to at least solve the above-mentioned problems and / or disadvantages, and to provide at least the advantages described below. Therefore, one aspect of the present disclosure is to provide an electronic device to which an additional security mechanism is applied in addition to a security mechanism according to a security integrity level of a functional module, and a method for controlling the electronic device.

[0016] Additional aspects will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the presented embodiments.

[0017] According to one aspect of the present disclosure, a method for controlling an electronic device is provided. The method includes: obtaining an output value by inputting an input value into a function module included in the electronic device to execute a function corresponding to the function module; determining a security mechanism to be applied to the function module based on the input value and the output value, and detecting an erroneous operation of the function module based on the determined security mechanism.

[0018] In the determining step, when the input value and the output value are within a normal range based on a previously applied safety mechanism according to a safety integrity level of the functional module and the input value and the output value meet a preset condition, an additional safety mechanism other than the previously applied safety mechanism may be determined.

[0019] The condition may be at least one of the following: the number of input times of the input value and the number of output times of the output value are different, the output value for the input value has a tendency to approach the boundary of the normal range, or the change in the output value for the input value exceeds a preset value.

[0020] Problem Solution

[0021] The method may further include training the determined additional security mechanism using the security mechanism for the input value and the output value.

[0022] In the determining step, when the input value and the output value are within a normal range based on a previously applied safety mechanism according to a safety integrity level of the functional module and the input value and the output value do not satisfy a preset condition, applying the previous safety mechanism to the functional module may be stopped.

[0023] The input value may be at least one of: a value acquired by a sensor, a value received from an external device, and an output value of a previous functional module.

[0024] The method may further include converting the electronic device to a safe state based on detecting an erroneous operation of the functional module.

[0025] The function module may be one of an identification module, a determination module, and a control module. The function module may be a software component that configures software applied to a vehicle. The function module may be hardware and software as elements constituting at least one or more systems applied to a vehicle. The function module may be a module that monitors or manages sensor values ​​received or measured from each hardware, and is used to monitor or manage sensor values ​​received or measured from corresponding hardware corresponding to at least one hardware of a combination of hardware devices for configuring at least one function of a vehicle.

[0026] According to another aspect of the present disclosure, an electronic device is provided. The device includes: a memory configured to include at least one command; and a processor configured to control the electronic device by executing at least one instruction stored in the memory, wherein the processor obtains an output value by inputting an input value to a function module included in the electronic device to execute a function corresponding to the function module, determines a security mechanism to be applied to the function module based on the input value and the output value, and detects an erroneous operation of the function module based on the determined security mechanism.

[0027] When the input value and the output value are within a normal range based on a previously applied safety mechanism according to a safety integrity level of the functional module and the input value and the output value satisfy a preset condition, the processor may determine an additional safety mechanism in addition to the previously applied safety mechanism.

[0028] The condition may be at least one of the following: the number of input times of the input value and the number of output times of the output value are different, the output value for the input value has a tendency to approach the boundary of the normal range, or the change in the output value for the input value exceeds a preset value.

[0029] Beneficial effects of the present invention

[0030] The processor may utilize security mechanisms for input values ​​and output values ​​to train certain additional security mechanisms.

[0031] When the input value and the output value are within a normal range based on a previously applied safety mechanism according to a safety integrity level of the functional module, but the input value and the output value do not satisfy a preset condition, the processor may stop applying the previous safety mechanism to the functional module.

[0032] The input value may be at least one of: a value acquired by a sensor, a value received from an external device, or an output value of a previous functional module.

[0033] When an erroneous operation of a functional module is detected, the processor may convert the electronic device to a safe state.

[0034] The function module may be one of an identification module, a determination module, and a control module. The function module may be a software component that configures software applied to a vehicle. The function module may be hardware and software that are elements constituting at least one or more systems applied to a vehicle. The function module may be a module that monitors or manages sensor values ​​received or measured from each hardware, and is used to monitor or manage sensor values ​​received or measured from corresponding hardware corresponding to at least one hardware of a combination of hardware devices for configuring at least one function of a vehicle.

[0035] According to another aspect of the present disclosure, a computer-readable recording medium is provided. The computer-readable recording medium includes a program for executing a method for controlling an electronic device, wherein the method for controlling an electronic device includes: obtaining an output value by inputting an input value into a function module included in the electronic device to execute a function corresponding to the function module, determining a security mechanism to be applied to the function module based on the input value and the output value, and detecting an erroneous operation of the function module based on the determined security mechanism.

[0036] From the following detailed description in conjunction with the accompanying drawings, which discloses various embodiments of the present disclosure, other aspects, advantages, and salient features of the present disclosure will become apparent to those skilled in the art. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent through the following description in conjunction with the accompanying drawings, in which:

[0038] Figure 1 is a diagram illustrating an error detection situation of an electronic device according to an embodiment of the present disclosure;

[0039] Figure 2 is a block diagram showing a simple configuration of an electronic device according to an embodiment of the present disclosure;

[0040] Figure 3 The present invention is a diagram showing an embodiment of the present invention. Figure 2 A block diagram of a specific configuration of an electronic device disclosed in;

[0041] Figure 4 is a diagram illustrating safety integrity levels according to various standards according to an embodiment of the present disclosure;

[0042] Figure 5 is a diagram showing a safety integrity level of each safety function of a vehicle according to an embodiment of the present disclosure;

[0043] Figure 6 is a diagram showing a safety mechanism applied to each safety integrity level according to an embodiment of the present disclosure;

[0044] Figure 7 is a diagram illustrating additional application of a security mechanism according to an embodiment of the present disclosure;

[0045] Figure 8 is a diagram illustrating additional application of a security mechanism according to an embodiment of the present disclosure;

[0046] Fig. 9 is a diagram illustrating a security mechanism of an application function module according to an embodiment of the present disclosure;

[0047] Fig.10 is a block diagram showing a configuration of an electronic device for training and using an artificial intelligence model according to an embodiment of the present disclosure;

[0048] Fig.11a and Fig.11b The present invention is a diagram showing an embodiment of the present invention. Fig.10 A block diagram of the detailed configuration of the learner and acquirer;

[0049] Fig.12is a diagram illustrating stopping application of a previously applied security mechanism according to an embodiment of the present disclosure;

[0050] Fig.13 is a diagram illustrating the need for an additional security mechanism according to an embodiment of the present disclosure;

[0051] Fig.14 is a diagram illustrating the need for an additional security mechanism according to an embodiment of the present disclosure;

[0052] Fig.15 is a flowchart illustrating a method for controlling an electronic device according to an embodiment of the present disclosure; and

[0053] Fig.16 The embodiment according to the present disclosure is shown in more detail. Fig.15 Flow chart of the control method.

[0054] Throughout the drawings, like reference numerals will be understood to refer to like parts, components and structures. DETAILED DESCRIPTION

[0055] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the various embodiments of the present disclosure as defined by the claims and their equivalents. It includes various specific details to assist in understanding, but these details are considered to be exemplary only. Therefore, it will be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the various embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and structures may be omitted for clarity and conciseness.

[0056] The terms and words used in the following description and claims are not limited to the bibliographical meanings, but are merely used by the inventor to enable a clear and consistent understanding of the present disclosure. Therefore, it will be apparent to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustrative purposes only and not for the purpose of limiting the present disclosure as defined by the appended claims and their equivalents.

[0057] It should be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to "a component surface" includes reference to one or more of such surfaces.

[0058] The present disclosure may be variously modified and have several embodiments, so specific embodiments of the present disclosure will be shown in the drawings and described in detail in the specific embodiments. However, it should be understood that the present disclosure is not limited to specific embodiments, but includes all modifications, equivalents and substitutions without departing from the scope and spirit of the present disclosure. When it is recognized that the detailed description of known technologies related to the present disclosure may obscure the subject matter of the present disclosure, the detailed description will be omitted.

[0059] The terms "first", "second", etc. may be used to describe various components, but these components should not be construed as being limited by these terms. These terms are only used to distinguish one component from another.

[0060] Unless the context clearly indicates otherwise, the singular form is intended to include the plural form. It will also be understood that the terms "comprising" or "formed by" used in this specification specify the presence of features, numbers, steps, operations, components, parts or combinations thereof mentioned in this specification, but do not exclude the presence or addition of one or more other features, numbers, steps, operations, components, parts or combinations thereof.

[0061] In the embodiments, a "module" or "device" may perform at least one function or operation, and may be implemented by hardware or software, or may be implemented by a combination of hardware and software. In addition, in addition to a "module" or "device" that needs to be implemented by specific hardware, multiple "modules" or multiple "devices" may be integrated into at least one module and implemented by at least one processor.

[0062] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art to which the present disclosure belongs can easily practice the present disclosure. However, the present disclosure may be modified in various different forms and is not limited to the embodiments described herein. In addition, in the accompanying drawings, parts not related to the description will be omitted to clearly describe the present disclosure, and similar reference numerals will be used throughout the specification to describe similar parts.

[0063] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.

[0064] Figure 1 is a diagram for illustrating an error detection situation of an electronic device according to an embodiment of the present disclosure.

[0065] Reference Figure 1 , Figure 1 1 is a diagram showing an embodiment of the present disclosure applied to an advanced driver assistance system (ADAS) of a vehicle when the electronic device 100 is a vehicle. In this case, the vehicle may be a normal vehicle driven by a user, or may be an autonomous driving vehicle.

[0066] ADAS is a technology that allows the vehicle to recognize some of the various situations that may occur while driving, determine the situation, and control the machine equipment. ADAS includes: Automatic Emergency Braking (AEB) that slows down or stops the vehicle on its own in the event of a collision risk without the driver having to step on the brakes, Lane Keeping Assist System (LAKS) that maintains the lane by adjusting the driving direction in the event of lane departure, Advanced Smart Cruise Control (ASCC) that allows the vehicle to travel at a preset speed and maintain a certain distance from the vehicle in front, Active Blind Spot Detection (ABSD) that helps the vehicle change lanes safely by detecting collisions in blind spots, and Panoramic Monitoring Image (AVM) that visually shows the situation around the vehicle, etc. The following will refer to Figure 5 Describes the safety integrity levels of various safety functions associated with the vehicle.

[0067] Will refer to Figure 1 The error detection operation of the ASCC system of the electronic device 100 according to an embodiment of the present disclosure is described. The electronic device 100 may include various functional modules, and the system may be implemented by a combination of various functional modules. The functional module may be a software component that configures software applied to a vehicle. The functional module may be hardware and software as elements constituting at least one or more systems applied to a vehicle. The functional module may be a module that monitors or manages a sensor value received or measured from each hardware corresponding to at least one hardware of a combination of hardware devices for configuring at least one function of a vehicle.

[0068] In addition, in the specification, for convenience of description, each functional module is shown and described as having a separate configuration, but may be implemented in one chip (such as a processor) in actual implementation.

[0069] In an embodiment, the determination module may receive an image of the object 200 and a distance value between the electronic device 100 and the object 200 through a sensor such as a camera or a radar. In this case, the determination module may determine a speed control value based on the input value, and the control module may control the electronic device 100 to accelerate or decelerate based on the determined speed control value. A safety mechanism corresponding to ASIL B may be applied and executed to each functional module such as an identification module, a determination module, and a control module. The safety mechanism includes an object that prevents errors or potential errors, and is used to notify the driver of information about a fault or convert the vehicle to a safe state, and the type, target, method, etc. of the safety mechanism have been established.

[0070] In detail, the electronic device 100 may receive an image including the object 200 and may output a result of recognizing that the object 200 included in the image is a vehicle and the accuracy of the result. In this case, the electronic device 100 may apply the input value and the output value to a safety mechanism to detect whether an error occurs in the safety function.

[0071] For example, a safety mechanism applied to ASIL B may perform a range check on input / output data. Specifically, in a safety mechanism applied to ASIL B, if it can be determined that the accuracy range of the object recognition result is 50% or more and the range is normal, and if the output accuracy is 55%, it can be determined that the accuracy is normal.

[0072] However, when the output accuracy falls between 85% and 55%, the electronic device 100 according to the present disclosure may consider that the output value is within the normal range, but there is a problem in the recognition process, so an additional safety mechanism may be applied. For example, the electronic device 100 may determine whether the object 200 of the image is a vehicle by applying the input value and the output value to various software designs as an additional safety mechanism. In this case, the additionally applied mechanism may be specified by a user, a manufacturer, etc., or may be trained to be applied in a similar situation as before.

[0073] As described above, by applying various algorithms to identify the object 200 , it is possible to detect errors that cannot be detected by safety mechanisms according to existing safety integrity levels.

[0074] Will refer to Figures 7 to 10 The error detection operations of the functional modules described above are described in more detail.

[0075] In addition, Figure 1 , the electronic device 100 is described as a vehicle, but according to an embodiment, the electronic device 100 may be implemented as a robot, a factory facility, etc.

[0076] Figure 2 is a block diagram showing a simple configuration of an electronic device according to an embodiment of the present disclosure.

[0077] Reference Figure 2 , the electronic device 100 includes a memory 110 and a processor 120 .

[0078] The memory 110 may store various programs and data required for the operation of the electronic device 100. In detail, at least one command may be stored in the memory 110. The processor 120 may perform the above operations by executing the instructions stored in the memory 110. The memory 110 may be implemented by a nonvolatile memory, a volatile memory, a flash memory, a hard disk drive (HDD), a solid state drive (SSD), etc.

[0079] The processor 120 generally controls the operation of the electronic device 100. In detail, the processor 120 may control the electronic device 100 by executing at least one command stored in the memory 110.

[0080] According to an embodiment, the processor 120 may be implemented by a digital signal processor (DSP), a microprocessor, or a time controller (TCON). However, the processor 120 is not limited thereto, but may include one or more of a central processing unit (CPU), a microcontroller unit (MCU), a microprocessing unit (MPU), a controller, an application processor (AP), a communication processor (CP), an ARM processor, or may be defined by these terms. In addition, the processor 120 may be implemented by a system on chip (SoC) or a large-scale integration (LSI) in which a processing algorithm is embedded, or may be implemented in the form of a field programmable gate array (FPGA).

[0081] In detail, the processor 120 may obtain an output value by inputting an input value to the function module to perform a function corresponding to the function module included in the electronic device 100. The function module may include a recognition module, a determination module, a control module, and the like.

[0082] In detail, the recognition module can obtain an output value based on an input value input from a sensor, a microphone, etc. The output value obtained by the recognition module may be a value obtained by sensing the surrounding environment of the electronic device 100. For example, the recognition module may use an image input by a sensor as an input value to output the result of identifying an object included in the image as an output value. In addition, as described above, the input value may be a value obtained by a sensor (not shown). However, the input value is not limited to this, but may be at least one of a value received from an external device or a value output from the above-mentioned functional module when the functional module operates sequentially. For example, when the electronic device 100 is a factory facility, the electronic device 100 may receive a value sensed by an external sensor and use the received value as an input value. In addition, when the recognition module, the determination module, and the control module as functional modules operate sequentially, the value output from the recognition module may be used as an input value of the determination module.

[0083] In addition, the processor 120 may determine the safety mechanism to be applied to the functional module based on the input value and the output value. Specifically, each functional module has a safety mechanism applied according to the safety integrity level, but based on the output value satisfying the preset condition for the input value, a safety mechanism may be additionally applied or the application of the previously applied safety mechanism may be stopped. Figure 7 Describe the embodiment of applying the near safety mechanism, and refer to Fig.12 An embodiment of a security mechanism for stopping an application that was previously applied is described.

[0084] In detail, the processor 120 can detect the erroneous operation of the identification module by applying a safety mechanism according to the safety integrity level of the identification module based on the input value and the output value. For example, when the safety integrity level of the identification module in the ASCC system is ASIL B, the safety mechanism can perform a range check input / output data. At this time, even if the range of the output value relative to the input value is within the normal range set by the safety mechanism, if the preset condition is met, the processor 120 can also determine the application of the additional safety mechanism.

[0085] For example, if the following conditions are met: the number of input times of the input value and the number of output times of the output value may be different, or the output value of the input value has a tendency to approach the boundary of the normal range, or the amount of change of the output value relative to the input value exceeds a preset value, etc., the processor 120 may determine that a security mechanism other than the previously applied security mechanism is additionally applied. According to an embodiment, in addition to the security mechanism for performing a range check of input / output data, the processor 120 may apply a security mechanism using an algorithm (various software designs) for recognizing an object included in an image.

[0086] If an error of a functional module is detected by an additional application safety mechanism, the processor 120 may convert the electronic device 100 to a safe state. In detail, the safe state refers to a state in which there is no damage even if an error occurs in the functional module, and may be a state in which an error of the functional module is notified, a state in which power supplied to the electronic device 100 is interrupted, a state in which only limited functions of the electronic device 100 can be used, etc.

[0087] Therefore, the existing security mechanism can correctly identify the object that was misidentified. That is, according to the present disclosure, errors that cannot be detected by the existing security mechanism can be detected by applying the additional security mechanism, so the errors can be handled faster.

[0088] In addition, the determination module can determine whether an error occurs, the probability of occurrence of a risk, and the control value required to escape the risk based on the output value output from the recognition module. For example, if the recognition module outputs a recognition result that the front object is a vehicle and the accuracy of the recognition result as an output value, the determination module can use the output value as an input value to determine the risk of collision with the front vehicle and determine an acceleration value or a deceleration value for avoiding the risk.

[0089] In detail, the processor 120 can detect erroneous operation of the determination module by applying a safety mechanism according to the safety integrity level of the determination module based on the input value and the output value. For example, when the safety integrity level of the determination module in the ASCC system is ASIL B, the safety mechanism can perform a range check input / output data. At this time, even if the range of the output value relative to the input value is within the normal range set by the safety mechanism, if the output number and the input number are different, or the trend of the output value, the sudden change amount of the output value, etc. are found, the processor 120 can also additionally perform a rationality check, wherein the rationality check is a safety mechanism that detects erroneous operation by comparing the output value with the previous output value.

[0090] In addition, in one embodiment, the control module may convert the acceleration value or deceleration value output from the determination module into a value required by the module responsible for acceleration or deceleration, and transmit the converted value to the corresponding module. In this case, the processor 120 may detect erroneous operation of the control module by applying a safety mechanism according to the safety integrity level of the control module based on the input value and the output value. In detail, the processor 120 may detect an increase or decrease in speed, etc., for the transmitted acceleration value or deceleration value. When the increase or decrease is within a normal range but has a tendency to become a problem, the processor 120 may additionally perform a rationality check, wherein the rationality check is a safety mechanism for detecting erroneous operation compared with a previous output value.

[0091] In this case, the additional security mechanism may be at least one of a plurality of security mechanisms pre-stored in the memory 110, or may be a security mechanism received from an external server. Figure 6 An embodiment of such a security mechanism is described.

[0092] On the other hand, even if a functional module relies on the result of applying an additional safety mechanism, if the input value and output value of the functional module are within the normal range and there is no suspected error condition, the processor 120 can stop applying the additional safety mechanism and only apply the previously applied safety mechanism.

[0093] On the other hand, in the case of a function having a real-time property and no errors among the security functions of the electronic device 100, it may not be necessary to detect an erroneous operation. Specifically, when an input value input to a functional module and an output value output by the functional module based on the input value are applied to a previously applied security mechanism according to the security integrity level of the functional module, if the input value and the output value are within a normal range and still do not meet the condition for suspecting the above-mentioned error, the processor 120 may stop applying the previously applied security mechanism.

[0094] As a result, unnecessary processing time, resources, etc. can be reduced. Fig.12 An embodiment of stopping application of the safety mechanism described above is described in more detail.

[0095] In addition, the determination of the safety mechanism to be applied to the functional module as described above may be performed by an artificial intelligence model stored in the memory 110. The artificial intelligence model used in the present disclosure may use various networks such as a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), and a deep Q network (DQN).

[0096] Specifically, the AI ​​model can learn security mechanisms that are applied to functional modules in various situations.

[0097] For example, even if the result of applying a preset security mechanism to the input values ​​and output values ​​of a functional module is within a normal range, if an additional security mechanism other than the preset security mechanism is applied by satisfying preset conditions for suspected errors, the intelligent model can learn the additional security mechanism as a security mechanism for the input values ​​and output values ​​of the functional module.

[0098] Training the safety mechanism means that a safety mechanism that can sense erroneous operation of a corresponding functional module based on input values ​​and output values ​​of the functional module is updated to a safety mechanism that can be applied to input values ​​and output values ​​of the corresponding functional module by applying various additional safety mechanisms in addition to the safety mechanism previously applied according to the safety integrity level.

[0099] In detail, the artificial intelligence model can apply additional safety mechanisms respectively to obtain whether to detect an erroneous operation of a corresponding functional module, the time required for detection, etc. In addition, as a result of scoring each additional safety mechanism executed based on the acquired detection, required time, etc., the artificial intelligence model can determine the safety mechanism with the highest priority as the safety mechanism to be additionally applied.

[0100] Additionally, training the safety mechanism may include not only determining the additional safety mechanism, but also updating optimal parameters to be applied to the previously applied safety mechanism or the additional safety mechanism.

[0101] In another embodiment, even if the result of applying the preset safety mechanism to the input value and output value of the functional module is within the normal range, when the user suspects an error and performs manual control, the artificial intelligence model can learn the manual control operation based on the input value and output value. In this case, the artificial intelligence model can learn the additional safety mechanism based on the input value, the output value, and the manual control operation based on the input value and the output value. Fig.10 , Fig.11a and Fig.11b Describes the training process in more detail.

[0102] In addition, the trained artificial model can design a safety mechanism to be applied based on the input value input to the functional module and the output value according to the input value. That is, an optimal safety mechanism capable of detecting an error of a suspected functional module based on the input value and the output value can be designed without being constrained by a preset safety mechanism according to the safety integrity level of the functional module.

[0103] Therefore, according to the present disclosure, errors that cannot be detected by existing safety mechanisms can be detected by applying additional safety mechanisms, and thus the errors can be handled faster.

[0104] Figure 3 The present invention is a diagram showing an embodiment of the present invention. Figure 2 A block diagram of a specific configuration of an electronic device disclosed in FIG.

[0105] Reference Figure 3 , the electronic device 100 may include a memory 110, a processor 120, a sensor 130, a communicator 140, a display 150, a speaker 160, and a power supply 170. The memory 110 and the processor 120 are Figure 2 , so their repeated description will be omitted.

[0106] The processor 120 may include a RAM 121, a ROM 122, a CPU 123, a GPU 124, and a bus 125. The RAM 121, the ROM 122, the CPU 123, the GPU 124, etc. may be connected to each other through the bus 125.

[0107] The CPU 123 accesses the memory 110 to perform booting using an operating system (O / S) stored in the memory 110. In addition, the CPU 123 uses various programs, contents, data, etc. stored in the memory 110 to perform various operations.

[0108] An instruction set for booting the system and the like are stored in the ROM 122. When a power-on command is input to supply power, the CPU 123 may copy the O / S stored in the memory 110 to the RAM 121 and execute the O / S to boot the system according to the instructions stored in the ROM 122. When the booting is completed, the CPU 123 copies various programs stored in the memory 110 to the RAM 121 and executes the programs copied to the RAM 121 to perform various operations.

[0109] When the booting of the electronic device 100 is completed, the GPU 124 displays the UI on the display 150. In detail, the GPU 124 can use a calculator (not shown) and a renderer (not shown) to render a screen including various objects (such as icons, images, and texts). The calculator calculates attribute values ​​(such as coordinate values ​​of each object to be displayed, the form, size, color, etc. of each object) according to the layout of the screen. The renderer renders screens including various layouts of objects based on the attribute values ​​calculated in the calculator. The screen (or user interface window) rendered in the renderer is provided to the display 150 and is displayed on the main display area and the sub-display area, respectively.

[0110] The sensor 130 may include a plurality of sensors configured to sense environmental information of the electronic device 100. For example, the sensor 130 may include a camera 131, a GPS 132, a proximity sensor 133, an acceleration sensor 134, a geomagnetic sensor 135, an infrared sensor 136, and the like.

[0111] The camera 131 may be at least one still camera or at least one video camera configured to record the external environment or the interior of the electronic device 100 as an image.

[0112] The GPS 132 may be a sensor configured to estimate the geographic location of the electronic device 100. That is, the GPS 132 may include a transceiver configured to estimate the location of the electronic device 100 relative to the earth.

[0113] The proximity sensor 133 may be a sensor for sensing an object existing within a preset distance around the electronic device 100. In detail, the proximity sensor 133 may include an ultrasonic sensor, an optical sensor, etc., and the camera 131 or the infrared sensor 136 may be used as the proximity sensor 133.

[0114] Those skilled in the art can intuitively infer the functions of each sensor from the name, so a detailed description thereof will be omitted. In addition, although not shown, an inertial measurement unit (IMU), radar, temperature / humidity sensor, air pressure sensor, RGB sensor, etc. may also be provided.

[0115] The communicator 140 is a component that performs communication with various types of external devices in various types of communication modes. The electronic device 100 can perform communication with the external device in a wired or wireless manner. In this case, the external device can be a sensor device, a server, etc. that is a device separated from the electronic device 100.

[0116] When the electronic device 100 is capable of wireless communication, the communicator 140 may include a Wi-Fi chip, a Bluetooth chip, a wireless communication chip, and an NFC chip. In detail, the Wi-Fi chip and the Bluetooth chip perform communication in a Wi-Fi manner and a Bluetooth manner, respectively. In the case of using a Wi-Fi chip or a Bluetooth chip, various connection information (such as a service set identifier (SSID), a session key, etc.) is first sent and received, the communication is connected using the connection information, and then various information can be sent and received. The wireless communication chip refers to a chip that performs communication in accordance with various communication protocols (such as the Institute of Electrical and Electronics Engineers (IEEE), Zigbee, the third generation (3G), the third generation partnership project (3GPP), long term evolution (LTE), etc.). The NFC chip refers to a chip that operates in a near field communication (NFC) manner using a 13.56MHz band in various radio frequency identification (RFID) bands (such as 135kHz, 13.56MHz, 433MHz, 860 to 960MHz, 2.45GHz, etc.).

[0117] In addition, when the electronic device 100 is capable of wired communication, the communicator 140 may include various ports for connecting cables. For example, the communicator 140 may include a wired Ethernet, a USB port, a component port, a PC port, and the like.

[0118] The communicator 140 may receive an input value from an external device. The input value may be a value sensed by an external sensor or an output value output from an external device.

[0119] In addition, the communicator 140 may receive information for detecting an erroneous operation from an external server. For example, the communicator 140 may receive information about a safety mechanism for detecting an erroneous operation from an external server. In detail, the processor 120 may receive information about a determined safety mechanism from an external server and detect an erroneous operation of a corresponding functional module. In addition, the processor 120 may send input values, output values, index information about a determined safety mechanism, etc. to an external server and cause the external server to detect an erroneous operation of a functional module. In addition, the communicator 140 may receive a detection result value of an erroneous operation of a functional module.

[0120] The processor 120 may perform an operation corresponding to the erroneous operation of the functional module according to the detection result. In detail, based on the erroneous operation of the functional module being detected, the processor 120 may provide feedback to the user about the detected erroneous operation. In this case, the processor 120 may provide the user with a function name, an error type, a solution, etc., wherein the erroneous operation is detected by the display 150 provided in the electronic device 100.

[0121] The display 150 may be implemented by various types of displays such as a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display panel (PDP), etc. A driving circuit, a backlight unit, etc., which may be implemented in a form such as a-si TFT, a low temperature polysilicon (LTPS) TFT, an organic TFT (OTFT), etc., may be included in the display 150. In addition, the display 150 may be implemented as a flexible display, or may be a touch screen capable of touch input.

[0122] For example, when the electronic device 100 is a vehicle, the display 150 may be provided to provide a user interface for an instrument panel, a head-up display, or navigation, temperature control, audio control, etc. In response to an error being detected in at least one of the plurality of functional modules constituting the electronic device 100, information about the detected error may be displayed on the display 150.

[0123] In addition, the processor 120 may provide the user with a function name, an error type, a solution, etc., wherein an erroneous operation is detected through the speaker 160 provided in the electronic device 100 .

[0124] In addition, when an erroneous operation is detected in the functional module, the processor 120 may convert the electronic device 100 to a safe state. The safe state may mean a state in which a user or surrounding environment is not harmed even if an error occurs in the functional module.

[0125] For example, when an error that may cause serious damage in the event of a malfunction (such as an engine malfunction) is detected, the processor 120 may control the power supply 170 to cut off the power supplied to the electronic device 100 .

[0126] On the other hand, for example, even when a malfunction occurs (such as a malfunction of the front camera), if the detected error does not cause significant damage, the processor 120 uses the electronic device 100 to use only limited functions other than the functions related to the front camera. In this case, as described above, the processor 120 may provide information about the erroneous operation to the user through at least one of the display 150 or the speaker 160.

[0127] In addition, although Figure 3 Although not shown in the figure, when the electronic device 100 is a vehicle, the electronic device 100 may also include brakes, steering devices, transmissions, wheels, lights, direction indicators, wipers, etc., which are general components of a vehicle.

[0128] Figure 4 is a diagram illustrating safety integrity levels according to various standards according to an embodiment of the present disclosure.

[0129] Reference Figure 4, presents safety integrity levels based on the probability of failure and classifies the levels according to different criteria for each standard. Figure 4 In the present invention, DO-254, DO-178B, IEC 61508 and ISO 26262 are described as one embodiment of various standards.

[0130] Specifically, DO-254 is an avionics certification standard, and DO-178B is an aviation software certification standard. In the event of a failure, DO-254 and DO-178B have a lower risk level from Level A to Level E. The number of requirements met increases from Level E to Level A.

[0131] Specifically, Level A of DO-254 and DO-178B is a failure level with a risk of falling, and the failure probability should meet 10 -9 On the other hand, Level E of DO-254 and DO-178B is a failure level that does not affect safety, flight coordination, or pilot overload, and is a relatively high failure probability that should be met.

[0132] IEC 61508 is an international standard for industry-specific rules called "Functional Safety of Electrical, Electronic and Programmable Electronic Safety Management Systems". IEC 61508 is intended to be the basic functional safety standard for a wide range of industries.

[0133] Specifically, the safety integrity level of IEC 61508 is defined as "the probability that a safety-related system can satisfactorily perform the required safety functions for a given time under given conditions", where SIL4 is the highest level and SIL1 is the lowest level.

[0134] ISO 26262 is an international standard for automobile functional safety, and is an international standard for automobile functional safety that aims to prevent accidents caused by errors in electrical and electronic systems installed in automobiles.

[0135] ISO 26262 is a modification of the functional safety standard IEC 61508 for automotive electrical / electronic systems. ISO 26262 defines the functional safety of automotive equipment for the entire product life cycle for all automotive electrical and electronic safety-related systems, with ASIL D being the highest level and ASIL A being the lowest.

[0136] In the following, for the convenience of description, the description will be based on ISO 26262. Figure 5 and Figure 6 .

[0137] Figure 5 is a diagram illustrating a safety integrity level of each safety function of a vehicle according to an embodiment of the present disclosure.

[0138] Reference Figure 5 , showing the various safety functions of the vehicle, the failure conditions of each safety function and the safety integrity level. The safety integrity level is based on the ISO 26262 standard.

[0139] like Figure 4 As shown, ASIL A level is the lowest level, ASIL D level is the highest level, and the lower the level, the lower the risk level, and the higher the level, the higher the risk level.

[0140] For example, refer to Figure 5 The taillights of the vehicle are lights that illuminate the rear of the vehicle when the headlights are on, and are arranged on both rear sides of the vehicle. When both taillights fail, an error in the function is detected. The taillights are not a threat to the safety of the user by erroneous operation alone, so the safety integrity level is the lowest level of ASIL A.

[0141] On the other hand, when an unexpected deployment is performed, the airbag system is considered to be in a fault state. If the airbag is accidentally deployed while driving, it directly threatens the safety of the driver, and the airbag system is the highest level ASIL D.

[0142] in addition, Figure 5 The functions and failure conditions of the electronic devices shown in the figure are merely exemplary, and the functions and failure conditions of the electronic devices are not limited to Figure 5 Those functions and fault conditions shown in .

[0143] Therefore, each function of the electronic device may have a different safety integrity level for each function, and the safety mechanism for identifying whether a fault condition occurs may be applied differently according to the safety integrity level. Figure 6 Describe in detail the safety mechanisms applied to the Safety Integrity Level.

[0144] Figure 6 is a diagram illustrating a safety mechanism applied to each safety integrity level according to an embodiment of the present disclosure.

[0145] Reference Figure 6 , various safety mechanisms from 1a to 1f are shown. In this case, the safety mechanism may undergo a complex process, wherein the process requires more resources or time to detect erroneous operations from 1a to 1f.

[0146] exist Figure 6In the table, "++" indicates that a safety mechanism is highly recommended, "+" indicates that a safety mechanism is recommended, and "0" indicates that a safety mechanism is not recommended.

[0147] For example, when the function module is ASIL A, a safety mechanism 1a that performs a range check of input / output data is strongly recommended, and a safety mechanism 1b that checks rationality and a safety mechanism 1c that detects data errors are recommended.

[0148] As the safety integrity level progresses from ASIL A to ASIL D, the number of strongly recommended safety mechanisms increases.

[0149] The ADAS ASCC system that keeps the distance to the vehicle ahead constant has an ASIL B level, and detects an erroneous operation by applying only the previously strongly recommended safety mechanism 1a. However, according to the present disclosure, it is determined that the safety mechanism 1a is within the normal range and therefore there is no error, but in the case of further considering the trend of the input value and the output value, etc., the safety mechanism 1f that is not recommended in ASIL B can be additionally applied. The operation of additionally applying the safety mechanism 1f is only an embodiment, and at least one safety mechanism selected from some safety mechanisms that are not applied at the corresponding safety integrity level (for example, a simply recommended safety mechanism or a non-recommended safety mechanism) can be additionally applied.

[0150] Accordingly, according to the present disclosure, erroneous operations of functional modules that could not be detected previously can be detected, and risk situations can be handled more quickly.

[0151] Figure 7 is a diagram showing an additional application security mechanism according to an embodiment of the present disclosure. The electronic device may include multiple functional modules, and for ease of description, the present disclosure restrictively describes an embodiment in which the identification module, the determination module, and the control module operate sequentially, but the types and operations of the functional modules are not limited thereto.

[0152] Reference Figure 7 , the recognition module 710, the determination module 720 and the control module 730 may operate sequentially. In this case, the recognition module 710 may output an output value x using a sensing value or the like as an input value. The determination module 720 may output an output value y using the x output from the recognition module 710 as an input value. The control module may output a control value for controlling the electronic device using the y output from the determination module 720 as an input value.

[0153] In this case, safety mechanisms 711 , 721 , and 731 according to the safety integrity level of each module are respectively applied to the identification module 710 , the determination module 720 , and the control module 730 , and whether an error occurs in each module may be checked.

[0154] On the other hand, for example, as a result of applying the safety mechanism 721 according to the safety integrity level of the determination module 720 to the input value x and the output value y of the determination module 720, when these values ​​are within the normal range but a fault is suspected, the electronic device may apply the additional safety mechanism 722 to the determination module 720. At this time, as a result of applying the additional safety mechanism 722, the fault of the determination module 720 that was not discovered may be discovered. When the additional safety mechanism 722 is applied, the output value of the determination module 720 changes from y to y'. In addition, when a fault is discovered, the electronic device may change to a safe state.

[0155] The operations of the electronic device according to the present disclosure described above may be implemented through the following example scenarios.

[0156] Example 1: ADAS ASCC

[0157] When the electronic device is a vehicle, the safety integrity level of the recognition module, determination module, and control module in the ADAS ASCC is ASIL B level. At this time, the strongly recommended safety mechanism may be 1a (range check of input / output data). As an embodiment, when the recognition accuracy of the recognition module is 50% or higher, it can be determined that the object recognition is a normal operation. In this case, when the recognition accuracy of the recognition module is less than 50%, the electronic device can immediately determine that there is an error in the operation of the recognition module, and the electronic device changes to a safe state.

[0158] First, the recognition module of the electronic device may receive an image obtained by photographing the front of the electronic device using a radar and a distance value to the front object. In one embodiment, the recognition module may receive an image at 30 frames per second. The recognition module may recognize an object included in the input image. When the recognition module recognizes that the object included in the image is a vehicle, the recognition module may output a recognition result and its accuracy.

[0159] When the output accuracy is reduced from 85% to 55%, it is determined that the safety mechanism 1a is in normal operation at 50% or higher. However, when the input value and the output value about the input value meet the preset conditions, the electronic device can determine whether the operation of the identification module is not a fault by applying an additional safety mechanism. For example, when the number of input values ​​and the number of output values ​​are different, or the output value has a difference greater than or equal to the preset value with similar input values, or the output value tends to approach the boundary of the normal range, the electronic device can apply an additional safety mechanism. In this case, the additional safety mechanism may not be applied at the safety integrity level of the existing identification module.

[0160] For example, the electronic device may additionally apply a security mechanism 1f (various software designs) among the plurality of security mechanisms to recognize an object included in an input image using other algorithms. In this case, when the object recognized by applying the security mechanism 1f is not a vehicle, the electronic device may determine that there is an error in the recognition module, and may improve recognition accuracy by applying other algorithms to correct the error.

[0161] In addition, when an error is difficult to detect only by the safety mechanism 1a that checks the range of input values ​​and output values, the electronic device may apply an additional safety mechanism.

[0162] For example, when the distance to the front object detected by the radar is suddenly detected to be 100m to 500m, the erroneous operation cannot be identified only by the safety mechanism 1a, so the electronic device can additionally apply the safety mechanism 1b (rationality check) among the multiple safety mechanisms to detect the erroneous operation of the recognition module. As an embodiment, when using an artificial intelligence model, when the distance to the detected front object is suddenly detected to be 100m to 500m, the electronic device can determine that the accuracy of the distance to the detected front object is less than or equal to a preset value. Therefore, the electronic device can apply an additional safety mechanism to detect the erroneous operation of the recognition module.

[0163] Example 2: Robotic Arm Control

[0164] When the electronic device is a robot, the robot arm needs to monitor the distance to people around the robot and the speed of the people, and control the force of the robot's actuators. In this case, the safety integrity level of the robot's identification module, determination module, and control module is usually SIL 2. At this time, the highly recommended safety mechanism can be 1a (range check of input / output data).

[0165] First, the recognition module of the electronic device can receive the existence and distance values ​​of the surrounding objects from the sensor set in the electronic device. In one embodiment, the recognition module can receive the sensing value of 30 times per second from the sensor. In addition, the recognition module can output the recognition rate of whether the surrounding objects are recognized as people, and output the distance value taking into account the speed of the person.

[0166] In this case, when the number of input values ​​and the number of output values ​​are different or the range of output values ​​is greater than or equal to a preset value, the electronic device may suspect that the identification module is faulty and apply an additional safety mechanism. For example, the electronic device may additionally apply a safety mechanism 1e (control flow monitoring) to the identification module. The safety mechanism 1e may determine whether necessary functions (checkpoints) to be performed by the identification module are performed in a timely manner and whether the corresponding functions are performed in a predetermined order.

[0167] In addition, the determination module of the electronic device may receive the recognition rate of the person and the distance value from the person from the recognition module, and output the maximum value of the collision risk with the person and the force of the robotic arm based on the received recognition rate and distance value. In this case, when the range and maximum value of the output risk are greater than or equal to the preset value, the electronic device may suspect that the recognition module is faulty and apply an additional safety mechanism. For example, the electronic device may additionally apply the safety mechanism 1e (control flow monitoring) to the recognition module.

[0168] In addition, the control module of the electronic device can receive the maximum value of the force of the mechanical arm output from the determination module, and convert and transmit the received value to the module responsible for the movement of the mechanical arm. In this case, when the increase or decrease of the force output from the mechanical arm is greater than or equal to the preset value compared to the transmission value, the electronic device may suspect that the control module is faulty and apply an additional safety mechanism. For example, the electronic device can additionally apply the safety mechanism 1b (rationality check) to the identification module. In this case, the safety mechanism 1b can compare the output value with the input value from the reference model instead of just checking a simple range. That is, the safety mechanism 1b is a way to detect the abnormality of the safety mechanism by comparing the independent comparison target value with the actual value. In this example, when a general comparison target model for increasing or decreasing the force of the mechanical arm is stored, the electronic device can determine the difference between the command value input to the actual control module and the value proposed from the stored comparison target model, thereby detecting the abnormality of the control module.

[0169] In addition, it has been described that when the input value and the output value meet the preset condition, the processor included in the electronic device additionally applies at least one of the plurality of security mechanisms. Figure 8 and Fig. 9 The trained artificial intelligence model (AI engine) is shown to determine the security mechanisms that will be applied to each module.

[0170] Figure 8 is a diagram illustrating additionally applying a security mechanism according to an embodiment of the present disclosure.

[0171] Reference Figure 8 The operation of the identification module 810, the determination module 820 and the control module 830 and the safety mechanisms 811, 821 and 831 applied to each of the identification module 810, the determination module 820 and the control module 830 is based on a safety integrity level, which can be related to Figure 7 The safety integrity level is the same as shown in .

[0172] However, each of the identification module 810, the determination module 820, and the control module 830 may be controlled by a trained artificial intelligence model 840. In detail, the trained AI model 840 may determine an additional safety mechanism 822 to be applied in addition to the safety mechanisms 811, 821, and 831 according to the safety integrity level based on the input value and the output value of each functional module.

[0173] In this case, the trained artificial intelligence model 840 has been trained and can be inserted when the electronic device is manufactured, and can be continuously trained through the use process of the electronic device, the user's manual operation, etc.

[0174] in addition, Figure 8 The invention shows and describes the application of additional safety mechanisms in addition to the safety mechanisms previously applied according to the safety integrity level of the functional module, but it can be determined that it will be applied as follows. Fig. 9 The safety mechanisms of the functional modules shown are independent of the safety integrity level.

[0175] Fig. 9 is a diagram illustrating a security mechanism of an application function module according to an embodiment of the present disclosure.

[0176] Reference Fig. 9 , the artificial intelligence model 940 may determine the security mechanisms 911, 921, and 922 to be applied to each of the identification module 910, the determination module 920, and the control module 930 of the electronic device. At this time, the artificial intelligence model 940 may determine the security mechanisms 911, 921, and 922 to be applied to the respective functional modules 910, 920, and 930 based on the input values ​​and output values ​​of the respective functional modules 910, 920, and 930. Each of the security mechanisms 911, 921, and 922 may include at least one security mechanism.

[0177] In this case, the artificial intelligence model 940 may determine the safety mechanisms 911, 921, and 922 to be applied regardless of the safety integrity level of each of the functional models 910, 920, and 930 of the artificial intelligence model 940. Therefore, each of the safety mechanisms 911, 921, and 922 may not include a safety mechanism that is strongly recommended according to the safety integrity level of each functional module 910, 920, and 930.

[0178] In this case, the trained artificial intelligence model 940 has been trained using the input values ​​and output values ​​of each functional module as input values, and can be inserted during the manufacture of the electronic device, and can then be continuously trained through the use process of the electronic device, manual operations of the user, etc.

[0179] In this way, by using the trained AI model to determine the safety mechanism to be applied to each functional module, fault conditions can be detected more quickly and accurately.

[0180] Fig.10 is a block diagram showing the configuration of an electronic device for training and using an artificial intelligence model according to an embodiment of the present disclosure.

[0181] Reference Fig.10 , the processor 1000 may include at least one of a learner 1010 and a determiner 1020 . Fig.10 The processor 1000 can be used with Figure 2 processor 120, Figure 8 The artificial intelligence model 840 and Fig. 9 The artificial intelligence model 940 corresponds.

[0182] The learner 1010 may generate or learn a model for determining a security mechanism. The learner 1010 may generate an artificial intelligence model for determining a security mechanism to be applied to a functional module by using the collected training data. The learner 1010 may create a training model with a standard for determining a security mechanism to be applied to a functional module by using the collected training data. The learner 1010 may correspond to a training set of an artificial intelligence model.

[0183] For example, the learner 1010 may use the input / output values ​​of the functional module and the safety mechanism corresponding to the input / output values ​​as input data to generate, learn or update a model for predicting at least one safety mechanism to be applied to the functional module among the plurality of safety mechanisms. The safety mechanism corresponding to the input / output value used as the input data may represent a predetermined safety mechanism that should be applied to detect an error of the functional module according to the input value and output value of the corresponding functional module.

[0184] In addition, the learner 1010 can generate, learn or update a model for predicting at least one safety mechanism to be applied to a functional module by using the input value and output value of the functional module, the control value and input / output value according to the user's manual operation, and the safety mechanism corresponding to the control value as input data.

[0185] The determiner 1020 may obtain various information by using predetermined data as input data of the training model. As an example, when the input value and output value of the functional module are input, the determiner 1020 may obtain (or identify, estimate or infer) information related to the error of the functional module.

[0186] At least a portion of the learner 1010 and at least a portion of the determiner 1020 may be implemented by a software module, or may be manufactured in the form of at least one hardware chip and installed on an electronic device. For example, at least one of the learner 1010 or the determiner 1020 may be manufactured in the form of a dedicated hardware chip for artificial intelligence (AI), or may be manufactured as part of an existing general-purpose processor (e.g., a CPU or an application processor) or a graphics-specific processor (e.g., a GPU) and installed on the above-mentioned various electronic devices. In this case, the dedicated hardware chip for artificial intelligence is a dedicated processor specifically used for probability calculation, and has a higher parallel processing performance than an existing general-purpose processor, so that computing tasks in the field of artificial intelligence (such as machine learning) can be quickly processed. When the learner 1010 and the determiner 1020 are implemented as software modules (or program modules including instructions), the software modules may be stored in a non-transitory computer-readable medium. In this case, the software module may be provided by an operating system (OS), or may be provided by a predetermined application. Alternatively, some software modules may be provided by an operating system (OS), and other software modules may be provided by a predetermined application.

[0187] In this case, the learner 1010 and the determiner 1020 may be installed on one electronic device (such as a server), or may be installed on separate electronic devices, respectively. For example, one of the learner 1010 and the determiner 1020 may be included in an electronic device (such as a vehicle and a robot), and the other may be included in an external server. In addition, the learner 1010 and the determiner 1020 may provide the model information constructed by the learner 1010 to the determiner 1020 in a wired or wireless manner, or may provide the data input to the learner 1010 as additional training data to the learner 1010.

[0188] Fig.11a and Fig.11b The present invention is a diagram showing an embodiment of the present invention. Fig.10 Block diagram of the detailed configuration of the learner and acquirer.

[0189] Reference Fig.11a According to some embodiments, the learner 1010 may include a training data acquirer 1010-1 and a model learner 1010-4. In addition, the learner 1010 may also include at least one of a training data preprocessor 1010-2, a training data selector 1010-3, and a model evaluator 1010-5.

[0190] The training data acquirer 1010-1 can acquire the training data required by the model. As an embodiment of the present disclosure, the training data acquirer 1010-1 can acquire the input value, output value, and safety mechanism corresponding to the input / output value of the functional module as training data. In detail, in addition to the input value and output value of the functional module, the training data acquirer 1010-1 can also acquire the control value and input / output value as training data according to the manual operation of the user, the safety mechanism corresponding to the control value, etc.

[0191] The model learner 1010-4 can learn how to correct the difference between information about the actual situation and whether the safety mechanism obtained using the training data detects an error. For example, the model learner 1010-4 can learn the artificial intelligence model through supervised learning using at least some learning data as a determination criterion. Optionally, the model learner 1010-4 can train the artificial intelligence model through unsupervised learning, wherein the unsupervised learning finds the criteria for determining the situation by, for example, training itself using the training data without any guidance. As another example, the model learner 1010-4 can learn the data recognition model through reinforcement learning, wherein reinforcement learning uses feedback on whether the result recognized according to the learned situation is correct. In addition, the model learner 1010-4 can train the artificial intelligence model using a learning algorithm, etc. (including, for example, error back propagation or gradient descent).

[0192] When the data recognition model is trained, the model learner 1010-4 can store the trained artificial intelligence model. In this case, the model learner 1010-4 can store the trained artificial intelligence model in a server (e.g., an artificial intelligence server). Alternatively, the model learner 1010-4 can store the trained artificial intelligence model in a memory of an electronic device connected to the server via a wired or wireless network.

[0193] The training data preprocessor 1010-2 can preprocess the acquired data so that the acquired data can be used for training to determine the security mechanism to be applied to the functional module among multiple security mechanisms. The training data preprocessor 1010-2 can process the acquired data into a predefined format so that the model learner 1010-4 can use the acquired data for training to determine the security mechanism to be applied to detect errors in the functional module.

[0194] The training data selector 1010-3 can select data required for learning from the data acquired by the training data acquirer 1010-1 or the data preprocessed by the training data preprocessor 1010-2. The selected training data can be provided to the model learner 1010-4. The training data selector 1010-3 can select the training data required for training from the acquired or preprocessed data according to a predetermined selection criterion. In addition, the training data selector 1010-3 can select the training data according to a preset selection criterion for the training of the model learner 1010-4.

[0195] The learner 1010 may also include a model evaluator 1010 - 5 to improve the recognition results of the artificial intelligence model.

[0196] The model evaluator 1010-5 may input the evaluation data to the artificial intelligence model, and may allow the model learner 1010-4 to learn the artificial intelligence model again if the recognition result output from the evaluation data does not meet the predetermined criteria. In this case, the evaluation data may be predefined data for evaluating the artificial intelligence model.

[0197] For example, in the recognition results of the trained artificial intelligence model for the evaluation data, when the number or ratio of the evaluation data with inaccurate recognition results exceeds a preset threshold, the model evaluator 1010-5 may evaluate that the trained data recognition model does not meet the predetermined criteria.

[0198] In addition, in the case where there are multiple trained artificial intelligence models, the model evaluator 1010-5 can evaluate whether each trained artificial intelligence model meets the predetermined criteria, and determine the trained artificial intelligence model that meets the predetermined criteria as the final artificial intelligence model. In the case where the number of trained data recognition models that meet the predetermined criteria is multiple, the model evaluator 1010-5 can determine any one preset trained artificial intelligence model or a predetermined number of trained data recognition models as the final artificial intelligence model in descending order of evaluation scores.

[0199] Reference Fig.11b , the determiner 1020 according to some embodiments may include an input data acquirer 1020 - 1 and a determiner 1020 - 4 .

[0200] In addition, the determiner 1020 may further include at least one of an input data preprocessor 1020 - 2 , an input data selector 1020 - 3 , and a model updater 1020 - 5 .

[0201] The input data acquirer 1020-1 can acquire the input / output value of the functional module and the safety mechanism corresponding to the input / output value as input data. Alternatively, the input data acquirer 1020-1 can acquire the control value and the input / output value as input data according to the user's manual operation of the input value and the output value of the functional module and the safety mechanism corresponding to the control value. The determiner 1020-4 can obtain the result of processing the input data by applying the input data acquired by the input data acquirer 1020-1 to the artificial intelligence model trained with the input value. The determiner 1020-4 can apply the data selected by the input data preprocessor 1020-2 or the input data selector 1020-3 described below to the artificial intelligence model as input value to obtain the result of processing the input data.

[0202] As an example, the determiner 1020-4 can apply the input value and output value of the functional module acquired by the input data acquirer 1020-1, the control value according to the user's manual operation, etc. to the training model to obtain (or estimate) the determination result of at least one safety mechanism that will be applied to detect errors in the functional module.

[0203] The determiner 1020 may further include an input data preprocessor 1020 - 2 and an input data selector 1020 - 3 to improve the recognition result of the artificial intelligence model or save resources or time for providing the recognition result.

[0204] The input data preprocessor 1020-2 can preprocess the acquired data so that the acquired data can be used to input into the first model and the second model. The input data preprocessor 1020-2 can process the acquired data into a predefined format so that the determiner 1020-4 can use the acquired data to obtain the best error detection result of the functional module.

[0205] The input data selector 1020-3 can select data required for determining the situation from the data acquired by the input data acquirer 1020-1 or the data preprocessed by the input data preprocessor 1020-2. The selected data can be provided to the determiner 1020-4. The input data selector 1020-3 can select some or all of the acquired or preprocessed data according to the preset selection criteria for determining the situation. In addition, the input data selector 1020-3 can select data according to the preset selection criteria through the learning of the model learner 1010-4.

[0206] The model updater 1020-5 may control the artificial intelligence model to be updated based on the evaluation of the recognition result provided by the determiner 1020-4. For example, the model updater 1020-5 may provide the image processing result provided by the determiner 1020-4 to the model learner 1010-4, and thus may request the model learner 1010-4 to further train or update the artificial intelligence model.

[0207] Fig.12 is a diagram illustrating stopping application of a previously applied security mechanism according to an embodiment of the present disclosure.

[0208] Reference Fig.12 The operations of the identification module 1210, the determination module 1220, and the control module 1230 and the safety mechanisms 1211, 1221, and 1231 respectively applied to the identification module 1210, the determination module 1220, and the control module 1230 are based on a safety integrity level, wherein the safety integrity level can be related to Figure 7 The safety integrity level is the same as shown in .

[0209] In addition, when the performance of the functional module is very high or when real-time characteristics are required, the electronic device may omit detecting erroneous operation of the functional module. The high performance of the functional module may indicate that the probability of erroneous operation of the functional module is low. In detail, when the probability of failure of the functional module is very low and there is no damage even in the event of a failure, the electronic device may stop applying the safety mechanism to the functional module and immediately transfer the output value to the next functional module. The very low probability of failure of the functional module may indicate that as a result of applying the safety mechanism to the functional module for a predetermined time or number of times, the functional module may be within a normal range and does not show a suspected trend as a failure.

[0210] although Fig.12 The artificial intelligence model is not shown in the figure, but the operation of stopping the application of the security mechanism to each functional module can be performed on each functional module through the artificial intelligence model.

[0211] Even when the application of the security mechanism to the function module is stopped, the electronic device may apply the security mechanism again when a preset operation time or a preset operation number of the function module is exceeded.

[0212] Therefore, by not applying a security mechanism to a functional module whose safety is guaranteed, the time and resources required to execute the function can be reduced.

[0213] Fig.13 and Fig.14 is a diagram illustrating that an additional security mechanism is required according to various embodiments of the present disclosure.

[0214] Reference Fig.13 and Fig.14, shows an embodiment in which a fault is suspected when a safety mechanism is applied to a functional module even when it is determined that the functional module is in normal operation. For example, Fig.13 and Fig.14 The case where the safety mechanism 1a is applied to a functional module is shown as an example.

[0215] Examples of cases where a functional module is suspected of being faulty may include a case where the number of input values ​​and the number of output values ​​are different, a case where the output value for the input value tends to be close to the boundary of the normal range (e.g. Fig.13 ), or when the change in the output value of the input value exceeds the preset value (such as Fig.14 as shown).

[0216] Reference Fig.13 , when the safety mechanism 1a is applied, when the normal range of the output value for the input value is between a and b, the range of the output value is between a and b, so it can be recognized that the functional module operates normally.

[0217] However, according to an embodiment of the present disclosure, even when the output value is within the normal range, when the output value for a similar input value tends to be closer to the boundary of the normal range, the electronic device may suspect that the functional module is faulty. For example, in an ASCC system of an ADAS of a vehicle, if the recognition module recognizes an object included in an image as a vehicle, when the recognition accuracy is within the normal range but closer to the boundary value, the electronic device may suspect that the recognition module is faulty and apply an additional safety mechanism.

[0218] Reference Fig.14 When the change in the output value for similar input values ​​is greater than or equal to a preset value, the electronic device may suspect that the functional module is faulty. Specifically, it is possible to determine whether the recognition accuracy fluctuates within a normal range based on the change in accuracy over time Dy / Dt. For example, Fig.14 As shown, when the reference value of the accuracy variation is c, if the accuracy variation is greater than c or less than -c, the electronic device may suspect that the recognition module is faulty. In another embodiment, if the average value of the accuracy variation within a specific time range is greater than c or less than -c, the electronic device may suspect that the recognition module is faulty.

[0219] According to one embodiment, in the ASCC system of the ADAS of a vehicle, if the recognition module recognizes an object included in an image as a vehicle, the electronic device may suspect a failure of the recognition module and apply an additional safety mechanism even when the recognition accuracy varies within a normal range by more than a preset value.

[0220] Fig.15 is a flowchart illustrating a method for controlling an electronic device according to an embodiment of the present disclosure.

[0221] Reference Fig.15 First, in operation S1510, the electronic device may obtain an output value by inputting an input value to the function module to perform a function corresponding to the function module included in the electronic device. In this case, the input value input to the function module may be at least one of a sensed value obtained by a sensor, information received from an external device, and an output value output from a previous function module.

[0222] Next, in operation S1520, the electronic device may determine a security mechanism to be applied to the functional module based on the input value and the output value. In detail, the electronic device may determine a security mechanism to be additionally applied to a previously applied security mechanism based on a security integrity level of the functional module, or may determine a security mechanism to be applied regardless of the security integrity level. The operation of determining that a security mechanism of a functional module is applied using the input value and the output value may be performed based on a condition preset by a processor, or may be performed by a trained artificial intelligence model.

[0223] Next, in operation S1530, the electronic device may detect an erroneous operation of the functional module based on the identified security mechanism. In this case, according to the present disclosure, an erroneous operation not detected by a security mechanism applied according to a security integrity level of an existing functional module may be detected by additionally applying a security mechanism.

[0224] Fig.16 The embodiment according to the present disclosure is shown in more detail. Fig.15 Flow chart of the control method.

[0225] Reference Fig.16 First, in operation S1610, the electronic device may run function F, where function F is a safety-critical function that may threaten safety in the event of a failure. Here, the running of function F may mean that a functional module corresponding to function F runs or that function F is executed by a chip. Function F may be ASIL B grade, so the safety mechanism (1a) required by ASIL B may run.

[0226] In operation S1620, the electronic device may predict the pattern analysis and risk of the input value and output value of the functional module. In detail, the electronic device may predict the trend of the output value for the input value and the risk that will occur when the corresponding functional module fails. Such operations may be performed by the processor based on preset conditions, or may be performed by a trained artificial intelligence model.

[0227] Then, when analyzing the pattern of the output value for the input value, when the risk is determined to be high, in operation S1630, the electronic device may additionally apply safety mechanisms 1b and 1f recommended in ASIL B or higher safety mechanisms. At this time, when the artificial intelligence model is included in the electronic device, the artificial intelligence model may train the safety mechanism applied to the input value and the output value of the functional module.

[0228] If an error is detected according to the application of the additional safety mechanism, in operation S1640, the electronic device may convert the electronic device to a safe state. In detail, the electronic device may convert the corresponding functional module to a safe state. The safe state may be a state in which power is stopped to stop the operation of the electronic device, or may be a state in which the function of detecting an error is limited. In this case, the electronic device may notify the user of information about the detected error through a display or a speaker. The user receiving the notification may manually operate the device or take safety measures for the corresponding function.

[0229] On the other hand, when the additional safety mechanism is applied, if no problem pattern is found within a preset specific time, the process returns to operation S1610 to stop applying the additional safety mechanism and apply only the safety mechanism required by the safety integrity level.

[0230] On the other hand, if no problematic pattern is found within a preset specific time as a result of analyzing the pattern of the input value and the output value, the electronic device may selectively exclude the safety mechanism 1a required at least in ASIL B at operation S1650. When the application of the safety mechanism 1a is stopped, the electronic device may predict the risk by analyzing the pattern of the input value and the output value again after a preset time or when the function F is executed more than a predetermined number of times.

[0231] According to the above disclosure, errors that cannot be detected by existing safety mechanisms can be detected by applying additional safety mechanisms, so the errors can be handled more quickly.

[0232] In addition, the various embodiments described above may be implemented in a computer or a computer-readable recording medium using software, hardware, or a combination of software and hardware. According to hardware implementation, the embodiments described in the present disclosure may be implemented using at least one of an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a processor, a controller, a microcontroller, a microprocessor, and an electrical unit for performing other functions. In some cases, the embodiments described in the present disclosure may be implemented by the processor itself. According to software implementation, embodiments such as the processes and functions described in the present disclosure may be implemented by separate software modules. Each software module may perform one or more functions and operations described in the present disclosure.

[0233] In addition, the above-mentioned methods according to various embodiments of the present disclosure may be stored in a non-transitory readable medium. The non-transitory readable medium may be installed and used in various devices.

[0234] The non-transitory computer-readable medium is not a medium in which data is stored for a period of time (such as a register, a cache, a memory, etc.), but refers to a medium in which data is semi-permanently stored and can be read by a device. In detail, the program for executing the above-mentioned various methods can be stored and provided in a non-transitory readable medium (such as a compact disk (CD), a digital versatile disk (DVD), a hard disk, a Blu-ray disk, a universal serial bus (USB), a memory card, a read-only memory (ROM), etc.).

[0235] According to an embodiment, the method according to various embodiments disclosed in the document may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be released in the form of a storage medium readable by a machine (e.g., a compact disk read-only memory (CD-ROM)), or may be available through an application store (e.g., PlayStore). TM ) Online publishing. In the case of online publishing, at least part of the computer program product may be at least temporarily stored in a storage medium (such as a memory of a manufacturer's server, an application store's server, or a forwarding server), or temporarily created.

[0236] While the present disclosure has been shown and described with reference to various embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents.

Claims

1. A method for controlling an electronic device, the method include: acquiring an output value by inputting an input value into a function module included in the electronic device to execute a function corresponding to the function module; determining a first safety mechanism to be applied to the functional module based on the input value and the output value; detecting erroneous operation of the functional module based on the determined first safety mechanism; In response to the first safety mechanism not detecting an erroneous operation of the functional module and the output value satisfying a preset condition, determining a second safety mechanism different from the first safety mechanism; as well as An erroneous operation of the functional module is detected based on the determined second safety mechanism.

2. The method according to claim 1, in, The step of determining the first safety mechanism further includes: determining the first safety mechanism based on a safety integrity level of the functional module.

3. The method according to claim 1, in, The preset condition includes at least one of the following: the input number of input values ​​and the output number of output values ​​are different, the difference between the output value for the input value and the boundary of the normal range decreases over time, or the change in the output value for the input value exceeds a preset value.

4. The method according to claim 1, further comprising: include: A determined second safety mechanism is trained using the first safety mechanism for the input value and the output value.

5. The method according to claim 1, in, The step of determining the first safety mechanism includes: when the input value and the output value are within a normal range of the previously applied safety mechanism based on the safety integrity level of the functional module, and the input value and the output value do not meet a preset condition, stopping the operation of the functional module corresponding to the previously applied safety mechanism.

6. The method according to claim 1, in, The input value includes at least one of: a value acquired by a sensor, a value received from an external device, or an output value of a previous functional module.

7. The method of claim 1, further comprising: include: When erroneous operation of a functional module is detected, the electronic device is switched to a safe state.

8. The method according to claim 1, in, The functional module includes one of an identification module, a determination module or a control module.

9. An electronic device, include: a memory configured to store at least one instruction; as well as processor, The processor is configured to perform the following operations: The output value is obtained by inputting the input value to the function module included in the electronic device to execute the function corresponding to the function module, determining a first safety mechanism to be applied to the functional module based on the input value and the output value, detecting erroneous operation of the functional module based on a determined first safety mechanism, In response to not detecting an erroneous operation of the functional module based on the first safety mechanism and the output value satisfying a preset condition, determining a second safety mechanism different from the first safety mechanism, and An erroneous operation of the functional module is detected based on the determined second safety mechanism.

10. The electronic device according to claim 9, in, The processor is further configured to determine a first safety mechanism based on a safety integrity level of the functional module.

11. The electronic device according to claim 9, in, The preset condition is at least one of the following: the number of input times of the input value and the number of output times of the output value are different, the difference between the output value for the input value and the boundary of the normal range decreases over time, or the change in the output value for the input value exceeds a preset value.

12. The electronic device according to claim 9, in, The processor is further configured to train the determined second safety mechanism using the first safety mechanism for the input value and the output value.

13. The electronic device according to claim 9, in, The processor is further configured to stop operating the function module corresponding to the previously applied safety mechanism when the input value and the output value are within a normal range based on the previously applied safety mechanism according to the safety integrity level of the function module and the input value and the output value do not meet a preset condition.

14. The electronic device according to claim 9, in, The input value includes at least one of: a value acquired by a sensor, a value received from an external device, or an output value of a previous functional module.

15. The electronic device according to claim 9, in, The processor is further configured to: when an erroneous operation of the functional module is detected, convert the electronic device to a safe state.