A method and system for intelligently generating industrial data graphs
Through automated data capture and machine learning algorithm analysis, industrial data maps are generated, which solves the problem of insufficient data integration and reasoning capabilities of traditional smart maps, achieves efficient data analysis and intelligent search, and improves the accuracy and reliability of data. .
Patent Information
- Application Number
- CN202410821994.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-25
AI Technical Summary
Traditional wisdom graphs have insufficient data integration, relationship modeling, reasoning and prediction capabilities. They are difficult to handle complex relationships and large-scale data. They have simple query functions and cannot provide semantic-based intelligent search. They also lack automated dispute detection and management tools, resulting in data Poor quality and consistency.
Use automated data capture, machine learning and deep learning algorithms for data analysis and prediction, generate industrial data maps, provide in-depth customized analysis reports, identify and manage data disputes, ensure data accuracy and consistency, and control through user interface and permissions Ensure data security, real-time monitoring and maintain stable operation of the system.
It achieves efficient integration and in-depth analysis of data, provides intelligent search based on semantics, improves the accuracy and reliability of data, can discover and solve data problems in a timely manner, and ensures the high quality and adaptability of the map.
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of knowledge graph construction, and specifically to a method and system for intelligently generating industrial data graphs. Background Art
[0002] Industrial data refers to various data related to industry and manufacturing, including but not limited to production data such as output, production capacity, equipment operating status, financial data such as sales, profit, cost, supply chain data such as raw material procurement, inventory, logistics, market data such as market demand, competitor situation, market share, human resources data such as the number of employees, skill level, training records, environmental data such as emissions, energy consumption, water consumption, etc. These data usually come from various information systems of the enterprise, such as ERP (Enterprise Resource Planning), MES (Manufacturing Execution System), SCM (Supply Chain Management) system, etc.
[0003] Smart graph is a structured knowledge representation method that represents entities and their relationships through nodes and edges to construct a knowledge network. Smart graph can link massive heterogeneous data to form a multi-dimensional and multi-level knowledge system, integrating data from different sources and types to form a comprehensive knowledge system. Through the graph structure, it is easy to discover the complex relationships between entities and provide semantic-based search. Users can perform more accurate and efficient queries, use the relationships in the graph to reason, discover potential knowledge and trends, and display knowledge and relationships in a graphical way, making it easier for users to understand and analyze data.
[0004] Therefore, the connection between industrial data and smart graphs is reflected in the fact that smart graphs can be used as a tool to integrate and analyze industrial data. Industrial data often comes from different systems and platforms in different formats. Smart graphs can unify these heterogeneous data and build an overall knowledge network. Various entities in industrial data (such as equipment, products, suppliers, etc.) and their relationships (such as supply relationships, production relationships, etc.) can be modeled and displayed through smart graphs. Through the analysis of smart graphs, hidden relationships and patterns between data can be discovered, and complex reasoning and prediction can be performed to support decision-making.
[0005] However, in general, data integration is difficult in the process of establishing traditional smart graphs. Traditional methods usually rely on manual or semi-automated methods for data integration, which is inefficient and error-prone. The relationship modeling is imperfect, and the modeling and display capabilities are limited when dealing with complex relationships and large-scale data. The reasoning and prediction capabilities are weak, and it is difficult to fully utilize the relationships in the graph for in-depth analysis. The query function design is often relatively simple and cannot provide semantic-based intelligent search. Because its visualization means are relatively limited, it is difficult to intuitively display complex knowledge networks. At the same time, it relies on manual processing of data conflicts, which is inefficient and error-prone. There is a lack of automated dispute detection and management tools, and it is impossible to discover and resolve data problems in a timely manner, which ultimately leads to poor data quality and consistency of the graph data, affecting the accuracy of subsequent analysis.
[0006] In summary, it is necessary to propose an intelligent generation method and system for industrial data graphs to solve the above problems. Summary of the invention
[0007] The purpose of the present invention is to provide a method and system for intelligently generating industrial data maps to solve the problems raised in the above-mentioned background technology.
[0008] To achieve the above object, the present invention provides the following technical solutions:
[0009] A method for intelligently generating an industrial data graph, which is implemented based on an intelligent generation system for industrial data graphs, comprises the following steps:
[0010] S1. Obtain raw data from public data, corporate financial reports and market research reports through automated data crawling technology. At the same time, provide users with an interface for manual data input, supporting Excel and CSV formats;
[0011] S2. Clean the collected data, process missing data, duplicate data and abnormal data, ensure data quality, and then convert data in different formats into a unified format for subsequent processing;
[0012] S3. Store the processed data in a relational database or NoSQL database and perform regular data backup to prevent data loss;
[0013] S4. Use machine learning and deep learning algorithms to analyze stored data, mine hidden information and patterns, and provide in-depth industry insights;
[0014] S5. Based on historical data and existing models, forecast future market trends and industry changes to provide support for industry decision-making;
[0015] S6. Provide deeply customized analysis functions for specific industries and generate exclusive industry analysis reports;
[0016] S7. Allow users to define and track specific business indicators and provide customized analysis reports to meet individual needs;
[0017] S8. Generate industry data maps based on preset models and rules to structure and visualize complex data;
[0018] S9. Display the generated graph in a visual form to support user interaction and make data insights more intuitive;
[0019] S10. Identify controversial or inconsistent parts of the data, mark potential problems, and ensure data accuracy and consistency;
[0020] S11. Provide a user interface to allow users to view, confirm or resolve disputed data to ensure data reliability;
[0021] S12. Ensure that system access is limited to authorized users through user authentication and permission control, ensure data security, evaluate industry risks based on data analysis, identify potential risk points, and set risk warning thresholds. When potential risks are detected, notify relevant personnel in a timely manner;
[0022] S13. Generate automatic reports based on analysis results and graphs, supporting multiple formats, allowing users to customize report content and format as needed to meet diverse needs;
[0023] S14. Monitor all aspects of data collection, processing and storage in real time to ensure the normal operation of the system, regularly inspect and maintain the system, handle possible problems, and ensure the long-term stable operation of the system.
[0024] Based on the above method, the present invention also proposes an industrial data map intelligent generation system, including a data collection and preprocessing module, a data storage module, a data depth empowerment module, a map generation module, a dispute map marking module, a security authority management module, a report generation module and a data maintenance module;
[0025] The data collection preprocessing module is used for data acquisition, cleaning and conversion;
[0026] The data storage module is used for database management and data backup;
[0027] The data depth enabling module is used for data analysis and prediction;
[0028] The graph generation module is used for industry-specific analysis, definition of personalized indicators, graph construction and graph visualization;
[0029] The dispute graph marking module is used for dispute graph marking, detection and management;
[0030] The security authority management module is used for user authentication, authority control, risk assessment and early warning notification;
[0031] The report generation module is used for automatic report generation and customized reports;
[0032] The data maintenance module is used for real-time monitoring and maintenance management.
[0033] Preferably, the data collection and preprocessing module further includes a data acquisition unit, a data input interface unit, a data cleaning unit and a data conversion unit;
[0034] The data acquisition unit is used to automatically acquire legal data from various data sources;
[0035] The data input interface unit is used to provide an interface for users to manually input data, supporting Excel and CSV formats;
[0036] The data cleaning unit is used to process missing data, duplicate data, and abnormal data to ensure data quality;
[0037] The data conversion unit is used to convert data in different formats into a unified format to facilitate subsequent processing.
[0038] Preferably, the data storage module further includes a database management unit and a data backup unit;
[0039] The database management unit is used to store the processed data through a MySQL relational database or a MongoDB database;
[0040] The data backup unit is used to back up data regularly to prevent data loss.
[0041] Preferably, the data depth enabling module also includes a data analysis unit and a data prediction unit;
[0042] The data analysis unit uses machine learning and deep learning algorithms to analyze data to mine hidden information and patterns;
[0043] The data prediction unit is used to predict future market trends and industry changes based on historical data and existing models.
[0044] Preferably, the graph generation module further includes an industry-specific analysis unit, a personalized indicator unit, a graph construction unit, and a graph visualization unit;
[0045] The industry-specific analysis unit is used to provide in-depth customized analysis functions for specific industries;
[0046] The personalized indicator unit allows users to define and track specific business indicators to provide customized analysis reports;
[0047] The graph construction unit is used to generate an industry data graph according to a preset model and rules;
[0048] The graph visualization unit is used to display the generated graph in a visual form and support interactive operations.
[0049] Preferably, the dispute graph marking module further includes a dispute detection unit and a dispute management unit;
[0050] The dispute detection unit is used to identify controversial or inconsistent parts of the data and mark potential problems;
[0051] The dispute management unit is used to provide a user interface, allowing a user to view, confirm or resolve dispute data.
[0052] Preferably, the security and authority management module further includes a user authentication unit, an authority control unit, a risk assessment unit and an early warning notification unit;
[0053] The user authentication unit is used to ensure that access to the system is limited to authorized users, and identity authentication is performed through username and password, two-factor authentication means;
[0054] The permission control unit is used to set different permission control data access and operation permissions according to user roles;
[0055] The risk assessment unit is used to analyze and assess industrial risks and identify potential risk points based on data;
[0056] The warning notification unit is used to set a risk warning threshold, and when a potential risk is detected, relevant personnel are notified in a timely manner via email or text message.
[0057] Preferably, the report generation module further includes an automatic reporting unit and a custom reporting unit;
[0058] The automatic reporting unit generates an automatic report based on the analysis results and graphs, supporting PDF and Word formats;
[0059] The custom report unit is used to customize the report content and format according to needs.
[0060] Preferably, the data maintenance module further includes a real-time monitoring unit and a maintenance management unit;
[0061] The real-time monitoring unit is used to monitor each link of data collection, processing and storage to ensure the normal operation of the system;
[0062] The maintenance management unit is used to regularly inspect and maintain the system, handle possible problems, and ensure long-term stable operation of the system.
[0063] Compared with the prior art, the beneficial effects of the present invention are as follows: the intelligent graph generation scheme and system of the present invention have strong data integration capabilities, integrate heterogeneous data from different systems and platforms to form a unified knowledge network, easily discover and display complex relationships between data, provide rich semantic information, and perform reasoning and prediction through graph structures. Data analysis and decision support can be performed more efficiently, and semantic-based intelligent search is provided. Users can perform more accurate queries, and the graphical display method makes data and relationships easier to understand and interpret. At the same time, the dispute detection method can identify errors and conflicts in the data, thereby improving the accuracy and reliability of the overall data. Potential problems can be discovered in the early stages of data integration to avoid these problems from having a greater impact in subsequent analysis. Through the automated dispute detection mechanism, data quality can be continuously monitored to ensure the high quality of the graph, and a continuous optimization mechanism is provided. Through continuous dispute detection and management, the data model can be continuously optimized and improved, and has strong adaptability. DETAILED DESCRIPTION
[0064] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] Embodiment 1: The present invention proposes an industrial data graph intelligent generation system, including a data collection and preprocessing module, a data storage module, a data depth empowerment module, a graph generation module, a dispute graph marking module, a security authority management module, a report generation module and a data maintenance module;
[0066] Among them, this system acquires, cleans and converts data through the data collection and preprocessing module, manages the database and backs up the data through the data storage module, analyzes and predicts data through the data depth empowerment module, performs industry-specific analysis, defines personalized indicators, builds graphs and visualizes graphs through the graph generation module, marks, detects and manages dispute graphs through the dispute graph marking module, performs user authentication, authority control, risk assessment and early warning notification through the security permission management module, performs automatic report generation and customized reports through the report generation module, and performs real-time monitoring and maintenance management through the data maintenance module.
[0067] It should also be noted that the data collection and preprocessing module of the system also includes a data acquisition unit, a data input interface unit, a data cleaning unit and a data conversion unit. The data acquisition unit is used to automatically acquire legal data from various data sources. The data input interface unit is used to provide an interface for users to manually input data, and supports Excel and CSV formats. The data cleaning unit is used to process missing data, duplicate data, and abnormal data to ensure data quality. The data conversion unit is used to convert data in different formats into a unified format to facilitate subsequent processing.
[0068] It should also be noted that the data storage module of this system also includes a database management unit and a data backup unit. The database management unit is used to store processed data through a MySQL relational database or a MongoDB database, and the data backup unit is used to regularly back up data to prevent data loss.
[0069] It should also be noted that the data depth empowerment module of this system also includes a data analysis unit and a data prediction unit. The data analysis unit uses machine learning and deep learning algorithms to analyze data to mine hidden information and patterns. The data prediction unit is used to predict future market trends and industry changes based on historical data and existing models.
[0070] Among them, it is also necessary to explain that the graph generation module of this system also includes an industry-specific analysis unit, a personalized indicator unit, a graph construction unit and a graph visualization unit. The industry-specific analysis unit is used to provide in-depth customized analysis functions for specific industries. The personalized indicator unit allows users to define and track specific business indicators to provide customized analysis reports. The graph construction unit is used to generate an industry data graph according to preset models and rules. The graph visualization unit is used to display the generated graph in a visual form to support interactive operations.
[0071] It should also be noted that the dispute map marking module of the present system also includes a dispute detection unit and a dispute management unit. The dispute detection unit is used to identify controversial or inconsistent parts of the data and mark potential problems. The dispute management unit is used to provide a user interface to allow users to view, confirm or resolve disputed data.
[0072] Among them, it should also be noted that the security and authority management module of this system also includes a user authentication unit, an authority control unit, a risk assessment unit and an early warning notification unit. The user authentication unit is used to ensure that access to the system is limited to authorized users, and identity authentication is performed through user name and password, and two-factor authentication. The authority control unit is used to set different authority control data access and operation permissions according to user roles. The risk assessment unit is used to identify potential risk points based on data analysis and assessment of industrial risks. The early warning notification unit is used to set risk warning thresholds. When potential risks are detected, relevant personnel are notified in a timely manner via email or text message.
[0073] It should also be noted that the report generation module of this system also includes an automatic reporting unit and a custom reporting unit. The automatic reporting unit generates automatic reports through analysis results and graphs, and supports PDF and Word formats. The custom reporting unit is used to customize the report content and format as needed.
[0074] It should also be noted that the data maintenance module of this system also includes a real-time monitoring unit and a maintenance management unit. The real-time monitoring unit is used to monitor each link of data collection, processing and storage to ensure the normal operation of the system. The maintenance management unit is used to regularly inspect and maintain the system, deal with possible problems, and ensure the long-term stable operation of the system.
[0075] Embodiment 2: Based on the above system, the present invention further proposes a method for intelligently generating an industrial data graph. The method is implemented based on the above system. In the practical application of intelligently generating an industrial data graph, the above method specifically includes the following steps:
[0076] S1. Data collection: Use BeautifulSoup to crawl data from public data, obtain financial report data through corporate financial report API interface, use Scrapy framework to crawl data from market research report website, provide Django-based web interface for users to upload Excel format data, and provide Flask-based API interface for users to upload CSV format data;
[0077] S2. Data cleaning and conversion: Use the Pandas library to check and process missing data, use SimpleImputer in the Scikit-learn library to replace missing values, use the Pandas library to remove duplicate data, use the Scipy library to detect and process abnormal data, and use the Pandas library to convert data in different formats into DataFrame format;
[0078] S3. Data storage: Use SQLAlchemy to store data in a MySQL database, use Pymongo to store data in a MongoDB database, set up scheduled tasks to regularly back up data in a MySQL database, set up scheduled tasks to regularly back up data in a MongoDB database, and use AWS S3 for off-site data backup;
[0079] S4. Data analysis: Use the Scikit-learn library for data preprocessing and the K-means algorithm for data clustering analysis, see formula (1);
[0080] Minimize ∑ |x(i) - µ(c(i))|² (1);
[0081] In the formula, x(i) represents the data point, and µ(c(i)) represents the center of the cluster to which the data point belongs;
[0082] Use the Scikit-learn library for regression analysis, see formula (2);
[0083] y = β0 + β1x + ε (2);
[0084] Use the Scikit-learn library for classification analysis and the TensorFlow framework for deep learning model training and prediction. The forward propagation formula is shown in Equation (3).
[0085] z = w*x + ba = g(z) (3);
[0086] S5. Data forecasting: Use the ARIMA model for time series forecasting, the Prophet model for trend forecasting, the TensorFlow framework for long and short-term memory forecasting, the XGBoost model for predictive analysis, and the cross-validation method in the Scikit-learn library to evaluate model performance;
[0087] S6. Industry-specific analysis: Use NAICS for data classification, use TF-IDF algorithm to analyze industry text data, use industry benchmark data for comparative analysis, use Matplotlib library to generate industry-specific visualization charts, and use Jupyter Notebook to generate and display industry analysis reports;
[0088] S7. Personalized indicator tracking: Users define business indicators through the web interface, use the Pandas library to calculate user-defined business indicators, use the Plotly library to generate visualization charts of personalized indicators, generate time series charts of indicator tracking, and use the Dash framework to build interactive dashboards to display indicators;
[0089] S8. Graph generation: Use the NetworkX library to define the graph model, use the Pandas library to prepare the graph data, use the NetworkX library to build the industry data graph, use the Graphviz library to optimize the graph layout, and store the graph data in the Neo4j graph database;
[0090] S9. Graph visualization: Use the D3.js library to achieve dynamic visualization of graphs, use the Plotly library to generate static graph visualization, use JavaScript and D3.js to achieve interactive operations on graphs, use the Dash framework to build a graph display interface, and embed graphs into web applications;
[0091] S10. Dispute detection and algorithm process:
[0092] 10.1. Data consistency verification algorithm:
[0093] 10.1.1. Data acquisition: extract the latest data records from the database, read them using the Pandas library and store them as DataFrame;
[0094] import pandas as pd
[0095] from sqlalchemy import create_engine
[0096] # Create a database connection
[0097] engine = create_engine('database_connection_string')
[0098] query = "SELECT * FROM your_table_name"
[0099] data = pd.read_sql(query, engine)
[0100] 10.1.2. Data validation rule definition, using Pandas to define data consistency rules, including field length, value range, etc.;
[0101] def validate_row(row):
[0102] if len(row['field1']) > max_length:
[0103] return False
[0104] if not (min_value <= row['field2'] <= max_value):
[0105] return False
[0106] return True
[0107] 10.1.3. Data validation execution: Use Pandas' apply function to execute validation rules on each record and mark records that do not meet the rules;
[0108] data['is_valid'] = data.apply(validate_row, axis=1)
[0109] invalid_data = data[~data['is_valid']]
[0110] 10.1.4. Generate a preliminary dispute dataset and store the records that failed verification as a new DataFrame for subsequent processing;
[0111] preliminary_disputes = invalid_data.copy()
[0112] 10.1.5. Store preliminary dispute data in a temporary table of the database to facilitate subsequent processing and review;
[0113] preliminary_disputes.to_sql('preliminary_disputes_table', engine, if_exists='replace')
[0114] 10.2. Anomaly Detection:
[0115] 10.2.1. Data preprocessing: use Pandas to standardize the data to ensure that the values of each field are within the same range;
[0116] from sklearn.preprocessing import StandardScaler
[0117] scaler = StandardScaler()
[0118] scaled_data = scaler.fit_transform(data[['field1', 'field2', 'field3']])
[0119] 10.2.2. Model training: Use the Isolation Forest algorithm in the Scikit-learn library to train the anomaly detection model, with the preprocessed dataset as input;
[0120] from sklearn.ensemble import IsolationForest
[0121] model = IsolationForest(contamination=0.1)
[0122] model.fit(scaled_data)
[0123] 10.2.3. Anomaly score calculation: The anomaly score of each record is calculated using the trained model, and records with scores higher than the threshold are marked as anomalies;
[0124] data['anomaly_score'] = model.decision_function(scaled_data)
[0125] data['is_anomaly'] = model.predict(scaled_data) == -1
[0126] anomalies = data[data['is_anomaly']]
[0127] 10.2.4. Abnormal data marking: use Pandas to mark abnormal records on the original data set and generate a new DataFrame;
[0128] anomaly_data = data.copy()
[0129] 10.2.5. Store abnormal data and store the marked abnormal data in the abnormal data table of the database;
[0130] anomaly_data.to_sql('anomaly_data_table',engine,if_exists='replace')
[0131] 10.3. Generation of dispute data report:
[0132] 10.3.1. Data extraction: extracting disputed data from temporary tables and abnormal data tables in the database;
[0133] preliminary_disputes=pd.read_sql('SELECT*FROM preliminary_disputes_table', engine)
[0134] anomaly_data = pd.read_sql('SELECT * FROM anomaly_data_table',engine)
[0135] 10.3.2. Data aggregation: Use Pandas to classify and aggregate dispute data, and count the number and proportion of each type of dispute;
[0136] dispute_summary=pd.concat([preliminary_disputes, anomaly_data]).groupby('dispute_type').size()
[0137] 10.3.3. Generate reports and generate visualization charts of disputed data using the Matplotlib library;
[0138] import matplotlib.pyplot as plt
[0139] dispute_summary.plot(kind='bar')
[0140] plt.title('Dispute Data Summary')
[0141] plt.xlabel('Dispute Type')
[0142] plt.ylabel('Count')
[0143] plt.savefig('dispute_summary.png')
[0144] 10.3.4. Report output: Use Jinja2 template engine to generate dispute data report in HTML format, or use WeasyPrint to generate report in PDF format;
[0145] from jinja2 import Environment, FileSystemLoader
[0146] from weasyprint import HTML
[0147] env = Environment(loader=FileSystemLoader('.'))
[0148] template = env.get_template('report_template.html')
[0149] html_out = template.render(summary=dispute_summary.to_dict())
[0150] # Generate HTML report
[0151] with open('dispute_report.html', 'w') as file:
[0152] file.write(html_out)
[0153] # Generate PDF report
[0154] HTML('dispute_report.html').write_pdf('dispute_report.pdf')
[0155] 10.3.5. Report storage: store the generated report file in the specified folder and record it in the database;
[0156] report_path = 'path / to / reports / dispute_report.pdf'
[0157] #Store report path information in the database
[0158] report_data = pd.DataFrame({'report_path': [report_path]})
[0159] report_data.to_sql('report_info_table',engine, if_exists='replace')
[0160] 10.4. Visualization of dispute data:
[0161] 10.4.1. Data preparation: extract the data to be visualized from the dispute data table;
[0162] visualization_data=pd.read_sql('SELECT*FROM anomaly_data_table',engine)
[0163] 10.4.2. Chart generation: Use the Matplotlib library to generate static visualization charts of disputed data, or use the Plotly library to generate interactive charts;
[0164] import plotly.express as px
[0165] fig = px.scatter(visualization_data, x='field1', y='field2', color='is_anomaly')
[0166] fig.write_html('anomaly_visualization.html')
[0167] 10.4.3. Optimize chart layout and adjust chart layout and style to ensure that chart information is clear and easy to read;
[0168] fig.update_layout(
[0169] title='Anomaly Detection Visualization',
[0170] xaxis_title='Field 1',
[0171] yaxis_title = 'Field 2' )
[0173] 10.4.4.Chart embedding: embed the generated chart into the web application interface using the Django template engine;
[0174] # Rendering HTML charts in Django views
[0175] def render_visualization(request):
[0176] return render(request, 'visualization_template.html', {'graph':fig.to_html()})
[0177] 10.4.5. User interface display, providing a user interface for users to view visual charts of dispute data;
[0178] 10.5. Dispute Data Marking and Storage:
[0179] 10.5.1. Data marking: during the data cleaning process, a marking field is added to the data marked as disputed;
[0180] data['dispute_flag'] = data['is_valid'] | data['is_anomaly']
[0181] 10.5.2. Data storage: Use SQLAlchemy to store the marked data in the dispute data table of the database;
[0182] data.to_sql('dispute_data_table', engine, if_exists='replace')
[0183] 10.5.3. Data indexing: create indexes for dispute data tables to improve query efficiency;
[0184] CREATE INDEX idx_dispute_flag ON dispute_data_table(dispute_flag);
[0185] 10.5.4. Data backup: regularly back up disputed data tables to ensure data security;
[0186] pg_dump -U username -F c -b -v -f dispute_data_backup.backup your_database
[0187] 10.5.5. Log records, record the operation logs of each dispute data marking and storage, to facilitate subsequent audit and tracking;
[0188] import logging
[0189] logging.basicConfig(filename='dispute_data.log', level=logging.INFO)
[0190] logging.info('Dispute data updated on %s', pd.Timestamp.now())
[0191] S11. Dispute Management:
[0192] 11.1. View dispute data in the user interface:
[0193] 11.1.1. Front-end interface design: using HTML and CSS to design the interface for users to view disputed data;
[0194] 11.1.2. Data interface development: using Django framework to develop API interface and obtain dispute data from the database;
[0195] 11.1.3. Data display: Use JavaScript to dynamically display the dispute data list, supporting paging and sorting;
[0196] 11.1.4. Detailed information viewing: Users can click on the disputed data item to view detailed information and historical records;
[0197] 11.1.5. User feedback: Provide a user input box to allow users to provide feedback and opinions on disputed data;
[0198] 11.2. User confirmation or dispute resolution:
[0199] 11.2.1. Confirmation interface design: add confirmation and resolution buttons to the front-end interface, so that users can choose to confirm or resolve the dispute;
[0200] 11.2.2. Data submission: after the user operates, the confirmation or solution result is submitted to the backend through AJAX request;
[0201] 11.2.3. Result processing: after receiving the request, the backend updates the status of the corresponding disputed data in the database;
[0202] 11.2.4. Log records, which record the user's confirmation or resolution operations and save them in the operation log;
[0203] 11.2.5. User notification: Use Django’s mail system to send confirmation or resolution notification emails to users;
[0204] 11.3. Dispute Data Records:
[0205] 11.3.1. Operation records: when users confirm or resolve disputes, detailed operation information including user ID, time, and operation type will be recorded;
[0206] 11.3.2. Database update: Use SQLAlchemy to update the dispute data table and record the status changes after each operation;
[0207] 11.3.3. Log storage: store operation records in the log table to facilitate subsequent query and audit;
[0208] 11.3.4. Operation backtracking: Provides an interface that allows administrators to view the operation history and status changes of disputed data;
[0209] 11.3.5. Data backup: regularly back up operation logs and dispute data to ensure data integrity and security;
[0210] 11.4. Update the status of disputed data in the database:
[0211] 11.4.1. Data query: Use SQLAlchemy to query the disputed data records that need to be updated;
[0212] 11.4.2. Status update: based on user operations, the status field of the disputed data is updated to confirmed or resolved;
[0213] 11.4.3. Data verification: after updating, re-verify the integrity and consistency of the data to ensure that the update is correct;
[0214] 11.4.4. Update log, record the detailed information of each status update in the log table;
[0215] 11.4.5. Data synchronization: synchronize the updated data to the backup database to ensure data consistency;
[0216] 11.5. Generate dispute resolution report:
[0217] 11.5.1. Data aggregation: Use Pandas to aggregate the processed dispute data and count the number and proportion of data in each status;
[0218] 11.5.2. Chart generation: Use the Matplotlib library to generate visual charts of dispute resolution results;
[0219] 11.5.3. Report writing: Use Jinja2 template engine to generate dispute resolution reports in HTML format or use WeasyPrint to generate reports in PDF format;
[0220] 11.5.4. Report storage: store the generated report file in the specified directory and record it in the database;
[0221] 11.5.5. User distribution: Distribute the dispute resolution report to relevant users and managers, and use Django's mail system to send report attachments;
[0222] S12. Security and permission management: Use JWT for user authentication, use Django permission system to set user permissions, implement data access control based on role-based permission control, use machine learning models to assess industrial risks, use Celery to set risk warning tasks, and notify relevant personnel through emails and SMS;
[0223] S13. Report generation: Use Matplotlib library to generate charts, use Jinja2 template engine to generate report content, use WeasyPrint library to generate PDF format report, use python-docx library to generate Word format report, users can customize report content and format through web interface;
[0224] S14. System monitoring and maintenance: Use Prometheus to monitor the system operation status, use Grafana to display system monitoring data, run system health check scripts regularly, use Jupyter Notebook to automatically generate system maintenance reports, and use Ansible to update and maintain the system.
[0225] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for intelligently generating industrial data graphs, which is implemented based on an intelligent generation system for industrial data graphs, and is characterized in that: The following steps are involved: S1. Obtain raw data from public data, corporate financial reports and market research reports through automated data crawling technology. At the same time, provide users with an interface for manual data input, supporting Excel and CSV formats; S2. Clean the collected data, process missing data, duplicate data and abnormal data, ensure data quality, and then convert data in different formats into a unified format for subsequent processing; S3. Store the processed data in a relational database or NoSQL database and perform regular data backup to prevent data loss; S4. Use machine learning and deep learning algorithms to analyze stored data, mine hidden information and patterns, and provide in-depth industry insights; S5. Based on historical data and existing models, forecast future market trends and industry changes to provide support for industry decision-making; S6. Provide deeply customized analysis functions for specific industries and generate exclusive industry analysis reports; S7. Allow users to define and track specific business indicators and provide customized analysis reports to meet individual needs; S8. Generate industry data maps based on preset models and rules to structure and visualize complex data; S9. Display the generated graph in a visual form to support user interaction and make data insights more intuitive; S10. Identify controversial or inconsistent parts of the data, mark potential problems, and ensure data accuracy and consistency; S11. Provide a user interface to allow users to view, confirm or resolve disputed data to ensure data reliability; S12. Ensure that system access is limited to authorized users through user authentication and permission control, ensure data security, evaluate industry risks based on data analysis, identify potential risk points, and set risk warning thresholds. When potential risks are detected, notify relevant personnel in a timely manner; S13. Generate automatic reports based on analysis results and graphs, supporting multiple formats, allowing users to customize report content and format as needed to meet diverse needs; S14. Monitor all aspects of data collection, processing and storage in real time to ensure the normal operation of the system, regularly inspect and maintain the system, handle possible problems, and ensure the long-term stable operation of the system; The industrial data map intelligent generation system includes a data collection and preprocessing module, a data storage module, a data depth empowerment module, a map generation module, a dispute map marking module, a security authority management module, a report generation module and a data maintenance module; The data collection preprocessing module is used for data acquisition, cleaning and conversion; The data storage module is used for database management and data backup; The data depth enabling module is used for data analysis and prediction; The graph generation module is used for industry-specific analysis, definition of personalized indicators, graph construction and graph visualization; The dispute graph marking module is used for dispute graph marking, detection and management; The security authority management module is used for user authentication, authority control, risk assessment and early warning notification; The report generation module is used for automatic report generation and customized reports; The data maintenance module is used for real-time monitoring and maintenance management; The data collection preprocessing module also includes a data acquisition unit, a data input interface unit, a data cleaning unit and a data conversion unit; The data acquisition unit is used to automatically acquire legal data from various data sources; The data input interface unit is used to provide an interface for users to manually input data; The data cleaning unit is used to process missing data, duplicate data, and abnormal data to ensure data quality; The data conversion unit is used to convert data in different formats into a unified format; The data storage module also includes a database management unit and a data backup unit; The database management unit is used to store the processed data through a MySQL relational database or a MongoDB database; The data backup unit is used to back up data regularly; The data depth enabling module also includes a data analysis unit and a data prediction unit; The data analysis unit is used to mine hidden information and patterns; The data prediction unit is used to predict future market trends and industry changes based on historical data and existing models; The graph generation module also includes an industry-specific analysis unit, a personalized indicator unit, a graph construction unit, and a graph visualization unit; The industry-specific analysis unit is used to provide in-depth customized analysis functions for specific industries; The personalized indicator unit is used to provide a customized analysis report; The graph construction unit is used to generate an industry data graph according to a preset model and rules; The graph visualization unit is used to display the generated graph in a visual form; The dispute graph marking module also includes a dispute detection unit and a dispute management unit; The dispute detection unit is used to mark potential issues; The dispute management unit is used to provide a user interface; The security authority management module also includes a user authentication unit, an authority control unit, a risk assessment unit and an early warning notification unit; The user authentication unit is used to ensure that access to the system is limited to authorized users; The permission control unit is used to set different permission control data access and operation permissions according to user roles; The risk assessment unit is used to analyze and assess industrial risks and identify potential risk points based on data; The warning notification unit is used to set a risk warning threshold; The report generation module also includes an automatic reporting unit and a custom reporting unit; The automatic reporting unit generates an automatic report by analyzing the results and graphs; The custom report unit is used to customize the report content and format according to needs; The data maintenance module also includes a real-time monitoring unit and a maintenance management unit; The real-time monitoring unit is used to monitor each link of data collection, processing and storage; The maintenance management unit is used to regularly inspect and maintain the system.
Citation Information
Cited By
Multi-dimensional feature fusion dispute detection method and system based on attention mechanism
CN121093290A
A multi-dimensional feature fusion controversy detection method and system based on an attention mechanism
CN121093290B
