Abnormal form data identification method, device, electronic device and storage medium
By collecting and verifying page form data in real time, updating regular expressions dynamically, and performing exception reanalysis, the accuracy of page form abnormal data recognition in the existing technology is solved, and the recognition ability and accuracy are improved.
Patent Information
- Application Number
- CN202111404547.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2041-11-24
AI Technical Summary
The prior art has the problem of identification accuracy when identifying abnormal data on page form, especially in complex business scenarios, monitoring scripts are difficult to identify all abnormal data.
By using the preset buried point control to collect the current form data of the page form in real time and verify it according to the preset regular expression, the regular expression is dynamically updated to improve the recognition accuracy. For the data that fail to check, the initial abnormal data is identified and abnormal reanalysed to obtain the final abnormal data.
It improves the ability and accuracy of abnormal data in page form, and ensures the accurate identification and processing of abnormal data.
Smart Images

Figure CN114118035B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method, device, electronic device and computer-readable storage medium for identifying abnormal form data. Background Art
[0002] A page form refers to a web page window used for interaction between a website and a user. It is used to send the access data entered by the user to the server for processing to achieve the effect of page interaction. Since the page form is a form that interacts with the user, a large amount of user interaction data will be generated in the page form. In order to ensure the normal loading and operation of the page form, it is necessary to monitor the page form data for exceptions to achieve normal interaction between the page form and the user.
[0003] At present, abnormal data in page forms is usually implemented using monitoring scripts, that is, the monitoring scripts are used to identify abnormalities in each data in the page form. However, due to the complexity of actual business scenarios, there will be problems that the monitoring script cannot identify the data in the page form, which will lead to recognition errors in the abnormal data of the page form, thereby affecting the recognition accuracy of the abnormal data in the page form. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a method, device, electronic device and computer-readable storage medium for identifying abnormal form data, which can improve the ability to identify abnormal form data on a page and ensure the accuracy of identifying abnormal form data on a page.
[0005] In a first aspect, the present invention provides a method for identifying abnormal form data, comprising:
[0006] Use the preset tracking point controls to collect the current form data of the page form in real time;
[0007] Verifying the current form data according to a preset regular expression, wherein the preset regular expression is dynamically updated based on the historical form data of the page form;
[0008] When the form data verification succeeds, the current form data is used as the historical form data of the page form to update the preset regular expression;
[0009] When the current form data verification fails, identifying initial abnormal data in the current form data;
[0010] The initial abnormal data is subjected to abnormal reanalysis to obtain final abnormal data in the current form data.
[0011] It can be seen that, in the embodiment of the present invention, firstly, the embedded point control collects the current form data of the page form in real time, and can obtain the current form data of the page form in real time, realize real-time dynamic analysis of the current form data, and improve the flexibility and accuracy of identifying abnormal form data; secondly, the embodiment of the present invention verifies the current form data according to a preset regular expression, and can preliminarily determine the data in the current form data that does not satisfy the regular expression, thereby obtaining the initial abnormal data in the current form data; further, the embodiment of the present invention performs abnormal re-analysis on the initial abnormal data to obtain the final abnormal data in the current form data, and can realize secondary quality inspection of the initial abnormal data, improve the abnormal recognition capability of the current form data, and ensure the abnormal recognition accuracy of the current form data. Therefore, a form abnormal data recognition method proposed in the embodiment of the present invention can improve the recognition capability of page form abnormal data and ensure the recognition accuracy of page form abnormal data.
[0012] In a possible implementation of the first aspect, the using a preset embedding control to collect current form data of a page form in real time includes:
[0013] Utilize the monitoring script in the tracking point control to detect the behavior events of the page form in real time;
[0014] In response to the behavior event, recording event data and user data of the behavior event using a tracking framework in the tracking control;
[0015] Generate current form data according to the event data and the user data.
[0016] In a possible implementation manner of the first aspect, the identifying initial abnormal data in the current form data includes:
[0017] In response to a verification failure event of the current form data, an abnormal field in the current form data is located, and initial abnormal data in the current form data is identified based on the abnormal field.
[0018] In a possible implementation manner of the first aspect, identifying initial abnormal data in the current form data according to the abnormal field includes:
[0019] A field sequence of the abnormal field is obtained, an abnormal position of the abnormal field is located according to the field sequence, and initial abnormal data in the current form data is determined according to the abnormal position.
[0020] In a possible implementation manner of the first aspect, performing abnormal reanalysis on the initial abnormal data to obtain final abnormal data in the current form data includes:
[0021] Extracting abnormal fields from the initial abnormal data, and determining whether the abnormal fields will affect the running state of the page form;
[0022] If the abnormal field does not affect the running state of the page form, the initial abnormal data of the abnormal field is not used as the final abnormal data;
[0023] If the abnormal field affects the running state of the page form, the initial abnormal data of the abnormal field is used as the final abnormal data.
[0024] In a possible implementation of the first aspect, before using a preset embedding control to collect current form data of a page form in real time, the method further includes:
[0025] Detect a click event in the page form, and configure a tracking point control of the page form according to the click event.
[0026] In a possible implementation manner of the first aspect, before verifying the current form data according to a preset regular expression, the method further includes:
[0027] Acquire historical form data of the page form, and extract form features from the historical form data;
[0028] According to the form features, data verification rules for the page form are constructed, and regular expressions of the data verification rules are constructed using regular expression technology.
[0029] In a second aspect, the present invention provides a device for identifying abnormal form data, the device comprising:
[0030] The current form data collection module is used to collect the current form data of the page form in real time using the preset embedding control;
[0031] A current form data verification module, used to verify the current form data according to a preset regular expression, wherein the preset regular expression is dynamically updated based on the historical form data of the page form;
[0032] A regular expression updating module, used to use the current form data as the historical form data of the page form to update the preset regular expression when the form data verification succeeds;
[0033] An initial abnormal data identification module, used for identifying initial abnormal data in the current form data when the current form data verification fails;
[0034] The final abnormal data generating module is used to perform abnormal re-analysis on the initial abnormal data to obtain the final abnormal data in the current form data.
[0035] In a third aspect, the present invention provides an electronic device, comprising:
[0036] at least one processor; and a memory communicatively coupled to the at least one processor;
[0037] Wherein, the memory stores a computer program executable by the at least one processor, so that the at least one processor can execute the form abnormal data identification method as described in any one of the first aspects above.
[0038] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the method for identifying abnormal form data as described in any one of the first aspects above is implemented.
[0039] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 A detailed flow chart of a method for identifying abnormal form data provided by an embodiment of the present invention;
[0043] Figure 2 An embodiment of the present invention Figure 1 A flowchart of one of the steps in a method for identifying abnormal form data is provided;
[0044] Figure 3 A schematic diagram of a module of a device for identifying abnormal form data provided by an embodiment of the present invention;
[0045] Figure 4 A schematic diagram of the internal structure of an electronic device for implementing a method for identifying abnormal form data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0047] The embodiment of the present invention provides a method for identifying abnormal form data. The execution subject of the abnormal form data identification method includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present invention. In other words, the abnormal form data identification method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0048] See also Figure 1 The flowchart shown describes a method for identifying abnormal form data provided by an embodiment of the present invention. Figure 1 The form abnormal data identification methods described in include:
[0049] S1. Use the preset tracking point control to collect the current form data of the page form in real time.
[0050] In an embodiment of the present invention, the page form refers to a web page window used for interaction between a website and a user, which is used to send access data input by the user to a server for processing to achieve the effect of page interaction. Furthermore, the page form is constructed by form elements, and the form elements refer to structural units that form the page form, such as text boxes, check boxes, drop-down boxes, tables, buttons, etc.
[0051] Furthermore, in the embodiment of the present invention, the embedding control refers to a component used to collect page data in the front-end page. In the embodiment of the present invention, the embedding control is used to collect form data of the page form. Therefore, the embodiment of the present invention collects the current form data of the page form in real time by using the preset embedding control to obtain the current form data of the page form in real time, realize the real-time dynamic analysis of the current form data, and improve the flexibility and accuracy of identifying abnormal form data. Among them, the current form data refers to the user's real-time interactive behavior data in the page form, such as form clicks, form filling, form browsing, and form update data, and the users include form browsing users and form management users.
[0052] Furthermore, in an optional embodiment of the present invention, before using a preset tracking control to collect the current form data of the page form in real time, it also includes: detecting a click event in the page form, and configuring the tracking control of the page form according to the click event.
[0053] The click event refers to the event generated by clicking the UI control in the page form, wherein the UI control refers to a tool for interacting with the user, such as a login control, a purchase control, and a view control. Furthermore, the configuration of the tracking control is implemented through tracking technology, which includes no tracking technology, log tracking technology, and client SDK tracking technology.
[0054] Further, as an embodiment of the present invention, refer to Figure 2 As shown, the method of using the preset tracking point control to collect the current form data of the page form in real time includes:
[0055] S201, using the monitoring script in the tracking control to detect the behavior events of the page form in real time;
[0056] S202: In response to the behavior event, record event data and user data of the behavior event using a tracking framework in the tracking control;
[0057] S203: Generate current form data according to the event data and the user data.
[0058] Among them, the monitoring script is compiled by JavaScript scripting language, which is used to automatically identify the behavior events of the page form. The embedding framework includes a Flutter framework, which is used to automatically record the page data under the behavior events. The event data refers to the data clicked in the page form, such as click time, click object and number of clicks, etc. The user data refers to the user data triggered in the page form, such as user instructions, user passwords and user gestures.
[0059] S2. Verify the current form data according to a preset regular expression, wherein the preset regular expression is dynamically updated based on the historical form data of the page form.
[0060] It should be understood that due to the complexity of business scenarios, there may be abnormal situations in the current form data collected by the page form, such as the data length exceeds the preset length, and the data format does not meet the preset format. Therefore, the embodiment of the present invention verifies the current form data according to a preset regular expression to preliminarily determine the data in the current form data that does not meet the regular expression, thereby obtaining the initial abnormal data in the current form data.
[0061] The preset regular expression is dynamically updated based on the historical form data to ensure that the regular expression is in a real-time dynamic update state, so that the verification state of the current form data can be kept in the latest state, thereby ensuring the real-time and accuracy of the verification of the current form data.
[0062] Furthermore, in an optional embodiment of the present invention, before verifying the current form data according to a preset regular expression, it also includes: obtaining historical form data of the page form, extracting form features in the historical form data, constructing data verification rules for the page form according to the form features, and using regular expression technology to construct a regular expression for the data verification rules.
[0063] Among them, the historical form data refers to the data that has been collected in the page form, which is obtained through a query statement, and the query statement includes an SQL statement. The form feature refers to the data attribute used to characterize the historical form data. By extracting the form feature, redundant data in the historical form data can be screened out and the processing speed of subsequent data can be improved. Optionally, the extraction of the form feature is implemented by an information gain rate algorithm, such as an information entropy algorithm.
[0064] Furthermore, the data verification rule described in the embodiment of the present invention refers to the strategy adopted for verifying data in the page form, which includes a data verification method and a data verification logic. The data verification method includes: method one, do not stop when encountering erroneous data, and summarize the erroneous data after the data verification is completed; method two, stop immediately when encountering erroneous data, and return the erroneous data to the user; the data verification logic refers to the prescribed format of data verification in the page form, such as setting the string length of the data to not exceed 16, the data must contain uppercase and lowercase English letters, and the date format of the data must be in year-month-day format, etc. Optionally, the data verification rule is compiled by a compilation language, and the compilation language includes Java language.
[0065] Furthermore, in an embodiment of the present invention, the regular verification technology includes: digital verification expressions (such as ^[0-9]*$), Chinese character verification expressions (^[\u4e00-\u9fa5]{0,6}$) and special requirement verification expressions (such as date format: ^\d{4}-\d{1,3}-\d{1,3}).
[0066] S3. When the form data verification succeeds, the current form data is used as the historical form data of the page form to update the preset regular expression.
[0067] It should be understood that when the form data verification is successful, it means that the data in the current form data conforms to the regular expression in the page form. Therefore, the embodiment of the present invention uses the current form data as the historical form data of the page form to update the regular expression, thereby realizing dynamic update of the regular expression and ensuring the accuracy of data verification of the page form.
[0068] S4: When the current form data verification fails, identifying initial abnormal data in the current form data.
[0069] It should be understood that when the form data verification is successful, it means that the data in the current form data does not conform to the regular expression in the page form. Therefore, the embodiment of the present invention determines to realize intelligent identification of abnormal data in the current form data by identifying the initial abnormal data in the current form data.
[0070] As an embodiment of the present invention, the identifying of initial abnormal data in the current form data includes: in response to a verification failure event of the current form data, locating an abnormal field in the current form data, and identifying the initial abnormal data in the current form data based on the abnormal field.
[0071] The verification failure event refers to an event generated when the current form data fails to be verified by a regular expression, and the abnormal data position refers to the sequence position of the current form data when the data verification failure event is triggered.
[0072] Furthermore, in an optional embodiment of the present invention, in response to a verification failure event of the current form data, locating an abnormal field in the current form data includes: identifying a verification failure field in the current form data according to the verification failure event, and treating the verification failure field as the abnormal field.
[0073] Furthermore, in an optional embodiment of the present invention, identifying the initial abnormal data in the current form data based on the abnormal field includes: obtaining a field sequence of the abnormal field, locating an abnormal position of the abnormal field based on the field sequence, and determining the initial abnormal data in the current form data based on the abnormal position.
[0074] The field sequence is used to represent the position information of the abnormal field in the current form data, and the abnormal position is used to represent the position information of the form data corresponding to the abnormal field.
[0075] S5. Perform abnormal reanalysis on the initial abnormal data to obtain final abnormal data in the current form data.
[0076] It should be understood that the initial abnormal data is identified based on a preset regular expression, and the regular expression is constructed based on the historical form data of the page form. Due to the complexity of the actual business scenario, the regular expression may not be able to identify whether a certain data in the current form data is correct, so that the unrecognizable data will be used as abnormal data. For example, the password of the current form data is "A@134", but the regular expression stipulates that the password must be a combination of English and numbers, and the password contains the special character "@", which will cause the regular expression to be unable to verify whether the password is correct, resulting in a phenomenon of password verification failure. Therefore, the embodiment of the present invention performs abnormal re-analysis on the initial abnormal data to obtain the final abnormal data in the current form data, thereby realizing secondary quality inspection of the initial abnormal data, improving the abnormal recognition capability of the current form data, and ensuring the abnormal recognition accuracy of the current form data.
[0077] As an embodiment of the present invention, the abnormal re-analysis of the initial abnormal data to obtain the final abnormal data in the current form data includes: extracting the abnormal field in the initial abnormal data, judging whether the abnormal field will affect the running state of the page form, if the abnormal field does not affect the running state of the page form, then the initial abnormal data of the abnormal field is not used as the final abnormal data, if the abnormal field affects the running state of the page form, then the initial abnormal data of the abnormal field is used as the final abnormal data.
[0078] Among them, the abnormal field refers to the abnormal data field existing in the initial abnormal data, and the running state refers to the page state of the page form when loading and running. Therefore, the embodiment of the present invention determines whether the initial abnormal data is the final abnormal data in the current form data by judging whether the abnormal field will affect the running state of the page form. The running state of the page form is realized by loading and running the abnormal field, that is, running the abnormal field in the page form. If the abnormal field runs normally in the page form, the abnormal field does not affect the running state of the page form. If the abnormal field runs abnormally in the page form, the abnormal field affects the running state of the page form.
[0079] It can be seen that, in the embodiment of the present invention, firstly, the embedded point control collects the current form data of the page form in real time, and can obtain the current form data of the page form in real time, realize real-time dynamic analysis of the current form data, and improve the flexibility and accuracy of identifying abnormal form data; secondly, the embodiment of the present invention verifies the current form data according to a preset regular expression, and can preliminarily determine the data in the current form data that does not satisfy the regular expression, thereby obtaining the initial abnormal data in the current form data; further, the embodiment of the present invention performs abnormal re-analysis on the initial abnormal data to obtain the final abnormal data in the current form data, and can realize secondary quality inspection of the initial abnormal data, improve the abnormal recognition capability of the current form data, and ensure the abnormal recognition accuracy of the current form data. Therefore, a form abnormal data recognition method proposed in the embodiment of the present invention can improve the recognition capability of page form abnormal data and ensure the recognition accuracy of page form abnormal data.
[0080] like Figure 3 The figure shows a functional module diagram of the abnormal form data identification device of the present invention.
[0081] The form abnormal data identification device 300 of the present invention can be installed in an electronic device. According to the functions to be implemented, the form abnormal data identification device can include a current form data acquisition module 301, a current form data verification module 302, a regular expression update module 303, an initial abnormal data identification module 304 and a final abnormal data generation module 305. The module of the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0082] In the embodiment of the present invention, the functions of each module / unit are as follows:
[0083] The current form data collection module 301 is used to collect the current form data of the page form in real time using a preset embedding control;
[0084] The current form data verification module 302 is used to verify the current form data according to a preset regular expression, wherein the preset regular expression is dynamically updated based on the historical form data of the page form;
[0085] The regular expression updating module 303 is used to use the current form data as the historical form data of the page form to update the preset regular expression when the form data verification succeeds;
[0086] The initial abnormal data identification module 304 is used to identify the initial abnormal data in the current form data when the current form data verification fails;
[0087] The final abnormal data generating module 305 is used to perform abnormal re-analysis on the initial abnormal data to obtain the final abnormal data in the current form data.
[0088] In detail, each module in the form abnormal data identification device 300 in the embodiment of the present invention adopts the same method as above when used. Figure 1 and Figure 2 The technical means are the same as the form abnormal data identification method described in, and can produce the same technical effects, so they will not be repeated here.
[0089] like Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing the form abnormal data identification method of the present invention.
[0090] The electronic device 4 may include a processor 40 , a memory 41 and a bus, and may also include a computer program stored in the memory 41 and executable on the processor 40 , such as a form abnormal data recognition program 42 .
[0091] Wherein, the memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 41 may be an internal storage unit of the electronic device 4 in some embodiments, such as a mobile hard disk of the electronic device 4. The memory 41 may also be an external storage device of the electronic device 4 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 4. Further, the memory 41 may also include both an internal storage unit of the electronic device 4 and an external storage device. The memory 41 may not only be used to store application software and various types of data installed in the electronic device 4, such as the code of the form abnormal data recognition program 42, etc., but may also be used to temporarily store data that has been output or is to be output.
[0092] The processor 40 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 40 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 41 (for example, executing the form abnormal data recognition program 42, etc.), and calls the data stored in the memory 41 to execute various functions of the electronic device 4 and process data.
[0093] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 41 and at least one processor 40, etc.
[0094] Figure 4 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 4 The structure shown does not constitute a limitation on the electronic device 4, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0095] For example, although not shown, the electronic device 4 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 40 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device 4 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0096] Furthermore, the electronic device 4 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used to establish a communication connection between the electronic device 4 and other electronic devices.
[0097] Optionally, the electronic device 4 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 4 and to display a visual user interface.
[0098] It should be understood that the embodiment is for illustrative purposes only and the scope of the patent invention is not limited to this structure.
[0099] The form abnormal data identification program 43 stored in the memory 41 of the electronic device 4 is a combination of multiple computer programs. When running in the processor 40, it can achieve:
[0100] Use the preset tracking point controls to collect the current form data of the page form in real time;
[0101] Verifying the current form data according to a preset regular expression, wherein the preset regular expression is dynamically updated based on the historical form data of the page form;
[0102] When the form data verification succeeds, the current form data is used as the historical form data of the page form to update the preset regular expression;
[0103] When the current form data verification fails, identifying initial abnormal data in the current form data;
[0104] The initial abnormal data is subjected to abnormal reanalysis to obtain final abnormal data in the current form data.
[0105] Specifically, the specific implementation method of the processor 40 for the above computer program can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0106] Furthermore, if the module / unit integrated in the electronic device 4 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0107] 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 of an electronic device, the computer program can implement:
[0108] Use the preset tracking point controls to collect the current form data of the page form in real time;
[0109] Verifying the current form data according to a preset regular expression, wherein the preset regular expression is dynamically updated based on the historical form data of the page form;
[0110] When the form data verification succeeds, the current form data is used as the historical form data of the page form to update the preset regular expression;
[0111] When the current form data verification fails, identifying initial abnormal data in the current form data;
[0112] The initial abnormal data is subjected to abnormal reanalysis to obtain final abnormal data in the current form data.
[0113] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0114] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0115] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0116] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0117] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0118] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0119] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A method for identifying abnormal form data, characterized in that: The method comprises: Use the preset tracking point controls to collect the current form data of the page form in real time; Verifying the current form data according to a preset regular expression, wherein the preset regular expression is dynamically updated based on the historical form data of the page form; When the form data verification succeeds, the current form data is used as the historical form data of the page form to update the preset regular expression; When the current form data verification fails, identifying initial abnormal data in the current form data; Performing abnormal reanalysis on the initial abnormal data to obtain final abnormal data in the current form data; The preset regular expression is constructed in the following manner, including: obtaining the historical form data of the page form, extracting the form features in the historical form data by using an information gain rate algorithm; constructing the data verification rules of the page form according to the form features, and constructing the regular expression of the data verification rules by using regular expression technology; The performing abnormal reanalysis on the initial abnormal data to obtain final abnormal data in the current form data includes: Extracting abnormal fields from the initial abnormal data, and determining whether the abnormal fields will affect the running state of the page form; If the abnormal field does not affect the running state of the page form, the initial abnormal data of the abnormal field is not used as the final abnormal data; If the abnormal field affects the running state of the page form, the initial abnormal data of the abnormal field is used as the final abnormal data.
2. The form abnormal data identification method according to claim 1, characterized in that: The method of collecting the current form data of the page form in real time by using the preset embedding control includes: Utilize the monitoring script in the tracking point control to detect the behavior events of the page form in real time; In response to the behavior event, recording event data and user data of the behavior event using a tracking framework in the tracking control; Generate current form data according to the event data and the user data.
3. The form abnormal data identification method according to claim 1, characterized in that: The identifying initial abnormal data in the current form data includes: In response to a verification failure event of the current form data, an abnormal field in the current form data is located, and initial abnormal data in the current form data is identified based on the abnormal field.
4. The form abnormal data identification method according to claim 3, characterized in that: The step of identifying initial abnormal data in the current form data according to the abnormal field includes: A field sequence of the abnormal field is obtained, an abnormal position of the abnormal field is located according to the field sequence, and initial abnormal data in the current form data is determined according to the abnormal position.
5. The form abnormal data identification method according to claim 1, characterized in that: Before using the preset embedding control to collect the current form data of the page form in real time, the method further includes: Detect a click event in the page form, and configure a tracking point control of the page form according to the click event.
6. A form abnormal data identification device, characterized in that: The device comprises: The current form data collection module is used to collect the current form data of the page form in real time using the preset embedding control; A current form data verification module, used to verify the current form data according to a preset regular expression, wherein the preset regular expression is dynamically updated based on the historical form data of the page form; The preset regular expression is constructed in the following manner, including: obtaining the historical form data of the page form, extracting the form features in the historical form data by using an information gain rate algorithm; constructing the data verification rules of the page form according to the form features, and constructing the regular expression of the data verification rules by using regular expression technology; A regular expression updating module, used to use the current form data as the historical form data of the page form to update the preset regular expression when the form data verification succeeds; An initial abnormal data identification module, used for identifying initial abnormal data in the current form data when the current form data verification fails; The final abnormal data generating module is used to perform abnormal re-analysis on the initial abnormal data to obtain the final abnormal data in the current form data; the abnormal re-analysis on the initial abnormal data to obtain the final abnormal data in the current form data includes: Extracting abnormal fields from the initial abnormal data, and determining whether the abnormal fields will affect the running state of the page form; If the abnormal field does not affect the running state of the page form, the initial abnormal data of the abnormal field is not used as the final abnormal data; If the abnormal field affects the running state of the page form, the initial abnormal data of the abnormal field is used as the final abnormal data.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the form abnormal data identification method as described in any one of claims 1 to 6.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the form abnormal data identification method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method and device for outputting information
CN109614327A
Form verification method and device, computer equipment and storage medium
CN110334303A