A question-answer prediction system and method based on time series data of the Internet of Things

By using large language models to process IoT time series data in the IoT time series data analysis system, and combining task instructions and annotation results, accurate prediction of the status of engineering machinery without task training is achieved, solving the problem of annotation in traditional methods. The problem of difficult data acquisition is improved by improving prediction accuracy and system flexibility.

CN118260403BActive Publication Date: 2024-09-27NANJING ZEAHO ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410461035.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2024-09-27
Estimated Expiration
2044-04-17

AI Technical Summary

Technical Problem

Traditional data analysis methods require a large amount of annotated data for model training, and the real-time and timeliness requirements of the time series data generated by IoT devices are difficult to meet, resulting in high cost and time-consuming acquisition of annotated data.

Method used

Design a question and answer prediction system based on IoT time series data, analyze IoT time series data through a large language model, and use task instructions, IoT data and annotation results to splice and synthesize sample data to achieve accurate prediction of the status of engineering machinery, including Data acquisition, preprocessing, sample data generation, question and answer prediction module, etc.

Benefits of technology

Without task training, large language models are used to process IoT time series data, which reduces dependence on annotated data, improves prediction accuracy and system flexibility, and is suitable for a variety of IoT application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118260403B
    Figure CN118260403B
Patent Text Reader

Abstract

The present invention discloses a question-answer prediction system and method based on IoT time series data, and relates to the field of artificial intelligence technology. A large language model is used to process IoT time series data without task training, and task instructions, IoT data, and annotation results are spliced ​​to synthesize sample data as the "example" part in the prompt, so that the large language model can directly analyze the new IoT data based on the example to complete the task. The present invention does not need to design a token separately for IoT data, but directly turns IoT data into readable text, which reduces the complexity of data processing, does not rely on multimodal alignment, and improves the flexibility and scalability of the system; does not require a large amount of task training, and reduces dependence on annotated data; by introducing expert systems and knowledge graphs, more sample data are provided, and suggestions for manual analysis methods are given, so that the prediction results are more accurate and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a question-answering prediction system and method based on Internet of Things time series data. Background Art

[0002] With the continuous evolution of IoT technology, the time series data generated by IoT devices is not only huge in quantity, but also extremely valuable. Especially in the industrial field, these time series data can reveal the operating status, performance changes and possible failures of mechanical equipment. For factories and enterprises, being able to accurately and quickly identify the working status and maintenance needs of machinery means being able to reduce downtime, improve production efficiency and reduce maintenance costs.

[0003] Traditional data analysis methods, such as machine learning or deep learning, often require a large amount of labeled data to train the model. However, labeling data requires human participation, which not only increases costs but also may introduce human errors. Secondly, the data generated by IoT devices are often real-time and continuous, which requires that the labeling work be carried out in real time, which is very difficult in actual operation. In addition, since the operating environment and status of the device may change at any time, the timeliness of the labeled data is also an issue that needs to be considered. In practical applications, the acquisition of labeled data is often costly and time-consuming. Therefore, how to analyze IoT time series data using limited labeled data without task training has become a challenging problem. Summary of the invention

[0004] In view of the problems of labeling data acquisition and model training in pattern recognition of IoT time series data, the present invention proposes a question-answering prediction system and method based on IoT time series data. Without task training, the IoT time series data is analyzed using a large language model, and the task instructions, IoT data and labeling results are spliced ​​into example data to achieve accurate prediction of the status of construction machinery.

[0005] In order to achieve the above object, the present invention is implemented by the following technical solutions:

[0006] A question-answer prediction system based on time series data of the Internet of Things, the system comprising:

[0007] The data acquisition module is used to obtain time series data collected by multiple different types of sensors under the Internet of Things;

[0008] The data processing module is used to preprocess, align, vectorize and textualize the acquired time series data to generate IoT data in a unified data form;

[0009] The sample data generation module is used to manually annotate the analysis results of IoT data, and to combine task instructions, IoT data, and annotation results into sample data as input for the large language model.

[0010] A task input module is used to obtain a prompt input by a user through a visual interface or an API interface, wherein the prompt includes at least two sets of sample data, data to be predicted, and a task description, wherein the data to be predicted is specifically IoT data in a unified data format generated by a data processing module;

[0011] The question-answer prediction module is used to perform context learning on the example data through a large language model, identify the data to be predicted according to the task description, generate a prediction result and output it.

[0012] As a preferred solution of the present invention, the data processing module includes:

[0013] A preprocessing unit, used for cleaning the time series data and processing outliers;

[0014] The alignment unit is used to align the preprocessed time series data according to the time window. Specifically, the time series data of N consecutive time windows in the sensor are collected according to the project requirements, and the time series data collected by each sensor in the same time window are aggregated according to the "second average". The second average is used as the value recorded by the sensor in the time window. Each time window contains M values, and each value corresponds to a sensor.

[0015] The vectorization unit is used to merge the aligned time series data into tuples for vectorization representation. Each tuple corresponds to a time window, that is, each tuple contains M ordered values.

[0016] The text unit is used to organize the time series data after vectorization processing into text form and generate IoT data in a unified data form.

[0017] As a preferred solution of the present invention, the data processing module further includes a discretization unit for performing numerical discretization processing to convert each numerical value in each tuple into a fixed text length, and the formula is:

[0018] Discrete value D=round(log(sensor acquisition value / resolution) / log(sensor maximum value / resolution)*maximum dimension value).

[0019] As a preferred solution of the present invention, the question-answer prediction module includes:

[0020] The context learning module is used to capture the semantic information and contextual relationships in the input sample data using a large language model, and learn the patterns and regularities of the data;

[0021] The data recognition module is used to utilize the semantic understanding and entity recognition capabilities of the large language model to parse and classify the data to be predicted, extract key information, and identify the data to be predicted according to the task description, including identifying the type, attributes, and time series characteristics of the data to be predicted, as well as understanding the specific requirements in the task description;

[0022] The prediction generation module is used to generate prediction results that meet the task description based on the results of context learning and data recognition, using the generation capabilities of the large language model;

[0023] The result optimization module performs post-processing and optimization on the generated prediction results, including using natural language processing technology to polish the prediction results and correct grammatical errors, or performing specified formatting on the prediction results according to task requirements;

[0024] The feedback and iteration module is used to establish a feedback mechanism to receive user feedback on the prediction results and use the feedback to optimize the large language model.

[0025] As a preferred solution of the present invention, the question-answer prediction module is further integrated with an expert system and a knowledge graph, and performs distributed storage, so as to optimize the generated prediction results and give method suggestions for manual analysis, wherein the expert system includes an inference engine, a case base management system and an explanation module;

[0026] The inference engine is a program for implementing expert reasoning; the case library management system is used to build a case library based on historical IoT data and corresponding question-answer prediction results, and continuously update and maintain the content of the case library; the explanation module is used to explain the behavior and results of the expert system to the user;

[0027] The knowledge graph uses a large language model as the main network structure, combines the attention mechanism to calculate the weight of each entity, predicts the probability distribution of entity-relationship triples, performs entity recognition and relationship classification, realizes entity-relationship joint extraction, and verifies the constructed knowledge graph through manual inspection or expert system.

[0028] As a preferred solution of the present invention, the example data also includes sensor information and a method for manually observing data, and the sensor information includes the number of sensors and the function, model and specification corresponding to each sensor.

[0029] A question-answer prediction method based on Internet of Things time series data, the method comprising:

[0030] Obtain time series data collected by multiple different types of sensors in the Internet of Things;

[0031] Preprocess, align, vectorize and text-process the acquired time series data to generate IoT data in a unified data format;

[0032] Manually annotate the analysis results of IoT data, and combine task instructions, IoT data, and annotated results into sample data as input for the large language model.

[0033] Obtain the prompt input by the user, perform context learning on the sample data through the large language model, use the large language model to capture the semantic information and contextual relationship in the sample data, and learn the patterns and rules of the data;

[0034] Utilize the semantic understanding and entity recognition capabilities of the large language model to parse and classify the data to be predicted, extract key information, and perform data recognition based on the prompt input by the user;

[0035] Based on the results of context learning and data recognition, the generation capability of the large language model is utilized to generate and output prediction results that meet the task description.

[0036] As a preferred solution of the present invention, the prompt includes at least two groups of example data, data to be predicted and a task description, wherein the data to be predicted is specifically IoT data in a unified data form generated by a data processing module.

[0037] As a preferred solution of the present invention, the preprocessing, alignment, vectorization and text processing of the acquired time series data specifically include:

[0038] Cleaning and outlier processing of the time series data;

[0039] Align the preprocessed time series data according to the time window. Specifically, collect the time series data of N consecutive time windows in the sensor according to the project requirements, aggregate the time series data collected by each sensor in the same time window according to the "second average", and use the second average as the value recorded by the sensor in the time window. Each time window contains M values, and each value corresponds to a sensor.

[0040] The aligned time series data are merged into tuples for vectorized representation. Each tuple corresponds to a time window, that is, each tuple contains M ordered values.

[0041] Perform numerical discretization and convert each value in each tuple into a fixed text length. The formula is:

[0042] Discrete value D = round (log (sensor acquisition value / resolution) / log (sensor maximum value / resolution) * dimension maximum value);

[0043] Organize the time series data after vectorization or discretization into text form to generate IoT data in a unified data form.

[0044] As a preferred embodiment of the present invention, the method also includes verifying and adjusting the generated prediction results through an expert system and a knowledge graph, polishing the prediction results and correcting grammatical errors using natural language processing technology, or performing specified formatting processing on the prediction results according to task requirements.

[0045] Compared with the prior art, the beneficial effects of the present invention are: using a large language model to process IoT time series data without task training, splicing task instructions, IoT data and annotation results into sample data as the "example" part in the prompt, allowing the large language model to directly analyze new IoT data based on the example to complete the task instructions.

[0046] Using a large language model to process IoT time series data can help us understand the causes of the data and identify new states that have never been encountered. After reasonable sampling, the time series data can be expressed in a small amount of text. Therefore, the time series data added to the large language model adopts a standard text data structure. There is no need to design tokens separately for IoT data. IoT data can be directly converted into readable text, which reduces the complexity of data processing, does not rely on multimodal alignment, and improves the flexibility and scalability of the system. It does not require a large amount of task training, reducing the dependence on labeled data. The context learning ability of the large language model is used to improve the accuracy of the prediction. By introducing expert systems and knowledge graphs, more example data is provided, and suggestions for manual analysis methods are given to make the prediction results more accurate and efficient. It is suitable for a variety of IoT application scenarios and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0048] Figure 1 It is a system modular structure diagram of the present invention;

[0049] Figure 2 This is a structural diagram of a data processing module according to an embodiment of the present invention;

[0050] Figure 3 This is a structural diagram of a question-answer prediction module according to an embodiment of the present invention;

[0051] Figure 4This is an example diagram of a question-and-answer interface in an embodiment of the present invention;

[0052] Figure 5 The present invention is a flow chart of the method. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.

[0054] like Figure 1-Figure 3 As shown, an embodiment of the present invention provides a question and answer prediction system based on IoT time series data, including a data acquisition module, a data processing module, an example data generation module, a task input module and a question and answer prediction module.

[0055] The data acquisition module is used to obtain time series data collected by multiple different types of sensors under the Internet of Things;

[0056] The data processing module is used to preprocess, align, vectorize and textualize the acquired time series data to generate IoT data in a unified data form;

[0057] In one of the embodiments, the data processing module includes a preprocessing unit, an alignment unit, a vectorization unit, and a textualization unit;

[0058] The preprocessing unit is used to clean the collected time series data and process outliers;

[0059] The alignment unit is used to align the preprocessed time series data according to the time window. Specifically, the time series data of N consecutive time windows in the sensor are collected according to the project requirements, and the time series data collected by each sensor in the same time window are aggregated according to the "second average". The second average is used as the value recorded by the sensor in the time window. Each time window contains M values, and each value corresponds to a sensor.

[0060] For example: collect sampling values ​​of three sensors for 10 consecutive seconds. Among them, the pressure sensor samples two values ​​in the time window of 14:23:05: the sampling value at 14:23:05.247 is 533, and the sampling value at 14:23:05.821 is 535. Then take the average value of this time window 534 as the second average value of 14:23:05. After aligning the data of each dimension, you can sample IoT time series data of N consecutive time windows as required, with M values ​​in each time window;

[0061] The time series data after alignment according to the time window is:

[0062] Three axes: 3.2, 2.0, 2.5, 4.3, 2.3, 2.1, 2.2…

[0063] Spectrum: 2.2, 1.8, 1.5, 1.3, 1.1, 0.9, 0.6…

[0064] Pressure: 549, 547, 543, 541, 539, 536, 533…

[0065] The vectorization unit is used to merge the aligned time series data into tuples for vectorization representation. Each tuple corresponds to a time window, that is, each tuple contains M ordered values.

[0066] For example, vectorize time series data into the following text format:

[0067] [(3.2,2.2,549), (2.0,1.8,547), (2.5,1.5,543), (4.3,1.3,541), (2.3,1.1,539), (2.1,0.9,536), (2.2,0.6,533)…]

[0068] The purpose of vectorized representation is to adapt the data structure of the unidirectional autoregressive prediction model of the large language model.

[0069] Optionally, the data processing module further includes a discretization unit for performing numerical discretization processing to convert each numerical value in each tuple into a fixed text length; the formula is:

[0070] Discrete value D = round (log (sensor acquisition value / resolution) / log (sensor maximum value / resolution) * dimension maximum value);

[0071] For example, a fixed 4-digit effective digit is rounded off. For dimensions where the last few digits of integers are all 0 or the first few digits of decimals are all 0, normalization scaling is required to reduce unnecessary "0" and ensure that each number does not exceed 6 digits of the text. Different scaling "normalization" can be used for values ​​of different sensors. If the sensor is approximately linear, the value of the dimension can be reduced or enlarged by several powers of 10. If the sensor is more nonlinear, the value of the dimension can be logarithmic.

[0072] The discretization unit is an optional unit, which is mainly used to ensure the readability of time series data after text conversion to match the reading comprehension ability of large language models. If the sampled values ​​of the sensor are within a simple and easy-to-read numerical range, no special discretization is required.

[0073] The text unit is used to organize the time series data after vectorization into text form and generate IoT data in a unified data form;

[0074] The sample data generation module is used to manually annotate the analysis results of IoT data, and combine task instructions, IoT data, and annotation results to form sample data as input for the large language model.

[0075] For example, one of the sample data is:

[0076] Please infer the state of the construction machinery (running, idling, stationary, driving, etc.) based on the time series data collected by the sensors on the construction machinery.

[0077] IoT data: [(3.2,2.2,549), (2.0,1.8,547), (2.5,1.5,543), (4.3,1.3,541), (2.3,1.1,539), (2.1,0.9,536), (2.2,0.6,533)…]

[0078] Mechanical status: Working

[0079] The task input module is used to obtain the user input prompt through the visual interface or API interface;

[0080] The "prompt" in the large language model refers to the input text or instructions provided by the user to the model to guide the model to generate a specific type of response. This prompt can be a question, a description, a task instruction, or even a part of the conversation history. By designing and optimizing the prompt, the model can be guided to generate expected responses or complete specific tasks;

[0081] In this embodiment, the prompt includes at least two groups of example data, data to be predicted and a task description, wherein the data to be predicted is specifically IoT data in a unified data format generated by a data processing module;

[0082] The question-answer prediction module is used to perform contextual learning on example data through a large language model, identify the data to be predicted according to the task description, generate prediction results and output them.

[0083] like Figure 4 As shown, the prompt for user input is:

[0084] Please infer the state of the construction machinery (running, total speed, stationary, driving, etc.) based on the time series data collected by the sensors installed on the construction machinery.

[0085] IoT data: [(3.2,2.2,549), (2.0,1.8,547), (2.5,1.5,543), (4.3,1.3,541), (2.3,1.1,539), (2.1,0.9,536), (2.2,0.6,533)...] Mechanical status: Working

[0086] IoT data: [(0.1,1,549), (0.1,1,547), (0.2,1,543), (0.3,1,541), (0.1,1.1,539), (0.2,1.0,536), (0.2,1.0,533)] Mechanical state: stationary

[0087] IoT data: [(3.8,3.0,549), (3.3,2.5,547), (2.5,2.3,543), (3.6,2.5,541), (3.0,1.9,539), (2.8,1.7,536), (2.5,1.6,533)] Please guess the mechanical state

[0088] The prediction results obtained by the question-answer prediction system of the present invention are shown as follows:

[0089] Based on the given data, we can observe the following patterns:

[0090] When the mechanical state is "working", the first element of the data is usually large (greater than 2.0);

[0091] When the mechanical state is "stationary", the first element of the data is usually small (less than 0.5).

[0092] Now, let's look at the data we need to infer:

[0093] [(3.8,3.0,549), (3.3,2.5,547), (2.5,2.3,543), (3.6,2.5,541), (3.0,1.9,539), (2.8,1.7,536), (2.5,1.6,533)]

[0094] The first element of this set of data is greater than 2.0, which conforms to the data pattern of the "working" state. Therefore, we can infer that the mechanical state of this set of data is "working".

[0095] Please note that due to the lack of sample data for other states (such as "Running", "Idle", "Driving", etc.), we cannot accurately estimate these states. If you can provide more sample data under different mechanical states, we may be able to make a more accurate estimate.

[0096] In a specific embodiment, the question-answer prediction module includes:

[0097] The context learning module is used to capture the semantic information and contextual relationships in the input sample data using a large language model, and learn the patterns and regularities of the data;

[0098] The data recognition module is used to utilize the semantic understanding and entity recognition capabilities of the large language model to parse and classify the data to be predicted, extract key information, and identify the data to be predicted according to the task description, including identifying the type, attributes, and time series characteristics of the data to be predicted, as well as understanding the specific requirements in the task description;

[0099] The prediction generation module is used to generate prediction results that meet the task description based on the results of context learning and data recognition, using the generation capabilities of the large language model;

[0100] The result optimization module performs post-processing and optimization on the generated prediction results, including using natural language processing technology to polish the prediction results and correct grammatical errors, or performing specified formatting on the prediction results according to task requirements;

[0101] The feedback and iteration module is used to establish a feedback mechanism to receive user feedback on the prediction results and use the feedback to optimize the large language model.

[0102] Furthermore, we provide more annotated data examples and give suggestions for manual analysis methods to make the inference of the large language model more accurate and efficient. Therefore, the question-answer prediction module also integrates an expert system and a knowledge graph, and performs distributed storage to optimize the generated prediction results and give suggestions for manual analysis methods. The expert system includes an inference engine, a case library management system, and an explanation module.

[0103] The inference engine is a program used to implement expert reasoning; the case library management system is used to build a case library based on historical IoT data and corresponding question-answer prediction results, and continuously update and maintain the content of the case library; the explanation module is used to explain the behavior and results of the expert system to the user;

[0104] The knowledge graph uses a large language model as the main network structure, combines it with the attention mechanism to calculate the weight of each entity, predict the probability distribution of entity-relationship triples, perform entity recognition and relationship classification, realize entity-relationship joint extraction, and verify the constructed knowledge graph through manual inspection or expert system.

[0105] Furthermore, the example data can further explain how many sensors there are, the function, model, and specifications of each sensor, and provide some methods for human experts to observe the data, such as "from the time series data, it can be seen that the oil level data collected by the oil level sensor is decreasing at a faster rate, which may be a sign that the machine is in working condition."

[0106] like Figure 5 As shown in FIG. 1 , another embodiment of the present invention provides a question-answer prediction method based on IoT time series data, comprising the following steps:

[0107] S1: Obtain time series data collected by multiple different types of sensors in the Internet of Things;

[0108] S2: Preprocess, align, vectorize and textualize the acquired time series data to generate IoT data in a unified data format, including:

[0109] Clean time series data and process outliers;

[0110] Align the preprocessed time series data according to the time window. Specifically, collect the time series data of N consecutive time windows in the sensor according to the project requirements, aggregate the time series data collected by each sensor in the same time window according to the "second average", and use the second average as the value recorded by the sensor in the time window. Each time window contains M values, and each value corresponds to a sensor.

[0111] The aligned time series data are merged into tuples for vectorized representation. Each tuple corresponds to a time window, that is, each tuple contains M ordered values.

[0112] Perform numerical discretization and convert each value in each tuple into a fixed text length. The formula is:

[0113] Discrete value D = round (log (sensor acquisition value / resolution) / log (sensor maximum value / resolution) * dimension maximum value);

[0114] Organize the time series data after vectorization or discretization into text form to generate IoT data in a unified data form;

[0115] S3: Manually annotate the analysis results of IoT data, and combine task instructions, IoT data, and annotated results into sample data as input for the large language model.

[0116] S4: Get the prompt input by the user, perform contextual learning on the sample data through the large language model, use the large language model to capture the semantic information and contextual relationships in the sample data, and learn the patterns and rules of the data;

[0117] The prompt includes at least two sets of sample data, data to be predicted and a task description, wherein the data to be predicted is specifically IoT data in a unified data form generated by a data processing module.

[0118] S5: Utilize the semantic understanding and entity recognition capabilities of the large language model to parse and classify the data to be predicted, extract key information, and perform data recognition based on the prompt input by the user;

[0119] S6: Based on the results of context learning and data recognition, the generation capability of the large language model is utilized to generate and output prediction results that meet the task description.

[0120] Furthermore, the generated prediction results are verified and adjusted through expert systems and knowledge graphs, and natural language processing technology is used to polish and correct grammatical errors in the prediction results, or the prediction results are formatted as specified according to task requirements.

[0121] In summary, the present invention uses a large language model to process IoT time series data without performing task training, splices task instructions, IoT data and annotation results into sample data as the "example" part in the prompt, and allows the large language model to directly analyze the new IoT data based on the example to complete the task instructions.

[0122] Using a large language model to process IoT time series data can help us understand the causes of the data and identify new states that have never been encountered. After reasonable sampling, the time series data can be expressed in a small amount of text. Therefore, the time series data added to the large language model adopts a standard text data structure. There is no need to design tokens separately for IoT data. IoT data can be directly converted into readable text, which reduces the complexity of data processing, does not rely on multimodal alignment, and improves the flexibility and scalability of the system. It does not require a large amount of task training, reducing the dependence on labeled data. The context learning ability of the large language model is used to improve the accuracy of the prediction. By introducing expert systems and knowledge graphs, more example data is provided, and suggestions for manual analysis methods are given to make the prediction results more accurate and efficient. It is suitable for a variety of IoT application scenarios and has broad application prospects.

[0123] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0124] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.

[0125] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A question-answer prediction system based on IoT time series data, characterized in that: The system comprises: The data acquisition module is used to obtain time series data collected by multiple different types of sensors under the Internet of Things; The data processing module is used to preprocess, align, vectorize and textualize the acquired time series data to generate IoT data in a unified data form; The sample data generation module is used to manually annotate the analysis results of IoT data, and to combine task instructions, IoT data, and annotation results into sample data as input for the large language model. A task input module is used to obtain a prompt input by a user through a visual interface or an API interface, wherein the prompt includes at least two sets of sample data, data to be predicted, and a task description, wherein the data to be predicted is specifically IoT data in a unified data format generated by a data processing module; A question-answer prediction module, used to perform context learning on the sample data through a large language model, identify the data to be predicted according to the task description, generate a prediction result and output it; The data processing module comprises: A preprocessing unit, used for cleaning the time series data and processing outliers; The alignment unit is used to align the preprocessed time series data according to the time window. Specifically, the time series data of N consecutive time windows in the sensor are collected according to the project requirements, and the time series data collected by each sensor in the same time window are aggregated according to the "second average". The second average is used as the value recorded by the sensor in the time window. Each time window contains M values, and each value corresponds to a sensor. The vectorization unit is used to merge the aligned time series data into tuples for vectorization representation. Each tuple corresponds to a time window, that is, each tuple contains M ordered values. The text unit is used to organize the time series data after vectorization into text form and generate IoT data in a unified data form; The discretization unit is used to perform numerical discretization processing, converting each value in each tuple into a fixed text length. The formula is: Discrete value D=round(log(sensor acquisition value / resolution) / log(sensor maximum value / resolution)*maximum dimension value).

2. According to claim 1, a question-answer prediction system based on IoT time series data is characterized in that: The question-answer prediction module comprises: The context learning module is used to capture the semantic information and contextual relationships in the input sample data using a large language model, and learn the patterns and regularities of the data; The data recognition module is used to utilize the semantic understanding and entity recognition capabilities of the large language model to parse and classify the data to be predicted, extract key information, and identify the data to be predicted according to the task description, including identifying the type, attributes, and time series characteristics of the data to be predicted, as well as understanding the specific requirements in the task description; The prediction generation module is used to generate prediction results that meet the task description based on the results of context learning and data recognition, using the generation capabilities of the large language model; The result optimization module performs post-processing and optimization on the generated prediction results, including using natural language processing technology to polish the prediction results and correct grammatical errors, or performing specified formatting on the prediction results according to task requirements; The feedback and iteration module is used to establish a feedback mechanism to receive user feedback on the prediction results and use the feedback to optimize the large language model.

3. According to claim 2, a question-answer prediction system based on IoT time series data is characterized in that: The question-answer prediction module is also integrated with an expert system and a knowledge graph, and performs distributed storage, for optimizing the generated prediction results and providing method suggestions for manual analysis. The expert system includes an inference engine, a case library management system, and an explanation module; The inference engine is a program for implementing expert reasoning; the case library management system is used to build a case library based on historical IoT data and corresponding question-answer prediction results, and continuously update and maintain the content of the case library; The explanation module is used to explain the behavior and results of the expert system to the user; The knowledge graph uses a large language model as the main network structure, combines the attention mechanism to calculate the weight of each entity, predicts the probability distribution of entity-relationship triples, performs entity recognition and relationship classification, realizes entity-relationship joint extraction, and verifies the constructed knowledge graph through manual inspection or expert system.

4. According to claim 3, a question-answer prediction system based on IoT time series data is characterized in that: The example data also includes sensor information and a method for manually observing data. The sensor information includes the number of sensors and the function, model and specification of each sensor.

5. A question-answer prediction method based on IoT time series data, characterized in that: The method comprises: Obtain time series data collected by multiple different types of sensors in the Internet of Things; The acquired time series data is preprocessed, aligned, vectorized and text-processed to generate IoT data in a unified data format, including: Cleaning and outlier processing of the time series data; Align the preprocessed time series data according to the time window. Specifically, collect the time series data of N consecutive time windows in the sensor according to the project requirements, aggregate the time series data collected by each sensor in the same time window according to the "second average", and use the second average as the value recorded by the sensor in the time window. Each time window contains M values, and each value corresponds to a sensor. The aligned time series data are merged into tuples for vectorized representation. Each tuple corresponds to a time window, that is, each tuple contains M ordered values. Perform numerical discretization and convert each value in each tuple into a fixed text length. The formula is: Discrete value D = round (log (sensor acquisition value / resolution) / log (sensor maximum value / resolution) * dimension maximum value); Organize the time series data after vectorization or discretization into text form to generate IoT data in a unified data form; Manually annotate the analysis results of IoT data, and combine task instructions, IoT data, and annotated results into sample data as input for the large language model. Obtain the prompt input by the user, perform context learning on the sample data through the large language model, use the large language model to capture the semantic information and contextual relationship in the sample data, and learn the patterns and rules of the data; Utilize the semantic understanding and entity recognition capabilities of the large language model to parse and classify the data to be predicted, extract key information, and perform data recognition based on the prompt input by the user; Based on the results of context learning and data recognition, the generation capability of the large language model is utilized to generate and output prediction results that meet the task description.

6. According to claim 5, a question-answer prediction method based on IoT time series data is characterized in that: The prompt includes at least two groups of example data, data to be predicted and a task description, wherein the data to be predicted is specifically IoT data in a unified data format generated by a data processing module.

7. The question-answer prediction method based on IoT time series data according to claim 5, characterized in that: The method also includes verifying and adjusting the generated prediction results through an expert system and a knowledge graph, polishing the prediction results and correcting grammatical errors using natural language processing technology, or performing specified formatting processing on the prediction results according to task requirements.