WO2021036465A1 - Edge device processing method and apparatus, storage medium, and processor - Google Patents

Edge device processing method and apparatus, storage medium, and processor Download PDF

Info

Publication number
WO2021036465A1
WO2021036465A1 PCT/CN2020/098595 CN2020098595W WO2021036465A1 WO 2021036465 A1 WO2021036465 A1 WO 2021036465A1 CN 2020098595 W CN2020098595 W CN 2020098595W WO 2021036465 A1 WO2021036465 A1 WO 2021036465A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
edge device
sliding window
slope value
window
Prior art date
Application number
PCT/CN2020/098595
Other languages
French (fr)
Chinese (zh)
Inventor
施文彪
Original Assignee
北京国双科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京国双科技有限公司 filed Critical 北京国双科技有限公司
Publication of WO2021036465A1 publication Critical patent/WO2021036465A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing

Definitions

  • This application relates to the field of information processing technology, and in particular, to a processing method and device, storage medium, and processor of an edge device.
  • Edge computing originated in the media field, which refers to the use of an open platform that integrates network, computing, storage, and application core capabilities on the side close to the source of things or data, and provides the nearest service nearby. Its applications are initiated at the edge, resulting in faster network service response and meeting the industry's basic needs in real-time business, application intelligence, security, and privacy protection. Edge computing is between physical entities and industrial connections, or at the top of physical entities. And cloud computing, you can still access the historical data of edge computing. Real-time analysis is an important application scenario for edge computing. For abnormal conditions of edge device operating status, there are often abnormal conditions that are difficult to determine the operating status of edge devices in time or failure to deal with abnormal conditions in time leads to subsequent unplanned shutdowns.
  • the main purpose of this application is to provide an edge device processing method and device, storage medium, and processor, so as to solve the problem in the related art that it is difficult to determine the abnormal situation of the edge device operating state in time.
  • an edge device processing method includes: inputting the collected sensor data of the edge device into a stream computing engine; performing window processing on the sensor data through the stream computing engine to obtain multiple sliding windows including data; according to the data in each sliding window The data calculates the slope value; based on the calculated slope value, it is determined whether the operating state of the edge device is in an abnormal state.
  • calculating the slope value according to the data in each sliding window includes: obtaining each sliding window including the maximum and minimum values in the data; obtaining the window length of each sliding window; based on the window length of each sliding window, each The maximum and minimum values in the data of the two sliding windows calculate the slope value of each sliding window.
  • determining whether the operating state of the edge device is in an abnormal state based on the calculated slope value includes: judging whether the calculated slope value of each sliding window is greater than a preset slope value; if there is a slope value of the sliding window greater than the The preset slope value determines that the operating state of the edge device is in an abnormal state.
  • the method further includes: if it is determined that the operating state of the edge device is in an abnormal state, triggering a reminder message to remind target.
  • performing windowing processing on the sensor data by the stream computing engine to obtain multiple sliding windows including data includes: determining a time interval for performing windowing processing on the sensor data; using the stream computing engine according to Window processing is performed on the sensor data at the time interval to obtain a plurality of sliding windows including the data.
  • the sensor data includes at least one of the following: vibration characteristic value data and process quantity data.
  • an edge device processing apparatus including: an input unit configured to input collected sensor data of the edge device into a stream computing engine; and an acquisition unit configured to pass through the The flow calculation engine performs window processing on the sensor data to obtain multiple sliding windows including data; the calculation unit is configured to calculate the slope value according to the data in each sliding window; the determination unit is configured to be based on the calculated slope The value determines whether the operating state of the edge device is in an abnormal state.
  • the calculation unit further includes: a first acquisition module, configured to acquire the maximum and minimum values included in the data included in each sliding window; a second acquisition module, configured to acquire the window length of each sliding window; and a calculation module , Is set to calculate the slope value of each sliding window based on the window length of each sliding window, the maximum and minimum values in the data of each sliding window.
  • a computer-readable storage medium wherein the storage medium includes a stored program, wherein the program executes any of the above-mentioned edge device Approach.
  • an electronic device including at least one processor, and at least one memory and a bus connected to the processor; wherein the processor , The memory completes mutual communication through the bus; the processor is used to call program instructions in the memory to execute any one of the above-mentioned edge device processing methods.
  • the following steps are adopted: input the collected sensor data of the edge device into the stream computing engine; perform window processing on the sensor data through the stream computing engine to obtain multiple sliding windows including data; according to the data in each sliding window
  • the data calculates the slope value; based on the calculated slope value, it is determined whether the running state of the edge device is in an abnormal state, which solves the problem that it is difficult to determine the abnormal situation of the running state of the edge device in time in the related technology.
  • Based on the slope value calculated from the data in the sliding window it is determined whether the operating state of the edge device is in an abnormal state, thereby achieving the effect of improving the timeliness of determining the abnormality of the operating state of the edge device.
  • Fig. 1 is a flowchart of a processing method for an edge device according to an embodiment of the present application
  • Fig. 2 is a schematic diagram of a sensor data input stream calculation engine provided according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of windowing processing of sensor data provided by an embodiment of the present application.
  • Fig. 4 is a schematic diagram of an edge device processing apparatus according to an embodiment of the present application.
  • Fig. 5 is a block diagram of a device provided according to an embodiment of the present application.
  • Stream computing in the traditional data processing process, always collect data first, and then put the data in the DB. When people need to query data through DB, get answers or perform related processing. Although this seems very reasonable, the result is very compact, especially for some specific problems in some real-time search application environments. Offline processing similar to the MapReduce method cannot solve the problem well. This leads to a new data computing structure-stream computing. It can well analyze the large-scale flow of data in real-time during the changing movement process, capture potentially useful information, and send the result to the next computing node.
  • an edge device processing method is provided.
  • Fig. 1 is a flowchart of a processing method of an edge device according to an embodiment of the present application. As shown in Figure 1, the method includes the following steps:
  • Step S101 Input the collected sensor data of the edge device into the stream computing engine.
  • the aforementioned sensor data includes at least one of the following: vibration characteristic value data and process quantity data.
  • the process quantity data includes temperature data, pressure data, and humidity data.
  • the collected temperature data are: 2,5,9,8,8,3,4,2,2,5, 1,1,1,2,5,9. Input the collected temperature into the schematic diagram of the flow calculation engine, as shown in Figure 2.
  • Step S102 Perform window processing on the sensor data by the stream computing engine to obtain multiple sliding windows including data.
  • performing window processing on the sensor data by the stream computing engine to obtain multiple sliding windows including data includes: determining that the sensor data is The time interval for performing windowing processing; the stream computing engine performs windowing processing on the sensor data according to the time interval to obtain multiple sliding windows including data.
  • the above-mentioned time interval is the time length corresponding to the step length of each sliding of the window.
  • the time interval for windowing the sensor data is 1s, if the data collected in 1s is 2 and the sliding window contains 4 data, then the temperature data collected above is windowed as Shown in Figure 3. That is, the stream computing engine slides the sensor data into different sliding windows according to time intervals to obtain multiple sliding windows including data.
  • sliding window 1 includes data 2, 5, 9, 8; sliding window 2 includes data 9, 8, 8, 3; sliding window 3 includes data 8, 3, 4, 2; and so on.
  • Step S103 Calculate the slope value according to the data in each sliding window.
  • calculating the slope value according to the data in each sliding window includes: acquiring each sliding window including the maximum value and the minimum value in the data; acquiring each sliding window The window length of the window; the slope value of each sliding window is calculated based on the window length of each sliding window, the maximum value and the minimum value in the data of each sliding window.
  • Step S104 Determine whether the operating state of the edge device is in an abnormal state based on the calculated slope value.
  • the preset slope value is 2, and if the calculated slope value of the sliding window is greater than 2, it is determined that the operating state of the edge device is in an abnormal state.
  • a reminder message can be triggered to remind the target object. So that the target object can obtain the running status of the edge device in time, and deal with the edge device in time.
  • the slope analysis method using time sliding window combined with flow calculation can determine the abnormal situation of the edge device operating state in time, so as to avoid the failure to know the abnormal situation of the edge device operating state and lead to subsequent unplanned shutdowns.
  • the edge device processing method inputs the collected sensor data of the edge device into a stream computing engine; the stream computing engine performs window processing on the sensor data to obtain multiple data including data. Sliding window; calculate the slope value according to the data in each sliding window; determine whether the operating state of the edge device is in an abnormal state based on the calculated slope value, which solves the problem of the related technology that it is difficult to determine the abnormal situation of the edge device's operating state in time. Based on the slope value calculated from the data in the sliding window, it is determined whether the operating state of the edge device is in an abnormal state, thereby achieving the effect of improving the timeliness of determining the abnormality of the operating state of the edge device.
  • the embodiment of the present application also provides a processing apparatus for an edge device. It should be noted that the processing apparatus for an edge device in an embodiment of the present application can be used to execute the processing method for an edge device provided in the embodiment of the present application. The following describes the processing apparatus of the edge device provided in the embodiment of the present application.
  • Fig. 4 is a schematic diagram of a processing apparatus of an edge device according to an embodiment of the present application. As shown in FIG. 4, the device includes: an input unit 201, an acquisition unit 202, a calculation unit 203, and a determination unit 204.
  • the input unit 201 is configured to input the collected sensor data of the edge device into the stream computing engine;
  • the acquiring unit 202 is configured to perform window processing on the sensor data through the stream computing engine to obtain multiple sliding windows including data;
  • the calculation unit 203 is configured to calculate the slope value according to the data in each sliding window
  • the determining unit 204 is configured to determine whether the operating state of the edge device is in an abnormal state based on the calculated slope value.
  • the calculation unit 203 further includes: a first obtaining module configured to obtain the maximum value and the minimum value in the data included in each sliding window; and second The obtaining module is set to obtain the window length of each sliding window; the calculating module is set to calculate the slope value of each sliding window based on the window length of each sliding window and the maximum and minimum values in the data of each sliding window.
  • the determining unit 204 includes: a determining module configured to determine whether the slope value calculated for each sliding window is greater than a preset slope value; The module is configured to determine that the operating state of the edge device is in an abnormal state when the slope value of the sliding window is greater than the preset slope value.
  • the apparatus further includes: a reminding unit configured to determine whether the operating state of the edge device is in an abnormal state based on the calculated slope value, When it is determined that the operating state of the edge device is in an abnormal state, a reminder message is triggered to remind the target object.
  • the acquiring unit 202 further includes: a second determining module configured to determine a time interval for performing windowing processing on the sensor data; and third acquiring The module is configured to perform window processing on the sensor data according to the time interval through the stream computing engine to obtain multiple sliding windows including data.
  • the sensor data includes at least one of the following: vibration characteristic value data and process quantity data.
  • the collected sensor data of the edge device is input into the stream computing engine through the input unit 201; the acquisition unit 202 performs window processing on the sensor data through the stream computing engine to obtain A plurality of sliding windows including data; the calculation unit 203 calculates the slope value according to the data in each sliding window; the determination unit 204 determines whether the operating state of the edge device is in an abnormal state based on the calculated slope value, which solves the problem in the related art It is difficult to determine the abnormal situation of the edge device operating state in time. Based on the slope value calculated from the data in the sliding window, determine whether the operating state of the edge device is in an abnormal state, thereby improving the abnormal situation of determining the operating state of the edge device The effect of timeliness.
  • the processing device of the edge device includes a processor and a memory.
  • the input unit 201, the acquisition unit 202, the calculation unit 203, and the determination unit 204 are all stored as program units in the memory, and the processor executes the above programs stored in the memory. Unit to realize the corresponding function.
  • the processor contains the kernel, and the kernel calls the corresponding program unit from the memory.
  • the kernel can be set to one or more, by adjusting the kernel parameters to deal with edge devices.
  • the embodiment of the present invention provides a computer-readable storage medium on which a program is stored, and the program is executed by a processor to implement the processing method of the edge device.
  • the embodiment of the present invention provides a processor configured to run a program, wherein the processing method of the edge device is executed when the program is running.
  • the device 70 includes at least one processor 701, and at least one memory 702 and a bus 703 connected to the processor; wherein the processor and the memory complete each other through the bus. Inter-communication; the processor is used to call the program instructions in the memory to execute the above-mentioned edge device processing method.
  • the devices in this article can be servers, PCs, PADs, mobile phones, etc.
  • This application also provides a computer program product, which when executed on a data processing device, is suitable for executing a program that initializes the following method steps: inputting the collected sensor data of the edge device into the stream computing engine; using the stream computing The engine performs window processing on the sensor data to obtain multiple sliding windows including data; calculates a slope value based on the data in each sliding window; determines whether the operating state of the edge device is in an abnormal state based on the calculated slope value .
  • calculating the slope value according to the data in each sliding window includes: obtaining each sliding window including the maximum and minimum values in the data; obtaining The window length of each sliding window; the slope value of each sliding window is calculated based on the window length of each sliding window, the maximum value and the minimum value in the data of each sliding window.
  • determining whether the operating state of the edge device is in an abnormal state based on the calculated slope value includes: judging the slope calculated by each sliding window Whether the value is greater than the preset slope value; if the slope value of the sliding window is greater than the preset slope value, it is determined that the operating state of the edge device is in an abnormal state.
  • the method When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: after determining whether the operating state of the edge device is in an abnormal state based on the calculated slope value, the method further includes: if it is determined If the operating state of the edge device is in an abnormal state, a reminder message is triggered to remind the target object.
  • windowing the sensor data through the stream computing engine to obtain multiple sliding windows including data includes: determining to The time interval during which the sensor data is subjected to windowing processing; the stream computing engine performs windowing processing on the sensor data according to the time interval to obtain a plurality of sliding windows including data.
  • the sensor data When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: the sensor data includes at least one of the following: vibration characteristic value data and process quantity data.
  • the device includes one or more processors (CPUs), memory, and buses.
  • the device may also include input/output interfaces, network interfaces, and so on.
  • the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one Memory chip.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • the memory is an example of a computer-readable medium.
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • this application can be provided as a method, a system, or a computer program product. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

Disclosed in the present application are an edge device processing method and apparatus, a storage medium, and a processor. The method comprises: inputting collected sensor data of an edge device into a stream computing engine; performing window separation processing on the sensor data by means of the stream computing engine to obtain a plurality of sliding windows comprising data; calculating a slope value according to the data in each sliding window; and determining, on the basis of the calculated slope value, whether a running state of the edge device is in an abnormal state. By means of the present application, the problem in the related art that it is difficult to determine an abnormal running state of the edge device in a timely fashion is solved.

Description

边缘设备的处理方法及装置、存储介质和处理器Edge equipment processing method and device, storage medium and processor
本申请要求于2019年08月30日提交中国专利局、申请号为201910817943.6、发明名称“边缘设备的处理方法及装置、存储介质和处理器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910817943.6, and the title of the invention "Processing method and device of edge device, storage medium and processor" on August 30, 2019, the entire content of which is incorporated by reference Incorporated in this application.
技术领域Technical field
本申请涉及信息处理技术领域,具体而言,涉及一种边缘设备的处理方法及装置、存储介质和处理器。This application relates to the field of information processing technology, and in particular, to a processing method and device, storage medium, and processor of an edge device.
背景技术Background technique
边缘计算起源于传媒领域,是指在靠近物或数据源头的一侧,采用网络、计算、存储、应用核心能力为一体的开放平台,就近提供最近端服务。其应用程序在边缘侧发起,产生更快的网络服务响应,满足行业在实时业务、应用智能、安全与隐私保护等方面的基本需求。边缘计算处于物理实体和工业连接之间,或处于物理实体的顶端。而云端计算,仍然可以访问边缘计算的历史数据。实时分析是边缘计算的重要应用场景,针对边缘设备运行状态的异常情况,时常出现难以及时确定边缘设备运行状态的异常情况或者针对异常情况的报警处理不及时导致后续非计划停机。Edge computing originated in the media field, which refers to the use of an open platform that integrates network, computing, storage, and application core capabilities on the side close to the source of things or data, and provides the nearest service nearby. Its applications are initiated at the edge, resulting in faster network service response and meeting the industry's basic needs in real-time business, application intelligence, security, and privacy protection. Edge computing is between physical entities and industrial connections, or at the top of physical entities. And cloud computing, you can still access the historical data of edge computing. Real-time analysis is an important application scenario for edge computing. For abnormal conditions of edge device operating status, there are often abnormal conditions that are difficult to determine the operating status of edge devices in time or failure to deal with abnormal conditions in time leads to subsequent unplanned shutdowns.
针对相关技术中难以及时确定边缘设备运行状态的异常情况的问题,目前尚未提出有效的解决方案。Regarding the problem that it is difficult to determine the abnormal situation of the edge device operating state in a related technology in a timely manner, no effective solution has yet been proposed.
发明内容Summary of the invention
本申请的主要目的在于提供一种边缘设备的处理方法及装置、存储介质和处理器,以解决相关技术中难以及时确定边缘设备运行状态的异常情况的问题。The main purpose of this application is to provide an edge device processing method and device, storage medium, and processor, so as to solve the problem in the related art that it is difficult to determine the abnormal situation of the edge device operating state in time.
为了实现上述目的,根据本申请的一个方面,提供了一种边缘设备的处理方法。该方法包括:将采集到的边缘设备的传感器数据输入流计算引擎;通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口;根据每个滑动窗口中的数据计算斜率值;基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态。In order to achieve the foregoing objective, according to one aspect of the present application, an edge device processing method is provided. The method includes: inputting the collected sensor data of the edge device into a stream computing engine; performing window processing on the sensor data through the stream computing engine to obtain multiple sliding windows including data; according to the data in each sliding window The data calculates the slope value; based on the calculated slope value, it is determined whether the operating state of the edge device is in an abnormal state.
进一步地,根据每个滑动窗口中的数据计算斜率值包括:获取每个滑动窗口包括 数据中的最大值和最小值;获取每个滑动窗口的窗口长度;基于每个滑动窗口的窗口长度、每个滑动窗口的数据中的最大值和最小值计算每个滑动窗口的斜率值。Further, calculating the slope value according to the data in each sliding window includes: obtaining each sliding window including the maximum and minimum values in the data; obtaining the window length of each sliding window; based on the window length of each sliding window, each The maximum and minimum values in the data of the two sliding windows calculate the slope value of each sliding window.
进一步地,基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态包括:判断每个滑动窗口计算出的斜率值是否大于预设斜率值;若存在滑动窗口的斜率值大于所述预设斜率值,则确定所述边缘设备的运行状态处于异常状态。Further, determining whether the operating state of the edge device is in an abnormal state based on the calculated slope value includes: judging whether the calculated slope value of each sliding window is greater than a preset slope value; if there is a slope value of the sliding window greater than the The preset slope value determines that the operating state of the edge device is in an abnormal state.
进一步地,在基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态之后,所述方法还包括:若确定所述边缘设备的运行状态处于异常状态,则触发提醒信息,以提醒目标对象。Further, after determining whether the operating state of the edge device is in an abnormal state based on the calculated slope value, the method further includes: if it is determined that the operating state of the edge device is in an abnormal state, triggering a reminder message to remind target.
进一步地,通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口包括:确定对所述传感器数据进行分窗处理的时间间隔;通过所述流计算引擎按照所述时间间隔对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口。Further, performing windowing processing on the sensor data by the stream computing engine to obtain multiple sliding windows including data includes: determining a time interval for performing windowing processing on the sensor data; using the stream computing engine according to Window processing is performed on the sensor data at the time interval to obtain a plurality of sliding windows including the data.
进一步地,所述传感器数据包括以下至少之一:振动特征值数据、工艺量数据。Further, the sensor data includes at least one of the following: vibration characteristic value data and process quantity data.
为了实现上述目的,根据本申请的一个方面,提供了一种边缘设备的处理装置,包括:输入单元,设置为将采集到的边缘设备的传感器数据输入流计算引擎;获取单元,设置为通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口;计算单元,设置为根据每个滑动窗口中的数据计算斜率值;确定单元,设置为基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态。In order to achieve the above objective, according to one aspect of the present application, there is provided an edge device processing apparatus, including: an input unit configured to input collected sensor data of the edge device into a stream computing engine; and an acquisition unit configured to pass through the The flow calculation engine performs window processing on the sensor data to obtain multiple sliding windows including data; the calculation unit is configured to calculate the slope value according to the data in each sliding window; the determination unit is configured to be based on the calculated slope The value determines whether the operating state of the edge device is in an abnormal state.
进一步地,所述计算单元还包括:第一获取模块,设置为获取每个滑动窗口包括数据中的最大值和最小值;第二获取模块,设置为获取每个滑动窗口的窗口长度;计算模块,设置为基于每个滑动窗口的窗口长度、每个滑动窗口的数据中的最大值和最小值计算每个滑动窗口的斜率值。Further, the calculation unit further includes: a first acquisition module, configured to acquire the maximum and minimum values included in the data included in each sliding window; a second acquisition module, configured to acquire the window length of each sliding window; and a calculation module , Is set to calculate the slope value of each sliding window based on the window length of each sliding window, the maximum and minimum values in the data of each sliding window.
为了实现上述目的,根据本申请的一个方面,提供了一种计算机可读的存储介质,其中,所述存储介质包括存储的程序,其中,所述程序执行上述任意一项所述的边缘设备的处理方法。In order to achieve the foregoing objective, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium includes a stored program, wherein the program executes any of the above-mentioned edge device Approach.
为了实现上述目的,根据本申请的一个方面,提供了一种电子设备,其中,所述设备包括至少一个处理器、以及与所述处理器连接的至少一个存储器、总线;其中,所述处理器、所述存储器通过所述总线完成相互间的通信;所述处理器用于调用所述存储器中的程序指令,以执行上述任意一项所述的边缘设备的处理方法。In order to achieve the foregoing objective, according to one aspect of the present application, an electronic device is provided, wherein the device includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor , The memory completes mutual communication through the bus; the processor is used to call program instructions in the memory to execute any one of the above-mentioned edge device processing methods.
通过本申请,采用以下步骤:将采集到的边缘设备的传感器数据输入流计算引擎;通过流计算引擎对传感器数据进行分窗处理,得到多个包括数据的滑动窗口;根据每个滑动窗口中的数据计算斜率值;基于计算出的斜率值确定边缘设备的运行状态是否处于异常状态,解决了相关技术中难以及时确定边缘设备运行状态的异常情况的问题。 基于对滑动窗口中的数据计算出的斜率值,确定边缘设备的运行状态是否处于异常状态,进而达到了提升了确定边缘设备运行状态的异常情况的及时性的效果。Through this application, the following steps are adopted: input the collected sensor data of the edge device into the stream computing engine; perform window processing on the sensor data through the stream computing engine to obtain multiple sliding windows including data; according to the data in each sliding window The data calculates the slope value; based on the calculated slope value, it is determined whether the running state of the edge device is in an abnormal state, which solves the problem that it is difficult to determine the abnormal situation of the running state of the edge device in time in the related technology. Based on the slope value calculated from the data in the sliding window, it is determined whether the operating state of the edge device is in an abnormal state, thereby achieving the effect of improving the timeliness of determining the abnormality of the operating state of the edge device.
附图说明Description of the drawings
构成本申请的一部分的附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings constituting a part of the application are used to provide a further understanding of the application, and the exemplary embodiments and descriptions of the application are used to explain the application, and do not constitute an improper limitation of the application. In the attached picture:
图1是根据本申请实施例提供的边缘设备的处理方法的流程图;Fig. 1 is a flowchart of a processing method for an edge device according to an embodiment of the present application;
图2是根据本申请实施例提供的传感器数据输入流计算引擎的示意图;Fig. 2 is a schematic diagram of a sensor data input stream calculation engine provided according to an embodiment of the present application;
图3是根据本申请实施例提供的传感器数据进行分窗处理的示意图;FIG. 3 is a schematic diagram of windowing processing of sensor data provided by an embodiment of the present application;
图4是根据本申请实施例提供的边缘设备的处理装置的示意图;以及Fig. 4 is a schematic diagram of an edge device processing apparatus according to an embodiment of the present application; and
图5是根据本申请实施例提供的设备框图。Fig. 5 is a block diagram of a device provided according to an embodiment of the present application.
具体实施方式detailed description
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other if there is no conflict. Hereinafter, the present application will be described in detail with reference to the drawings and in conjunction with the embodiments.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the application, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the protection scope of this application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the specification and claims of the application and the above-mentioned drawings are used to distinguish similar objects, and not necessarily used to describe a specific sequence or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances for the purposes of the embodiments of the present application described herein. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those clearly listed. Those steps or units may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.
为了便于描述,以下对本申请实施例涉及的部分名词或术语进行说明:For ease of description, some terms or terms involved in the embodiments of this application are described below:
流计算,在传统的数据处理流程中,总是先收集数据,然后将数据放到DB中。当人们需要的时候通过DB对数据做query,得到答案或进行相关的处理。这样看起来 虽然非常合理,但是结果却非常的紧凑,尤其是在一些实时搜索应用环境中的某些具体问题,类似于Map Reduce方式的离线处理并不能很好地解决问题。这就引出了一种新的数据计算结构---流计算方式。它可以很好地对大规模流动数据在不断变化的运动过程中实时地进行分析,捕捉到可能有用的信息,并把结果发送到下一计算节点。Stream computing, in the traditional data processing process, always collect data first, and then put the data in the DB. When people need to query data through DB, get answers or perform related processing. Although this seems very reasonable, the result is very compact, especially for some specific problems in some real-time search application environments. Offline processing similar to the MapReduce method cannot solve the problem well. This leads to a new data computing structure-stream computing. It can well analyze the large-scale flow of data in real-time during the changing movement process, capture potentially useful information, and send the result to the next computing node.
根据本申请的实施例,提供了一种边缘设备的处理方法。According to an embodiment of the present application, an edge device processing method is provided.
图1是根据本申请实施例的边缘设备的处理方法的流程图。如图1所示,该方法包括以下步骤:Fig. 1 is a flowchart of a processing method of an edge device according to an embodiment of the present application. As shown in Figure 1, the method includes the following steps:
步骤S101,将采集到的边缘设备的传感器数据输入流计算引擎。Step S101: Input the collected sensor data of the edge device into the stream computing engine.
可选地,在本申请实施例提供的边缘设备的处理方法中,上述所述传感器数据包括以下至少之一:振动特征值数据、工艺量数据。Optionally, in the edge device processing method provided in the embodiment of the present application, the aforementioned sensor data includes at least one of the following: vibration characteristic value data and process quantity data.
工艺量数据中包括温度数据、压力数据,湿度数据,例如,传感器数据为温度数据时,采集到的温度数据为:2,5,9,8,8,3,4,2,2,5,1,1,1,2,5,9。将采集到的温度输入流计算引擎的示意图,如图2所示。The process quantity data includes temperature data, pressure data, and humidity data. For example, when the sensor data is temperature data, the collected temperature data are: 2,5,9,8,8,3,4,2,2,5, 1,1,1,2,5,9. Input the collected temperature into the schematic diagram of the flow calculation engine, as shown in Figure 2.
步骤S102,通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口。Step S102: Perform window processing on the sensor data by the stream computing engine to obtain multiple sliding windows including data.
可选地,在本申请实施例提供的边缘设备的处理方法中,通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口包括:确定对所述传感器数据进行分窗处理的时间间隔;通过所述流计算引擎按照所述时间间隔对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口。Optionally, in the edge device processing method provided in the embodiment of the present application, performing window processing on the sensor data by the stream computing engine to obtain multiple sliding windows including data includes: determining that the sensor data is The time interval for performing windowing processing; the stream computing engine performs windowing processing on the sensor data according to the time interval to obtain multiple sliding windows including data.
上述的时间间隔为窗口每次滑动的步长对应的时长。例如,对所述传感器数据进行分窗处理的时间间隔为1s,若1s内采集到的数据为2个,滑动窗口包含的数据是4个,则对上述采集到的温度数据进行分窗处理如图3所示。也即通过所述流计算引擎将传感器数据按照时间间隔滑动到不同的滑动窗口内,得到多个包括数据的滑动窗口。例如,滑动窗口1包括数据2,5,9,8;滑动窗口2包括数据9,8,8,3;滑动窗口3包括数据8,3,4,2;等等。The above-mentioned time interval is the time length corresponding to the step length of each sliding of the window. For example, the time interval for windowing the sensor data is 1s, if the data collected in 1s is 2 and the sliding window contains 4 data, then the temperature data collected above is windowed as Shown in Figure 3. That is, the stream computing engine slides the sensor data into different sliding windows according to time intervals to obtain multiple sliding windows including data. For example, sliding window 1 includes data 2, 5, 9, 8; sliding window 2 includes data 9, 8, 8, 3; sliding window 3 includes data 8, 3, 4, 2; and so on.
步骤S103,根据每个滑动窗口中的数据计算斜率值。Step S103: Calculate the slope value according to the data in each sliding window.
可选地,在本申请实施例提供的边缘设备的处理方法中,根据每个滑动窗口中的数据计算斜率值包括:获取每个滑动窗口包括数据中的最大值和最小值;获取每个滑动窗口的窗口长度;基于每个滑动窗口的窗口长度、每个滑动窗口的数据中的最大值和最小值计算每个滑动窗口的斜率值。Optionally, in the edge device processing method provided in the embodiment of the present application, calculating the slope value according to the data in each sliding window includes: acquiring each sliding window including the maximum value and the minimum value in the data; acquiring each sliding window The window length of the window; the slope value of each sliding window is calculated based on the window length of each sliding window, the maximum value and the minimum value in the data of each sliding window.
例如,滑动窗口1包括的数据中的最大值为9,最小值为2,窗口长度为4,计算出斜率值=(9-2)/4=7/4。For example, the maximum value of the data included in the sliding window 1 is 9, the minimum value is 2, and the window length is 4, and the calculated slope value=(9-2)/4=7/4.
步骤S104,基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态。Step S104: Determine whether the operating state of the edge device is in an abnormal state based on the calculated slope value.
例如,通过判断每个滑动窗口计算出的斜率值是否大于预设斜率值;若存在滑动窗口的斜率值大于所述预设斜率值,则确定所述边缘设备的运行状态处于异常状态。For example, by judging whether the slope value calculated for each sliding window is greater than the preset slope value; if there is a slope value of the sliding window greater than the preset slope value, it is determined that the operating state of the edge device is in an abnormal state.
例如,预设斜率值为2,若计算出的滑动窗口的斜率值大于2,则确定所述边缘设备的运行状态处于异常状态。For example, the preset slope value is 2, and if the calculated slope value of the sliding window is greater than 2, it is determined that the operating state of the edge device is in an abnormal state.
在确定所述边缘设备的运行状态处于异常状态,则可以触发提醒信息,以提醒目标对象。以便目标对象及时获取边缘设备的运行状态,及时对边缘设备的进行相应处理。When it is determined that the operating state of the edge device is in an abnormal state, a reminder message can be triggered to remind the target object. So that the target object can obtain the running status of the edge device in time, and deal with the edge device in time.
通过上述技术手段,采用结合流计算的时间滑动窗口进行斜率分析方法,能够及时确定边缘设备运行状态的异常情况,以避免无法获知边缘设备运行状态的异常情况导致后续非计划停机的情况发生。Through the above technical means, the slope analysis method using time sliding window combined with flow calculation can determine the abnormal situation of the edge device operating state in time, so as to avoid the failure to know the abnormal situation of the edge device operating state and lead to subsequent unplanned shutdowns.
综上所述,本申请实施例提供的边缘设备的处理方法,通过将采集到的边缘设备的传感器数据输入流计算引擎;通过流计算引擎对传感器数据进行分窗处理,得到多个包括数据的滑动窗口;根据每个滑动窗口中的数据计算斜率值;基于计算出的斜率值确定边缘设备的运行状态是否处于异常状态,解决了相关技术中难以及时确定边缘设备运行状态的异常情况的问题。基于对滑动窗口中的数据计算出的斜率值,确定边缘设备的运行状态是否处于异常状态,进而达到了提升了确定边缘设备运行状态的异常情况的及时性的效果。In summary, the edge device processing method provided by the embodiments of the present application inputs the collected sensor data of the edge device into a stream computing engine; the stream computing engine performs window processing on the sensor data to obtain multiple data including data. Sliding window; calculate the slope value according to the data in each sliding window; determine whether the operating state of the edge device is in an abnormal state based on the calculated slope value, which solves the problem of the related technology that it is difficult to determine the abnormal situation of the edge device's operating state in time. Based on the slope value calculated from the data in the sliding window, it is determined whether the operating state of the edge device is in an abnormal state, thereby achieving the effect of improving the timeliness of determining the abnormality of the operating state of the edge device.
需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical sequence is shown in the flowchart, in some cases, The steps shown or described can be performed in a different order than here.
本申请实施例还提供了一种边缘设备的处理装置,需要说明的是,本申请实施例的边缘设备的处理装置可以用于执行本申请实施例所提供的用于边缘设备的处理方法。以下对本申请实施例提供的边缘设备的处理装置进行介绍。The embodiment of the present application also provides a processing apparatus for an edge device. It should be noted that the processing apparatus for an edge device in an embodiment of the present application can be used to execute the processing method for an edge device provided in the embodiment of the present application. The following describes the processing apparatus of the edge device provided in the embodiment of the present application.
图4是根据本申请实施例的边缘设备的处理装置的示意图。如图4所示,该装置包括:输入单元201、获取单元202、计算单元203和确定单元204。Fig. 4 is a schematic diagram of a processing apparatus of an edge device according to an embodiment of the present application. As shown in FIG. 4, the device includes: an input unit 201, an acquisition unit 202, a calculation unit 203, and a determination unit 204.
具体地,输入单元201,设置为将采集到的边缘设备的传感器数据输入流计算引擎;Specifically, the input unit 201 is configured to input the collected sensor data of the edge device into the stream computing engine;
获取单元202,设置为通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口;The acquiring unit 202 is configured to perform window processing on the sensor data through the stream computing engine to obtain multiple sliding windows including data;
计算单元203,设置为根据每个滑动窗口中的数据计算斜率值;The calculation unit 203 is configured to calculate the slope value according to the data in each sliding window;
确定单元204,设置为基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态。The determining unit 204 is configured to determine whether the operating state of the edge device is in an abnormal state based on the calculated slope value.
可选地,在本申请实施例提供的边缘设备的处理装置中,所述计算单元203还包括:第一获取模块,设置为获取每个滑动窗口包括数据中的最大值和最小值;第二获取模块,设置为获取每个滑动窗口的窗口长度;计算模块,设置为基于每个滑动窗口的窗口长度、每个滑动窗口的数据中的最大值和最小值计算每个滑动窗口的斜率值。Optionally, in the processing apparatus of the edge device provided in the embodiment of the present application, the calculation unit 203 further includes: a first obtaining module configured to obtain the maximum value and the minimum value in the data included in each sliding window; and second The obtaining module is set to obtain the window length of each sliding window; the calculating module is set to calculate the slope value of each sliding window based on the window length of each sliding window and the maximum and minimum values in the data of each sliding window.
可选地,在本申请实施例提供的边缘设备的处理装置中,所述确定单元204包括:判断模块,设置为判断每个滑动窗口计算出的斜率值是否大于预设斜率值;第一确定模块,设置为在存在滑动窗口的斜率值大于所述预设斜率值的情况下,则确定所述边缘设备的运行状态处于异常状态。Optionally, in the processing apparatus of the edge device provided in the embodiment of the present application, the determining unit 204 includes: a determining module configured to determine whether the slope value calculated for each sliding window is greater than a preset slope value; The module is configured to determine that the operating state of the edge device is in an abnormal state when the slope value of the sliding window is greater than the preset slope value.
可选地,在本申请实施例提供的边缘设备的处理装置中,所述装置还包括:提醒单元,设置为在基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态之后,在确定所述边缘设备的运行状态处于异常状态的情况下,则触发提醒信息,以提醒目标对象。Optionally, in the apparatus for processing edge devices provided in the embodiment of the present application, the apparatus further includes: a reminding unit configured to determine whether the operating state of the edge device is in an abnormal state based on the calculated slope value, When it is determined that the operating state of the edge device is in an abnormal state, a reminder message is triggered to remind the target object.
可选地,在本申请实施例提供的边缘设备的处理装置中,所述获取单元202还包括:第二确定模块,设置为确定对所述传感器数据进行分窗处理的时间间隔;第三获取模块,设置为通过所述流计算引擎按照所述时间间隔对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口。Optionally, in the processing apparatus of the edge device provided in the embodiment of the present application, the acquiring unit 202 further includes: a second determining module configured to determine a time interval for performing windowing processing on the sensor data; and third acquiring The module is configured to perform window processing on the sensor data according to the time interval through the stream computing engine to obtain multiple sliding windows including data.
可选地,在本申请实施例提供的边缘设备的处理装置中,所述传感器数据包括以下至少之一:振动特征值数据、工艺量数据。Optionally, in the processing apparatus for the edge device provided in the embodiment of the present application, the sensor data includes at least one of the following: vibration characteristic value data and process quantity data.
本申请实施例提供的边缘设备的处理装置,通过输入单元201将采集到的边缘设备的传感器数据输入流计算引擎;获取单元202通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口;计算单元203根据每个滑动窗口中的数据计算斜率值;确定单元204基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态,解决了相关技术中难以及时确定边缘设备运行状态的异常情况的问题,基于对滑动窗口中的数据计算出的斜率值,确定边缘设备的运行状态是否处于异常状态,进而达到了提升了确定边缘设备运行状态的异常情况的及时性的效果。In the processing apparatus of the edge device provided by the embodiment of the present application, the collected sensor data of the edge device is input into the stream computing engine through the input unit 201; the acquisition unit 202 performs window processing on the sensor data through the stream computing engine to obtain A plurality of sliding windows including data; the calculation unit 203 calculates the slope value according to the data in each sliding window; the determination unit 204 determines whether the operating state of the edge device is in an abnormal state based on the calculated slope value, which solves the problem in the related art It is difficult to determine the abnormal situation of the edge device operating state in time. Based on the slope value calculated from the data in the sliding window, determine whether the operating state of the edge device is in an abnormal state, thereby improving the abnormal situation of determining the operating state of the edge device The effect of timeliness.
所述边缘设备的处理装置包括处理器和存储器,上述输入单元201、获取单元202、计算单元203和确定单元204等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。The processing device of the edge device includes a processor and a memory. The input unit 201, the acquisition unit 202, the calculation unit 203, and the determination unit 204 are all stored as program units in the memory, and the processor executes the above programs stored in the memory. Unit to realize the corresponding function.
处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来处理边缘设备。The processor contains the kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to one or more, by adjusting the kernel parameters to deal with edge devices.
本发明实施例提供了一种计算机可读的存储介质,其上存储有程序,该程序被处 理器执行时实现所述边缘设备的处理方法。The embodiment of the present invention provides a computer-readable storage medium on which a program is stored, and the program is executed by a processor to implement the processing method of the edge device.
本发明实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述边缘设备的处理方法。The embodiment of the present invention provides a processor configured to run a program, wherein the processing method of the edge device is executed when the program is running.
本发明实施例提供了一种电子设备,如图5所示,设备70包括至少一个处理器701、以及与处理器连接的至少一个存储器702、总线703;其中,处理器、存储器通过总线完成相互间的通信;处理器用于调用存储器中的程序指令,以执行上述的边缘设备的处理方法。本文中的设备可以是服务器、PC、PAD、手机等。An embodiment of the present invention provides an electronic device. As shown in FIG. 5, the device 70 includes at least one processor 701, and at least one memory 702 and a bus 703 connected to the processor; wherein the processor and the memory complete each other through the bus. Inter-communication; the processor is used to call the program instructions in the memory to execute the above-mentioned edge device processing method. The devices in this article can be servers, PCs, PADs, mobile phones, etc.
本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有如下方法步骤的程序:将采集到的边缘设备的传感器数据输入流计算引擎;通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口;根据每个滑动窗口中的数据计算斜率值;基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态。This application also provides a computer program product, which when executed on a data processing device, is suitable for executing a program that initializes the following method steps: inputting the collected sensor data of the edge device into the stream computing engine; using the stream computing The engine performs window processing on the sensor data to obtain multiple sliding windows including data; calculates a slope value based on the data in each sliding window; determines whether the operating state of the edge device is in an abnormal state based on the calculated slope value .
当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:根据每个滑动窗口中的数据计算斜率值包括:获取每个滑动窗口包括数据中的最大值和最小值;获取每个滑动窗口的窗口长度;基于每个滑动窗口的窗口长度、每个滑动窗口的数据中的最大值和最小值计算每个滑动窗口的斜率值。When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: calculating the slope value according to the data in each sliding window includes: obtaining each sliding window including the maximum and minimum values in the data; obtaining The window length of each sliding window; the slope value of each sliding window is calculated based on the window length of each sliding window, the maximum value and the minimum value in the data of each sliding window.
当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态包括:判断每个滑动窗口计算出的斜率值是否大于预设斜率值;若存在滑动窗口的斜率值大于所述预设斜率值,则确定所述边缘设备的运行状态处于异常状态。When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: determining whether the operating state of the edge device is in an abnormal state based on the calculated slope value includes: judging the slope calculated by each sliding window Whether the value is greater than the preset slope value; if the slope value of the sliding window is greater than the preset slope value, it is determined that the operating state of the edge device is in an abnormal state.
当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:在基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态之后,所述方法还包括:若确定所述边缘设备的运行状态处于异常状态,则触发提醒信息,以提醒目标对象。When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: after determining whether the operating state of the edge device is in an abnormal state based on the calculated slope value, the method further includes: if it is determined If the operating state of the edge device is in an abnormal state, a reminder message is triggered to remind the target object.
当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口包括:确定对所述传感器数据进行分窗处理的时间间隔;通过所述流计算引擎按照所述时间间隔对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口。When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: windowing the sensor data through the stream computing engine to obtain multiple sliding windows including data includes: determining to The time interval during which the sensor data is subjected to windowing processing; the stream computing engine performs windowing processing on the sensor data according to the time interval to obtain a plurality of sliding windows including data.
当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:所述传感器数据包括以下至少之一:振动特征值数据、工艺量数据。When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: the sensor data includes at least one of the following: vibration characteristic value data and process quantity data.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供 这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of this application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
在一个典型的配置中,设备包括一个或多个处理器(CPU)、存储器和总线。设备还可以包括输入/输出接口、网络接口等。In a typical configuration, the device includes one or more processors (CPUs), memory, and buses. The device may also include input/output interfaces, network interfaces, and so on.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。存储器是计算机可读介质的示例。The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one Memory chip. The memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, product or device that includes a series of elements includes not only those elements, but also Other elements that are not explicitly listed, or they also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity or equipment that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are only examples of the application, and are not used to limit the application. For those skilled in the art, this application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the scope of the claims of this application.

Claims (10)

  1. 一种边缘设备的处理方法,其中,包括:A processing method for edge devices, including:
    将采集到的边缘设备的传感器数据输入流计算引擎;Input the collected sensor data of the edge device into the stream computing engine;
    通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口;Performing window processing on the sensor data by the stream computing engine to obtain multiple sliding windows including data;
    根据每个滑动窗口中的数据计算斜率值;Calculate the slope value according to the data in each sliding window;
    基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态。Based on the calculated slope value, it is determined whether the operating state of the edge device is in an abnormal state.
  2. 根据权利要求1所述的方法,其中,根据每个滑动窗口中的数据计算斜率值包括:The method according to claim 1, wherein calculating the slope value according to the data in each sliding window comprises:
    获取每个滑动窗口包括数据中的最大值和最小值;Get each sliding window including the maximum and minimum values in the data;
    获取每个滑动窗口的窗口长度;Get the window length of each sliding window;
    基于每个滑动窗口的窗口长度、每个滑动窗口的数据中的最大值和最小值计算每个滑动窗口的斜率值。The slope value of each sliding window is calculated based on the window length of each sliding window, the maximum value and the minimum value in the data of each sliding window.
  3. 根据权利要求1所述的方法,其中,基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态包括:The method according to claim 1, wherein determining whether the operating state of the edge device is in an abnormal state based on the calculated slope value comprises:
    判断每个滑动窗口计算出的斜率值是否大于预设斜率值;Determine whether the calculated slope value of each sliding window is greater than the preset slope value;
    若存在滑动窗口的斜率值大于所述预设斜率值,则确定所述边缘设备的运行状态处于异常状态。If the slope value of the sliding window is greater than the preset slope value, it is determined that the operating state of the edge device is in an abnormal state.
  4. 根据权利要求1所述的方法,其中,在基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态之后,所述方法还包括:The method according to claim 1, wherein after determining whether the operating state of the edge device is in an abnormal state based on the calculated slope value, the method further comprises:
    若确定所述边缘设备的运行状态处于异常状态,则触发提醒信息,以提醒目标对象。If it is determined that the operating state of the edge device is in an abnormal state, a reminder message is triggered to remind the target object.
  5. 根据权利要求1所述的方法,其中,通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口包括:The method according to claim 1, wherein performing window processing on the sensor data by the stream computing engine to obtain multiple sliding windows including data comprises:
    确定对所述传感器数据进行分窗处理的时间间隔;Determine the time interval for windowing the sensor data;
    通过所述流计算引擎按照所述时间间隔对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口。The stream computing engine performs window processing on the sensor data according to the time interval to obtain multiple sliding windows including data.
  6. 根据权利要求1所述的方法,其中,所述传感器数据包括以下至少之一:振动特征值数据、工艺量数据。The method according to claim 1, wherein the sensor data includes at least one of the following: vibration characteristic value data and process quantity data.
  7. 一种边缘设备的处理装置,包括:A processing device for edge equipment, including:
    输入单元,设置为将采集到的边缘设备的传感器数据输入流计算引擎;The input unit is set to input the collected sensor data of the edge device into the stream computing engine;
    获取单元,设置为通过所述流计算引擎对所述传感器数据进行分窗处理,得到多个包括数据的滑动窗口;An obtaining unit, configured to perform window processing on the sensor data through the stream computing engine to obtain a plurality of sliding windows including data;
    计算单元,设置为根据每个滑动窗口中的数据计算斜率值;The calculation unit is set to calculate the slope value according to the data in each sliding window;
    确定单元,设置为基于计算出的斜率值确定所述边缘设备的运行状态是否处于异常状态。The determining unit is configured to determine whether the operating state of the edge device is in an abnormal state based on the calculated slope value.
  8. 根据权利要求7所述的装置,其中,所述计算单元还包括:The device according to claim 7, wherein the calculation unit further comprises:
    第一获取模块,设置为获取每个滑动窗口包括数据中的最大值和最小值;The first obtaining module is configured to obtain the maximum value and the minimum value in the data included in each sliding window;
    第二获取模块,设置为获取每个滑动窗口的窗口长度;The second obtaining module is set to obtain the window length of each sliding window;
    计算模块,设置为基于每个滑动窗口的窗口长度、每个滑动窗口的数据中的最大值和最小值计算每个滑动窗口的斜率值。The calculation module is set to calculate the slope value of each sliding window based on the window length of each sliding window, the maximum value and the minimum value in the data of each sliding window.
  9. 一种计算机可读的存储介质,其中,所述存储介质包括存储的程序,其中,所述程序执行权利要求1至6中任意一项所述的边缘设备的处理方法。A computer-readable storage medium, wherein the storage medium includes a stored program, wherein the program executes the edge device processing method according to any one of claims 1 to 6.
  10. 一种电子设备,其特征在于,所述设备包括至少一个处理器、以及与所述处理器连接的至少一个存储器、总线;An electronic device, characterized in that the device includes at least one processor, and at least one memory and a bus connected to the processor;
    其中,所述处理器、所述存储器通过所述总线完成相互间的通信;Wherein, the processor and the memory complete mutual communication through the bus;
    所述处理器用于调用所述存储器中的程序指令,以执行如权利要求1至6中任意一项所述的边缘设备的处理方法。The processor is configured to call program instructions in the memory to execute the edge device processing method according to any one of claims 1 to 6.
PCT/CN2020/098595 2019-08-30 2020-06-28 Edge device processing method and apparatus, storage medium, and processor WO2021036465A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910817943.6A CN112445673A (en) 2019-08-30 2019-08-30 Edge device processing method and device, storage medium and processor
CN201910817943.6 2019-08-30

Publications (1)

Publication Number Publication Date
WO2021036465A1 true WO2021036465A1 (en) 2021-03-04

Family

ID=74684516

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/098595 WO2021036465A1 (en) 2019-08-30 2020-06-28 Edge device processing method and apparatus, storage medium, and processor

Country Status (2)

Country Link
CN (1) CN112445673A (en)
WO (1) WO2021036465A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104075749A (en) * 2014-06-30 2014-10-01 通号通信信息集团有限公司 Abnormal state detecting method and system for equipment in internet of things
CN106909664A (en) * 2017-02-28 2017-06-30 国网福建省电力有限公司 A kind of power equipment data stream failure recognition methods
US20190004577A1 (en) * 2015-09-22 2019-01-03 Renesas Electronics America Inc. Method and system for reducing transients in dc-dc converters
CN109800129A (en) * 2019-01-17 2019-05-24 青岛特锐德电气股份有限公司 A kind of real-time stream calculation monitoring system and method for processing monitoring big data

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102471665B1 (en) * 2015-08-27 2022-11-25 포그혼 시스템스 인코포레이티드 Edge Intelligence Platform and Internet of Things Sensor Stream System
CN105553787B (en) * 2016-03-01 2019-07-26 清华大学 Edge net egress network Traffic anomaly detection method based on Hadoop
CN108509990A (en) * 2018-03-29 2018-09-07 重庆大学 A kind of sequential key assignments type industrial process data Parallel analytic method
CN108804668A (en) * 2018-06-08 2018-11-13 珠海格力智能装备有限公司 Data processing method and device
CN109241129A (en) * 2018-07-27 2019-01-18 山东大学 A kind of Model of Time Series Streaming dimensionality reduction based on Feature Segmentation and simplified representation method
CN109981372A (en) * 2019-04-03 2019-07-05 华南理工大学 Streaming big data processing method and system based on edge calculations

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104075749A (en) * 2014-06-30 2014-10-01 通号通信信息集团有限公司 Abnormal state detecting method and system for equipment in internet of things
US20190004577A1 (en) * 2015-09-22 2019-01-03 Renesas Electronics America Inc. Method and system for reducing transients in dc-dc converters
CN106909664A (en) * 2017-02-28 2017-06-30 国网福建省电力有限公司 A kind of power equipment data stream failure recognition methods
CN109800129A (en) * 2019-01-17 2019-05-24 青岛特锐德电气股份有限公司 A kind of real-time stream calculation monitoring system and method for processing monitoring big data

Also Published As

Publication number Publication date
CN112445673A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
WO2021036466A1 (en) Processing method and apparatus for edge device, storage medium and processor
US11323471B2 (en) Advanced cybersecurity threat mitigation using cyberphysical graphs with state changes
EP3780541B1 (en) Identity information identification method and device
CN107666410B (en) Network security analysis system and method
CN106033514B (en) A kind of detection method and device of suspicious process
JP2019517040A (en) Cloud platform based client application information statistics method and apparatus
JP2019523952A (en) Streaming data distributed processing method and apparatus
US11074652B2 (en) System and method for model-based prediction using a distributed computational graph workflow
TWI694700B (en) Data processing method and device, user terminal
CN113312361B (en) Track query method, device, equipment, storage medium and computer program product
TW201931175A (en) Data processing method, device, apparatus and machine readable medium capable of reducing development costs and maintenance costs of data collection logic of an application program
CN105607986A (en) Acquisition method and device of user behavior log data
US20200204576A1 (en) Automated determination of relative asset importance in an enterprise system
JP2019523501A (en) Risk identification method, risk identification device, cloud risk identification device and system
WO2015062536A1 (en) Data processing
WO2020134620A1 (en) Method for accepting blockchain evidence storage transaction and system
CN110826075A (en) PLC dynamic measurement method, device, system, storage medium and electronic equipment
TW201727517A (en) Data storage and service processing method and device
EP3655878A1 (en) Advanced cybersecurity threat mitigation using behavioral and deep analytics
US20220058745A1 (en) System and method for crowdsensing-based insurance premiums
WO2021036465A1 (en) Edge device processing method and apparatus, storage medium, and processor
CN107798009A (en) Data aggregation method, apparatus and system
TWI662486B (en) Method and device for checking completeness of distributed business processing
CN110958129A (en) Method, system and device for flow analysis
WO2021055964A1 (en) System and method for crowd-sourced refinement of natural phenomenon for risk management and contract validation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20857951

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20857951

Country of ref document: EP

Kind code of ref document: A1