Abnormality analysis method applied to programming and related device

By analyzing exception codes in real time and interpreting them in the target language, this solution addresses the problem of poor timeliness in answering questions during programming for primary and secondary school students. It provides highly accurate exception explanations and modification guidance, thereby improving the efficiency of programming learning.

CN122044532APending Publication Date: 2026-05-15IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
IFLYTEK CO LTD
Filing Date
2025-12-29
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Primary and secondary school students often struggle to obtain high-precision solutions quickly during programming. Online solutions are often untimely, and students often find it difficult to understand programming logic. Existing technologies often fail to provide efficient and easy-to-understand explanations and guidance for errors.

Method used

This paper presents an anomaly analysis method that analyzes the written code in real time, explains the cause of the anomaly using the target language, generates a high-precision solution, and performs in-depth analysis by combining context, syntax, logic and variable information to provide modification guidance.

Benefits of technology

It enables real-time and accurate error resolution during programming, improving timeliness and accuracy, making it easy to understand, and helping students quickly correct code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122044532A_ABST
    Figure CN122044532A_ABST
Patent Text Reader

Abstract

The invention provides an exception analysis method applied to programming and a related device, and the exception analysis method applied to programming comprises the steps: analyzing a currently written code, and determining whether the code is abnormal or not; and in response to the exception, analyzing the exception code, and explaining an exception reason of the exception code by utilizing a target language. According to the abnormality analysis method applied to programming, the encoding abnormality can be analyzed in real time in the programming process, and the timeliness is high; exception codes are explained and analyzed through the target language, high-precision answers aiming at the exceptions are generated, and understanding is easy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of programming technology, and in particular to an exception analysis method and related apparatus for programming. Background Technology

[0002] Programming is the process of instructing computers to solve problems and output results according to prescribed computational methods. As computer technology integrates into daily life, programming education has become a core component of education. Python, well-suited to the needs of primary and secondary school teaching, has become a key subject in information technology. From a background perspective, the digital age necessitates improving citizens' technological literacy, and primary and secondary schools, as a critical period for cognitive development, urgently require low-barrier programming tools. Python's concise and readable syntax, requiring no complex memorization, allows students to quickly focus on programming logic. Furthermore, as a core development language in the fields of artificial intelligence and big data, it serves as a bridge connecting basic education with advanced technology learning. Despite Python's low learning curve, primary and secondary school students still face challenges in both understanding and practice. One key challenge is bridging abstract logic with concrete thinking: programming requires transforming real-world problems into abstract computer logic, but primary and secondary school students primarily rely on concrete thinking, making it difficult for them to grasp concepts like variables, functions, and loops. This often results in them "knowing the syntax but not being able to use it." Faced with this situation, students often seek online solutions. However, online solutions require entering keywords to search the web, making it difficult to quickly obtain highly relevant answers, leading to poor timeliness and insufficient accuracy. Summary of the Invention

[0003] This application provides an exception analysis method and related apparatus for programming, which can analyze the exceptions in the code in real time during the programming process, interpret and analyze the exception code, generate high-precision solutions for the exceptions, has high timeliness, and uses the target language to interpret the exceptions, making them easy to understand.

[0004] To solve the above-mentioned technical problems, the first technical solution adopted in this application is: to provide an exception analysis method applied to programming, including: Analyze the code currently being written to determine if there are any anomalies; In response to an exception, the exception code is analyzed, and the cause of the exception is explained using the target language.

[0005] In one embodiment, the method further includes: In response to an exception, mark the exception code.

[0006] In one embodiment, the currently written code is analyzed to determine if there are any anomalies, including: The code being written is analyzed by combining at least one of the following: context information, syntax information, logic information, and variable information.

[0007] In one embodiment, the method further includes: generating modification guidance information for the abnormal code using the target speech.

[0008] In one embodiment, the analysis of the currently being written code includes: In response to an analysis command, the code currently being written is analyzed; the analysis command includes: a timed analysis command set based on time or the content of the code currently being written, and / or an instantaneous analysis command determined based on a preset command trigger unit.

[0009] In one embodiment, the method further includes: Perform a risk analysis on the currently running code or the code currently being written to determine whether it contains risky code; Therefore, the risk reasons of the risk code are explained using the target language.

[0010] In one embodiment, risk analysis is performed on the currently running code or the currently being written code, including: A preset verification expression is used to analyze whether the currently running code or the currently being written code contains risky code. In response to either condition, a preset model is used to filter the currently running code or the currently being written code.

[0011] To solve the above-mentioned technical problems, the second technical solution adopted in this application is: to provide an exception analysis device for programming, comprising: The analysis module is used to analyze the code currently being written to determine if there are any anomalies. The guidance module responds to exceptions by analyzing the exception code and explaining the cause of the exception using the target language.

[0012] To solve the above-mentioned technical problems, the third technical solution adopted in this application is: to provide an electronic terminal, which includes a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory, and the processor is used to execute program data to implement the steps in the above-mentioned anomaly analysis method.

[0013] To solve the above-mentioned technical problems, the fourth technical solution adopted in this application is: to provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps in the above-mentioned exception analysis method.

[0014] The beneficial effects of this application are as follows: Unlike existing technologies, the exception analysis method for programming provided in this application includes: analyzing the currently written code to determine if it is abnormal; responding to the exception, analyzing the abnormal code, and using a target language to explain the cause of the exception in the abnormal code. This exception analysis method for programming can analyze coding exceptions in real time during the programming process, resulting in high timeliness; it uses a target language to interpret and analyze the abnormal code, generating a high-precision solution for the exception that is easy to understand. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a flowchart illustrating the first embodiment of the anomaly analysis method provided in this application; Figure 2 This is a flowchart illustrating an embodiment of the display interface of the anomaly analysis method provided in this application; Figure 3 This is a flowchart illustrating the second embodiment of the anomaly analysis method provided in this application; Figure 4 This is a flowchart illustrating an embodiment of the anomaly analysis device provided in this application; Figure 5 This is a schematic diagram of the framework of an embodiment of the electronic terminal provided in this application; Figure 6 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium provided in this application. Detailed Implementation

[0017] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0018] In the following description, specific details such as particular system architectures, interfaces, and technologies are presented for illustrative purposes rather than for limiting purposes, in order to provide a thorough understanding of this application.

[0019] In this article, the term "and / or" simply describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "more" in this article means two or more objects.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0021] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.

[0022] The anomaly analysis method provided in this application can be implemented by a server or terminal alone, or by a server and terminal working together. In some embodiments, the terminal or server can implement the anomaly analysis method provided in this application by running a computer program. For example, the computer program can be a native program or software module in an operating system; it can be a native application (APP), i.e., a program that needs to be installed in the operating system to run, such as a client that supports virtual scenes, such as a game APP; it can also be a mini-program, i.e., a program that only needs to be downloaded to a browser environment to run; or it can be a mini-program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of application, module, or plugin.

[0023] To enable those skilled in the art to better understand the technical solution of this application, the anomaly analysis method provided by this application will be described in further detail below with reference to the accompanying drawings and specific embodiments.

[0024] Please see Figure 1 This is a flowchart illustrating the first embodiment of the exception analysis method applied to programming according to this application, specifically including: Step S11: Analyze the code currently being written to determine if there are any anomalies.

[0025] The exception analysis method for programming provided in this application can be embedded in any programming software. When programming with this software, the currently written code can be analyzed in real time to determine whether it contains exceptions.

[0026] In one embodiment, in response to an analysis instruction, the code currently being written is analyzed; the analysis instruction includes: a timed analysis instruction set based on time or the content of the code currently being written, and / or an instantaneous analysis instruction determined based on a preset instruction triggering unit.

[0027] In one embodiment, a timed analysis command can be set based on a time interval, such as a 5-minute interval. This way, the currently written code will be analyzed every 5 minutes to determine if there are any anomalies. Understandably, programming software provides a timer setting page where users can configure the time interval in a designated section.

[0028] It should be noted that for users with lower programming skills, the coding speed may be slower. Therefore, when performing timed analysis based on time intervals, incomplete code during the current writing process could lead to analysis errors and abnormal interference. Thus, in another embodiment, the timed analysis instruction can be determined based on the content of the currently written code. For example, it can analyze the currently coded code by combining at least one of the following: context information, syntax information, logical information, and variable information. This determines whether the code is logically and syntactically complete. If complete, an analysis instruction is automatically generated to analyze the code. It should be noted that the code the user needs to write may include multiple independently executable units. The focus here is on completing each independently executable unit, not necessarily the entire code.

[0029] In another embodiment, the analysis instruction can also be a transient analysis instruction. For example, a preset instruction triggering unit is set in the programming software; if the preset instruction triggering unit is triggered, an analysis instruction is generated. Combined with... Figure 2 An "Exception Analysis" icon can be displayed in the programming interface. When the user clicks the "Exception Analysis" icon, the currently written code can be analyzed.

[0030] In one embodiment, the code being written can be analyzed by combining at least one of the context information, syntax information, logic information, and variable information of the code being written, thereby determining whether the code being written is abnormal.

[0031] Step S12: In response to the exception, analyze the exception code and explain the cause of the exception using the target language. In one embodiment, if the code currently being written is abnormal, the abnormal code can be further marked.

[0032] In one embodiment, if a user clicks the "Anomaly Analysis" icon during coding to trigger an instantaneous analysis command or a timed analysis command, anomaly analysis will be performed on the code the user is currently writing. If an anomaly is found, the anomaly code will be marked. For example, the anomaly code segment can be accurately located, the specific line number and code content associated with the error can be automatically identified, and the anomaly code can be highlighted and marked in the code display interface.

[0033] After identifying the abnormal code through the above steps, the parsing command can be triggered based on the "parsing" icon. As you can understand, the "parsing" icon is also set in the programming interface, just like the "abnormal analysis" icon mentioned above. After triggering the "parsing" icon, the abnormal code is analyzed to determine the cause of the abnormality.

[0034] To make error reasons easier for students to understand, the target language can be used to explain the cause of the exception code. It should be noted that professional programming terminology is generally technical and specialized, which can be difficult for users with lower cognitive levels and knowledge to understand. The method in this application allows users to set up a language selection module in the programming interface, enabling them to choose the target language, such as Chinese. Then, Chinese can be used to analyze the native technical terms and English error messages in the exception code, clearly explaining the error type, such as syntax errors, logical errors, and undefined variables. This makes it easier for users to understand the cause of the exception.

[0035] The code being written is analyzed by combining at least one of the following: context information, syntax information, logic information, and variable information. The root cause of the error is analyzed in depth, such as: calling a function without initializing a variable, mismatch in the number of function parameters, or non-standard indentation format. The analysis is then described in detail in the target language, such as Chinese, and displayed in the parsing box.

[0036] Furthermore, the system can also generate modification guidance information for the abnormal code using the target speech. Specifically, it provides actionable code modification suggestions based on the cause of the error, including examples of correct code writing and explanations of the code locations that need adjustment, to help students quickly correct the abnormal code and complete the debugging process.

[0037] The anomaly analysis method in this embodiment can perform anomaly analysis on the code being written, and provide the cause of the anomaly and modification guidance information. It can intelligently analyze, accurately solve and provide targeted guidance for the problems encountered by primary and secondary school students in the process of programming, thereby overcoming the defects of the existing technology and meeting the actual needs of primary and secondary school students in learning Python programming.

[0038] The exception analysis method applied to programming in this application can analyze exceptions in the code in real time during the programming process, which is highly timely; it uses the target language to interpret and analyze the exception code, and generates high-precision solutions for the exceptions, which are easy to understand.

[0039] Please combine Figure 3 This is a flowchart illustrating another embodiment of the anomaly analysis method of this application, which is consistent with the above. Figure 1 Compared to the first embodiment shown, this embodiment further includes: Step S13: Perform a risk analysis on the currently running code or the code currently being written to determine whether it contains risky code.

[0040] Perform a risk analysis on the currently running code or the code currently being written to determine whether it contains risky code. This will be illustrated using currently running code as an example.

[0041] In one embodiment of this application, a "risk analysis" icon and a "run analysis" icon can also be set in the programming program. For example, when it is necessary to perform risk analysis on the currently running code, the "risk analysis" icon can be triggered, and the system will then perform risk analysis on the current code using a preset risk analysis level to determine whether it contains risky code.

[0042] In one specific embodiment, running code can be periodically polled for risk analysis; furthermore, running code can also be subject to real-time risk analysis based on whether a "risk analysis" icon is triggered. Thus, on the one hand, periodic risk screening can be achieved according to the designed periodic polling mechanism; on the other hand, risk analysis can be performed according to user needs.

[0043] To perform risk analysis, a pre-defined verification expression can be used to analyze whether the currently running code contains risky code; if not, a pre-defined model can be used to filter the currently running code.

[0044] Specifically, preset validation expressions, such as regular expressions, are used to include common dangerous code. When "risk analysis" is triggered, the system performs risk analysis on the current code (such as currently running code or currently being written code) based on the preset validation expressions, quickly identifying potential risky code and effectively intercepting security risks.

[0045] In one embodiment, the validation expression includes, but is not limited to: 1. Regular expressions to prevent dangerous imports, used to restrict the import of os (Operating System), subprocess, etc.

[0046] 2. Regular expressions that prevent the execution of system commands, such as os.system() and subprocess.run(). These regular expressions can directly call functions of system commands. For example, malicious code using os.system("rm -rf / ") will delete system files.

[0047] 3. Prevent regular expressions used to delete, rename, or modify permissions of files / directories, such as os.remove() (delete files) and shutil.rmtree() (delete directories), to prevent the code from being used to tamper with or delete data.

[0048] 4. Regular expressions that prevent child process calls, such as subprocess.Popen(), can be used to launch malicious programs and bypass the permission restrictions of the current code.

[0049] 5. Regular expressions that prevent dynamic code execution, such as eval() and exec().

[0050] 6. Prevent regular expressions used for reflection operations, such as getattr() and setattr(). Reflection operations can be used to modify sensitive attributes of objects, bypassing access control in the code.

[0051] 7. Prevent dangerous assignments using regular expressions, such as x=eval(...) and ==\s*(__import__|eval|exec|compile|open|file), to avoid indirectly triggering dangerous behavior through variables.

[0052] 8. Prevent infinite loop regular expressions, such as while\s+True, to prevent DoS (Denial of Service) attacks, such as malicious code consuming CPU resources.

[0053] 9. Prevent simple recursive regular expressions to avoid stack overflow.

[0054] The code is analyzed using the aforementioned preset expressions to determine if it contains risky code. If the code passes the verification, it indicates that it does not contain risky code. A preset model is then used to further filter the currently running code or the code currently being written. In one specific embodiment, taking the currently running code as an example, during runtime, the preset model is invoked to perform more detailed and in-depth filtering of dangerous code. The model's learning and reasoning capabilities accurately identify potential risks in various complex scenarios, ensuring the security and compliance of the code.

[0055] In another embodiment, error analysis can also be performed on the currently running code. Specifically, error analysis may include analyzing the syntax errors, logic, and variables of the current code.

[0056] Step S14: Response. Therefore, the risk cause of the risk code is explained using the target language.

[0057] The above method performs risk analysis on currently running code. It can automatically block execution requests when it successfully identifies dangerous instructions, illegal function calls, or security risks in the user code.

[0058] For risky code, its location can be precisely pinpointed. Through prominent red highlighting and dedicated risk icons, the code segment with security vulnerabilities and its specific line number are clearly and accurately marked. This intuitive approach helps students quickly identify the problem, significantly improving the efficiency of troubleshooting and correcting abnormal code.

[0059] Furthermore, the target language can be used to explain the reasons for the risk in the code, providing a detailed and clear explanation of the core security reasons why the code was intercepted. For example, statements such as "This code contains dangerous instructions to delete system files, which may cause device malfunction" or "The loop statement has no termination condition, which will cause excessive computer resource consumption" can be used, avoiding the use of obscure technical terms and allowing students to easily understand the essence of the problem.

[0060] Provides professional compliance guidance: For different types of risks, the system offers specific and practical compliance modification suggestions. These include secure alternatives and examples of compliant code writing, such as replacing dangerous instructions with safe and reliable functions or adding necessary loop termination conditions. It also briefly explains relevant secure programming standards, guiding students to gradually develop a correct awareness of secure programming and cultivate good programming habits while correcting their code. This application presents an exception analysis method for programming. Based on prompt optimization technology, the solution provides basic programming knowledge Q&A, code explanation, and code flowchart generation capabilities. It helps students understand code meaning, answer common programming questions, and provides replicable and modifiable code flowcharts or frameworks to assist in completing coding tasks. This method can intelligently analyze, accurately answer, and provide targeted guidance for problems encountered by primary and secondary school students in programming, thereby overcoming the shortcomings of existing technologies and meeting the actual needs of primary and secondary school students learning Python programming.

[0061] Please see Figure 4 This is a schematic diagram of an embodiment of the exception analysis device applied to programming according to this application. Specifically, it includes an analysis module 31 and a guidance module 32. The analysis module 31 analyzes the currently being written code to determine whether it is abnormal. The guidance module 32, in response to an exception, analyzes the abnormal code and explains the cause of the exception using a target language.

[0062] In one embodiment, the analysis module 31 is used to analyze the code being written by combining at least one of the context information, syntax information, logic information, and variable information of the code being written.

[0063] In one embodiment, the analysis module 31 is further configured to perform risk analysis on the currently running code or the currently being written code to determine whether it contains risky code.

[0064] In one embodiment, the analysis module 31 is further configured to analyze the currently being written code in response to an analysis instruction; the analysis instruction includes: a timed analysis instruction set based on time or the content of the currently being written code, and / or an instantaneous analysis instruction determined based on a preset instruction triggering unit.

[0065] In one embodiment, the guidance module 32 is used to analyze the exception code in response to an exception and explain the cause of the exception code using a target language.

[0066] In one embodiment, the guidance module 32 is used to mark the exception code in response to an exception.

[0067] In one embodiment, the guidance module 32 is used to generate modification guidance information for the abnormal code using the target speech.

[0068] Please see Figure 5 , Figure 5 This is a schematic diagram of a framework of an embodiment of the electronic terminal provided in this application. The electronic terminal 80 includes a memory 81 and a processor 82 coupled to each other. The processor 82 is used to execute program instructions stored in the memory 81 to implement the steps of any of the above-described anomaly analysis method embodiments. In a specific implementation scenario, the electronic terminal 80 may include, but is not limited to, a microcomputer or a server. In addition, the electronic terminal 80 may also include mobile devices such as laptops and tablets, which are not limited here.

[0069] Specifically, processor 82 controls itself and memory 81 to implement the steps of any of the above-described anomaly analysis method embodiments. Processor 82 can also be referred to as a CPU (Central Processing Unit). Processor 82 may be an integrated circuit chip with signal processing capabilities. Processor 82 can also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. A general-purpose processor can be a microprocessor or any conventional processor. Furthermore, processor 82 can be implemented using integrated circuit chips.

[0070] Please see Figure 6 , Figure 6 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium provided in this application. The computer-readable storage medium 90 stores program instructions 901 that can be executed by a processor. The program instructions 901 are used to implement the steps of any of the above-described anomaly analysis method embodiments.

[0071] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0072] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.

[0073] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0074] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0075] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0076] The above are merely embodiments of this application and do not limit the scope of patent protection of this application. Any equivalent structural or procedural changes made using the content of this application’s specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of this application.

Claims

1. An exception analysis method applied to programming, characterized in that, include: Analyze the code currently being written to determine if there are any anomalies; In response to an exception, the exception code is analyzed, and the cause of the exception is explained using the target language.

2. The method according to claim 1, characterized in that, The method further includes: In response to an exception, mark the exception code.

3. The method according to claim 2, characterized in that, Analyze the code currently being written to determine if there are any exceptions, including: The code being written is analyzed by combining at least one of the following: context information, syntax information, logic information, and variable information.

4. The method according to claim 1, characterized in that, The method further includes: generating modification guidance information for the abnormal code using the target speech.

5. The method according to claim 1, characterized in that, Analyze the code currently being written, including: In response to an analysis command, the code currently being written is analyzed; the analysis command includes: a timed analysis command set based on time or the content of the code currently being written, and / or an instantaneous analysis command determined based on a preset command trigger unit.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: Perform a risk analysis on the currently running code or the code currently being written to determine whether it contains risky code; Therefore, the risk reasons of the risk code are explained using the target language.

7. The method according to claim 6, characterized in that, Perform a risk analysis on the currently running code or the code currently being written, including: A preset verification expression is used to analyze whether the currently running code or the currently being written code contains risky code. In response to either condition, a preset model is used to filter the currently running code or the currently being written code.

8. An exception analysis device for programming, characterized in that, include: The analysis module is used to analyze the code currently being written to determine if there are any anomalies. The guidance module responds to exceptions by analyzing the exception code and explaining the cause of the exception using the target language.

9. An electronic terminal, characterized in that, The electronic terminal includes a memory and a processor coupled to each other. The processor is used to execute program instructions stored in the memory and to execute program data to implement the steps in the anomaly analysis method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the anomaly analysis method as described in any one of claims 1 to 7.