Vehicle battery replacement query interaction method and system based on data lake system

By building a multi-dimensional knowledge graph in the data lake system, the problem of dispersed battery swap data and high analysis threshold is solved, real-time monitoring and early warning of battery health status is achieved, and the accuracy and efficiency of data query are improved.

CN120407624APending Publication Date: 2025-08-01ZHEJIANG GEELY HLDG GRP CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510497002.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-18
Publication Date
2025-08-01

Smart Images

  • Figure CN120407624A_ABST
    Figure CN120407624A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle battery replacement query interaction method and system based on a data lake system, the downstream of the data lake system is connected to a data application, and the vehicle battery replacement query interaction method based on the data lake system comprises the steps that the data lake system is connected to multi-source battery data, carrying out data processing on the multi-source battery data to obtain a multi-dimensional knowledge graph; under the condition that a battery replacement query interaction instruction from the data application is received, querying multi-source battery data based on the multi-dimensional knowledge graph to obtain a data query result; and outputting the data query result to the data application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical fields such as vehicle battery swapping, and particularly relates to a vehicle battery replacement query interaction method and system based on a data lake system. Background Art

[0002] With the popularization of new energy vehicles, the battery swapping mode has become an important supplement to the charging mode due to its high efficiency and convenience. The battery swapping business involves multiple links such as battery asset management, operation of battery swapping stations, and user services, generating a large amount of structured and unstructured data. How to realize the interaction between the large amount of data and data applications has become the focus of research.

[0003] In related technologies, the battery swapping data is scattered in different systems and lacks a unified view; business personnel rely on the IT team to write SQL or make fixed reports, with slow response speed, making it difficult to support the real-time monitoring and early warning of the battery health status, and the natural language query tool cannot understand the professional terms in the battery swapping field. Summary of the Invention

[0004] The embodiments of this application aim to at least solve one of the technical problems in related technologies to some extent. For this reason, the purpose of the embodiments of this application is to propose a vehicle battery replacement query interaction method, system, device, equipment and medium based on a data lake system.

[0005] The embodiments of this application provide a vehicle battery replacement query interaction method based on a data lake system. A data application is connected downstream of the data lake system. The vehicle battery replacement query interaction method based on the data lake system includes: the data lake system accesses multi-source battery data and performs data processing on the multi-source battery data to obtain a multi-dimensional knowledge graph; when receiving a battery replacement query interaction instruction from the data application, query the multi-source battery data based on the multi-dimensional knowledge graph to obtain a data query result; output the data query result to the data application.

[0006] Exemplarily, the data lake system includes a metadata management module and an access control module; when receiving a battery replacement query interaction instruction from the data application, query the multi-source battery data based on the multi-dimensional knowledge graph to obtain a data query result, including: when receiving a battery replacement query interaction instruction from the data application, parse the battery replacement query interaction instruction to obtain a parsing result; based on the parsing result and the multi-dimensional knowledge graph, determine the multi-source battery data to be queried; when it is determined that there is an access right based on the access control module, locate the storage location of the multi-source battery data through the metadata management module and extract the data from the storage location to obtain a data query result.

[0007] Exemplarily, the battery replacement query interaction instruction includes at least one of a real-time instruction and a batch instruction; in the case of receiving a battery replacement query interaction instruction from a data application, multi-source battery data is queried based on a multi-dimensional knowledge graph to obtain a data query result, including: when the battery replacement query interaction instruction is a real-time instruction, multi-source battery data is queried based on a stream processing method according to the multi-dimensional knowledge graph to obtain a data query result; when the battery replacement query interaction instruction is a batch instruction, multi-source battery data is queried based on a batch processing method according to the multi-dimensional knowledge graph to obtain a data query result; when the battery replacement query interaction instruction includes a real-time instruction and a batch instruction, multi-source battery data is queried based on an interactive query method according to the multi-dimensional knowledge graph to obtain a data query result.

[0008] Exemplarily, the data lake system includes at least one of a data access module, a battery replacement knowledge point module, a task management module, a quality management module, an index management module, a data lineage module, and a data governance module; the multi-source battery data is accessed by the data lake system, and the multi-source battery data is processed to obtain a multi-dimensional knowledge graph, including at least one of the following: the multi-source battery data is accessed by the data access module and integrated into a data table; the concepts of the multi-source battery data are defined based on the battery replacement knowledge point module; based on the battery replacement query interaction instruction, the relationship between data tables is established through the task management module; the multi-source battery data is managed based on the quality management module and the index management module; the association relationship between the multi-source battery data is recorded based on the data lineage module; the life cycle of the multi-source battery data is set based on the data governance module.

[0009] Exemplarily, the data application includes at least one of a predefined BI report application, a self-service data extraction application, an intelligent data query application, and an API service application; the data application generates a battery replacement query interaction instruction through at least one of the following methods: when a report viewing request from a user is received through the predefined BI report application, a battery replacement query interaction instruction is generated based on the configuration information of the report; when a selection request from a user is received through the self-service data extraction application, a battery replacement query interaction instruction is generated based on the user selection content; when a query text from a user is received through the intelligent data query application, the query text is converted into an SQL query statement through natural language processing as the battery replacement query interaction instruction; when an application request from a user is received through the API service application, a battery replacement query interaction instruction is generated.

[0010] Exemplarily, the multi-source battery data includes at least one of battery status data, battery replacement transaction data, battery replacement station operation data, and user behavior data; and / or the multi-source battery data includes at least one of structured data and unstructured data; and / or the multi-source battery data is sourced from at least one of a database, a file system, and a message queue.

[0011] Exemplarily, the battery status data includes at least one of battery voltage, battery temperature, and battery health status. The battery swapping transaction data includes at least one of order data, user data, and payment data. The battery swapping station operation data includes at least one of battery inventory data and status data of battery replacement auxiliary equipment. The user behavior data includes at least one of battery swapping frequency data and user preference data.

[0012] Exemplarily, the multi-dimensional knowledge graph includes nodes and the association relationships between the nodes. The nodes include at least one of battery entity nodes, battery swapping station nodes, user nodes, battery replacement auxiliary equipment nodes, and environment nodes.

[0013] Another embodiment of the present application provides a vehicle battery replacement query interaction system. The battery replacement query interaction system includes a data lake system and a data application. The data lake system is used to execute the steps of the method in any one of the above embodiments.

[0014] Another embodiment of the present application provides a vehicle battery replacement query interaction device based on a data lake system. The vehicle battery replacement query interaction device based on the data lake system includes: a first acquisition module, configured to access multi-source battery data by the data lake system and perform data processing on the multi-source battery data to obtain a multi-dimensional knowledge graph; a second acquisition module, configured to query the multi-source battery data based on the multi-dimensional knowledge graph to obtain a data query result when receiving a battery replacement query interaction instruction from the data application; and an output module, configured to output the data query result to the data application.

[0015] Another embodiment of the present application provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the method in any one of the above embodiments are implemented.

[0016] Another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.

[0017] In the above embodiments, the vehicle battery replacement query interaction method based on the data lake system includes: the data lake system accesses multi-source battery data and processes the multi-source battery data to obtain a multi-dimensional knowledge graph; when receiving a battery replacement query interaction instruction from a data application, the multi-source battery data is queried based on the multi-dimensional knowledge graph to obtain a data query result; and the data query result is output to the data application. By constructing a multi-dimensional knowledge graph, structuring and correlating the data, an intelligent mapping from business terms to data patterns is realized, and the data lake system provides system management capabilities, which helps to maintain more knowledge in the field of battery swapping, improving the accuracy of data query results and data query efficiency; by accessing multi-source battery data through the data lake system, battery data scattered in different sources and with different formats can be uniformly collected and stored, solving the problem of data islands; and multiple data applications are connected downstream of the data lake system, which can provide users with a more flexible ability to query data. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flowchart of the vehicle battery replacement query interaction method based on the data lake system provided by the embodiment of the present application;

[0019] Figure 2 It is a schematic structural diagram of the vehicle battery replacement query interaction system provided by another embodiment of the present application;

[0020] Figure 3 It is a block diagram of the vehicle battery replacement query interaction device based on the data lake system provided by another embodiment of the present application;

[0021] Figure 4 It is a block diagram of an electronic device provided by another embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0022] The embodiments of the present application will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present application, but should not be construed as limiting the present application.

[0023] With the popularization of new energy vehicles, the battery swapping mode has become an important supplement to the charging mode due to its high efficiency and convenience. The battery swapping business involves multiple links such as battery asset management, operation of battery swapping stations, and user services, generating a large amount of structured and unstructured data. How to realize the interaction between the large amount of data and data applications has become the focus of research.

[0024] The data analysis of current battery swapping enterprises mainly faces the following challenges: (1) Data island problem: Battery data, order data, and user data are scattered in different systems, lacking a unified view; (2) High analysis threshold: Business personnel rely on the IT team to write SQL or produce fixed reports, with slow response speed; (3) Insufficient real-time performance: Traditional data warehouses are difficult to support real-time monitoring and early warning of battery health status; (4) Semantic gap: General natural language query tools cannot understand professional terms such as "battery cycle count" and "station efficiency".

[0025] In view of this, the embodiments of the present application provide a vehicle battery replacement query interaction method based on a data lake system. By constructing a knowledge graph in the battery swapping field and providing data ingestion into the lake, data lake system management, a stream-batch integrated execution mode, and various data applications, the accuracy of data query results and data query efficiency are improved.

[0026] Figure 1 It is a flowchart of the vehicle battery replacement query interaction method based on the data lake system provided by the embodiments of the present application.

[0027] As Figure 1 shown, the vehicle battery replacement query interaction method 100 provided by the embodiments of the present application, for example, includes steps S110-S130.

[0028] Step S110, the data lake system accesses multi-source battery data and processes the multi-source battery data to obtain a multi-dimensional knowledge graph.

[0029] Exemplarily, the multi-source battery data, for example, includes battery status data (voltage, temperature, SOH (State of Health, battery health status), etc.), battery swapping transaction data (orders, users, payments), battery swapping station operation data (inventory, equipment status), user behavior data (battery swapping frequency, preferences), etc. The multi-source battery data can be sourced from multiple data sources such as a file system, a database, or a message queue. Processing the multi-source battery data, for example, is based on various management functions provided by the data lake system (data lineage, data governance, quality management, metric management, task management, etc.) to manage the multi-source battery data and establish a multi-dimensional knowledge graph. The multi-dimensional knowledge graph of the present application is illustrated by a five-dimensional knowledge graph and is not a specific limitation to the present application.

[0030] Step S120, in the case of receiving a battery replacement query interaction instruction from a data application, query the multi-source battery data based on the multi-dimensional knowledge graph to obtain a data query result.

[0031] Exemplarily, the data application can be a predefined BI (Business Intelligence) report application, a self-service data extraction application, an intelligent data query application, and an API (Application Programming Interface) service application. When receiving a battery replacement query interaction instruction, it queries the data table corresponding to the user's requested task based on the multi-dimensional knowledge graph, and the query methods include stream mode, batch mode, and interaction mode.

[0032] Step S130, output the data query result to the data application.

[0033] Exemplarily, return the data corresponding to the data table as the query result to the data application for the data application to display to the requesting user, and the display methods include forms such as tables and pictures.

[0034] In the above embodiments, by constructing a multi-dimensional knowledge graph, structuring and correlating the data, realizing the intelligent mapping from business terms to data patterns, and the data lake system provides system management capabilities, which helps to maintain more knowledge in the battery replacement field and improves the accuracy of data query results and data query efficiency; by accessing multi-source battery data through the data lake system, it can uniformly collect and store the battery data scattered in different sources and with different formats, solving the data island problem; multiple data applications are connected downstream of the data lake system, which can provide users with a more flexible ability to query data. When a user needs to replace the battery of a vehicle, they can query the battery inventory data of nearby battery replacement stations in the intelligent data query application through natural language. The data application converts the query instruction into an SQL (Structured Query Language) statement for the data lake system to parse and query, and returns the query result to the user.

[0035] Figure 2 This is a schematic structural diagram of a vehicle battery replacement query interaction system provided by another embodiment of the present application.

[0036] As Figure 2 shown, the battery replacement query interaction system includes a data lake system and a data application. The data lake system includes a data lake management system, a computing engine, and a storage module.

[0037] In order to better use the data in the data lake, a complete set of data lake management systems will be established, including task management, quality management, data access, access control, data governance, data lineage, metadata management, etc. These systems can better manage the entire life cycle of data.

[0038] The data lake system includes at least one of a data access module, a battery swapping knowledge point module, a task management module, a quality management module, an indicator management module, a data lineage module, and a data governance module; the multi-source battery data is accessed by the data lake system, and the multi-source battery data is processed to obtain a multi-dimensional knowledge graph, including at least one of the following:

[0039] The multi-source battery data is accessed by the data access module and the data tables are integrated;

[0040] Specifically, the data access module integrates multi-source data, including data sources such as file systems, databases, and message queues. Based on the data integration ability, the task data can be quickly accessed into the data lake. The accessed data includes offline data (data before yesterday, such as MySQL data, MySQL is a widely used open-source relational database management system (RDBMS)) and real-time data (data of the current day, by synchronizing Binlog (Binary Log), that is, binary log, which is an important log file in the database system for recording changes in the data in the database, including operations such as data insertion, update, and deletion). The accessed data is integrated to generate tables, such as generating Table A and Table B.

[0041] Define the concepts of multi-source battery data based on the battery swapping knowledge point module;

[0042] For example, the battery swapping knowledge point module defines concepts related to the battery swapping field, such as PPM (Parts Per Million).

[0043] Based on the battery replacement query interaction instruction, establish the relationship between data tables through the task management module;

[0044] For example, the task management module establishes the connection between data tables based on the user's application request, such as A + B → C can be established according to the user request.

[0045] Manage the multi-source battery data based on the quality management module and the indicator management module;

[0046] For example, the quality management module establishes corresponding constraints based on rules to manage the multi-source battery data; the indicator management module maintains the consistency of the multi-source battery data, such as maintaining the consistency of the order volume of orders and the quantity of coupons.

[0047] Record the association relationship between multi-source battery data based on the data lineage module;

[0048] For example, the data lineage module records the source, destination, process of the data, and the relationship between the data.

[0049] Based on the data governance module, set the lifecycle of multi-source battery data.

[0050] For example, the data governance module sets the lifecycle for multi-source battery data, such as data offlining and the like.

[0051] Exemplarily, the multi-dimensional knowledge graph includes nodes and the association relationships between the nodes. The nodes include at least one of battery entity nodes, swap stations nodes, user nodes, battery replacement auxiliary equipment nodes, and environment nodes.

[0052] For example, establish a five-dimensional knowledge graph model exclusive to the battery swapping business (battery entity - swap station - user - equipment - environment) to achieve an intelligent mapping from business terms to data patterns. The five-dimensional knowledge graph is established based on the tasks submitted by users to the task management module and the relationships between the data tables provided by the data lineage module. The quality management module, the metric management module, and the data governance module can manage or process the relevant data before the establishment of the five-dimensional knowledge graph, and can also manage or process the relevant data after the establishment of the five-dimensional knowledge graph. Among them, the user can be a battery swapping user, an operator, or a developer. The battery replacement auxiliary equipment includes, for example, electricity meters, cameras, sensors inside the battery, robotic arms, etc. in the swap station. The environment includes, for example, seasons, temperature, holiday information, which will affect the frequency of battery swapping.

[0053] In the above embodiments, the data access module accesses multi-source battery data and integrates data tables, which can integrate the battery data scattered from different sources and break data islands; the battery swapping knowledge point module defines the concepts of multi-source battery data, which helps to build a knowledge system about the battery swapping business. By clarifying the meaning and concepts of the data, the data is made easier to understand and interpret. The quality management module and the metric management module manage the multi-source battery data, which can ensure the quality characteristics such as the accuracy, integrity, and consistency of the data; the data lineage module records the association relationships between multi-source battery data, making the source, processing process, and flow path of the data traceable, which is of great significance in aspects such as data auditing, problem troubleshooting, and compliance management; the data governance module sets the lifecycle of multi-source battery data, which helps to reasonably plan stages such as data storage, use, and abandonment. By managing the data lifecycle, the utilization of data storage resources can be optimized, the data storage cost can be reduced, and at the same time, it can ensure that the data is properly processed and protected at different stages, improving the security and compliance of the data. Through the collaborative work of the above-mentioned various modules, a multi-dimensional knowledge graph can finally be obtained. The knowledge graph graphically displays the complex relationships and knowledge structures between the data, providing users with a more intuitive and comprehensive data analysis perspective, helping users quickly obtain key information, discover the hidden value in the data, and thus make more informed business decisions.

[0054] The battery replacement query interaction system proposed in this application belongs to the field of big data analysis and intelligent interaction technology. In addition to traditional capabilities such as BI reports, self-service data extraction, and API services, it also incorporates an intelligent data analysis solution for battery replacement business data that combines intelligent question answering (NL2SQL) technology with a domain knowledge graph. This system can facilitate data management, quickly access any large model, and has a high accuracy rate. The measured accuracy rate can reach 80%+; it has added indicator management and battery replacement knowledge point management, which can supplement more knowledge points for intelligent question answering, improving the intelligent question answering query construction efficiency by more than 60% (compared with writing traditional SQL (Structured Query Language)), increasing the self-service analysis ratio of non-technical personnel to 85%, and achieving an NL2SQL conversion accuracy rate of 80%+ through the domain knowledge graph (only 60% for general tools).

[0055] The data lake system includes a metadata management module and an access control module; when receiving a battery replacement query interaction instruction from a data application, it queries multi-source battery data based on a multi-dimensional knowledge graph to obtain a data query result, including: when receiving a battery replacement query interaction instruction from a data application, parsing the battery replacement query interaction instruction to obtain a parsing result; based on the parsing result and the multi-dimensional knowledge graph, determining the multi-source battery data to be queried; when it is determined that there is access permission based on the access control module, locating the storage location of the multi-source battery data through the metadata management module and extracting data from the storage location to obtain a data query result.

[0056] Specifically, the data lake system also includes a metadata management module, an access control module, and a storage module. The metadata management module collects metadata information such as table structures, field types, and data sources from different data sources inside and outside the data lake system, such as file systems, databases, and message queues, and centrally stores the collected metadata in a specific repository to provide a convenient metadata query and retrieval function. Users can quickly find the metadata information of the data they need according to conditions such as name, attribute, and business terms, improving the data discovery efficiency. The access control module sets access permissions for users to restrict access to sensitive data. The storage module (centralized storage) is responsible for storing relevant data.

[0057] For example, the battery replacement query interaction instruction may include a user sending a request to a data application, where the request contains operation instructions to be executed and related parameters, such as obtaining data for certain regions within a specific time period from an order database. When the data lake system receives the instruction initiated from the data application side, it parses the above instruction to obtain multi-source battery data (data table information) related to the instruction. When it is determined by the access control module that the user has access rights, it queries the relevant data in the storage module through the metadata management module and returns the data query result to the data application side.

[0058] The battery replacement query interaction instruction includes at least one of a real-time instruction and a batch instruction; in the case of receiving a battery replacement query interaction instruction from a data application, multi-source battery data is queried based on a multi-dimensional knowledge graph to obtain a data query result, including:

[0059] When the battery replacement query interaction instruction is a real-time instruction, multi-source battery data is queried based on a stream processing method according to the multi-dimensional knowledge graph to obtain a data query result;

[0060] When the battery replacement query interaction instruction is a batch instruction, multi-source battery data is queried based on a batch processing method according to the multi-dimensional knowledge graph to obtain a data query result;

[0061] When the battery replacement query interaction instruction includes both a real-time instruction and a batch instruction, multi-source battery data is queried based on an interactive query method according to the multi-dimensional knowledge graph to obtain a data query result.

[0062] Exemplarily, data processing uses a stream-batch integrated mode (such as Figure 2 stream processing, batch processing, and cross-query in a computing engine), stores all data centrally, and can seamlessly switch from offline data to real-time data downstream through capabilities such as external tables and views. Stream data and batch data can be easily cross-query without considering the underlying architecture, with a unified data interface, and all data is queried through a set of SQL standards.

[0063] The battery replacement query interaction instruction is a real-time instruction: for example, when a vehicle owner performs a battery swapping operation, battery swapping transaction data (orders, users, payments, etc.) will be generated in real time. The stream processing system captures these transaction data in real time. On the one hand, it records each battery swapping transaction information for subsequent account reconciliation and transaction statistics; on the other hand, it analyzes the transaction data in real time. If it is found that a user has abnormal high-frequency battery swapping operations within a short period of time, or there are multiple payment failures in the payment link and other abnormal situations, risk warnings are immediately issued to prevent fraud.

[0064] The battery replacement query interaction instruction is a batch instruction: for example, every night, the operation data (inventory, equipment status, etc.) of the battery replacement stations on that day is centrally collected. The batch processing system processes this data, counts the number of battery replacements on that day, the inventory changes of different models of batteries, analyzes the operation duration and failure times of the equipment, etc. Through the analysis, the operation efficiency of the battery replacement station on that day is evaluated, providing a basis for formulating subsequent equipment maintenance plans and adjusting inventory management strategies. For example, at the end of each month, the user behavior data (replacement frequency, preferences, etc.) within a month is collected. The batch processing system conducts in-depth analysis on this data, such as counting the average replacement frequency of users in different regions, analyzing the replacement preferences of users at different time periods (weekdays, weekends), and the replacement habits of users of different vehicle models. Based on these analysis results, the battery replacement operator can optimize the layout of the battery replacement stations, adjust the service time, or launch targeted battery replacement service information.

[0065] The battery replacement query interaction instruction includes real-time instructions and batch instructions: both the streaming data generated in real time and the batch data stored historically are processed simultaneously in the same query. For example, real-time transaction data can be associated with historical customer information data for querying.

[0066] Based on the centralized storage capacity, multiple data application capabilities are connected downstream, including predefined BI report applications, self-service data extraction applications, intelligent data query applications, and API service applications.

[0067] Predefined BI reports: BI reports are relatively stable data application components in the field of data applications, with advantages such as being ready to use out of the box, good visualization, and performance optimization (speed can be improved through pre-aggregation), but they have poor flexibility, lag in iteration, and require report development in addition to data table development.

[0068] Self-service query: This method is more flexible, but has a higher technical threshold and is more suitable for professional developers or other business personnel with a SQL foundation.

[0069] Intelligent data query: Through the capabilities of large models, natural language can be converted into SQL for execution. This method has a low threshold, and everyone can obtain the data they want by asking questions. However, this method is affected by domain knowledge. The more domain knowledge is input, the higher the accuracy. But due to the complexity of the data, the accuracy (query accuracy) is not as good as that of BI reports and self-service queries.

[0070] The data application includes at least one of predefined BI report applications, self-service data extraction applications, intelligent data query applications, and API service applications; the data application generates battery replacement query interaction instructions through at least one of the following methods:

[0071] When receiving a report viewing request from a user through a predefined BI report application, generate a battery replacement query interaction instruction based on the configuration information of the report;

[0072] When receiving a selection request from a user through a self-service data extraction application, generate a battery replacement query interaction instruction based on the user's selection;

[0073] When receiving a query text from a user through an intelligent data query application, convert the query text into an SQL query statement through natural language processing as the battery replacement query interaction instruction;

[0074] When receiving an application request from a user through an API service application, generate a battery replacement query interaction instruction.

[0075] Specifically, when a user wants to view a certain predefined BI report, the BI tool will send a data request (battery replacement query interaction instruction) to the data lake system according to the configuration information of the report. The request will clearly specify information such as the type, range, and conditions of the required data.

[0076] In the self-service data extraction tool interface, the user clarifies the data content they need through operations such as selecting the data source, specifying the data range, and setting filtering conditions. For example, the user may choose to obtain product order data in certain regions during a specific time period from the order database.

[0077] The user poses a question to the intelligent data query system in natural language, such as "battery replacement transaction data in 2024". After receiving the question, the system parses the question, including lexical analysis, syntactic analysis, and semantic understanding, to determine the key information of the question, such as time, location, data metrics, entities, etc. According to the understanding of the question, the natural language question is converted into a corresponding data query statement.

[0078] The client (such as an application program, website, or other system) sends a request to the API server according to its own needs. The request contains operation instructions to be executed and related parameters, such as obtaining specific data, performing a certain calculation, or calling a specific business logic.

[0079] For the above data applications, the five-dimensional knowledge graph required by the predefined BI report application, self-service data extraction application, and API service application can be created in real-time based on task requirements during the query calculation process, while the five-dimensional knowledge graph required by the intelligent data query application can be created in advance based on the relationships between data before the query calculation.

[0080] The multi-source battery data includes at least one of battery status data, battery swapping transaction data, battery swapping station operation data, and user behavior data; and / or the multi-source battery data includes at least one of structured data and unstructured data; and / or the multi-source battery data is sourced from at least one of a database, a file system, and a message queue.

[0081] Specifically, the battery status data includes at least one of battery voltage, battery temperature, and battery health status; the battery swapping transaction data includes at least one of order data, user data, and payment data; the battery swapping station operation data includes at least one of battery inventory data and the status data of battery replacement auxiliary equipment; the user behavior data includes at least one of battery swapping frequency data and user preference data. Among them, the battery status data, the battery swapping transaction data, and the battery swapping station operation data are structured data, and the user behavior data is unstructured data (such as JSON format).

[0082] The vehicle battery replacement query interaction method and system based on the data lake system proposed in this application build a domain knowledge graph and establish a five-dimensional knowledge graph model (battery entity - battery swapping station - user - equipment - environment) exclusive to the battery swapping business to achieve an intelligent mapping from business terms to data patterns; all structured data and unstructured data are put into the lake to solve the data island problem. By establishing systems such as data lineage, index management platform, knowledge point management, and sample SQL library, the data lake system is managed; based on the stream-batch integrated execution framework and technical solutions such as views and external tables, unified query of real-time and offline data is achieved; using various data application capabilities such as predefined BI reports, self-service data extraction, and intelligent data query, the data usage cost is reduced, and the data query and usage thresholds of various background personnel can be well met. By maintaining more knowledge in the battery swapping field through the knowledge graph and system management capabilities, the accuracy of intelligent data query is significantly improved; through the stream-batch integrated capabilities, downstream data systems with higher timeliness can be switched without perception, and the data latency can reach <500ms. By introducing intelligent data query, the data application scenarios are enriched, and the data accessibility is greatly improved. Non-technical personnel can also conveniently use the data. When the predefined BI reports do not meet the data usage requirements, more flexible data query capabilities can be provided to users.

[0083] Figure 3 It is a block diagram of a vehicle battery replacement query interaction device provided in another embodiment of this application.

[0084] An embodiment of this specification provides a vehicle battery replacement query interaction device 300 based on a data lake system. Please refer to Figure 3 , the vehicle battery replacement query interaction device 300 based on the data lake system includes: a first acquisition module 310, a second acquisition module 320, and an output module 330.

[0085] Exemplarily, the first acquisition module 310 is configured to access multi-source battery data by the data lake system, and perform data processing on the multi-source battery data to obtain a multi-dimensional knowledge graph.

[0086] Exemplarily, the second acquisition module 320 is configured to, when receiving a battery replacement query interaction instruction from a data application, query the multi-source battery data based on the multi-dimensional knowledge graph to obtain a data query result.

[0087] Exemplarily, the output module 330 is configured to output the data query result to the data application.

[0088] It can be understood that the specific implementation process of the vehicle battery replacement query interaction device 300 based on the data lake system can refer to the implementation process of the vehicle battery replacement query interaction method based on the data lake system above, which will not be elaborated here.

[0089] Exemplarily, the data lake system includes a metadata management module and an access control module. The second acquisition module 320 is further configured to, when receiving a battery replacement query interaction instruction from a data application, parse the battery replacement query interaction instruction to obtain a parsing result; determine the multi-source battery data to be queried based on the parsing result and the multi-dimensional knowledge graph; and when it is determined that there is an access right based on the access control module, locate the storage location of the multi-source battery data through the metadata management module, and extract the data from the storage location to obtain a data query result.

[0090] Exemplarily, the battery replacement query interaction instruction includes at least one of a real-time instruction and a batch instruction. The second acquisition module 320 is further configured to, when the battery replacement query interaction instruction is a real-time instruction, query the multi-source battery data based on the multi-dimensional knowledge graph in a stream processing manner to obtain a data query result; when the battery replacement query interaction instruction is a batch instruction, query the multi-source battery data based on the multi-dimensional knowledge graph in a batch processing manner to obtain a data query result; and when the battery replacement query interaction instruction includes a real-time instruction and a batch instruction, query the multi-source battery data based on the multi-dimensional knowledge graph in an interactive query manner to obtain a data query result.

[0091] Exemplarily, the data lake system includes at least one of a data access module, a battery replacement knowledge point module, a task management module, a quality management module, an index management module, a data lineage module, and a data governance module. The first acquisition module 310 is further configured to access multi-source battery data by the data access module and integrate data tables; define the concepts of multi-source battery data based on the battery replacement knowledge point module; establish the relationships between data tables through the task management module based on the battery replacement query interaction instruction; manage the multi-source battery data based on the quality management module and the index management module; record the association relationships between multi-source battery data based on the data lineage module; and set the life cycle of the multi-source battery data based on the data governance module.

[0092] Exemplarily, the data applications include at least one of a predefined BI report application, a self-service data extraction application, an intelligent data query application, and an API service application. The second obtaining module 320 is further configured to generate a battery replacement query interaction instruction based on the configuration information of the report when receiving a report viewing request from a user through the predefined BI report application; generate a battery replacement query interaction instruction based on the user's selection content when receiving a selection request from the user through the self-service data extraction application; convert the query text into an SQL query statement as a battery replacement query interaction instruction through natural language processing when receiving the query text from the user through the intelligent data query application; and generate a battery replacement query interaction instruction when receiving an application request from the user through the API service application.

[0093] Exemplarily, the multi-source battery data includes at least one of battery status data, battery swapping transaction data, battery swapping station operation data, and user behavior data; and / or the multi-source battery data includes at least one of structured data and unstructured data; and / or the multi-source battery data is sourced from at least one of a database, a file system, and a message queue.

[0094] Exemplarily, the battery status data includes at least one of battery voltage, battery temperature, and battery health status; the battery swapping transaction data includes at least one of order data, user data, and payment data; the battery swapping station operation data includes at least one of battery inventory data and status data of battery replacement auxiliary equipment; and the user behavior data includes at least one of battery swapping frequency data and user preference data.

[0095] Exemplarily, the multi-dimensional knowledge graph includes nodes and the association relationships between the nodes. The nodes include at least one of battery entity nodes, battery swapping station nodes, user nodes, battery replacement auxiliary equipment nodes, and environment nodes.

[0096] Another embodiment of the present application provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the method according to any one of the above embodiments are implemented.

[0097] As Figure 4 This embodiment of the present application shows a specific electronic device 400 for ease of understanding.

[0098] The electronic device 400 is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0099] As Figure 4 shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0100] Multiple components in the electronic device 400 are connected to the I / O interface 405, and the multiple components include: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a magnetic disk, an optical disc, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0101] The computing unit 401 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 executes the various methods described above. For example, in some embodiments, any one or more of the above-mentioned various methods can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of any one or more of the various methods described above can be executed. Alternatively, in other embodiments, the computing unit 401 can be configured to execute any one or more of the above-mentioned various methods in any other suitable way (e.g., by means of firmware).

[0102] Another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method according to any one of the above embodiments are implemented.

[0103] It should be noted that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in combination with these instruction execution systems, apparatuses, or devices. For the purposes of this application, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in combination with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of the computer-readable medium include the following: an electrical connection part (electronic device) having one or more wirings, a portable computer disk cartridge (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which a program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or other suitable processing as necessary, and then stored in a computer memory.

[0104] It should be understood that various parts of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having suitable combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

[0105] In the description of the present application, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present application, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.

[0106] In the description of the present application, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings. They are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as a limitation on the present application.

[0107] In addition, the terms "first", "second", etc. used in the embodiments of the present application are only for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated in this embodiment. Thus, the features defined with the terms "first", "second", etc. in the embodiments of the present application may explicitly or implicitly indicate that at least one such feature is included in this embodiment. In the description of the present application, the meaning of the word "plurality" is at least two or more, such as two, three, four, etc., unless otherwise explicitly and specifically defined in the embodiment.

[0108] In the present application, unless otherwise explicitly specified or limited in the embodiments, the terms "mounted", "connected", "connected to" and "fixed" and the like appearing in the embodiments should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or integrated. It can be understood that it can also be a mechanical connection, an electrical connection, etc.; of course, it can also be directly connected, or indirectly connected through an intermediate medium, or it can be the communication inside two elements, or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific implementation situations.

[0109] In the present application, unless otherwise explicitly specified and limited, the first feature being "on" or "under" the second feature may be that the first and second features are in direct contact, or the first and second features are indirectly in contact through an intermediate medium. Moreover, the first feature being "above", "over" and "on top of" the second feature may be that the first feature is directly above or obliquely above the second feature, or merely indicates that the first feature has a higher horizontal height than the second feature. The first feature being "under", "beneath" and "underneath" the second feature may be that the first feature is directly below or obliquely below the second feature, or merely indicates that the first feature has a lower horizontal height than the second feature.

[0110] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.

Claims

1. A vehicle battery replacement query and interaction method based on a data lake system, characterized in that, The downstream of the data lake system accesses data applications, and the method includes: The data lake system accesses multi-source battery data and processes the multi-source battery data to obtain a multi-dimensional knowledge graph; When receiving a battery replacement query interaction instruction from the data application, query the multi-source battery data based on the multi-dimensional knowledge graph to obtain a data query result; Output the data query result to the data application.

2. The method according to claim 1, wherein The data lake system includes a metadata management module and an access control module; when receiving a battery replacement query interaction instruction from the data application, query the multi-source battery data based on the multi-dimensional knowledge graph to obtain a data query result, including: When receiving a battery replacement query interaction instruction from the data application, parse the battery replacement query interaction instruction to obtain a parsing result; Based on the parsing result and the multi-dimensional knowledge graph, determine the multi-source battery data to be queried; When it is determined that there is an access permission based on the access control module, locate the storage location of the multi-source battery data through the metadata management module and extract data from the storage location to obtain the data query result.

3. The method according to claim 2, wherein The battery replacement query interaction instruction includes at least one of a real-time instruction and a batch instruction; when receiving a battery replacement query interaction instruction from the data application, query the multi-source battery data based on the multi-dimensional knowledge graph to obtain a data query result, including: When the battery replacement query interaction instruction is a real-time instruction, query the multi-source battery data based on the multi-dimensional knowledge graph in a stream processing manner to obtain the data query result; When the battery replacement query interaction instruction is a batch instruction, query the multi-source battery data based on the multi-dimensional knowledge graph in a batch processing manner to obtain the data query result; When the battery replacement query interaction instruction includes a real-time instruction and a batch instruction, query the multi-source battery data based on the multi-dimensional knowledge graph in an interactive query manner to obtain the data query result.

4. The method according to any one of claims 1 to 3, characterized in that The data lake system includes at least one of a data access module, a battery replacement knowledge point module, a task management module, a quality management module, an index management module, a data lineage module, and a data governance module; the data lake system accesses multi-source battery data and processes the multi-source battery data to obtain a multi-dimensional knowledge graph, including at least one of the following: The data access module accesses the multi-source battery data and integrates data tables; Define the concept of the multi-source battery data based on the battery replacement knowledge point module; Based on the battery replacement query interaction instruction, establish the relationship between data tables through the task management module; Manage the multi-source battery data based on the quality management module and the index management module; Record the association relationship between the multi-source battery data based on the data lineage module; Set the life cycle of the multi-source battery data based on the data governance module.

5. The method according to any one of claims 1-3, characterized in that The data application includes at least one of a predefined BI report application, a self-service data extraction application, an intelligent question answering application, and an API service application; the data application generates the battery replacement query interaction instruction in at least one of the following manners: When receiving a report viewing request from the user through the predefined BI report application, generating the battery replacement query interaction instruction based on the configuration information of the report; When receiving a selection request from the user through the self-service data extraction application, generating the battery replacement query interaction instruction based on the user selection content; When receiving a query text from the user through the intelligent question answering application, converting the query text into an SQL query statement through natural language processing as the battery replacement query interaction instruction; When receiving an application request from the user through the API service application, generating the battery replacement query interaction instruction.

6. The method according to any one of claims 1-3, wherein The multi-source battery data includes at least one of battery status data, battery swapping transaction data, battery swapping station operation data, and user behavior data; and / or The multi-source battery data includes at least one of structured data and unstructured data; and / or The multi-source battery data is sourced from at least one of a database, a file system, and a message queue.

7. The method according to claim 6, wherein The battery status data includes at least one of battery voltage, battery temperature, and battery health status; the battery swapping transaction data includes at least one of order data, user data, and payment data; the battery swapping station operation data includes at least one of battery inventory data and the status data of battery replacement auxiliary equipment; the user behavior data includes at least one of battery swapping frequency data and user preference data.

8. The method according to any one of claims 1 to 3, characterized in that, The multi-dimensional knowledge graph includes nodes and the association relationships between the nodes, and the nodes include at least one of battery entity nodes, battery swapping station nodes, user nodes, battery replacement auxiliary equipment nodes, and environment nodes.

9. A vehicle battery replacement query interaction system, characterized in that, The battery replacement query interaction system includes a data lake system and a data application, and the data lake system is used to execute the method according to any one of claims 1-8.

10. A vehicle battery replacement query interaction device based on a data lake system, characterized in that, The data lake system is connected to the data application downstream, and the device includes: A first obtaining module, configured to access multi-source battery data by the data lake system, and perform data processing on the multi-source battery data to obtain a multi-dimensional knowledge graph; A second obtaining module, configured to query the multi-source battery data based on the multi-dimensional knowledge graph to obtain a data query result when receiving a battery replacement query interaction instruction from the data application; An output module, configured to output the data query result to the data application.

11. An electronic device, comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor implements the steps of the method according to any one of claims 1-8 when executing the computer program.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program implements the method according to any one of claims 1-8 when executed by the processor.