Method and device for analyzing real-time performance of operating system based on image analysis
By acquiring and processing the timestamps and weight values of real-time data in the real-time operating system, constructing feature images, and using image convolutional neural network analysis, the real-time operating system solves the problems of low image data processing efficiency and complex model construction, and achieves More efficient data processing and response.
Patent Information
- Application Number
- CN202411086529.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-15
AI Technical Summary
Existing real-time operating systems suffer from low image data processing efficiency and complex model construction.
By obtaining real-time data from the real-time operating system, marking the timestamp and determining the weight value of the response time, grouping the data and matching the color channels, establishing pixels, determining the grayscale value based on the weight value, constructing the feature image, and utilizing the preset image convolution neural network for analysis.
It shortens the data analysis cycle, improves the processing efficiency of real-time data, avoids the need to design a separate network architecture, and enhances the efficiency of data processing and the response speed of the system.
Smart Images

Figure CN118779085A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing of real-time operating systems, and in particular to a method and device for analyzing the real-time performance of an operating system based on image analysis. Background Art
[0002] A real-time operating system is an operating system specifically designed to handle real-time tasks. Real-time tasks are time-sensitive tasks that need to be responded to and completed within strict time limits, so the real-time operating system needs to ensure timely response and processing of these tasks.
[0003] Real-time operating systems play a key role in real-time image analysis methods based on big data. Data analysis usually requires the use of different intelligent algorithms, among which image convolutional neural networks are one of the most commonly used and mature algorithms. This neural network can not only process image data directly, but also be used for other types of data analysis, such as sound data. In order to be applied to the analysis of non-image data, the data can be first converted into feature images, and then in-depth analysis can be performed through image convolutional neural networks. Some existing image convolutional neural networks for processing non-image data include WaveNet networks, SpecCNN networks, and GAN networks.
[0004] However, the current data analysis process usually requires the specialized design of specific convolutional neural networks, which is complicated and prolongs the analysis cycle. Summary of the invention
[0005] In view of this, it is necessary to provide an operating system real-time analysis method and device based on image analysis to solve the problems of low efficiency and complex model construction of real-time operating systems in the prior art in processing image data.
[0006] In order to solve the above problems, the present invention provides an operating system real-time analysis method based on image analysis, comprising: Acquire real-time data of the real-time operating system, mark the timestamp of the real-time data, and determine the weight value of the real-time data to the response time of the real-time operating system; The real-time data is grouped and a color channel is matched to each group of real-time data; based on the corresponding color channel, a pixel is established according to the time stamp of the real-time data; And according to the weight value of the response time corresponding to the real-time data, the gray value of each pixel in each color channel is obtained to determine the characteristic image of the preset time area; The preset image convolutional neural network is used to analyze the feature image to obtain a processing result.
[0007] In a possible implementation, determining a weight value of the real-time data to the response time of the real-time operating system includes: Determine the location information of the real-time data in the entire data set according to the timestamp of the real-time data; Determining the priority of the real-time data according to the sensitivity and real-time nature of the real-time data; The weight value of the real-time data to the response time of the real-time operating system is determined according to the location information, response time and priority of the real-time data.
[0008] In a possible implementation manner, determining the priority of the real-time data according to the sensitivity and real-time nature of the real-time data includes: Based on the location information and data value of the real-time data, interpolation is performed between the data values of the plurality of real-time data to obtain a continuous data value curve change trend of the entire data set; The priority of the real-time data is determined according to the changing trend of the data value curve.
[0009] In a possible implementation, the weight value can be expressed by the following formula:
[0010] in, represents the weight value, n represents the number of data in the full data set of real-time data, Indicates location information. Indicates the timestamp corresponding to data i, represents the priority of data i, and t represents the response time.
[0011] In a possible implementation, obtaining the grayscale value of each pixel in each color channel according to the weight value of the response time corresponding to the real-time data, and determining the characteristic image of the preset time area includes: Divide the grid area according to the location information and timestamp corresponding to the real-time data, and establish a pixel for each grid; Determine the color channel of the real-time data and the actual gray value of each pixel according to the weight value corresponding to the real-time data and the initial gray value of each pixel; The actual grayscale values of pixels at the same position in the color channels corresponding to the various real-time data are superimposed to determine the characteristic image of the preset time zone.
[0012] In a possible implementation, the initial grayscale value of each pixel is obtained by the following formula:
[0013] in, is the initial grayscale value, and E is the proportional coefficient.
[0014] In a possible implementation, the actual grayscale value of each pixel may be determined by the following formula:
[0015] in, In the color channel corresponding to the real-time data, the coordinates are The gray value of the pixel, is the initial gray value, is the set of all pixels, The coordinates are The pixels and coordinates are The Euclidean distance between pixels, In the color channel corresponding to the real-time data, the coordinates are The initial grayscale value of the pixel.
[0016] In a second aspect, the present invention further provides an operating system real-time analysis device based on image analysis, comprising: A weight value determination module, used for acquiring real-time data of the real-time operating system, marking the timestamp of the real-time data, and determining the weight value of the real-time data to the response time of the real-time operating system; A pixel creation module, used to group the real-time data and match a color channel to each group of real-time data; based on the corresponding color channel, create pixels according to the timestamp of the real-time data; A characteristic image determination module, used to obtain the gray value of each pixel in each color channel according to the weight value of the response time corresponding to the real-time data, and determine the characteristic image of the preset time area; The analysis module is used to analyze the feature image using a preset image convolutional neural network to obtain a processing result.
[0017] In a third aspect, the present invention further provides an electronic device, comprising: a processor and a memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the steps in the method for analyzing the real-time performance of an operating system based on image analysis as described above are implemented.
[0018] In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the operating system real-time analysis method based on image analysis as described above.
[0019] The beneficial effects of the present invention are as follows: first, the real-time data of the real-time operating system is obtained, the timestamp of the real-time data is marked, and the weight value of the real-time data on the response time of the real-time operating system is determined; then the real-time data is grouped, and a color channel is matched to each group of real-time data; based on the corresponding color channel, pixels are established according to the timestamp of the real-time data; then, according to the weight value of the response time corresponding to the real-time data, the gray value of each pixel in each color channel is obtained, and the characteristic image of the preset time area is determined; finally, the characteristic image is analyzed by a preset image convolution neural network to obtain a processing result. The present invention reflects the real-time data through different color channels, and then reflects the state of the influence of different data in the whole data set on the response time through the pixel gray value of the image, and the gray value is obtained in combination with the weight value affecting the response time, so that the established characteristic image retains the information contained in the real-time data to the greatest extent, so that the constructed characteristic image can be directly input into the image convolution neural network, without the need to design a network architecture separately, shortening the cycle of data analysis and improving the processing efficiency of real-time data. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] FIG1 is a method flow chart of an embodiment of a method for analyzing the real-time performance of an operating system based on image analysis provided by the present invention; Figure 2 for Figure 1 A method flow chart of an embodiment of step S101; Figure 3 for Figure 1 A method flow chart of an embodiment of step S103; Figure 4 is a schematic diagram of an embodiment of an operating system real-time analysis device based on image analysis provided by the present invention; Figure 5 It is a schematic diagram of the operating environment of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0021] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0022] A specific embodiment of the present invention discloses a method for analyzing the real-time performance of an operating system based on image analysis. Figure 1 ,include: S101, acquiring real-time data of a real-time operating system, marking a timestamp of the real-time data, and determining a weight value of the real-time data to a response time of the real-time operating system; S102, grouping the real-time data, and matching a color channel to each group of real-time data; based on the corresponding color channel, establishing pixels according to the timestamp of the real-time data; S103, obtaining the grayscale value of each pixel in each color channel according to the weight value of the response time corresponding to the real-time data, and determining the characteristic image of the preset time area; S104: Analyze the feature image using a preset image convolutional neural network to obtain a processing result.
[0023] In this embodiment, firstly, the real-time data of the real-time operating system is obtained, the timestamp of the real-time data is marked, and the weight value of the real-time data on the response time of the real-time operating system is determined; then the real-time data is grouped, and a color channel is matched to each group of real-time data; based on the corresponding color channel, pixels are established according to the timestamp of the real-time data; then, according to the weight value of the response time corresponding to the real-time data, the gray value of each pixel in each color channel is obtained, and the characteristic image of the preset time area is determined; finally, the preset image convolution neural network is used to analyze the characteristic image to obtain the processing result. The present invention reflects the real-time data through different color channels, and then reflects the state of the influence of different data in the whole data set on the response time through the pixel gray value of the image, and the gray value is obtained in combination with the weight value affecting the response time, so that the established characteristic image retains the information contained in the real-time data to the greatest extent, so that the constructed characteristic image can be directly input into the image convolution neural network, without the need to design a network architecture separately, shortening the data analysis cycle and improving the processing efficiency of real-time data.
[0024] It should be noted that for real-time operating systems with different functions and uses, the types of real-time data are different. For example, real-time operating systems can be used to control production lines, robots and other equipment, and the corresponding real-time data at least includes production progress data, production line sensor data and production line equipment control data. It can be seen that the same real-time operating system must contain multiple or multiple real-time data, each of which has different requirements for response time, or the same data has different requirements for response time in different time periods. Therefore, by analyzing the weight value of the real-time data and determining the feature image according to the weight value, it is more effective to implement dynamic scheduling strategies according to the weight value of the real-time data, optimize system resources, ensure rapid response to high-priority real-time data, and improve the timeliness and reliability of tasks. Furthermore, according to the weights of different real-time data, system resources such as processor time, memory, etc. are reasonably allocated to meet the different requirements of different data for response time and improve the overall efficiency of the system.
[0025] In some embodiments, the weight value of the real-time data to the response time of the real-time operating system is determined. Figure 2 ,include: S201, determining location information of the real-time data in the entire data set according to the timestamp of the real-time data; S202, determining the priority of the real-time data according to the sensitivity and real-time nature of the real-time data; S203: Determine a weight value of the real-time data to the response time of the real-time operating system according to the location information, response time and priority of the real-time data.
[0026] In this embodiment, the timestamp records the time when the data is generated or received. The timestamp can be used to sort the real-time data in chronological order to determine its relative position in the entire data set. This helps to determine the importance of the data and its position in the overall data flow. In this way, the weight value of the data to the response time is determined by combining the location information, priority and response time of the real-time data to help the system process data of different importance and real-time more effectively. A more targeted and optimized data processing strategy can be provided for the real-time operating system, thereby improving the response speed and data processing efficiency of the system.
[0027] In some embodiments, determining the priority of the real-time data according to the sensitivity and real-time nature of the real-time data includes: Based on the location information and data value of the real-time data, interpolation is performed between the data values of the plurality of real-time data to obtain a continuous data value curve change trend of the entire data set; The priority of the real-time data is determined according to the changing trend of the data value curve.
[0028] In this embodiment, for real-time data involving time, a data value curve of the entire data set can be constructed based on the timestamp and the data value. Through the interpolation method, the data value can be continuously interpolated in time, so as to obtain the change trend of the continuous data value curve of the entire data set. This helps to understand the overall change law and trend of the data. By analyzing the change trend of the data value curve, the characteristics of the data change rate, change amplitude, and change periodicity can be determined, so as to better determine the weight value of the real-time data, and further provide the most complete and clear feature image expressing the real-time data.
[0029] Furthermore, the weight value can be expressed by the following formula:
[0030] in, represents the weight value, n represents the number of data in the full data set of real-time data, Indicates location information. Indicates the timestamp corresponding to data i, represents the priority of data i, and t represents the response time.
[0031] In some embodiments, see Figure 3 , and according to the weight value of the response time corresponding to the real-time data, obtaining the gray value of each pixel in each color channel, and determining the characteristic image of the preset time area, including: S301, dividing the grid area according to the location information and timestamp corresponding to the real-time data, and establishing a pixel for each grid; S302, determining the color channel of the real-time data and the actual gray value of each pixel according to the weight value corresponding to the real-time data and the initial gray value of each pixel; S303, superimposing actual grayscale values of pixels at the same position in color channels corresponding to a plurality of real-time data to determine a characteristic image of a preset time region.
[0032] In this embodiment, when assigning a grayscale value to a pixel, not only the initial grayscale value of the pixel itself is considered, but also the influence of surrounding pixels on it is considered, so that the established grayscale value can most accurately reflect the actual situation.
[0033] In a preferred embodiment, the initial grayscale value of each pixel is obtained by the following formula:
[0034] in, is the initial grayscale value, and E is the proportional coefficient, so at this time it can be directly multiplied by the grayscale level of the image to get the initial grayscale value.
[0035] Furthermore, the actual grayscale value of each pixel can be determined by the following formula:
[0036] in, In the color channel corresponding to the real-time data, the coordinates are The gray value of the pixel, is the initial gray value, is the set of all pixels, The coordinates are The pixels and coordinates are The Euclidean distance between pixels, In the color channel corresponding to the real-time data, the coordinates are The initial grayscale value of the pixel.
[0037] In this embodiment, the grayscale value of a pixel needs to reflect the image characteristics over a period of time, so the motion influence of various factors needs to be considered. Therefore, when calculating the grayscale value of the target point, it is necessary to combine its own initial grayscale value and the influence of its nearby pixels on it. In this way, each color channel finally obtained can reflect the most realistic state.
[0038] Based on the above-mentioned operating system real-time analysis method based on image analysis, the present invention also provides an operating system real-time analysis device based on image analysis, please refer to Figure 4 , including: a weight value determination module 410, a pixel establishment module 420, a feature image determination module 430 and an analysis module 440.
[0039] The weight value determination module 410 is used to obtain the real-time data of the real-time operating system, mark the timestamp of the real-time data, and determine the weight value of the real-time data to the response time of the real-time operating system; The pixel creation module 420 is used to group the real-time data and match a color channel to each group of real-time data; based on the corresponding color channel, create pixels according to the timestamp of the real-time data; The characteristic image determination module 430 is used to obtain the gray value of each pixel in each color channel according to the weight value of the response time corresponding to the real-time data, and determine the characteristic image of the preset time area; The analysis module 440 is used to analyze the feature image using a preset image convolutional neural network to obtain a processing result.
[0040] like Figure 5 As shown, based on the above-mentioned operating system real-time analysis method based on image analysis, the present invention also provides an electronic device, which can be a computing electronic device such as a mobile terminal, a desktop computer, a notebook, a palm computer, and a server. The electronic device includes a processor 510, a memory 520, and a display 530. Figure 5 Only some components of the electronic device are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0041] In some embodiments, the memory 520 may be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device. In other embodiments, the memory 520 may also be an external storage electronic device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 520 may also include both an internal storage unit of the electronic device and an external storage electronic device. The memory 520 is used to store application software and various types of data installed in the electronic device, such as program codes installed in the electronic device. The memory 520 may also be used to temporarily store data that has been output or is to be output. In one embodiment, an operating system real-time analysis program 540 based on image analysis is stored on the memory 520, and the operating system real-time analysis program 540 based on image analysis can be executed by the processor 510, thereby realizing the operating system real-time analysis method based on image analysis in each embodiment of the present application.
[0042] In some embodiments, the processor 510 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 520, such as executing an operating system real-time analysis method based on image analysis.
[0043] In some embodiments, the display 530 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 530 is used to display the information of the electronic device analyzed in real time by the image analysis-based operating system and to display a visual user interface. The components 510-530 of the electronic device communicate with each other via a system bus.
[0044] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0045] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for analyzing the real-time performance of an operating system based on image analysis, characterized in that: include: Acquire real-time data of the real-time operating system, mark the timestamp of the real-time data, and determine the weight value of the real-time data to the response time of the real-time operating system; The real-time data is grouped and a color channel is matched to each group of real-time data; based on the corresponding color channel, a pixel is established according to the time stamp of the real-time data; And according to the weight value of the response time corresponding to the real-time data, the gray value of each pixel in each color channel is obtained to determine the characteristic image of the preset time area; The preset image convolutional neural network is used to analyze the feature image to obtain a processing result.
2. The method for real-time analysis of operating system based on image analysis according to claim 1, characterized in that: Determining a weight value of the real-time data to the response time of the real-time operating system includes: Determine the location information of the real-time data in the entire data set according to the timestamp of the real-time data; Determining the priority of the real-time data according to the sensitivity and real-time nature of the real-time data; The weight value of the real-time data to the response time of the real-time operating system is determined according to the location information, response time and priority of the real-time data.
3. The method for real-time analysis of operating system based on image analysis according to claim 2, characterized in that: Determining the priority of the real-time data according to the sensitivity and real-time nature of the real-time data includes: Based on the location information and data value of the real-time data, interpolation is performed between the data values of the plurality of real-time data to obtain a continuous data value curve change trend of the entire data set; The priority of the real-time data is determined according to the changing trend of the data value curve.
4. The method for real-time analysis of operating system based on image analysis according to claim 2, characterized in that: The weight value can be expressed by the following formula: in, represents the weight value, n represents the number of data in the full data set of real-time data, Indicates location information. Indicates the timestamp corresponding to data i, represents the priority of data i, and t represents the response time.
5. The method for real-time analysis of operating system based on image analysis according to claim 1, characterized in that: The method further comprises: obtaining the grayscale value of each pixel in each color channel according to the weight value of the response time corresponding to the real-time data, and determining the characteristic image of the preset time area, including: Divide the grid area according to the location information and timestamp corresponding to the real-time data, and establish a pixel for each grid; Determine the color channel of the real-time data and the actual gray value of each pixel according to the weight value corresponding to the real-time data and the initial gray value of each pixel; The actual grayscale values of pixels at the same position in the color channels corresponding to the various real-time data are superimposed to determine the characteristic image of the preset time zone.
6. The method for real-time analysis of operating system based on image analysis according to claim 5, characterized in that: The initial grayscale value of each pixel is obtained by the following formula: in, is the initial grayscale value, and E is the proportional coefficient.
7. The method for real-time analysis of operating system based on image analysis according to claim 6, characterized in that: The actual grayscale value of each pixel can be determined by the following formula: in, In the color channel corresponding to the real-time data, the coordinates are The gray value of the pixel, is the initial gray value, is the set of all pixels, The coordinates are The pixels and coordinates are The Euclidean distance between pixels, In the color channel corresponding to the real-time data, the coordinates are The initial grayscale value of the pixel.
8. An operating system real-time analysis device based on image analysis, characterized in that: include: A weight value determination module, used for acquiring real-time data of the real-time operating system, marking the timestamp of the real-time data, and determining the weight value of the real-time data to the response time of the real-time operating system; A pixel creation module, used to group the real-time data and match a color channel to each group of real-time data; based on the corresponding color channel, create pixels according to the timestamp of the real-time data; A characteristic image determination module, used to obtain the gray value of each pixel in each color channel according to the weight value of the response time corresponding to the real-time data, and determine the characteristic image of the preset time area; The analysis module is used to analyze the feature image using a preset image convolutional neural network to obtain a processing result.
9. An electronic device, characterized in that: include: Processor and memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the steps in the operating system real-time analysis method based on image analysis as described in claims 1-7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the operating system real-time analysis method based on image analysis as described in claims 1-7.
