Business analysis system, method and storage medium
By designing a business analysis system in the business system, collecting and analyzing business structure data, generating models and predicting the operating status, the problem of lack of analysis methods in business iteration is solved, and business stability and user experience are improved.
Patent Information
- Application Number
- CN202110014587.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-06
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-01-06
AI Technical Summary
The lack of business analysis methods in the business system makes it difficult for developers to prevent problems during business iteration, affecting the stability of business operation.
Design a business analysis system, including business data acquisition module, data transmission module, data processing module and prediction module, collect and analyze business structure data, generate business models and associated information, and use trained business scenario models to predict business operation status , realize visual display and status management of business.
Provide business relevance and risk analysis methods to ensure the reasonable and stable operation of business rules and improve user experience.
Smart Images

Figure CN113762688B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a business analysis system, method and storage medium. Background Art
[0002] With the rapid development of the Internet, businesses in business systems usually need to be iterated quickly. In the early stages of business system operation, developers are relatively familiar with the businesses in the business system, but as the business continues to iterate, there will be more and more intersections with other businesses. When developers iterate on the business, various problems may occur, affecting the normal operation of the business. At present, there is a lack of business analysis methods in business development. Developers usually detect, maintain and update the business only after problems occur in the business, which affects the stability of the business and the operation of the entire business system. Summary of the invention
[0003] In view of this, a technical problem to be solved by the present invention is to provide a business analysis system, method and storage medium.
[0004] According to a first aspect of the present disclosure, there is provided a business analysis system, comprising: a business data acquisition module, for acquiring business structure data corresponding to the running business in the business system using an annotation proxy module based on preset business data acquisition rule information; a business data transmission module, for transmitting the business structure data to a business data processing module via an asynchronous message; the business data processing module, for obtaining business model information and association information between businesses based on the business structure data; a business prediction module, for acquiring daily business problem information, generating training samples based on the business model information, the association information and the daily business problem information, and using the training samples to train a business scenario model corresponding to the business, so as to use the trained business scenario model to predict the running status of the business.
[0005] Optionally, the business data collection module includes: a code acquisition unit, used to use an annotation proxy module to obtain the code of the business; a code annotation unit, used to construct a corresponding abstract syntax tree for the code based on the business data collection rule information and use the annotation proxy module, parse the code syntax information based on the abstract syntax tree and obtain the call information of the code execution, so as to obtain the business structure data; wherein the business structure data includes: attributes, behaviors and business relationships.
[0006] Optionally, the business data processing module includes: a business grammar rule processing unit, used to configure the business grammar rules, parse and analyze the business structure data based on the business grammar rules, and generate the business model information; a business analysis processing unit, used to obtain the associated information based on the business model information.
[0007] Optionally, the association relationship includes: an association coefficient; wherein the business analysis processing unit is used to calculate the association coefficient as:
[0008] Coefficient = ((targetA * (number of attributes 1 * rule ratio 1 +
[0009] Number of behaviors 1*Rule ratio 2))-(targetB*(Number of attributes 2*Rule ratio 3+Number of behaviors 3*Rule ratio 4));
[0010] Among them, A and B are both businesses, A is the business that B depends on, targetA and targetB are business system coefficients; Coefficient is the correlation coefficient between business A and business B; attribute number 1 is the number of attributes in business A that business B depends on, and attribute number 2 is the number of attributes in business B that need to be dependent on that corresponds to attribute number 1; behavior number 1 is the number of behaviors in business A that business B depends on, and behavior number 2 is the number of behaviors in business B that need to be dependent on that corresponds to behavior number 1; rule ratio 1 is the ratio of attribute number 1 to the total number of attributes of business A, rule ratio 2 is the ratio of behavior number 1 to the total number of behaviors of business A, rule ratio 3 is the ratio of attribute number 2 to the total number of attributes of business B, and rule ratio 4 is the ratio of behavior number 2 to the total number of behaviors of business B.
[0011] Optionally, the association relationship includes: a stability coefficient; wherein the business analysis processing unit is used to calculate the stability coefficient as:
[0012]
[0013] Among them, the stability coefficients of business A and business B are obtained respectively, and the daily problem ratio is the ratio of the number of system abnormal problems of the business to the total number of executions of the business. Adding the daily problem ratio, the rule ratio 5 is the weighted sum of the ratio 1 of the number of attributes that the business needs to rely on or is relied on to the total number of businesses and the ratio 2 of the number of behaviors that the business needs to rely on or is relied on to the total number of behaviors of the business.
[0014] Optionally, the association relationship includes: a risk coefficient; wherein the business analysis processing unit is used to calculate the risk coefficient as:
[0015] Risk=(targetA Stability +targetB Stability ……targetN Stability ) / count(Target);
[0016] Among them, targetA_Stability, targetB_Stability and targetN Stability : are the stability coefficients of business A, business B...business N respectively, and count(Target) is the total number of businesses in the target system.
[0017] Optionally, the business prediction module includes: a model training unit, used to build a business scenario model through the TensorFlow framework, and use the training samples to train the business scenario model; a business prediction unit, used to establish a prediction sample according to the business model information and the related information to be predicted, and use the trained business scenario model to predict the prediction sample to obtain the operating status of the business.
[0018] Optionally, a scheduling module is used to generate work tasks and schedule the work tasks; wherein the work tasks include: business analysis tasks and daily problem collection tasks.
[0019] Optionally, the business data display module is used to generate business visualization information and / or business matrix grid information based on business model information and association information between businesses, and provide an external access interface for accessing the business visualization information and / or the business matrix grid information.
[0020] Optionally, the asynchronous message includes: a kafka message and a jmq message.
[0021] Optionally, a storage module is used to store data; wherein the data includes: the business structure data, the business model information, the association information, the business daily problem information and the operating status of the business.
[0022] According to a second aspect of the present disclosure, a business analysis method is provided, comprising: based on preset business data collection rule information, using an annotation proxy module to collect business structure data corresponding to the running business in the business system; using an asynchronous message method to transmit the business structure data; based on the business structure data, obtaining business model information and association information between businesses; collecting business daily problem information, generating training samples based on the business model information, the association information and the business daily problem information, and using the training samples to train a business scenario model corresponding to the business, so as to use the trained business scenario model to predict the running status of the business.
[0023] Optionally, based on preset business data collection rule information, using the annotation proxy module to collect business structure data corresponding to the running business in the business system includes: using the annotation proxy module to obtain the code of the business; based on the business data collection rule information, using the annotation proxy module to construct a corresponding abstract syntax tree for the code; parsing code syntax information based on the abstract syntax tree and obtaining call information of code execution to obtain the business structure data; wherein the business structure data includes: attributes, behaviors and business relationships.
[0024] Optionally, obtaining business model information and association information between businesses based on the business structure data includes: configuring the business grammar rules, parsing and analyzing the business structure data based on the business grammar rules to generate the business model information; and obtaining the association information based on the business model information.
[0025] Optionally, the association relationship includes: an association coefficient; wherein obtaining the association information based on the business model information includes: calculating the association coefficient as:
[0026] Coefficient = ((targetA*(number of attributes 1*ratio of rules 1+number of behaviors 1*ratio of rules 2))-(targetB*(number of attributes 2*ratio of rules 3+number of behaviors 3*ratio of rules 4)));
[0027] Among them, A and B are both businesses, A is the business that B depends on, targetA and targetB are business system coefficients; Coefficient is the correlation coefficient between business A and business B; attribute number 1 is the number of attributes in business A that business B depends on, and attribute number 2 is the number of attributes in business B that need to be dependent on that corresponds to attribute number 1; behavior number 1 is the number of behaviors in business A that business B depends on, and behavior number 2 is the number of behaviors in business B that need to be dependent on that corresponds to behavior number 1; rule ratio 1 is the ratio of attribute number 1 to the total number of attributes of business A, rule ratio 2 is the ratio of behavior number 1 to the total number of behaviors of business A, rule ratio 3 is the ratio of attribute number 2 to the total number of attributes of business B, and rule ratio 4 is the ratio of behavior number 2 to the total number of behaviors of business B.
[0028] Optionally, the association relationship includes: a stability coefficient; wherein obtaining the association information based on the business model information includes: calculating the stability coefficient as:
[0029]
[0030] Among them, the stability coefficients of business A and business B are obtained respectively, and the daily problem ratio is the ratio of the number of system abnormal problems of the business to the total number of executions of the business. Adding the daily problem ratio, the rule ratio 5 is the weighted sum of the ratio 1 of the number of attributes that the business needs to rely on or is relied on to the total number of businesses and the ratio 2 of the number of behaviors that the business needs to rely on or is relied on to the total number of behaviors of the business.
[0031] Optionally, the association relationship includes: a risk coefficient; wherein obtaining the association information based on the business model information includes: calculating the risk coefficient as:
[0032] Risk=(tartetA Stability +tartetB Stability ……targetN Stability ) / count(Target);
[0033] Among them, targetA_Stability, targetB_Stability and targetN Stability : are the stability coefficients of business A, business B...business N respectively, and count(Target) is the total number of businesses in the target system.
[0034] Optionally, using the training samples to train the business scenario model corresponding to the business includes: building a business scenario model through a TensorFlow framework, and using the training samples to train the business scenario model; using the trained business scenario model to predict the operating status of the business includes: establishing a prediction sample based on the business model information and the associated information to be predicted, using the trained business scenario model to predict the prediction sample to obtain the operating status of the business.
[0035] Optionally, work tasks are generated and scheduled; wherein the work tasks include: business analysis tasks and daily problem collection tasks.
[0036] Optionally, business visualization information and / or business matrix grid information is generated based on the business model information and association information between businesses, and an external access interface for accessing the business visualization information and / or the business matrix grid information is provided.
[0037] Optionally, a storage module is provided to store data, wherein the data includes: the business structure data, the business model information, the association information, the business daily problem information and the operation status of the business.
[0038] According to a third aspect of the present disclosure, a business analysis system is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the method as described above based on instructions stored in the memory.
[0039] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the instructions are executed by a processor to perform the above business analysis method.
[0040] The business analysis system, method and storage medium disclosed in the present invention collect business structure data corresponding to the running business in the business system, obtain business model information and correlation information between businesses based on the business structure data; generate training samples based on the business model information, correlation information and business daily problem information to train the business scenario model corresponding to the business, and use the business scenario model to predict the running status of the business; can analyze the business, including business correlation, risk analysis, etc., can visualize the business, and can predict the running status of the business, can manage the business needs, can make the business rules reasonable, and the business run stably, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present disclosure 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, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0042] Figure 1 A module diagram of an embodiment of a business analysis system according to the present disclosure;
[0043] Figure 2 is a module diagram of another embodiment of a business analysis system according to the present disclosure;
[0044] Figure 3 A schematic diagram of the overall framework of an embodiment of a business analysis system according to the present disclosure;
[0045] Figure 4 A schematic diagram of data flow in one embodiment of a business analysis system according to the present disclosure;
[0046] Figure 5 is a schematic diagram of a business data collection module in one embodiment of a business analysis system according to the present disclosure;
[0047] Figure 6A schematic diagram of data flow for data capture in one embodiment of a business analysis system according to the present disclosure;
[0048] Figure 7 A schematic diagram of data collection in one embodiment of a business analysis system according to the present disclosure;
[0049] Figure 8 is a module schematic diagram of a business data processing module in one embodiment of a business analysis system according to the present disclosure;
[0050] Fig. 9 A schematic diagram of the relationship between businesses;
[0051] Fig.10 is a module schematic diagram of a business prediction module in one embodiment of a business analysis system according to the present disclosure;
[0052] Fig.11 A flowchart of an embodiment of a business analysis method according to the present disclosure;
[0053] Fig.12 It is a module diagram of another embodiment of the business analysis system according to the present disclosure. DETAILED DESCRIPTION
[0054] The present disclosure is described more fully below with reference to the accompanying drawings, in which exemplary embodiments of the present disclosure are described. The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure. The technical solutions of the present disclosure are described in many aspects below in conjunction with various figures and embodiments.
[0055] Currently, business requirements are maintained based on documents, and business maintenance relies on manual memory, or online documents are used to maintain business. If business requirements change, developers update online documents. The existing business maintenance methods lack analytical methods for business relevance and risk, which may lead to problems such as unreasonable business rules and interaction errors between businesses.
[0056] like Figure 1As shown, the present disclosure provides a business analysis system, including a business data collection module 10, a business data transmission module 20, a business data processing module 30 and a business prediction module 40. The business data collection module 10 uses the annotation proxy module to collect business structure data corresponding to the running business in the business system based on the preset business data collection rule information. The business system can be a variety of systems, such as an e-commerce system, etc. The business in the e-commerce system includes commodity business, order business, payment business, delivery business, customer service business, etc.
[0057] The business data transmission module 20 transmits the business structure data to the business data processing module 30 through asynchronous messaging. There can be multiple types of asynchronous messages, such as kafka messages, jmq messages, etc. The business data processing module 30 obtains business model information and association information between businesses based on the business structure data.
[0058] The business prediction module 40 collects daily business problem information, generates training samples based on business model information, related information and daily business problem information, and uses the training samples to train the business scenario model corresponding to the business, so as to use the trained business scenario model to predict the operating status of the business. The operating status information of the business includes whether the operation is normal, specific problems encountered during the operation, and corresponding business rules, etc.
[0059] In one embodiment, the business analysis system includes a business data display module 50, a scheduling module 60 and a storage module 70. The scheduling module 60 generates work tasks and schedules the work tasks, and the work tasks include business analysis tasks and daily problem collection tasks.
[0060] The business data display module 50 generates business visualization information, business matrix grid information, etc. based on business model information and association information between businesses, and provides an external access interface for accessing business visualization information and business matrix grid information, and the external access interface includes a web page link, etc. The storage module 70 is used to store a variety of data, including: business structure data, business model information, association information, business daily problem information, and business operation status, etc.
[0061] In one embodiment, Figure 3 As shown, the overall architecture of the business analysis system disclosed in the present invention includes a collection layer, a transmission layer, a processing layer and a storage layer. The business system is deployed in the business layer, and the business in the business system includes goods, product sub-functions, orders, promotions and other businesses.
[0062] The business data collection module is deployed in the collection layer. The business data collection module collects the business structure data to form visual data. There are two types of business structure data collected by the business data collection module: one is the business structure data automatically collected by the business data collection module, and the other is the business structure data manually entered by the management staff at the management end.
[0063] The business data transmission module is deployed in the transport layer. The business data transmission module uses asynchronous messaging to transmit the business structure data collected by the business data collection module. The business data processing module, scheduling module, business data display module and business prediction module are deployed in the processing layer. The business data processing module includes a business grammar rule processing unit and a business analysis processing unit.
[0064] The business grammar rule processing unit parses and analyzes the business structure data according to the annotation configuration rules of the business abstraction. The scheduling module generates work tasks, and the scheduling work tasks are used to analyze the business structure data to form visual data; or to manage and predict the business. The work tasks can be real-time tasks or asynchronous tasks.
[0065] The business data display module is used to generate visual data after analyzing the business structure data, and provide it to the management end or develop it for a third party through open services or open interfaces. Among them, the business matrix grid is used to display the business on the global grid line. By clicking on a specific grid point, you can see the specific information of each grid (including attributes, behaviors, etc.), and you can also see the calling relationship between businesses.
[0066] The business analysis processing unit performs various analyses on the business structure data to obtain the required visualization data. After the business is launched, based on the large amount of collected business structure data, deep artificial intelligence learning can be performed to obtain various business scenario models, providing reference for business changes. A storage module is deployed in the storage layer. The storage module has a variety of storage media, among which mysql stores full data, redis stores hot data, and hbase stores detailed rule data.
[0067] The business analysis system in the above embodiment can perform global dynamic configuration management business according to business rule abstraction, use the business rule syntax tree to abstract the business (attributes, behaviors), and perform real-time / asynchronous correlation analysis, stability analysis, reachability analysis, machine learning, business scenario model training, etc. on the abstract data of the business.
[0068] In one embodiment, Figure 4As shown, the business system introduces the prepared business rule parsing package bz-annotation.jar through Maven, etc., which is used to configure the annotation proxy module for the business. The annotation proxy module can be annotation-agent. Predefine the business data collection rule information, which is the annotation.xml configuration file. When the business system is started, the annotation-agent is loaded and started through the spring starter / web container. Based on the annotation.xml configuration file, the annotation-agent is used to collect the business structure data corresponding to the running business in the business system.
[0069] After the annotation-agent is started, the annotation.xml configuration file can be dynamically modified and added on the management side, and the annotation.xml configuration file modified on the management side will prevail. After the business structure data is collected, it is encapsulated as a message service by the annotation-agent, and the business structure data is transmitted through asynchronous messages and stored on the management side (with security, timeout, loss, and retry functions). The scheduling module can schedule real-time tasks and offline tasks. For example, business analysis tasks are used to analyze the relationship, dependency, and risk between businesses; daily problem collection tasks are used to calculate risk coefficients. The business data processing module performs corresponding analysis and processing, analyzes the result data between businesses, and generates visual data. It can also analyze the relationship coefficient, risk coefficient, and stability coefficient to obtain various indicators of the current business links, providing reference value for new additions and updates.
[0070] In one embodiment, Figure 5 As shown, the business data collection module 10 includes a code acquisition unit 101 and a code annotation unit 102. The code acquisition unit 101 uses the annotation proxy module to acquire the code of the business, and the business may be an order business, etc. The code of the business may be the code compiled from the Java source code of the order business, that is, a .class file, and the code of the business may be acquired and parsed using existing methods.
[0071] The code annotation unit 102 collects rule information based on business data and uses the annotation proxy module to construct a corresponding abstract syntax tree for the code, parses the code syntax information based on the abstract syntax tree, obtains the call information of the code execution, and obtains the business structure data; the business structure data includes attributes, behaviors, and business relationships, etc.
[0072] An Abstract Syntax Tree (AST) may be a tree representation of an abstract syntax structure of a source code. An Abstract Syntax Tree may include nodes and connections between nodes. Business data collection rule information includes the type of business structure data that needs to be collected, such as attributes, behaviors, and business relationships.
[0073] A corresponding abstract syntax tree can be constructed for the business code using a variety of existing methods, and the syntax information of the business code and the call information of the code execution can be parsed based on the abstract syntax tree. The call information is the Java method call information of the business code itself, and the information of the Java method of the business code calling the code of other businesses. The attributes in the business structure data can be Java attribute names, the attributes in the business structure data can be Java method names, and the business relationships in the business structure data can be Java attributes and method names that call other businesses.
[0074] In one embodiment, Figure 6 As shown, the annotation agent module annotation-agent is used and the custom business annotation syntax tree rules are adopted to construct the corresponding abstract syntax tree, and the abstract syntax tree is parsed to obtain key businesses, business relationships, attributes, behaviors, etc. annotation-agent is zero-coupled with business code (annotation-agent needs to be registered on the management side first). Figure 7 As shown, annotation-agent has a built-in annotation rule scanner to parse and process the business code. Using an independent process in the business system for processing and running agent-attach in an independent process will not affect the normal business processing of the business system; security protection and control can be configured and take effect in real time.
[0075] In one embodiment, Figure 8 As shown, the business data processing module 30 includes a business grammar rule processing unit 301 and a business analysis processing unit 302. The business grammar rule processing unit 301 configures business grammar rules, parses and analyzes the business structure data based on the business grammar rules, and generates business model information. The business grammar rules include processing rules corresponding to the attributes, behaviors, and business relationships in the business structure data, which can be a variety of existing processing rules. The business model information includes attribute name information used by the business, business function information, call information between businesses, etc.
[0076] The business analysis processing unit 302 obtains the association information based on the business model information. The business model information is the internal information of the business entity, and the association information is the relationship information between the business entities. The association relationship includes the association coefficient; the business analysis processing unit 302 calculates the association coefficient as:
[0077] Coefficient = ((targetA*(number of attributes 1*ratio of rules 1+number of behaviors 1*ratio of rules 2))-(targetB*(number of attributes 2*ratio of rules 3+number of behaviors 3*ratio of rules 4)) (1-1);
[0078] Among them, A and B are both businesses, A is the business that B depends on, that is, A is the business that B depends on, targetA and targetB are business target coefficients, and the business target coefficients can be set according to specific businesses; Coefficient is the correlation coefficient between business A and business B. Each business includes attributes and behaviors. For example, attributes include price, product name, type, etc., and behaviors include ordering, checkout, delivery, etc.
[0079] The correlation coefficient is represented by the number of dependencies (attributes, behaviors) minus the number of dependencies (attributes, behaviors); attribute number 1 is the number of attributes in business A that business B depends on, and attribute number 2 is the number of attributes in business B that corresponds to attribute number 1, that is, attribute number 2 is the number of attributes that business B needs to depend on; behavior number 1 is the number of behaviors in business A that business B depends on, and behavior number 2 is the number of behaviors in business B that corresponds to behavior number 1, that is, behavior number 2 is the number of behaviors that business B needs to depend on.
[0080] Rule ratio: refers to the proportion of the number of attributes and behaviors in the total number of attributes and the number of distinct behaviors in the business. For example, if the order business has only one behavior "submitOrder()", then if "submitOrder()" is a dependent or required behavior, the proportion of "submitOrder()" is 100%. Rule ratio 1 is the ratio of attribute number 1 to the total number of attributes of business A, rule ratio 2 is the ratio of behavior number 1 to the total number of behaviors of business A, rule ratio 3 is the ratio of attribute number 2 to the total number of attributes of business B, and rule ratio 4 is the ratio of behavior number 2 to the total number of behaviors of business B.
[0081] like Fig. 9 As shown in the figure, correlation analysis refers to analyzing the time correlation of two business entities. The larger the correlation coefficient, the closer the relationship. The correlation coefficient can be the number of dependencies (attributes, behaviors) minus the number of dependencies (attributes, behaviors). The attributes and behaviors can be set in proportion according to the rules. The value range of the correlation coefficient is between 1 and -1. 1 means that the two businesses are completely linearly correlated, -1 means that the two businesses are completely negatively correlated, and 0 means that the two businesses are unrelated. The closer the data is to 0, the weaker the correlation.
[0082] In one embodiment, the association relationship includes a stability coefficient; wherein the business analysis processing unit 302 calculates the stability coefficient as:
[0083]
[0084] Among them, Coefficient correlation coefficient refers to the coefficient obtained by formula (1-1), which can be used to obtain the stability coefficient Stability of business A and business B respectively; when calculating the stability coefficient Stability of business A and business B respectively, the daily problem ratio is the daily problem ratio of business A and business B respectively, and the rule ratio 5 is the ratio rule of business A and business B respectively.
[0085] The daily problem ratio is the ratio of the number of system abnormal problems of a business to the total number of business executions in a unit of time. Increasing the daily problem ratio and combining it with the Coefficient correlation coefficient can make the calculated data more accurate. The rule ratio 5 is the weighted sum of the ratio 1 of the number of attributes that the business needs to rely on or is relied on to the total number of businesses and the ratio 2 of the number of behaviors that the business needs to rely on or is relied on to the total number of behaviors of the business. For example, if ratio 1 is 0.3, ratio 2 is 0.6, and the weighted coefficients are all 0.5, then the rule ratio 5 is 0.45.
[0086] Stability analysis refers to the stability description of the current business entity point. The calculated correlation coefficient is combined with the analysis of daily business problems to analyze the stability. The smaller the stability value, the more unstable it is, and 1 is the most stable.
[0087] The association relationship includes a risk coefficient; wherein the business analysis processing unit 302 calculates the risk coefficient as:
[0088] Risk=(targetA Stability +targetB Stability ……targetN Stability ) / count(Target) (1-3).
[0089] Among them, targetA_Stability, targetB_Stability and targetN Stability : are the stability coefficients calculated by formula (1-2), and count(Target) is the total number of services in the target system.
[0090] Risk analysis refers to how to evaluate the global impact when a business is added, deleted, or updated. The larger the risk value, the more unstable it is, and 1 is the most stable. The risk value is the stability analysis value of the business point involved. If there are multiple points, the average value is calculated.
[0091] In one embodiment, daily business problem information is collected from the big data platform in real time, and various methods can be used to extract daily business problem information corresponding to each business in the log. Daily business problems include faults, rule errors, etc. Fig.10 As shown, the business prediction module 40 includes a model training unit 401 and a business prediction unit 402. The model training unit 401 builds a business scenario model through the TensorFlow framework and trains the business scenario model using training samples. Tensorflow is a machine learning platform on which many open source algorithms can be implemented to perform in-depth learning of data.
[0092] A corresponding business scenario model can be established for each business. The business scenario model can be an existing convolutional neural network model, etc., and the existing training sample generation method is used to generate training samples based on business model information, related information, and business daily problem information. The model is trained through the TensorFlow framework, and after data training, the business scenario model is obtained for prediction, etc.
[0093] The business prediction unit 402 establishes prediction samples based on the business model information and related information that need to be predicted, and uses the trained business scenario model to predict the prediction samples to obtain the operating status of the business, including whether the operation is normal, specific problems encountered during operation, and corresponding business rules. Based on the operating status of the business, the business can be adjusted, updated, etc.
[0094] Fig.11 FIG. 1 is a flow chart of an embodiment of a business analysis method according to the present disclosure. Fig.11 As shown:
[0095] Step 1101 , based on preset business data collection rule information, use the annotation proxy module to collect business structure data corresponding to the running business in the business system.
[0096] Step 1102: Transmit the business structure data using an asynchronous message method.
[0097] Step 1103: Obtain business model information and association information between businesses based on the business structure data.
[0098] Step 1104, collect business daily problem information, generate training samples based on business model information, related information and business daily problem information, use the training samples to train the business scenario model corresponding to the business, so as to use the trained business scenario model to predict the operating status of the business.
[0099] In one embodiment, an annotation proxy module is used to obtain the code of the business, and based on the business data collection rule information, the annotation proxy module is used to construct a corresponding abstract syntax tree for the code; based on the abstract syntax tree, the code syntax information is parsed and the call information of the code execution is obtained to obtain the business structure data, which includes attributes, behaviors, and business relationships.
[0100] Configure business grammar rules, parse and analyze business structure data based on business grammar rules, generate business model information, and obtain related information based on business model information. Build business scenario models through the TensorFlow framework, and use training samples to train business scenario models; establish prediction samples based on the business model information and related information that need to be predicted, use the trained business scenario model to predict the prediction samples, and obtain the running status of the business.
[0101] In one embodiment, work tasks are generated and scheduled; wherein the work tasks include business analysis tasks and daily problem collection tasks, etc. Business visualization information and / or business matrix grid information are generated based on business model information and association information between businesses, and an external access interface for accessing business visualization information and / or business matrix grid information is provided. A storage module is set to store data, and the data includes: business structure data, business model information, association information, business daily problem information, and business operation status, etc.
[0102] In one embodiment, Fig.12 FIG. 2 is a module diagram of another embodiment of a business analysis system according to the present disclosure. Fig.12 As shown, the apparatus may include a memory 1201, a processor 1202, a communication interface 1203 and a bus 1204. The memory 1201 is used to store instructions, the processor 1202 is coupled to the memory 1201, and the processor 1202 is configured to execute the above-mentioned business analysis method based on the instructions stored in the memory 1201.
[0103] The memory 1201 may be a high-speed RAM memory, a non-volatile memory, etc. The memory 1201 may also be a memory array. The memory 1201 may also be divided into blocks, and the blocks may be combined into virtual volumes according to certain rules. The processor 1202 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the business analysis method disclosed in the present invention.
[0104] In one embodiment, the present disclosure provides a computer-readable storage medium storing computer instructions, which implement the business analysis method in any of the above embodiments when executed by a processor.
[0105] The business analysis system, method and storage medium provided in the above embodiments collect business structure data corresponding to the running business in the business system, obtain business model information and correlation information between businesses based on the business structure data; generate training samples based on business model information, correlation information and business daily problem information to train the business scenario model corresponding to the business, and use the business scenario model to predict the running status of the business; can analyze the business, including business correlation, risk analysis, etc., can visualize the business, and can predict the running status of the business, can manage the business needs, can make the business rules reasonable, and the business run stably, thereby improving the user experience.
[0106] The method and system of the present disclosure may be implemented in many ways. For example, the method and system of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0107] The description of the present disclosure is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the present disclosure and thereby design various embodiments with various modifications suitable for specific uses.
Claims
1. A business analysis system, comprising: A business data collection module is used to collect business structure data corresponding to the running business in the business system using the annotation proxy module based on the preset business data collection rule information; A business data transmission module, used to transmit the business structure data to a business data processing module through an asynchronous message; The business data processing module is used to obtain business model information and association information between businesses based on the business structure data; A business prediction module, used to collect business daily problem information, generate training samples based on the business model information, the associated information and the business daily problem information, and use the training samples to train a business scenario model corresponding to the business, so as to use the trained business scenario model to predict the operating status of the business; The association information includes an association coefficient, which is: Coefficient = (targetA*(number of attributes 1*ratio of rules 1+number of behaviors 1*ratio of rules 2))-(targetB*(number of attributes 2*ratio of rules 3+number of behaviors 2*ratio of rules 4)); Among them, A and B are both businesses, A is the business that B depends on, targetA and targetB are business system coefficients; Coefficient is the correlation coefficient between business A and business B; attribute number 1 is the number of attributes in business A that business B depends on, and attribute number 2 is the number of attributes in business B that need to be dependent on that corresponds to attribute number 1; behavior number 1 is the number of behaviors in business A that business B depends on, and behavior number 2 is the number of behaviors in business B that need to be dependent on that corresponds to behavior number 1; rule ratio 1 is the ratio of attribute number 1 to the total number of attributes of business A, rule ratio 2 is the ratio of behavior number 1 to the total number of behaviors of business A, rule ratio 3 is the ratio of attribute number 2 to the total number of attributes of business B, and rule ratio 4 is the ratio of behavior number 2 to the total number of behaviors of business B.
2. The system of claim 1, wherein: The business data collection module includes: A code acquisition unit, used to acquire the code of the business using an annotation proxy module; A code annotation unit is used to construct a corresponding abstract syntax tree for the code based on the business data collection rule information using an annotation proxy module, parse the code syntax information based on the abstract syntax tree, and obtain the call information of the code execution to obtain the business structure data; wherein the business structure data includes: attributes, behaviors, and business relationships.
3. The system of claim 2, wherein: The business data processing module includes: A business grammar rule processing unit, used to configure the business grammar rule, parse and analyze the business structure data based on the business grammar rule, and generate the business model information; A business analysis processing unit is used to obtain the associated information based on the business model information.
4. The system of claim 1, wherein: The associated information includes: a stability coefficient; the stability coefficient is: Among them, the stability coefficients Stability of business A and business B are obtained respectively, the daily problem ratio is the ratio of the number of system abnormal problems of the business to the total number of executions of the business; the rule ratio 5 is the weighted sum of the ratio 1 of the number of attributes that the business needs to rely on or is relied on to the total number of businesses and the ratio 2 of the number of behaviors that the business needs to rely on or is relied on to the total number of behaviors of the business.
5. The system of claim 4, wherein: The associated information includes: risk coefficient; the risk coefficient is: Risk=(targetA Stability +targetB Stability ……targetN Stability ) / count(Target); Among them, targetA Stability 、targetB Stability and targetN Stability : are the stability coefficients of business A, business B and business N respectively, and count(Target) is the total number of businesses in the target system.
6. The system of claim 1, wherein: The business prediction module comprises: A model training unit, used to build a business scenario model through the TensorFlow framework, and train the business scenario model using the training samples; The business prediction unit is used to establish a prediction sample according to the business model information and the associated information to be predicted, and use the trained business scenario model to predict the prediction sample to obtain the operating status of the business.
7. The system of claim 1, further comprising: The scheduling module is used to generate work tasks and schedule the work tasks; wherein the work tasks include: business analysis tasks and daily problem collection tasks.
8. The system of claim 1, further comprising: The business data display module is used to generate business visualization information and / or business matrix grid information based on business model information and association information between businesses, and provide an external access interface for accessing the business visualization information and / or the business matrix grid information.
9. The system of claim 1, wherein: The asynchronous message includes: a kafka message or a jmq message.
10. The system according to any one of claims 1 to 9, further comprising: A storage module is used to store data; wherein the data includes: the business structure data, the business model information, the association information, the business daily problem information and the operating status of the business.
11. A business analysis method, comprising: Based on the preset business data collection rule information, the annotation proxy module is used to collect the business structure data corresponding to the running business in the business system; Transmitting the business structure data using an asynchronous message method; Obtaining business model information and association information between businesses based on the business structure data; Collecting business daily problem information, generating training samples based on the business model information, the associated information and the business daily problem information, and using the training samples to train a business scenario model corresponding to the business, so as to use the trained business scenario model to predict the operating status of the business; The association information includes an association coefficient, which is: Coefficient = (targetA*(number of attributes 1*ratio of rules 1+number of behaviors 1*ratio of rules 2))-(targetB*(number of attributes 2*ratio of rules 3+number of behaviors 2*ratio of rules 4)); Among them, A and B are both businesses, A is the business that B depends on, targetA and targetB are business system coefficients; Coefficient is the correlation coefficient between business A and business B; attribute number 1 is the number of attributes in business A that business B depends on, and attribute number 2 is the number of attributes in business B that need to be dependent on that corresponds to attribute number 1; behavior number 1 is the number of behaviors in business A that business B depends on, and behavior number 2 is the number of behaviors in business B that need to be dependent on that corresponds to behavior number 1; rule ratio 1 is the ratio of attribute number 1 to the total number of attributes of business A, rule ratio 2 is the ratio of behavior number 1 to the total number of behaviors of business A, rule ratio 3 is the ratio of attribute number 2 to the total number of attributes of business B, and rule ratio 4 is the ratio of behavior number 2 to the total number of behaviors of business B.
12. The method according to claim 11, wherein the step of collecting business structure data corresponding to the running business in the business system using the annotation proxy module based on the preset business data collection rule information comprises: Use the annotation proxy module to obtain the code of the business; Based on the business data collection rule information, using an annotation proxy module to construct a corresponding abstract syntax tree for the code; Parsing code syntax information based on the abstract syntax tree and acquiring call information of code execution to acquire the business structure data; The business structure data includes: attributes, behaviors and business relationships.
13. The method according to claim 12, wherein obtaining business model information and association information between businesses based on the business structure data comprises: Configure the business grammar rules, parse and analyze the business structure data based on the business grammar rules, and generate the business model information; The associated information is obtained based on the business model information.
14. The method of claim 11, wherein: The associated information includes: a stability coefficient; the stability coefficient is: Among them, the stability coefficients Stability of business A and business B are obtained respectively, the daily problem ratio is the ratio of the number of system abnormal problems of the business to the total number of executions of the business; the rule ratio 5 is the weighted sum of the ratio 1 of the number of attributes that the business needs to rely on or is relied on to the total number of businesses and the ratio 2 of the number of behaviors that the business needs to rely on or is relied on to the total number of behaviors of the business.
15. The method of claim 14, wherein: The associated information includes: risk coefficient; the risk coefficient is: Risk=(targetA Stability +targetB Stability ……targetN Stability ) / count(Target); Among them, targetA Stability 、targetB Stability and targetN Stability : are the stability coefficients of business A, business B and business N respectively, and count(Target) is the total number of businesses in the target system.
16. The method according to claim 11, wherein the using the training sample to train the business scenario model corresponding to the business comprises: Building a business scenario model through the TensorFlow framework, and training the business scenario model using the training samples; The using the trained business scenario model to predict the operating status of the business includes: A prediction sample is established according to the business model information and the associated information that need to be predicted, and the prediction sample is predicted using the trained business scenario model to obtain the operating status of the business.
17. The method of claim 11, further comprising: Generate work tasks and schedule the work tasks; The work tasks include: business analysis tasks and daily problem collection tasks.
18. The method of claim 11, further comprising: Business visualization information and / or business matrix grid information are generated based on business model information and association information between businesses, and an external access interface for accessing the business visualization information and / or the business matrix grid information is provided.
19. The method of claim 11, wherein: Set up the storage module to store data. The data includes: the business structure data, the business model information, the association information, the business daily problem information and the operation status of the business.
20. A business analysis system, comprising: Memory; and a processor coupled to the memory, the processor being configured to execute the method according to any one of claims 11 to 19 based on instructions stored in the memory.
21. A computer-readable storage medium, the computer-readable storage medium non-transitorily storing computer instructions, the instructions being executed by a processor to perform the method according to any one of claims 11 to 19.
