Application system detection method and device

By constructing an abnormal application detection model and combining convolutional neural network processing indicators and page data, the problems of low detection efficiency and limited coverage of application systems in the existing technology are solved, automatic detection is realized, labor costs are reduced, and detection efficiency is improved. Coverage.

CN118626334APending Publication Date: 2024-09-10INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410751650.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing application system detection methods rely on manual inspection, which is inefficient and has limited coverage. It is difficult for automated tools to effectively verify front-end pages and business functions, resulting in high costs and low efficiency.

Method used

Build an abnormal application detection model and use convolutional neural networks to combine indicator data and page data for feature extraction and training to achieve automated detection, replace manual detection, and improve detection efficiency and coverage.

Benefits of technology

It realizes automated detection, reduces labor costs, improves the efficiency and coverage of application system anomaly detection, and can effectively judge the application system status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626334A
    Figure CN118626334A
Patent Text Reader

Abstract

The invention discloses an application system detection method and device. The method comprises the following steps: extracting related to-be-detected application data from a to-be-detected application system; inputting the to-be-detected application data into the abnormal application detection model, and outputting a detection result of the to-be-detected application data; wherein the abnormal application detection model is obtained by training a convolutional neural network model according to historical normal application data; in the training process, inputting page data into a convolutional layer of the convolutional neural network model for feature extraction to obtain page feature data, combining the page feature data with index data, and inputting the combined page feature data and index data into a full connection layer of the convolutional neural network model for training; determining that the application system state is normal according to a detection result; and when determining that the to-be-tested application data is the abnormal application data, determining that the state of the application system is abnormal. According to the invention, automatic detection can be realized, the application system anomaly detection efficiency is improved, the detection coverage is expanded, and the labor cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an application system detection method and device. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.

[0003] At present, daily inspections of application systems are mainly carried out by manually opening pages or apps to check whether the application system functions normally. Determining the functional status of the application system through manual inspection has low detection efficiency, limited inspection coverage, and high labor costs. Automated tool verification can only judge the indicator information of the application, but page information such as page layout, page menu, image display, and business process is difficult to convert into indicator information, resulting in low support for automated tools to verify front-end pages and business functions. Therefore, a detection method is urgently needed to solve the above problems. Summary of the invention

[0004] The embodiment of the present invention provides an application system detection method for improving the efficiency of application system detection, expanding the detection coverage, and reducing labor costs. The method includes:

[0005] Extract relevant application data to be tested from the application system to be tested;

[0006] Input the application data to be tested into the abnormal application detection model, and output the detection result of the application data to be tested; wherein the abnormal application detection model is obtained by training the convolutional neural network model according to the historical normal application data; the application data includes indicator data and page data; and during the training process, the page data is input into the convolution layer of the convolutional neural network model for feature extraction to obtain page feature data, and the page feature data is combined with the indicator data and input into the fully connected layer of the convolutional neural network model for training;

[0007] According to the detection result, determining whether the application data to be tested is normal application data or abnormal application data;

[0008] When it is determined that the application data to be tested is normal application data, it is determined that the application system state is normal; when it is determined that the application data to be tested is abnormal application data, it is determined that the application system state is abnormal.

[0009] The embodiment of the present invention further provides an application system detection device, which is used to improve the efficiency of application system detection, expand the detection coverage, and reduce labor costs. The device includes:

[0010] The application data acquisition module to be tested is used to extract relevant application data to be tested from the application system to be tested;

[0011] The detection result output module is used to input the application data to be tested into the abnormal application detection model and output the detection result of the application data to be tested; wherein the abnormal application detection model is obtained by training the convolutional neural network model according to the historical normal application data; the application data includes indicator data and page data; and during the training process, the page data is input into the convolution layer of the convolutional neural network model for feature extraction to obtain page feature data, and the page feature data is combined with the indicator data and input into the fully connected layer of the convolutional neural network model for training;

[0012] The module for determining the state of the application data to be tested is used to determine whether the application data to be tested is normal application data or abnormal application data according to the detection result;

[0013] The application system status determination module is used to determine that the application system status is normal when the application data to be tested is determined to be normal application data; and to determine that the application system status is abnormal when the application data to be tested is determined to be abnormal application data.

[0014] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned application system detection method when executing the computer program.

[0015] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned application system detection method is implemented.

[0016] An embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program, and the computer program implements the above-mentioned application system detection method when executed by a processor.

[0017] In an embodiment of the present invention, relevant application data to be tested is extracted from the application system to be tested; the application data to be tested is input into an abnormal application detection model, and the detection result of the application data to be tested is output; wherein the abnormal application detection model is obtained by training a convolutional neural network model according to historical normal application data; the application data includes indicator data and page data; and in the training process, the page data is input into the convolution layer of the convolutional neural network model for feature extraction to obtain page feature data, and the page feature data is combined with the indicator data and input into the fully connected layer of the convolutional neural network model for training; according to the detection result, it is determined that the application data to be tested is normal application data or abnormal application data; when it is determined that the application data to be tested is normal application data, it is determined that the application system state is normal; when it is determined that the application data to be tested is abnormal application data, it is determined that the application system state is abnormal. In the above process, the embodiment of the present invention constructs an abnormal application detection model, combines the indicator data and the page data for model training, outputs the detection result of the application data to be tested through the trained abnormal application detection model, determines the application system state according to the application data detection result, and realizes automatic detection, thereby replacing the manual detection of the application system state, improving the efficiency of application system abnormality detection, expanding the detection coverage, and reducing labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0019] Figure 1 A flowchart of an application system detection method in an embodiment of the present invention;

[0020] Figure 2 A flowchart of obtaining historical normal application data in an embodiment of the present invention;

[0021] Figure 3 A neural network structure diagram in an embodiment of the present invention;

[0022] Figure 4 A schematic diagram of an application system detection device in an embodiment of the present invention;

[0023] Figure 5 It is a specific schematic diagram of the application system detection device in the embodiment of the present invention. DETAILED DESCRIPTION

[0024] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0025] First, several terms involved in the following content are explained.

[0026] Neural network: In the process of computer information processing, by simulating the human brain neural network, a simple model is established to form different networks in different ways. Neural network is a computing model composed of a large number of interconnected nodes (or neurons), which has been widely used in many artificial intelligence fields such as pattern recognition and machine learning.

[0027] Convolutional Neural Network: A feedforward neural network whose artificial neurons can respond to surrounding units within a certain coverage area and performs well in large image processing.

[0028] Image recognition: refers to the use of computer systems to process, analyze and understand images in order to distinguish various types of targets and objects.

[0029] Application system detection: Check whether the system functions normally through manual verification or automated tool scanning.

[0030] Figure 1 This is a flow chart of an application system detection method in an embodiment of the present invention, the method comprising:

[0031] Step 101, extracting relevant application data to be tested from the application system to be tested;

[0032] Step 102, input the application data to be tested into the abnormal application detection model, and output the detection result of the application data to be tested; wherein the abnormal application detection model is obtained by training the convolutional neural network model according to the historical normal application data; the application data includes indicator data and page data; and during the training process, the page data is input into the convolution layer of the convolutional neural network model for feature extraction to obtain page feature data, and the page feature data is combined with the indicator data and input into the fully connected layer of the convolutional neural network model for training;

[0033] Step 103, determining whether the application data to be tested is normal application data or abnormal application data according to the detection result;

[0034] Step 104: when it is determined that the application data to be tested is normal application data, it is determined that the application system state is normal; when it is determined that the application data to be tested is abnormal application data, it is determined that the application system state is abnormal.

[0035] Each step is described in detail below.

[0036] In step 101, relevant application data to be tested is extracted from the application system to be tested.

[0037] In a specific embodiment, application data is divided into two categories, one is indicator data and the other is page data. The indicator data includes application server status indicators, such as application process status, port status, number of network connections, CPU usage, memory usage, etc.; application business indicators, such as transaction volume, transaction success rate, transaction response time, etc.; application system indicators, such as number of interface calls, interface success rate, interface response time, etc.

[0038] Page data is stored in units of business functions. One business function includes the complete business process of the function. Each step of the business process is saved in the database in the form of screenshots in the order of operations. That is, one business function includes all page screenshots that implement the function, and the screenshots are stored in the order of operations.

[0039] In step 102, the application data to be tested is input into the abnormal application detection model, and the detection result of the application data to be tested is output; wherein the abnormal application detection model is obtained by training the convolutional neural network model according to the historical normal application data; the application data includes indicator data and page data; and during the training process, the page data is input into the convolutional layer of the convolutional neural network model for feature extraction to obtain page feature data, and the page feature data is combined with the indicator data and input into the fully connected layer of the convolutional neural network model for training.

[0040] like Figure 2 As shown, in one embodiment, before training the convolutional neural network model according to historical normal application data, the following steps are included:

[0041] Step 201, obtaining multiple groups of historical page data, and determining a corresponding page screenshot according to each group of historical page data;

[0042] Step 202, determining historical indicator data corresponding to the page screenshot according to the page screenshot;

[0043] Step 203, establishing a correspondence between each set of historical page data and historical indicator data, and forming an application data set according to the correspondence;

[0044] Step 204: Acquire historical normal application data from the application data set.

[0045] In a specific embodiment, the application data is processed and stored in a database. For page data, each page data is stored in a matrix, and the matrix corresponding to the page data is A[a ij ], a ijis the page data of the i-th row and j-th column. Each business process is a set of multiple matrices arranged in order. Combine the indicator data and the page data. Establish a corresponding relationship between the matrix corresponding to each page data and the real-time indicator corresponding to the system when the page is screenshotted, and combine them into an application data set S, which is used as the input data of the neural network.

[0046] In one embodiment, it further includes:

[0047] Before training the abnormal application detection model, data extraction and data filling are performed on the historical normal application data.

[0048] In one embodiment, data extraction and data supplementation processing are performed on historical normal application data, including:

[0049] Extract and process historical normal application data;

[0050] The Lagrange interpolation method is used to perform data filling processing on the historical normal application data after data extraction processing to obtain the historical normal application data after data filling processing.

[0051] In a specific embodiment, in the process of building an abnormal application detection model, a convolutional neural network is combined with a fully connected neural network to improve the network topology structure, such as Figure 3 As shown in Figure 2, the input layer of the neural network is divided into two parts. For the constructed application data set, each page matrix and indicator data are input into different input nodes respectively.

[0052] For page data, the convolution layer and pooling layer similar to traditional convolutional neural networks are used for calculation and classification, and the data is output to the fully connected layer. For indicator data, the data is directly input to the fully connected layer.

[0053] In the fully connected layer, the calculated page data and indicator data are combined, and a secondary calculation is performed through the neural network to output a one-dimensional vector R. This output is the output of the application data set S.

[0054] In step 103, it is determined whether the application data to be tested is normal application data or abnormal application data according to the detection result.

[0055] In a specific embodiment, after obtaining the detection result, if the detection result is suspected abnormal application data, a secondary detection is performed on the suspected abnormal application data through a manual detection method to obtain a secondary detection result, and based on the secondary detection result, it is determined whether the suspected abnormal application data is normal application data or abnormal application data.

[0056] In one embodiment, it further includes:

[0057] According to the detection results, adjust the model parameters of the abnormal application detection model.

[0058] In step 104, when it is determined that the application data to be tested is normal application data, it is determined that the application system state is normal; when it is determined that the application data to be tested is abnormal application data, it is determined that the application system state is abnormal.

[0059] In one embodiment, it further includes:

[0060] After determining that the application data to be tested is abnormal application data based on the detection result, an alarm message is issued.

[0061] The present invention also provides an application system detection device, as described in the following embodiments. Since the principle of the device to solve the problem is similar to that of the application system detection method, the implementation of the device can refer to the implementation of the application system detection method, and the repeated parts will not be repeated. Figure 4 As shown, the device comprises:

[0062] The application data acquisition module 401 is used to extract relevant application data to be tested from the application system to be tested;

[0063] The detection result output module 402 is used to input the application data to be tested into the abnormal application detection model and output the detection result of the application data to be tested; wherein the abnormal application detection model is obtained by training the convolutional neural network model according to the historical normal application data; the application data includes indicator data and page data; and during the training process, the page data is input into the convolution layer of the convolutional neural network model for feature extraction to obtain page feature data, and the page feature data is combined with the indicator data and input into the fully connected layer of the convolutional neural network model for training;

[0064] The application data state determination module 403 is used to determine whether the application data to be tested is normal application data or abnormal application data according to the detection result;

[0065] The application system state determination module 404 is used to determine that the application system state is normal when the application data to be tested is determined to be normal application data; and to determine that the application system state is abnormal when the application data to be tested is determined to be abnormal application data.

[0066] In one embodiment, an application data set construction module is further included, which is used to:

[0067] Before training the convolutional neural network model based on historical normal application data, multiple groups of historical page data are obtained, and corresponding page screenshots are determined based on each group of historical page data;

[0068] According to the page screenshot, determine the historical indicator data corresponding to the page screenshot;

[0069] Establish a correspondence between each set of historical page data and historical indicator data, and form an application data set based on the correspondence;

[0070] Get historical normal application data from the application dataset.

[0071] like Figure 5 As shown, in one embodiment, it also includes a data preprocessing module 501, which is used to:

[0072] Before training the abnormal application detection model, data extraction and data filling are performed on the historical normal application data.

[0073] In one embodiment, the data preprocessing module 501 is specifically used for:

[0074] Extract and process historical normal application data;

[0075] The Lagrange interpolation method is used to perform data filling processing on the historical normal application data after data extraction processing to obtain the historical normal application data after data filling processing.

[0076] In one embodiment, a model parameter adjustment module is further included, which is specifically used to:

[0077] According to the detection results, adjust the model parameters of the abnormal application detection model.

[0078] In one embodiment, an alarm module is also included, which is specifically used to:

[0079] After determining that the application data to be tested is abnormal application data based on the detection result, an alarm message is issued.

[0080] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned application system detection method when executing the computer program.

[0081] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned application system detection method is implemented.

[0082] An embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program, and the computer program implements the above-mentioned application system detection method when executed by a processor.

[0083] In an embodiment of the present invention, relevant application data to be tested is extracted from the application system to be tested; the application data to be tested is input into an abnormal application detection model, and the detection result of the application data to be tested is output; wherein the abnormal application detection model is obtained by training a convolutional neural network model according to historical normal application data; the application data includes indicator data and page data; and in the training process, the page data is input into the convolution layer of the convolutional neural network model for feature extraction to obtain page feature data, and the page feature data is combined with the indicator data and input into the fully connected layer of the convolutional neural network model for training; according to the detection result, it is determined that the application data to be tested is normal application data or abnormal application data; when it is determined that the application data to be tested is normal application data, it is determined that the application system state is normal; when it is determined that the application data to be tested is abnormal application data, it is determined that the application system state is abnormal. In the above process, the embodiment of the present invention constructs an abnormal application detection model, combines the indicator data and the page data for model training, outputs the detection result of the application data to be tested through the trained abnormal application detection model, determines the application system state according to the application data detection result, and realizes automatic detection, thereby replacing the manual detection of the application system state, improving the efficiency of application system abnormality detection, expanding the detection coverage, and reducing labor costs.

[0084] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0085] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0086] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0087] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0088] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. An application system detection method, characterized in that: include: Extract relevant application data to be tested from the application system to be tested; Input the application data to be tested into the abnormal application detection model, and output the detection result of the application data to be tested; The abnormal application detection model is obtained by training the convolutional neural network model based on historical normal application data; the application data includes indicator data and page data; and during the training process, the page data is input into the convolutional layer of the convolutional neural network model for feature extraction to obtain page feature data, and the page feature data is combined with the indicator data and input into the fully connected layer of the convolutional neural network model for training; According to the detection result, determining whether the application data to be tested is normal application data or abnormal application data; When it is determined that the application data to be tested is normal application data, it is determined that the application system state is normal; When it is determined that the application data to be tested is abnormal application data, it is determined that the application system state is abnormal.

2. The method according to claim 1, characterized in that Before training the convolutional neural network model based on historical normal application data, including: Obtain multiple sets of historical page data, and determine the corresponding page screenshot according to each set of historical page data; According to the page screenshot, determine the historical indicator data corresponding to the page screenshot; Establish a correspondence between each set of historical page data and historical indicator data, and form an application data set based on the correspondence; Get historical normal application data from the application dataset.

3. The method according to claim 1, characterized in that Also includes: Before training the abnormal application detection model, data extraction and data filling are performed on the historical normal application data.

4. The method according to claim 3, characterized in that Perform data extraction and data supplementation on historical normal application data, including: Extract and process historical normal application data; The Lagrange interpolation method is used to perform data filling processing on the historical normal application data after data extraction processing to obtain the historical normal application data after data filling processing.

5. The method according to claim 1, characterized in that Also includes: According to the detection results, adjust the model parameters of the abnormal application detection model.

6. The method according to claim 1, characterized in that Also includes: After determining that the application data to be tested is abnormal application data based on the detection result, an alarm message is issued.

7. An application system detection device, characterized in that: include: The application data acquisition module to be tested is used to extract relevant application data to be tested from the application system to be tested; A detection result output module is used to input the application data to be tested into the abnormal application detection model and output the detection result of the application data to be tested; The abnormal application detection model is obtained by training the convolutional neural network model based on historical normal application data; the application data includes indicator data and page data; and during the training process, the page data is input into the convolutional layer of the convolutional neural network model for feature extraction to obtain page feature data, and the page feature data is combined with the indicator data and input into the fully connected layer of the convolutional neural network model for training; The module for determining the state of the application data to be tested is used to determine whether the application data to be tested is normal application data or abnormal application data according to the detection result; The application system status determination module is used to determine that the application system status is normal when it is determined that the application data to be tested is normal application data; When it is determined that the application data to be tested is abnormal application data, it is determined that the application system state is abnormal.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.