Near real-time situation prediction method and device based on multi-task learning
The multi-task learning method captures the intrinsic relationships between tasks in complex systems, solves the limitations of single-task learning methods in prediction accuracy and efficiency, and achieves multi-dimensional information capture and efficient prediction of complex systems, which is suitable for resources Restricted environment.
Patent Information
- Application Number
- CN202410852581.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-10
AI Technical Summary
Existing single-task learning methods cannot fully utilize the correlation between multiple tasks in predicting future states in complex systems or environments, resulting in limited prediction accuracy and efficiency, especially when processing high-dimensional, dynamically changing traffic data in real time. Traffic management efficiency is limited.
A near-real-time situation prediction method based on multi-task learning is adopted to extract data features by obtaining situation data, and use the trained multi-task learning model to output the prediction results, capture the intrinsic relationship between different tasks, and build a multi-task learning model to extract tasks Shared features and task-specific features are trained using multi-task learning algorithms, combining deep reinforcement learning and feature selection techniques to optimize the model for fast response and multi-tasking.
It achieves comprehensive capture of multi-dimensional information in complex systems or environments, improves the accuracy of prediction of future states, can quickly process and analyze large amounts of real-time data, adapts to environmental changes, reduces the waste of computing resources, and improves the accuracy of real-time predictions. Efficiency and accuracy.
Smart Images

Figure CN118627641A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of situation prediction, and in particular to a near real-time situation prediction method and device based on multi-task learning. Background Art
[0002] Currently, single-task learning methods are often used to predict future states in complex systems or environments. This method focuses on a single prediction task. For example, only the trend of financial markets, cybersecurity threats, or traffic flow are predicted. Although it can achieve certain results on specific tasks, it cannot fully utilize the correlation between multiple tasks, resulting in limited prediction accuracy and efficiency.
[0003] In single-task learning, each model usually trains a prediction head that is specialized for a specific task. This design makes it difficult for the model to capture the intrinsic connections between different tasks, which may provide valuable information for prediction. For example, in intelligent transportation system management, single-task learning methods may not be able to effectively integrate the complex interactions between different sensors and data sources. There may be mutual influences between multiple traffic management tasks such as traffic flow, vehicle speed, weather forecast, and road construction, and single-task learning methods often fail to capture these connections. In addition, existing real-time data processing technologies are usually unable to handle high-dimensional, dynamically changing traffic data sets, which limits the efficiency of real-time traffic management. Summary of the invention
[0004] In view of this, the present application proposes a near real-time situation prediction method and device based on multi-task learning to solve the above problems.
[0005] On the one hand, this application proposes a near real-time situation prediction method based on multi-task learning, comprising the following steps:
[0006] Obtain situational data;
[0007] Extracting data features from the situation data to obtain corresponding data features;
[0008] The data features are input into a trained multi-task learning model, and the trained multi-task learning model is used to output corresponding situation prediction results.
[0009] As an optional implementation scheme of the present application, optionally, when training the multi-task learning model, it includes:
[0010] Obtain training situation data and perform preprocessing;
[0011] Extracting data features from the preprocessed training situation data to obtain corresponding training data features;
[0012] Constructing a multi-task learning model, and using the multi-task learning model to extract task-shared features and task-specific features from the training data features;
[0013] The multi-task learning model is trained using a multi-task learning algorithm to obtain a trained multi-task learning model.
[0014] As an optional implementation scheme of the present application, optionally, extracting data features from the preprocessed training situation data to obtain corresponding training data features includes:
[0015] Extracting time series features, statistical features and domain-specific features from the preprocessed training situation data respectively;
[0016] Corresponding training data features are extracted from the time series features, the statistical features and the domain-specific features using feature selection technology.
[0017] As an optional implementation scheme of the present application, optionally, constructing a multi-task learning model and extracting task-shared features and task-specific features from the training data features using the multi-task learning model include:
[0018] Build a multi-task learning model;
[0019] Based on the universal feature extractor in the multi-task learning model, task-shared features in the training data features are extracted to learn underlying representations shared by multiple tasks;
[0020] A specific mapping layer is added for each task using the task shared features, and the task shared features are converted into task specific features based on the mapping layer.
[0021] As an optional implementation scheme of the present application, optionally, after adding a specific mapping layer to each task using the task shared features and converting the task shared features into task specific features based on the mapping layer, the method further includes:
[0022] Depending on the nature of the task, add a classifier or a regressor for each task.
[0023] As an optional implementation scheme of the present application, optionally, the multi-task learning model is trained using a multi-task learning algorithm to obtain a trained multi-task learning model, including:
[0024] Define a corresponding loss function for each task, and perform a weighted combination of the loss functions to obtain a total loss function;
[0025] The multi-task learning model is trained using the total loss function to obtain a trained multi-task learning model.
[0026] In another aspect, the present application provides a device for implementing any of the above-mentioned near real-time situation prediction methods based on multi-task learning, comprising:
[0027] A data acquisition module is configured to acquire situation data;
[0028] A feature extraction module is configured to extract data features from the situation data to obtain corresponding data features;
[0029] The result prediction module is configured to input the data features into a trained multi-task learning model and use the trained multi-task learning model to output a corresponding situation prediction result.
[0030] In another aspect, the present application provides a control system, comprising:
[0031] processor;
[0032] a memory for storing processor-executable instructions;
[0033] Wherein, the processor is configured to implement any of the above-mentioned near real-time situation prediction methods based on multi-task learning when executing the executable instructions.
[0034] On the other hand, the present application provides a non-volatile computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement any of the above-mentioned near-real-time situation prediction methods based on multi-task learning.
[0035] Technical effects of the present invention:
[0036] The near-real-time situation prediction method based on multi-task learning provided by the present application includes acquiring situation data; extracting data features from the situation data to obtain corresponding data features; inputting the data features into a trained multi-task learning model, and using the trained multi-task learning model to output corresponding situation prediction results. Using the trained multi-task learning model, the corresponding prediction results are output according to the extracted data features, and the trained multi-task learning model can capture and utilize the inherent connections between different tasks, more comprehensively capture the multi-dimensional information in a complex system or environment, and achieve a more accurate situation prediction of the future state of the system.
[0037] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0039] Figure 1 Shown is a flow chart of a near real-time situation prediction method based on multi-task learning of the present invention;
[0040] Figure 2 Shown is a schematic diagram of the implementation process of the near real-time situation prediction method based on multi-task learning of the present invention. DETAILED DESCRIPTION
[0041] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0042] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0043] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0044] Existing single-task learning methods have the following limitations when predicting future states in complex systems or environments, including information islands between tasks. Single-task methods are usually unable to effectively utilize information between different tasks, resulting in limited predictive capabilities; limitations in prediction accuracy. Due to the inability to capture the interactions between tasks, single-task learning methods may not be able to achieve optimal prediction accuracy; insufficient real-time processing capabilities. Existing data processing technologies may encounter performance bottlenecks when processing high-dimensional and dynamic data, affecting the probability of real-time predictions; waste of model training and inference resources. Single-task learning methods require training independent models for each task, resulting in waste of computing resources.
[0045] Multi-task learning is a method of training machine learning models that allows the model to learn multiple related tasks simultaneously. By sharing representations (i.e., the weights or feature extractors of the model), multi-task learning can improve data efficiency, reduce the need for large amounts of labeled data, and potentially improve the model's generalization ability on related tasks.
[0046] Near real-time situation prediction refers to predicting the future state of a system in a very short time (usually a few seconds to a few minutes). It requires the prediction system to be able to quickly process and analyze large amounts of real-time data streams and generate timely prediction results.
[0047] The present application provides a near real-time situation prediction method based on multi-task learning, which applies multi-task learning to near real-time situation prediction. When processing real-time data streams, it can not only respond quickly but also process multiple prediction tasks simultaneously.
[0048] Example 1
[0049] like Figure 1 As shown, on the one hand, this application proposes a near real-time situation prediction method based on multi-task learning, comprising the following steps:
[0050] S100, obtaining situation data;
[0051] In this step, real-time data streams from different sources are accessed, and the real-time situation data obtained are preprocessed to prepare for the next step of extraction and analysis. Wherein, the real-time data streams in this step come from different data sources such as sensors, databases, APIs, etc. After obtaining the real-time situation data, the real-time situation data is cleaned, formatted, denoised, and missing value processed to obtain the processed situation data. It should also be noted that in order to achieve near real-time situation prediction, this application adopts efficient data processing technology, which uses data stream processing technology to ingest and process data in real time. For example, an event-driven data processing framework is used to ensure that data is processed immediately once it is available.
[0052] S200, extracting data features from the situation data to obtain corresponding data features;
[0053] In this step, relevant data features are extracted for the situation data processed in step S100 to obtain key semantic information in the situation data, including spatial information, entity information and statistical information, for subsequent input into the trained multi-task learning model.
[0054] S300: input data features into a trained multi-task learning model, and use the trained multi-task learning model to output corresponding situation prediction results.
[0055] In this step, the trained multi-task learning model is used to output the corresponding prediction results according to the extracted data features. The trained multi-task learning model can capture and utilize the intrinsic connections between different tasks, more comprehensively capture the multi-dimensional information of complex systems or environments, and achieve more accurate predictions of the future state of the system, and present the prediction results to the user in the form of visualization or reports. Among them, because the environment is dynamically changing, an incremental learning method is used to dynamically update the model to adapt to new data and changing environmental conditions.
[0056] As an optional implementation scheme of the present application, optionally, when training a multi-task learning model, it includes: obtaining training situation data and preprocessing it; extracting data features from the preprocessed training situation data to obtain corresponding training data features; constructing a multi-task learning model, and using the multi-task learning model to extract task-shared features and task-specific features from the training data features; and using a multi-task learning algorithm to train the multi-task learning model to obtain a trained multi-task learning model.
[0057] It should be noted that the multi-task learning model trained in this application not only needs to respond quickly when processing real-time data streams, but also needs to be able to process multiple prediction tasks at the same time. Therefore, when training a multi-task learning model, it is necessary to train and optimize it according to the following steps.
[0058] Specifically, in the training phase, it is first necessary to receive training situation data from different sources such as sensors, databases, APIs, etc., and perform data preprocessing on the training situation data, that is, cleaning, formatting, denoising and missing value processing, so as to obtain situation data that can be used for data feature extraction. Subsequently, feature extraction is performed on the processed situation data, that is, relevant features are extracted from the original data, and the most useful features are selected using feature selection technology. Furthermore, deep reinforcement learning technology is used to build a multi-task learning model to learn the underlying representation shared by multiple tasks. On the basis of the shared representation, specific model parts are trained for each task to capture task-specific information. Finally, the model is trained using a multi-task learning method and the model parameters are optimized to achieve the purpose of strategy optimization and model iteration, and the optimal multi-task learning model is obtained.
[0059] As an optional implementation scheme of the present application, data feature extraction is optionally performed on the preprocessed training situation data to obtain corresponding training data features, including: extracting time series features, statistical features and domain-specific features from the preprocessed training situation data respectively; and using feature selection technology to extract corresponding training data features from the time series features, statistical features and domain-specific features.
[0060] It should be noted that during the training process, when extracting relevant features from the raw data, including time series features, statistical features, and domain-specific features, feature selection techniques such as correlation analysis or information gain are then used to select the most useful features.
[0061] Among them, when extracting time series features, the trend of data changes over time is extracted, for example, using methods such as moving average and exponential smoothing. At the same time, periodic patterns in the data are detected and extracted, such as seasonal changes, periodic fluctuations, etc. Further, the standard deviation and coefficient of variation of the data are calculated to reflect the degree of fluctuation of the data. In addition, the correlation between the data and its past values is analyzed, and the autocorrelation function (ACF) and partial autocorrelation function (PACF) can be used.
[0062] When extracting statistical features, we calculate the basic statistics of the data, such as the mean, median, mode, maximum, minimum, etc., and analyze the distribution of the data, such as skewness and kurtosis, and use QQ graphs, histograms, etc. for visualization. At the same time, we also calculate the dispersion of the data, such as the interquartile range and entropy.
[0063] In domain-specific extraction, such as space-specific extraction, professional models are used to extract features, such as using SVM, decision tree and other models as converters of spatial features.
[0064] As an optional implementation scheme of the present application, optionally, a multi-task learning model is constructed, and the multi-task learning model is used to extract task-shared features and task-specific features from training data features, including: constructing a multi-task learning model; based on a universal feature extractor in the multi-task learning model, extracting task-shared features from training data features, and learning underlying representations shared by multiple tasks; using the task-shared features to add a specific mapping layer for each task, and converting the task-shared features into task-specific features based on the mapping layer.
[0065] It should be noted that, in this embodiment, deep reinforcement learning technology is used to construct a multi-task learning model to learn the underlying representations shared by multiple tasks. Based on the shared representation, a specific model part is trained for each task to capture task-specific information.
[0066] Specifically, in one scenario, a universal feature extractor is designed, such as any one of the convolutional neural networks (CNN) or recurrent neural networks (RNN), to extract shared feature representations from the input data, and some shared neural network layers are defined, which are used by all tasks to capture common features across tasks. That is, the model first uses the shared feature extractor to extract common features from the input data, where the common features are beneficial to all tasks, so they help the model capture the intrinsic connections between each other when learning different tasks. For example, in the multi-task learning architecture of traffic situations, the shared feature extractor can identify common objects such as vehicles, pedestrians, roads and traffic signs in traffic images. The above common features are positively correlated with tasks such as monitoring traffic flow, detecting traffic accidents and predicting traffic congestion. In addition, multiple models specifically for a single task can be used instead of the shared feature extractor, each model optimizes the prediction performance of its corresponding task, abandoning information sharing between tasks, but providing better performance in specific situations.
[0067] Subsequently, specific mapping layers, such as fully connected layers, are added to each task based on the shared representation, and these task-specific layers are used to convert the shared representation into task-specific features. That is, in each task-specific layer, the model generates feature representations related to a specific task, and these layers generate unique prediction heads for each task. For example, in a multi-task learning architecture for traffic situations, task-specific layers can generate corresponding feature representations based on different subtasks. For example, a task-specific layer for detecting traffic congestion may focus on extracting features related to the degree of congestion, such as vehicle density and speed distribution, while a task-specific layer for predicting traffic accidents may focus on abnormal situations such as pedestrians crossing the road and vehicle violations.
[0068] Furthermore, a task relevance model is established to capture the correlation between different tasks, and the model can be dynamically adjusted during the training process to optimize information sharing between tasks. For example, in a multi-task learning architecture for traffic situations, task relevance modeling can capture the intrinsic connection between different subtasks. For example, by analyzing the relationship between traffic flow and vehicle violations, the accuracy of traffic accident prediction can be provided. Task relevance can also achieve information sharing and mutual promotion between different tasks, thereby improving the performance of the entire multi-task learning model. Among them, in the task relevance analysis process, statistical methods or machine learning algorithms are used to analyze the correlation between different tasks. For example, the strength of the relationship between each other can be determined by calculating the correlation coefficient between different task features. And, based on the results of the task relevance analysis, an information sharing mechanism is designed to transfer and utilize this correlation during model training and reasoning, including directly introducing cross-task information flow in the model architecture, or using a specific loss function during the training process to encourage the model to learn the correlation between tasks.
[0069] It should be noted that the trained multi-task learning model of this application includes a situation encoding module, a spatiotemporal association module and a prediction decoding module. The data input into the model through the situation encoding module is interpreted as a language that the model can understand, and then the spatiotemporal association module is used for data processing and fusion. The prediction decoding module receives the output from the spatiotemporal association module. These data are processed and integrated by the situation encoding module and the spatiotemporal association module, and contain rich spatiotemporal information and task-related features. The task of the prediction decoding model is to decode these processed data into specific prediction results and ensure that the output prediction results meet the format and requirements of specific tasks.
[0070] As an optional implementation scheme of the present application, optionally, after adding a specific mapping layer for each task using task shared features and converting the task shared features into task specific features based on the mapping layer, it also includes: adding a classifier or regressor to each task according to the nature of the task.
[0071] It should be noted that, in this embodiment, a classifier or a regressor is added to each task according to the nature of the task, wherein for a classification task, a softmax layer can be used, and for a regression task, a linear output layer can be used.
[0072] Not only that, this application also constructs a deep reinforcement learning framework and selects appropriate reinforcement learning algorithms, such as Deep Q Network (DQN), Asynchronous Advantage Actor Critic (A3C) or Prototype Actor Critic (Proto-RL). Define the action space according to the task requirements and design a reward function that reflects the task objectives to guide model learning. It should also be noted that in the multi-task learning framework, the attention mechanism can be used to dynamically assign the importance of different task features, so as to more flexibly capture the correlation between tasks.
[0073] As an optional implementation scheme of the present application, optionally, a multi-task learning algorithm is used to train the multi-task learning model to obtain a trained multi-task learning model, including: defining a corresponding loss function for each task, and weightedly combining the loss functions to obtain a total loss function; using the total loss function to train the multi-task learning model to obtain a trained multi-task learning model.
[0074] It should be noted that, in the present embodiment, a multi-task learning algorithm is used, such as a multi-output neural network, a multi-label learning training model, and a strategy such as gradient descent, Adam optimizer, etc. is used to optimize the model parameters. Specifically, a loss function is defined for each task, such as cross entropy loss for classification tasks, and mean square error loss for regression tasks, and then these loss functions are weighted and combined into a total loss function. In addition, gradient descent or other optimization algorithms are used to update the model parameters. For multi-task learning, parameter sharing and update strategies between tasks need to be considered. Thus, a multi-task learning model after training and optimization is obtained. Although near real-time processing requires real-time updating of the model, it is possible to choose to batch process the data at fixed time intervals (such as every minute or every hour) in exchange for higher processing stability at the expense of a certain time delay. And the offline trained model can be used for online reasoning, and the model is updated only when new data is input, which is easier to implement and optimize.
[0075] It should also be noted that when strengthening model training, the correlation between tasks can be captured by clustering tasks, grouping similar tasks, and strengthening feature sharing within the group during model training. Not only that, in order to improve the performance of the model, the method of the present application adopts transfer learning technology to transfer the general feature representation learned from the pre-trained model to a specific task, which can significantly reduce training events and improve the generalization ability of the model. And through model compression technology, such as weight pruning and low-rank decomposition, and model acceleration technology, such as quantization and distillation, the present invention can effectively reduce the size of the model, improve the reasoning speed, and maintain prediction performance.
[0076] The method design of this application uses multi-task learning architecture, task correlation analysis, near real-time data processing, model training and reasoning optimization technologies, and applies multi-task learning to near real-time situation prediction. When processing real-time data streams, the model not only responds quickly, but also can handle multiple prediction tasks at the same time, effectively solving the limitations of traditional single tasks and other problems.
[0077] like Figure 2 As shown, the method of the present application will be described in detail below using the traffic situation as an example.
[0078] In the stage of training the multi-task learning model, situation data from different data sources are received as training data, such as the number of vehicles and the current road network status, congestion, or weather conditions, etc., and features are extracted from the above data, and the extracted data features are associated, and then input into the multi-task learning model for multi-task learning model training, so that the trained multi-task learning model can predict parallel multi-tasks, such as predicting future road network conditions and predicting adjustments to road network conditions due to road construction.
[0079] When applying the trained multi-task learning model to predict results, real-time situation data from different data sources are received, and after preprocessing, data features are extracted and input into the trained multi-task learning model. After passing through the situation encoding module, spatiotemporal association module, and prediction decoding module in sequence, the prediction results of multiple tasks such as traffic flow, road network congestion, and operating speed are output.
[0080] In summary, the method of the present application captures and utilizes the intrinsic connections between different tasks, and the multi-task learning architecture can more comprehensively capture the multi-dimensional information in a complex system or environment, thereby improving the accuracy of predictions of future states. Near-real-time data processing technology can efficiently process large-scale, dynamically changing data sets, ensuring that the model can quickly adapt to environmental changes. By using high-performance computing equipment and optimizing data processing algorithms, the present invention can process and analyze large amounts of data in a short period of time, thereby achieving near-real-time situation prediction. This helps to make decisions in a timely manner and improve response speed. Model training and reasoning optimization technology reduces training time and resource consumption through technologies such as transfer learning, model compression and acceleration, while improving the reasoning speed of the model. This enables near-real-time situation prediction technology based on multi-task learning to run under limited computing resources and is suitable for resource-constrained environments.
[0081] It should be noted that, although the above is introduced as an example, those skilled in the art will understand that the present disclosure should not be limited thereto. In fact, users can flexibly set according to actual application scenarios, as long as the technical functions of the present application can be realized according to the above technical methods.
[0082] Example 2
[0083] Based on the implementation principle of Example 1, on the other hand, the present application provides a device for implementing any of the above-mentioned near real-time situation prediction methods based on multi-task learning, including:
[0084] A data acquisition module is configured to acquire situation data;
[0085] A feature extraction module is configured to extract data features from the situation data to obtain corresponding data features;
[0086] The result prediction module is configured to input the data features into a trained multi-task learning model and use the trained multi-task learning model to output a corresponding situation prediction result.
[0087] Obviously, those skilled in the art should understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. The modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by computing devices, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present invention is not limited to any specific combination of hardware and software.
[0088] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0089] Example 3
[0090] Furthermore, in another aspect, the present application provides a control system, comprising:
[0091] processor;
[0092] a memory for storing processor-executable instructions;
[0093] Wherein, the processor is configured to implement any of the above-mentioned near real-time situation prediction methods based on multi-task learning when executing the executable instructions.
[0094] The control system of the embodiment of the present disclosure includes a processor and a memory for storing processor executable instructions. The processor is configured to implement any of the above-mentioned near real-time situation prediction methods based on multi-task learning when executing the executable instructions.
[0095] Here, it should be noted that the number of processors can be one or more. At the same time, in the control system of the embodiment of the present disclosure, an input device and an output device may also be included. Among them, the processor, memory, input device and output device may be connected through a bus or in other ways, which are not specifically limited here.
[0096] The memory is a computer-readable storage medium that can be used to store software programs, computer executable programs, and various modules, such as a program or module corresponding to one of the embodiments of the present disclosure. The processor executes various functional applications and data processing of the control system by running the software programs or modules stored in the memory.
[0097] The input device can be used to receive input numbers or signals. The signal can be a key signal related to user settings and function control of the device / terminal / server. The output device can include a display device such as a display screen.
[0098] Example 4
[0099] On the other hand, the present application provides a non-volatile computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement any of the above-mentioned near-real-time situation prediction methods based on multi-task learning.
[0100] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A near real-time situation prediction method based on multi-task learning, characterized in that: The steps include: Obtain situational data; Extracting data features from the situation data to obtain corresponding data features; The data features are input into a trained multi-task learning model, and the trained multi-task learning model is used to output corresponding situation prediction results.
2. The near real-time situation prediction method based on multi-task learning according to claim 1, characterized in that: When training the multi-task learning model, it includes: Obtain training situation data and perform preprocessing; Extracting data features from the preprocessed training situation data to obtain corresponding training data features; Constructing a multi-task learning model, and using the multi-task learning model to extract task-shared features and task-specific features from the training data features; The multi-task learning model is trained using a multi-task learning algorithm to obtain a trained multi-task learning model.
3. The near real-time situation prediction method based on multi-task learning according to claim 2 is characterized in that: The step of extracting data features from the preprocessed training situation data to obtain corresponding training data features includes: Extracting time series features, statistical features and domain-specific features from the preprocessed training situation data respectively; Corresponding training data features are extracted from the time series features, the statistical features and the domain-specific features using feature selection technology.
4. The near real-time situation prediction method based on multi-task learning according to claim 2 is characterized in that: The constructing of a multi-task learning model and extracting task-shared features and task-specific features from the training data features using the multi-task learning model include: Build a multi-task learning model; Based on the universal feature extractor in the multi-task learning model, task-shared features in the training data features are extracted to learn underlying representations shared by multiple tasks; A specific mapping layer is added for each task using the task shared features, and the task shared features are converted into task specific features based on the mapping layer.
5. The near real-time situation prediction method based on multi-task learning according to claim 4 is characterized in that: After adding a specific mapping layer for each task using the task shared features and converting the task shared features into task specific features based on the mapping layer, the method further includes: Depending on the nature of the task, add a classifier or a regressor for each task.
6. The near real-time situation prediction method based on multi-task learning according to claim 2 is characterized in that: The multi-task learning model is trained by using a multi-task learning algorithm to obtain a trained multi-task learning model, including: Define a corresponding loss function for each task, and perform a weighted combination of the loss functions to obtain a total loss function; The multi-task learning model is trained using the total loss function to obtain a trained multi-task learning model.
7. A device for implementing the near real-time situation prediction method based on multi-task learning according to any one of claims 1 to 6, characterized in that: include: A data acquisition module is configured to acquire situation data; A feature extraction module is configured to extract data features from the situation data to obtain corresponding data features; The result prediction module is configured to input the data features into a trained multi-task learning model and use the trained multi-task learning model to output a corresponding situation prediction result.
8. A control system, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the near real-time situation prediction method based on multi-task learning as described in any one of claims 1 to 6 when executing the executable instructions.
9. A non-volatile computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the near real-time situation prediction method based on multi-task learning as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Regional traffic demand prediction method based on convolutional long-term and short-term memory network
CN110633871A
Multi-modal data-based multi-task learning method and system
CN112183547A
Traffic accident prediction method based on hard parameter sharing multi-task learning
CN116307103A
System and Method for Multi-task Learning
US20200279160A1
Method and apparatus for identifying traffic accident, device and computer storage medium
US20210398427A1
Cited By
Information processing method based on heterogeneous data fusion and multi-task learning
CN119150174A
Information processing method based on heterogeneous data fusion and multi-task learning
CN119150174B
