A data processing method, device and system

By converting time series data into images and processing them on the GPU of the user terminal, the problem of slow time series data processing and reliance on server CPU performance in the existing technology is solved, and more efficient data processing is achieved.

CN112199540BActive Publication Date: 2024-08-27BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011049708.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-29
Publication Date
2024-08-27
Estimated Expiration
2040-09-29

AI Technical Summary

Technical Problem

The existing time series data processing method is slow, has low execution efficiency, relies heavily on server CPU performance, and cannot effectively utilize the computing power of user equipment.

Method used

Convert time series data into images and use the GPU of the user terminal for processing, reducing the data processing pressure on the server CPU and improving data processing speed and efficiency.

Benefits of technology

By converting time series data into images and processing them on the user device, it reduces dependence on server CPU performance and improves data processing speed and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112199540B
    Figure CN112199540B
Patent Text Reader

Abstract

The present disclosure provides a data processing method, device and system, which relates to the field of computer technology. The method includes: obtaining time series data of multiple objects through a server; generating an image based on the time series data of multiple objects, and different elements in the image include time series data of different objects; sending the image to a user terminal, so that the user terminal obtains the time series data of multiple objects from the elements of the image, and processes the time series data. The present disclosure can reduce the dependence on the performance of the server CPU and improve the data processing speed and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method, device and system. Background Art

[0002] Time series data (also called time series data) is a series of data distributed over time. It is widely used in life, such as stock prices, advertising data, temperature changes, personal health data, industrial sensor data, server system monitoring data (such as CPU and memory usage), etc.

[0003] Since the time information and spatial information of time series data are irreversible and the data volume is large, the current time series database method needs to load and query the time series data based on the time priority principle before processing the time series data, and then use the CPU (Central Processing Unit) to perform floating point operations on the data. However, the above-mentioned time series data processing method is slow, inefficient, and heavily dependent on the server CPU performance. Summary of the invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a data processing method, device and system.

[0005] The present disclosure provides a data processing method, which includes: acquiring time series data of multiple objects; generating an image based on the time series data of the multiple objects, wherein different elements in the image include time series data of different objects; sending the image to a user terminal so that the user terminal acquires the time series data of the multiple objects from the elements of the image and processes the time series data.

[0006] Furthermore, the generating of images based on the time series data of the multiple objects includes: for each object, extracting the spatiotemporal data of the object from the time series data of the object; wherein the spatiotemporal data includes the position data of the object and the time data when the object is at each position; and generating images based on the spatiotemporal data of the multiple objects.

[0007] Furthermore, the location data includes longitude and latitude; generating an image based on the spatiotemporal data of the multiple objects includes: generating a blank image; generating a corresponding element on the blank image for each location of each object, and obtaining an image containing the element of the object; wherein the red component of the element is converted from the longitude of the location data, the green component of the element is converted from the latitude of the location data, and the blue component of the element is converted from the time data corresponding to the location; and different elements have different transparency components, and different transparency components represent different objects.

[0008] Furthermore, the method further includes: extracting identity data of the object from the time series data of the object.

[0009] Furthermore, the spatiotemporal data is numerical data; each of the elements includes at least two pixels, and different pixels in the same element store different numerical parts of the spatiotemporal data of the same object.

[0010] Furthermore, sending the image to the user terminal includes: sending the image to a resource scheduling system, so that the resource scheduling system distributes the image with different computing amounts to each user terminal according to the computing performance of each user terminal.

[0011] The present disclosure also provides a data processing method, which includes: acquiring an image; wherein the image is generated by a server based on time series data of multiple objects, and different elements in the image include time series data of different objects; acquiring the time series data of the multiple objects from the elements of the image, and processing the time series data.

[0012] Furthermore, the method of obtaining the time series data of the multiple objects from the elements of the image and processing the time series data includes: determining the key elements in the image; wherein the key elements are elements corresponding to the time series data of the key objects in the image; searching for target elements having an association relationship with the key elements from the elements in the image; and processing the target elements to obtain the time series data of the target objects.

[0013] Further, the time series data of the object includes the spatiotemporal data of the object, and the spatiotemporal data includes: position data and time data, and the position data includes longitude and latitude; the searching for the target element having an associated relationship with the key element from the elements in the image includes: extracting the color components of each element in the image; wherein the color components include: a red component converted from the longitude of the position data, a green component converted from the latitude of the position data, and a blue component converted from the time data; according to the blue component of the key element and the blue components of other elements, searching for candidate elements that differ from the key element by a preset time range in the other elements; wherein the other elements are the other elements in the image except the key element; according to the red component and green component of the key element, and the red component and green component of the candidate element, respectively calculating the position distance between each candidate element and the key element; determining the candidate element whose position distance is lower than the preset value as the target element having an associated relationship with the key element.

[0014] Furthermore, the target element is processed to obtain the time series data of the target object, including: extracting the transparency component of the target element; wherein different transparency components represent different objects; and determining the target object and the time series data of the target object based on the extracted transparency component.

[0015] Furthermore, the target object and the timing data of the target object are determined based on the extracted transparency component, including: sending the extracted transparency component to the server so that the server determines the target object corresponding to the extracted transparency component, and searching for the timing data of the target object in the timing data of the multiple objects; receiving the timing data of the target object returned by the server.

[0016] Furthermore, the time series data also includes identity data; the determination of the target object and the time series data of the target object based on the extracted transparency component includes: mapping the color component of the target element into target spatiotemporal data; sending the extracted transparency component to the server so that the server determines the target object corresponding to the extracted transparency component, and searches for the identity data of the target object in the identity data of the time series data of the multiple objects; receiving the identity data of the target object returned by the server; and determining the identity data and target spatiotemporal data of the target object as the time series data of the target object.

[0017] The present disclosure also provides a data processing device, which includes: a data acquisition module, used to acquire time series data of multiple objects; an image generation module, used to generate an image based on the time series data of the multiple objects, wherein different elements in the image include time series data of different objects; and an image sending module, used to send the image to a user terminal, so that the user terminal acquires the time series data of the multiple objects from the elements of the image and processes the time series data.

[0018] The present disclosure also provides a data processing device, which includes: an image acquisition module, used to acquire an image; wherein the image is generated by a server based on time series data of multiple objects, and different elements in the image include time series data of different objects; a data processing module, used to acquire the time series data of the multiple objects from the elements of the image and process the time series data.

[0019] The present disclosure also provides a data processing system, including a server and a user terminal that are communicatively connected; the server is provided with the aforementioned data processing device, and the user terminal is provided with the aforementioned data processing device.

[0020] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processing device, the steps of the method executed by the server are executed, or when the computer program is run by a processing device, the steps of the method executed by the user terminal are executed.

[0021] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0022] The disclosed embodiments provide a data processing method, device and system, wherein the server can first generate an image based on the acquired time series data of multiple objects, wherein different elements in the image include time series data of different objects; then the image is sent to a user terminal, so as to obtain time series data of multiple objects from the elements of the image through the user terminal, and process the time series data. This data processing method converts the time series data into an image that can be stored in the video memory based on the irreversible nature of the time series data, and then the time series data can be processed by the user device; the data processing pressure of the server CPU is transferred to the GPU of the user device, which can reduce the dependence on the performance of the server CPU and improve the data processing speed and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0025] Figure 1 A flow chart of a data processing method applied to a server provided in an embodiment of the present disclosure;

[0026] Figure 2 A flowchart of a data processing method applied to a user terminal provided in an embodiment of the present disclosure;

[0027] Figure 3 A structural block diagram of a data processing device provided in an embodiment of the present disclosure;

[0028] Figure 4 A structural block diagram of a data processing device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0030] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0031] Considering the existing processing method of time series data, it is necessary to pre-load data before data processing, and then use the server CPU to process the data. This data processing method is slow, inefficient and heavily dependent on the server CPU performance. Based on this, in order to improve at least one of the above problems, a data processing method, device and system are provided in the embodiments of the present disclosure. This technology can be applied to any scenario where time series data needs to be processed, such as personal health data, server system monitoring data, etc. For ease of understanding, the embodiments of the present disclosure are described in detail below.

[0032] Embodiment 1:

[0033] Reference Figure 1 The flowchart of a data processing method applied to a server is shown. The method can be executed by a server, which can also be called a background server or a platform server. The method specifically includes the following steps:

[0034] Step S102, obtaining time series data of multiple objects. The time series data can be various types of data with time series relationships, such as personal health data (such as heart rate, body temperature) recorded by wearable devices, and user activity data collected by scanning codes with mobile phones, taking photos with cameras, etc. during epidemic prevention and control.

[0035] The time series data in this embodiment may include spatiotemporal data and identity data of the object; wherein the spatiotemporal data is used to represent the location data of the object and the time data when the object is at each location; identity data such as the object's name, ID number, address, contact information and other data.

[0036] Step S104: generating an image based on the time series data of the multiple objects, wherein different elements in the image include the time series data of different objects.

[0037] In this embodiment, the server may generate images corresponding to the time series data of multiple objects; the storage format of the images is such as bitmap format (BMP), Joint Photographic Experts Group format (JPEG), etc. An element in the image corresponds to a piece of time series data, wherein the element is a single point constituting the image and is configured with a color value. In a possible implementation, the spatiotemporal data in the time series data may be converted into the color value of the element.

[0038] Step S106: sending the image to the user terminal, so that the user terminal acquires time series data of multiple objects from elements of the image and processes the time series data.

[0039] The user terminal is an electronic device with a GPU (Graphic Processing Unit), such as a mobile phone, a tablet computer, a laptop computer, etc. Since the operation mode of the server CPU itself is mainly serial calculation, the efficiency of using the CPU to process the image is very low. This embodiment uses the powerful parallel computing capability of the GPU to process the image, which can not only share the data processing pressure of the server CPU, but also improve the data processing efficiency.

[0040] There are many ways for user devices to process time series data, such as smoothing the time series data to improve the accuracy of the time series data, aggregating the time series data to obtain information that users care about, such as the average value of traffic and the peak value of traffic, and querying the time series data to obtain the target time series data that users want, etc.

[0041] In the above data processing method provided in this embodiment, the server can first generate an image based on the acquired time series data of multiple objects, and then send the image to the user terminal, so as to obtain the time series data of multiple objects from the elements of the image through the user terminal, and process the time series data. This data processing method converts the time series data into an image that can be stored in the video memory based on the irreversible characteristics of the time series data, and then the time series data can be processed by the user device; the data processing pressure of the server CPU is transferred to the GPU of the user device, which can not only reduce the dependence on the server CPU performance, but also improve the data processing speed and efficiency.

[0042] This embodiment provides a specific implementation method of generating an image based on time series data of multiple objects, which can be performed by referring to the following two steps:

[0043] In the first step, for each object, the spatiotemporal data of the object is extracted from the temporal data of the object.

[0044] In a possible implementation, the time series data of the object can be split into time-space data and identity data according to preset keywords and / or key fields; based on the split result, the time-space data of the object is extracted from the time series data of the object. The time-space data includes the location data of the object and the time data when the object is at each location; the location data can be composed of longitude and latitude.

[0045] Of course, the identity data of the object can also be extracted from the time series data of the object based on the splitting results. Considering that identity data is relatively sensitive, in order to avoid privacy and security issues that may be caused by identity data leakage, in practical applications, spatiotemporal data and identity data can be stored separately in different locations, and when the spatiotemporal data and identity data of the same object are saved, the spatiotemporal data and identity data belonging to the same object are marked with an association relationship.

[0046] In the second step, images are generated based on the spatiotemporal data of multiple objects.

[0047] In order to better understand the method of generating an image, this embodiment takes an image in a bitmap format (which may be referred to as a bitmap) as an example to describe this, as shown below:

[0048] First, a blank image is generated; then, for each position of each object, a corresponding element is generated on the blank image to obtain an image containing the elements of the object.

[0049] Specifically, the bitmap can use the RGBA encoding method, that is, the red component, green component, blue component and transparency component are used to represent the color of the elements in the bitmap. Among them, the red component of the element is converted from the longitude of the position data, the green component of the element is converted from the latitude of the position data, and the blue component of the element is converted from the time data corresponding to the position; and different elements have different transparency components, and different transparency components represent different objects. Of course, the conversion relationship between color components and data can also be other, such as the red component can also be converted from time data. The above is only an exemplary description and should not be understood as a limitation.

[0050] In practical applications, spatiotemporal data is usually numerical data. For example, the longitude 23°27′ corresponds to numerical data, expressed as 23.45; the time 9:15 corresponds to numerical time data, expressed as 9.24. In order to improve the integrity of the spatiotemporal data represented by the element, the present embodiment may include at least two pixels in each element, and different pixels in the same element store different numerical parts of the time series data of the same object, that is, each spatiotemporal data occupies at least two pixels. Taking an element including two pixels as an example, one pixel can be used to store the integer part of the spatiotemporal data, and the other pixel can be used to store the decimal part of the spatiotemporal data. For example, the blue component in the first pixel is used to store the integer part of the time data: 9, and the blue component in the second pixel is used to store the decimal part of the time data: 24. In this case, the element composed of the first pixel and the second pixel can more completely represent the spatiotemporal data.

[0051] Since the two pixels within an element are obtained by simultaneously converting the spatiotemporal data, a mapping relationship is established between the two pixels when they are generated. In this case, only the transparency component of one of the pixels can be assigned, and the mapping relationship between the two pixels and the object in the same element can be represented by the transparency component of one pixel.

[0052] The number of pixels occupied by spatiotemporal data, that is, the number of pixels included in an element, is mainly related to the accuracy of the time series data and the format of the image.

[0053] Taking the scenario of epidemic prevention and control as an example, the time series data of an object is usually stored in days, and it is of little practical significance to store the time accurately to the second. The same is true for position data, which does not need to be accurate to the second. Therefore, the time data in the time series data is data including hours and minutes, and the position data is data including degrees and angular minutes. In this case, occupying two pixels can relatively completely represent the spatiotemporal data. If in other application scenarios, when more accurate representation of time series data is required, more pixels can be occupied to represent the time series data.

[0054] Regarding the format of the image, we continue to use the spatiotemporal data in the epidemic prevention and control scenario as an example. The longitude, latitude, and time data in the spatiotemporal data each need to occupy two storage bits, one storage bit for a color component of a pixel, such as longitude, which occupies the red component of two pixels, that is, it occupies two storage bits; at the same time, at least one of the two pixels has a transparency component representing the object, and the above requires a total of seven or eight storage bits. However, when the image is an image in JPEG format using RGB encoding, since one pixel can only provide three storage bits, at least three pixels are required to more completely represent the above spatiotemporal data.

[0055] After generating images corresponding to the spatiotemporal data of multiple objects, the server can send the images to the user terminals in the following manner: sending the images to the resource scheduling system so that the resource scheduling system distributes images of different computing amounts to each user terminal according to the computing performance of each user terminal.

[0056] When comparing user terminals such as mobile phones and computers, the computing performance of mobile phones is obviously lower than that of computers. Therefore, images corresponding to spatiotemporal data within 10 days can be distributed to mobile phones, and images corresponding to spatiotemporal data within 15 days can be distributed to computers.

[0057] After the image is distributed to the user terminal, the user terminal can perform graphics card operations on the image through methods such as HLSL (High Level ShadeLanguage or High-Level Shading Language), OpenGL shader language GLSL (OpenGL Shading Language), WebGL (Web Graphics Library), etc.

[0058] Through the above data processing method, the time series data is converted into an image that can be stored in the user terminal video memory, and then the time series data can be processed by the user device; part of the pressure of data processing on the server CPU is transferred to the GPU of the user device, which can not only reduce the dependence on the server CPU performance, but also improve the data processing speed and efficiency.

[0059] Embodiment 2:

[0060] Combined with the above-mentioned embodiment 1, refer to Figure 2 The flowchart of a data processing method applied to a user terminal is shown. The method can be executed by a user terminal, and the user terminal can be a mobile phone, iPad, or computer. The method includes:

[0061] Step S202, obtaining an image; wherein the image is generated by the server based on the time series data of multiple objects, and different elements in the image include the time series data of different objects. The time series data includes spatiotemporal data and identity data, the spatiotemporal data includes location data and time data, and the location data includes longitude and latitude. The specific method of generating the image can refer to the above-mentioned embodiment 1, and will not be described in detail here.

[0062] After the user terminal acquires the image, the image may be stored in the video memory of the graphics card to process the image on the graphics card.

[0063] Step S204, acquiring time series data of multiple objects from elements of the image, and processing the time series data.

[0064] In this embodiment, the color components and transparency components of the elements in the image are obtained through spatiotemporal data conversion; based on this, the user device can use tools such as opencv and MATLAB to extract the color components and transparency components of the image to obtain time series data of multiple objects.

[0065] In the data processing method provided in the above embodiment, the user device can obtain an image generated by time series data from the server, and then obtain the time series data of multiple objects from the elements of the image, and process the time series data. This data processing method can process the time series data through the user device; the data processing pressure of the server CPU is transferred to the GPU of the user device, which can reduce the dependence on the server CPU performance and improve the data processing speed and efficiency.

[0066] In one implementation, the above step S204 may be performed with reference to the following steps I to III:

[0067] Step I: determine the key elements in the image; wherein the key elements are elements corresponding to the time series data of the key objects in the image.

[0068] In actual applications, the key object may be a person with fever in epidemic prevention and control, and the key elements corresponding to the key object are manually marked on the image.

[0069] Step II: Find the target element that has an association relationship with the key element from the elements in the image.

[0070] In a specific implementation, (1) the color components of each element in the image are extracted; wherein the color components include: a red component converted from the longitude of the position data, a green component converted from the latitude of the position data, and a blue component converted from the time data.

[0071] (2) Based on the blue component of the key element and the blue components of other elements, search for candidate elements in other elements that are within a preset time range (e.g., within 15 minutes) from the key element; wherein the other elements are elements other than the key element in the image.

[0072] (3) Based on the red component and green component of the key element and the red component and green component of the candidate element, the position distance between each candidate element and the key element is calculated respectively.

[0073] The longitude represented by the red component and the latitude represented by the green component jointly determine the position of the object corresponding to the element; in this case, the position distance between the key object corresponding to the key element and the candidate objects corresponding to each candidate element can be calculated, and the position distance can be such as the Euclidean distance, Mahalanobis distance or Chebyshev distance.

[0074] (4) The candidate elements whose position distance is lower than a preset value are determined as target elements having an association relationship with the key element.

[0075] At this point, the determined target element is an element that has an association relationship with the key element in terms of both time range and location distance.

[0076] Step III: Process the target element to obtain the time series data of the target object.

[0077] In one implementation, the transparency component of the target element may be extracted first, wherein different transparency components represent different objects.

[0078] When the element includes two pixels and the mapped object is represented by the transparency component of only one pixel, this embodiment can extract the transparency component more quickly by dividing the pixel by 2. In practical applications, the second pixel in the element may have a transparency component. Based on this, the pixel in the target element that can divide by 2 can be obtained by dividing the pixel by 2, and the transparency component of the pixel can be extracted.

[0079] Then, the target object and the time series data of the target object are determined based on the extracted transparency component. Different objects are assigned different transparency components, and the target object corresponding to the target element can be directly determined by the transparency component.

[0080] The target object and the time series data of the target object can be determined by referring to the following two methods.

[0081] Method 1: The user terminal sends the extracted transparency component to the server, so that the server determines the target object corresponding to the extracted transparency component and searches for the time series data of the target object in the time series data of multiple objects. Then, the user terminal receives the time series data of the target object returned by the server. This method uses the server to search for time series data, which is more efficient. At the same time, before the user terminal sends the transparency component to the server, the time series data containing the identity data is consistently stored on the server, reducing the risk of identity data leakage.

[0082] Method 2:

[0083] (a) Mapping the color components of the target element into target spatiotemporal data; that is, mapping the red, green, and blue color components of the target element into target spatiotemporal data.

[0084] (b) sending the extracted transparency component to a server so that the server determines a target object corresponding to the extracted transparency component and searches for the identity data of the target object in the identity data of the time series data of the plurality of objects.

[0085] (c) Receive the identity data of the target object returned by the server.

[0086] (d) Determine the identity data and the target spatiotemporal data of the target object as the time series data of the target object. Specifically, the identity data and the target spatiotemporal data of the target object may be concatenated to obtain the time series data of the target object.

[0087] In this way, the identity data and spatiotemporal data in the time series data are stored in different locations of the server, further ensuring the security of the identity data.

[0088] In another embodiment, in order to reduce the storage space occupied by the image or time series data on the user device, the remaining elements in the image except the target element can be cleared, and the remaining time series data in the time series data of multiple objects except the time series data of the target object can be cleared.

[0089] Embodiment three:

[0090] See also Figure 3 The structural block diagram of a data processing device shown in FIG. 1 is provided on a server, and the device comprises:

[0091] A data acquisition module 302 is used to acquire time series data of multiple objects;

[0092] An image generation module 304, configured to generate an image based on the time series data of multiple objects, wherein different elements in the image include the time series data of different objects;

[0093] The image sending module 306 is used to send the image to the user terminal, so that the user terminal obtains the time series data of multiple objects from the elements of the image and processes the time series data.

[0094] The data processing device provided in this embodiment can first generate an image based on the acquired time series data of multiple objects, and then send the image to the user terminal, so as to obtain the time series data of multiple objects from the elements of the image through the user terminal, and process the time series data. This data processing method converts the time series data into an image that can be stored in the video memory based on the irreversible characteristics of the time series data, and then the time series data can be processed by the user device; the data processing pressure of the server CPU is transferred to the GPU of the user device, which can not only reduce the dependence on the server CPU performance, but also improve the data processing speed and efficiency.

[0095] In one implementation, the image generation module 304 is also used to: for each object, extract the spatiotemporal data of the object from the time series data of the object; wherein the spatiotemporal data includes the position data of the object and the time data when the object is at each position; and generate an image based on the spatiotemporal data of multiple objects.

[0096] In one implementation, the location data includes longitude and latitude; the image generation module 304 is also used to: generate a blank image; for each location of each object, generate a corresponding element on the blank image to obtain an image containing the element of the object; wherein the red component of the element is converted from the longitude of the location data, the green component of the element is converted from the latitude of the location data, and the blue component of the element is converted from the time data corresponding to the location; and different elements have different transparency components, and different transparency components represent different objects.

[0097] In one implementation, the image generation module 304 is further configured to extract identity data of the object from the time series data of the object.

[0098] In one implementation, the image sending module 306 is further used to send the image to the resource scheduling system, so that the resource scheduling system distributes images of different computing amounts to each user terminal according to the computing performance of each user terminal.

[0099] The implementation principle and technical effects of the device provided in this embodiment are the same as those of the aforementioned method embodiments. For the sake of brief description, for parts not mentioned in this embodiment, reference may be made to the corresponding contents in the aforementioned embodiments.

[0100] Embodiment 4:

[0101] See also Figure 4 The structural block diagram of a data processing device shown in FIG. 1 is provided in a user terminal, and the device comprises:

[0102] An image acquisition module 402 is used to acquire an image; wherein the image is generated by the server based on time series data of multiple objects, and different elements in the image include time series data of different objects;

[0103] The data processing module 404 is used to obtain time series data of multiple objects from elements of the image and process the time series data.

[0104] The data processing device provided in this embodiment enables the user device to obtain an image generated by time series data from the server, and then obtain time series data of multiple objects from the elements of the image, and process the time series data. This data processing method allows the user device to process the time series data; transferring the data processing pressure of the server CPU to the GPU of the user device can reduce the dependence on the server CPU performance and improve the data processing speed and efficiency.

[0105] In one implementation, the data processing module 404 is also used to: determine key elements in the image; wherein the key elements are elements corresponding to the time series data of key objects in the image; search for target elements that have an association relationship with the key elements from the elements in the image; and process the target elements to obtain the time series data of the target object.

[0106] In one implementation, the time series data of the object includes the spatiotemporal data of the object, and the spatiotemporal data includes: position data and time data, and the position data includes longitude and latitude; the above-mentioned data processing module 404 is also used to: extract the color components of each element in the image; wherein the color components include: a red component converted from the longitude of the position data, a green component converted from the latitude of the position data, and a blue component converted from the time data; according to the blue component of the key element and the blue components of other elements, search for candidate elements that are within a preset time range from the key element in other elements; wherein the other elements are other elements in the image except the key element; according to the red component and green component of the key element, and the red component and green component of the candidate element, respectively calculate the position distance between each candidate element and the key element; determine the candidate element whose position distance is lower than the preset value as the target element having an associated relationship with the key element.

[0107] In one implementation, the data processing module 404 is further used to: extract the transparency component of the target element; wherein different transparency components represent different objects; and determine the target object and the time series data of the target object based on the extracted transparency component.

[0108] In one implementation, the data processing module 404 is also used to: send the extracted transparency component to the server so that the server determines the target object corresponding to the extracted transparency component, and searches for the time series data of the target object in the time series data of multiple objects; and receive the time series data of the target object returned by the server.

[0109] In one implementation, the time series data also includes identity data; the above-mentioned data processing module 404 is also used to: map the color component of the target element into target spatiotemporal data; send the extracted transparency component to the server so that the server determines the target object corresponding to the extracted transparency component, and searches for the identity data of the target object in the identity data of the time series data of multiple objects; receive the identity data of the target object returned by the server; determine the identity data of the target object and the target spatiotemporal data as the time series data of the target object.

[0110] The implementation principle and technical effects of the device provided in this embodiment are the same as those of the aforementioned method embodiments. For the sake of brief description, for parts not mentioned in this embodiment, reference may be made to the corresponding contents in the aforementioned embodiments.

[0111] Based on the foregoing embodiments, this embodiment provides a data processing system, including a server and a user terminal that are communicatively connected; the server is provided with the data processing device provided in the third embodiment, and the user terminal is provided with the data processing device provided in the fourth embodiment.

[0112] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0113] Furthermore, this embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processing device, the steps of any one of the methods provided in the above embodiment 1 are executed, or when the computer program is run by a processing device, the steps of any one of the methods provided in the above embodiment 2 are executed.

[0114] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0115] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data processing method, characterized in that: The method comprises: Get time series data for multiple objects; generating an image based on the time series data of the plurality of objects, wherein different elements in the image include time series data of different objects; Sending the image to a user terminal so that the user terminal acquires time series data of the multiple objects from elements of the image and processes the time series data; The step of generating an image based on the time series data of the plurality of objects comprises: For each object, extracting the spatiotemporal data of the object from the time series data of the object; wherein the spatiotemporal data includes the position data of the object and the time data when the object is at each position; generating an image based on the spatiotemporal data of the plurality of objects; The location data includes longitude and latitude; The generating an image based on the spatiotemporal data of the multiple objects comprises: Generate a blank image; For each position of each object, a corresponding element is generated on the blank image to obtain an image containing the element of the object; wherein the red component of the element is converted from the longitude of the position data, the green component of the element is converted from the latitude of the position data, and the blue component of the element is converted from the time data corresponding to the position; and different elements have different transparency components, and different transparency components represent different objects.

2. The method according to claim 1, characterized in that The method further comprises: The identity data of the object is extracted from the time series data of the object.

3. The method according to claim 1, characterized in that The spatiotemporal data is numerical data; each of the elements includes at least two pixels, and different pixels in the same element store different numerical parts of the spatiotemporal data of the same object.

4. The method according to claim 1, characterized in that: The sending the image to the user terminal comprises: The image is sent to a resource scheduling system, so that the resource scheduling system distributes the image with different computing amounts to each user terminal according to the computing performance of each user terminal.

5. A data processing method, characterized in that: The method comprises: Acquire an image; wherein the image is generated by a server based on time series data of multiple objects, and different elements in the image include time series data of different objects; Acquire time series data of the plurality of objects from elements of the image, and process the time series data; The acquiring the time series data of the plurality of objects from the elements of the image and processing the time series data includes: Determine a key element in the image; wherein the key element is an element corresponding to the time series data of a key object in the image; Searching for a target element having an association relationship with the key element from elements in the image; Processing the target element to obtain time series data of the target object; The time series data of the object includes the spatiotemporal data of the object, and the spatiotemporal data includes: position data and time data, and the position data includes longitude and latitude; The step of searching, from the elements in the image, for a target element associated with the key element comprises: Extracting color components of each element in the image; wherein the color components include: a red component converted from the longitude of the location data, a green component converted from the latitude of the location data, and a blue component converted from the time data; According to the blue component of the key element and the blue components of other elements, searching for candidate elements in the other elements that are separated from the key element by a preset time range; wherein the other elements are the elements other than the key element in the image; Calculate the position distance between each candidate element and the key element according to the red component and the green component of the key element and the red component and the green component of the candidate element; The candidate element whose position distance is lower than a preset value is determined as a target element associated with the key element.

6. The method according to claim 5, characterized in that The processing of the target element to obtain the time series data of the target object includes: Extracting the transparency component of the target element; wherein different transparency components represent different objects; A target object and time series data of the target object are determined based on the extracted transparency component.

7. The method according to claim 6, characterized in that Determining a target object and time series data of the target object based on the extracted transparency component includes: Sending the extracted transparency component to the server, so that the server determines the target object corresponding to the extracted transparency component, and searches for the time series data of the target object in the time series data of the multiple objects; Receive the time series data of the target object returned by the server.

8. The method according to claim 6, characterized in that The time series data also includes identity data; the determining of the target object and the time series data of the target object based on the extracted transparency component includes: Mapping the color components of the target element into target spatiotemporal data; Sending the extracted transparency component to the server, so that the server determines the target object corresponding to the extracted transparency component, and searches for the identity data of the target object in the identity data of the time series data of the multiple objects; Receiving the identity data of the target object returned by the server; The identity data and target spatiotemporal data of the target object are determined as the time series data of the target object.

9. A data processing device, characterized in that: The device comprises: A data acquisition module, used to acquire time series data of multiple objects; An image generation module, configured to generate an image based on the time series data of the plurality of objects, wherein different elements in the image include time series data of different objects; An image sending module, used for sending the image to a user terminal, so that the user terminal obtains the time series data of the multiple objects from the elements of the image and processes the time series data; The image generation module is also used to: for each object, extract the spatiotemporal data of the object from the time series data of the object; wherein the spatiotemporal data includes the position data of the object and the time data when the object is at each position; generating an image based on the spatiotemporal data of the plurality of objects; The location data includes longitude and latitude; the image generation module is also used for: Generate a blank image; For each position of each object, a corresponding element is generated on the blank image to obtain an image containing the element of the object; wherein the red component of the element is converted from the longitude of the position data, the green component of the element is converted from the latitude of the position data, and the blue component of the element is converted from the time data corresponding to the position; and different elements have different transparency components, and different transparency components represent different objects.

10. A data processing device, characterized in that: The device comprises: An image acquisition module, used to acquire an image; wherein the image is generated by a server based on time series data of multiple objects, and different elements in the image include time series data of different objects; A data processing module, used for acquiring time series data of the multiple objects from the elements of the image and processing the time series data; The data processing module is also used to: determine key elements in the image; wherein the key elements are elements corresponding to the time series data of key objects in the image; Searching for a target element having an association relationship with the key element from elements in the image; Processing the target element to obtain time series data of the target object; The time series data of the object includes the spatiotemporal data of the object, and the spatiotemporal data includes: position data and time data, and the position data includes longitude and latitude; the data processing module is also used for: Extracting color components of each element in the image; wherein the color components include: a red component converted from the longitude of the location data, a green component converted from the latitude of the location data, and a blue component converted from the time data; According to the blue component of the key element and the blue components of other elements, searching for candidate elements in the other elements that are separated from the key element by a preset time range; wherein the other elements are the elements other than the key element in the image; Calculate the position distance between each candidate element and the key element according to the red component and the green component of the key element and the red component and the green component of the candidate element; The candidate element whose position distance is lower than a preset value is determined as a target element associated with the key element.

11. A data processing system, characterized in that: It comprises a server and a user terminal which are in communication connection; the server is provided with the data processing device according to claim 9, and the user terminal is provided with the data processing device according to claim 10.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the method described in any one of claims 1 to 4 are executed; or, when the computer program is executed by a processing device, the steps of the method described in any one of claims 5 to 8 are executed.