TWI826129B - Cycle time detection and correction system and method - Google Patents

Cycle time detection and correction system and method Download PDF

Info

Publication number
TWI826129B
TWI826129B TW111144167A TW111144167A TWI826129B TW I826129 B TWI826129 B TW I826129B TW 111144167 A TW111144167 A TW 111144167A TW 111144167 A TW111144167 A TW 111144167A TW I826129 B TWI826129 B TW I826129B
Authority
TW
Taiwan
Prior art keywords
cycle time
time detection
video
events
candidate
Prior art date
Application number
TW111144167A
Other languages
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 英業達股份有限公司
Priority to TW111144167A priority Critical patent/TWI826129B/en
Application granted granted Critical
Publication of TWI826129B publication Critical patent/TWI826129B/en

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

A cycle time detection and correction method includes multiple steps performed by a computing device, where these steps include: obtaining a video from a camera device, obtaining a bounding box from an input device, inputting the bounding box and the video to a cycle time detection model to generate a preliminary report, wherein the bounding box is configured to mark a region of interest in the video, the preliminary report includes a plurality of candidate events, and each candidate event includes a start time and a candidate cycle time; receiving a revision label associated with at least one candidate event from the input device; and tuning hyper-parameters of the cycle time detection model according to the revision label.

Description

週期時間偵測及修正系統與方法Cycle time detection and correction systems and methods

本發明涉及影像處理及人工智慧,特別是一種基於視訊的週期時間偵測及修正系統與方法。 The present invention relates to image processing and artificial intelligence, and in particular to a video-based cycle time detection and correction system and method.

製造週期時間定義為生產流程中特定步驟的時間成本。在實際應用中,管理者通常通過計算一段時間內特定步驟的執行次數來計算平均週期時間。週期時間是製造業的一個關鍵績效指標,更準確地說,是生產效率的一個指標。例如,週期時間可用於生產效率改進計劃。生產一個產品需要很多步驟。管理者對每一步的時間成本感興趣。根據週期時間,管理者可以推斷出每個步驟的效率,並決定是否提高該步驟的效率。因此,週期時間可用於生產效率改進計劃。 Manufacturing cycle time is defined as the time cost of a specific step in the production process. In practical applications, managers often calculate average cycle time by counting the number of times a specific step is performed over a period of time. Cycle time is a key performance indicator in manufacturing and, more precisely, an indicator of production efficiency. For example, cycle time can be used in productivity improvement programs. There are many steps required to produce a product. Managers are interested in the time cost of each step. Based on the cycle time, managers can infer the efficiency of each step and decide whether to make that step more efficient. Therefore, cycle time can be used for productivity improvement initiatives.

兩種常用的測量週期時間的方法包括:手動測量和感測器測量。手動測量是指週期時間由人為測量。也就是說,一個工人啟動一個計時器,觀察另一個工人的操作,並計算週期時間。然而,手動測量會導致效率低下和偏差。首先,測量週期時間需要工人站在那裡計數的時間,這會增加機會成本並導致效率低下。其次,一個人在不同場景 下的生產力可能會改變,這也稱為觀察者偏差。因此,手動測量可能是有偏差的方法。 Two common methods of measuring cycle time include manual measurement and sensor measurement. Manual measurement means that the cycle time is measured by a human being. That is, one worker starts a timer, observes another worker's operations, and calculates the cycle time. However, manual measurement can lead to inefficiencies and biases. First, measuring cycle time requires workers to stand around counting time, which increases opportunity costs and leads to inefficiencies. Secondly, a person in different scenarios Productivity may change under conditions, also known as observer bias. Therefore, manual measurement can be a biased method.

感測器測量代表由感測器偵測週期時間。也就是說,感測器偵測是否有物品經過這裡並記錄事件時間。然而,感測器測量有其缺點。首先,感測器很昂貴。其次,感測器測量只偵測簡單和特定的事件。此外,人們需要不同的感測器來偵測不同的事件,因此隨著時間的推移,感測器的成本可能會愈來愈高。 The sensor measurement represents the cycle time detected by the sensor. That is, the sensor detects whether something passes by and records the time of the event. However, sensor measurements have their drawbacks. First, sensors are expensive. Second, sensor measurements only detect simple and specific events. In addition, people need different sensors to detect different events, so the cost of sensors may become higher and higher over time.

有鑑於此,本發明提出一種週期時間偵測及修正系統與方法來解決上述問題。 In view of this, the present invention proposes a cycle time detection and correction system and method to solve the above problems.

依據本發明一實施例的一種週期時間偵測及修正方法,包含以運算裝置執行:從攝像裝置取得視訊,從輸入裝置取得定界框,並輸入定界框及視訊至週期時間偵測模型以產生初步報告,其中定界框用於在視訊中標示感興趣區域,初步報告包括多個候選事件,每個候選事件包括起始時間及候選週期時間;從輸入裝置接收關聯於至少一候選事件的修訂標籤;以及依據修訂標籤調整週期時間偵測模型的超參數。 A cycle time detection and correction method according to an embodiment of the present invention includes executing with a computing device: obtaining video from a camera device, obtaining a bounding box from an input device, and inputting the bounding box and video to a cycle time detection model to Generate a preliminary report, wherein the bounding box is used to mark the region of interest in the video, the preliminary report includes a plurality of candidate events, each candidate event includes a start time and a candidate cycle time; receiving from the input device a message associated with at least one candidate event Revise the label; and adjust the hyperparameters of the cycle time detection model based on the revision label.

依據本發明一實施例的一種週期時間偵測及修正系統,包括攝像裝置、輸入裝置以及運算裝置。攝像裝置拍攝環境產生視訊。輸入裝置接收在視訊中標示感興趣區域的定界框及修訂標籤。運算裝置通訊連接攝像裝置及輸入裝置。運算裝置用於輸入定界框及視訊至週期時間偵測模型以產生初步報告。定界框用於在視訊中標示感興趣區域。初步報告包括多個候選事件,每個候選事件者包括起始時間及候選週期 時間。運算裝置更用於依據修訂標籤調整週期時間偵測模型的超參數,其中修訂標籤關聯於至少一候選事件。 A cycle time detection and correction system according to an embodiment of the present invention includes a camera device, an input device and a computing device. The camera device captures the environment to produce video. The input device receives bounding boxes and revision labels that mark regions of interest in the video. The computing device communicates with the camera device and the input device. The computing device is used to input the bounding box and video into the cycle time detection model to generate a preliminary report. Bounding boxes are used to mark areas of interest in videos. The preliminary report includes multiple candidate events, each candidate event includes the start time and candidate period time. The computing device is further configured to adjust the hyperparameters of the cycle time detection model according to the revision label, where the revision label is associated with at least one candidate event.

綜上所述,本發明提供一種基於視訊的自動週期時間偵測及修正系統及方法,具有自動化、靈活性及可持續修正的優點。 To sum up, the present invention provides a video-based automatic cycle time detection and correction system and method, which has the advantages of automation, flexibility and sustainable correction.

以上之關於本揭露內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。 The above description of the present disclosure and the following description of the embodiments are used to demonstrate and explain the spirit and principles of the present invention, and to provide further explanation of the patent application scope of the present invention.

100:週期時間偵測及修正系統 100: Cycle time detection and correction system

10:攝像裝置 10:Camera device

30:輸入裝置 30:Input device

50:運算裝置 50:Computing device

S1~S7,S30~S38:步驟 S1~S7,S30~S38: steps

圖1是依據本發明一實施例的週期時間偵測及修正系統的方塊圖;圖2是依據本發明一實施例的週期時間偵測及修正方法的流程圖;圖3是圖2中步驟的細部流程圖;以及圖4是初步報告中週期時間分布圖的一範例。 Figure 1 is a block diagram of a cycle time detection and correction system according to an embodiment of the present invention; Figure 2 is a flow chart of a cycle time detection and correction method according to an embodiment of the present invention; Figure 3 is a diagram of the steps in Figure 2 Detailed flow chart; and Figure 4 is an example of a cycle time distribution chart in the preliminary report.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。 The detailed features and advantages of the present invention are described in detail below in the implementation mode. The content is sufficient to enable anyone skilled in the relevant art to understand the technical content of the present invention and implement it according to the content disclosed in this specification, the patent scope and the drawings. , anyone familiar with the relevant art can easily understand the relevant objectives and advantages of the present invention. The following examples further illustrate the aspects of the present invention in detail, but do not limit the scope of the present invention in any way.

圖1是依據本發明一實施例的週期時間偵測及修正系統的方塊圖。如圖1所示,週期時間偵測及修正系統100包括攝像裝置10、 輸入裝置30以及運算裝置50,其中運算裝置50通訊連接攝像裝置10及輸入裝置30。 FIG. 1 is a block diagram of a cycle time detection and correction system according to an embodiment of the present invention. As shown in Figure 1, the cycle time detection and correction system 100 includes a camera device 10, The input device 30 and the computing device 50 are communicatively connected to the camera device 10 and the input device 30 .

攝像裝置10拍攝環境以產生視訊,環境中具有週期性事件,例如作業員在產線上進行零件組裝。 The camera device 10 captures the environment to generate video. There are periodic events in the environment, such as operators assembling parts on a production line.

輸入裝置30接收使用者的操作,在視訊中標示感興趣區域的定界框(bounding box)及修訂標籤。在一實施例中,輸入裝置30更用於接收事件閾值、上邊界及下邊界。在另一實施例中,輸入裝置更用於接收週期提示(period hint)。關於修訂標籤、事件閾值、上邊界、下邊界及週期提示,請見後文的說明。 The input device 30 receives the user's operation and marks a bounding box and a revision label of the area of interest in the video. In one embodiment, the input device 30 is further configured to receive an event threshold, an upper boundary, and a lower boundary. In another embodiment, the input device is further configured to receive period hints. For revision labels, event thresholds, upper boundaries, lower boundaries and period prompts, please see the instructions below.

在一實施例中,輸入裝置30可採用下列範例中的一或數者實作:鍵盤、滑鼠、觸控式螢幕、按鈕或是任何具有類似功能的裝置,本發明不限制輸入裝置30的硬體類型。 In one embodiment, the input device 30 can be implemented by one or more of the following examples: a keyboard, a mouse, a touch screen, a button, or any device with similar functions. The invention does not limit the input device 30 . Hardware type.

運算裝置50用於輸入定界框及視訊至週期時間偵測模型以產生初步報告。初步報告包括多個候選事件,每個候選事件包括起始時間及候選週期時間。運算裝置50更用於依據修訂標籤調整週期時間偵測模型的超參數,其中修訂標籤關聯於至少一候選事件。 The computing device 50 is used to input the bounding box and video into the cycle time detection model to generate a preliminary report. The preliminary report includes multiple candidate events, and each candidate event includes a start time and a candidate cycle time. The computing device 50 is further configured to adjust the hyperparameters of the cycle time detection model according to the revision label, where the revision label is associated with at least one candidate event.

在一實施例中,運算裝置50可採用下列範例中的一或數者實作:微控制器(microcontroller,MCU)、應用處理器(application processor,AP)、現場可程式化閘陣列(field programmable gate array,FPGA)、特殊應用積體電路(Application Specific Integrated Circuit,ASIC)系統晶片(system-on-a-chip,SOC)、深度學習加速器(deep learning accelerator),或是任何具有類似功能的電子裝置,本發明不限制運算裝置50的硬體類型。 In one embodiment, the computing device 50 may be implemented using one or more of the following examples: a microcontroller (MCU), an application processor (AP), or a field programmable gate array (field programmable). gate array (FPGA), Application Specific Integrated Circuit (ASIC) system-on-a-chip (SOC), deep learning accelerator (deep learning accelerator), or any electronic device with similar functions device, the present invention does not limit the hardware type of the computing device 50 .

整體而言,本發明建立在視訊的重複性上,在拍攝具有週期性事件的視訊中,有很多訊框(frame)是重複的,而本發明設計的系統週期時間偵測及修正系統100可實現偵測週期性事件的目標。此系統100的運作包括四個階段:資料交換、人工智慧(artificial intelligence,AI)推論、報告生成以及超參數調整(tuning)。以下說明系統週期時間偵測及修正系統100的運作方式,請參考圖2,其為本發明一實施例的系統週期時間偵測及修正方法的流程圖,包括步驟S1、S3、S5及S7。 Overall, the present invention is based on the repeatability of video. When shooting videos with periodic events, many frames are repeated, and the system cycle time detection and correction system 100 designed by the present invention can Achieve the goal of detecting periodic events. The operation of this system 100 includes four stages: data exchange, artificial intelligence (AI) inference, report generation, and hyperparameter adjustment (tuning). The following describes the operation of the system cycle time detection and correction system 100. Please refer to FIG. 2, which is a flow chart of a system cycle time detection and correction method according to an embodiment of the present invention, including steps S1, S3, S5 and S7.

在步驟S1中,運算裝置50從攝像裝置10取得視訊。步驟S1屬於前述的資料交換階段。 In step S1 , the computing device 50 obtains video from the camera device 10 . Step S1 belongs to the aforementioned data exchange stage.

在一實施例中,本發明提出的週期時間偵測及修正系統100更包括使用者介面。使用者介面例如是網頁的形式,可讓使用者設定站點名稱、站點位址以及模型參數,其中站點代表設置攝像裝置10的位置,站點位址例如是攝像裝置10的網際網路位址(internet protocol address,IP address),其確保系統100可以透過即時串流協定(Real Time Streaming Protocol,RTSP)或超文本傳輸協定(Hypertext Transfer Protocol,HTTP)對拍攝到的視訊進行串流傳輸。運算裝置50更儲存一站點列表,其記錄使用者透過使用者介面填入的資訊。使用者也可以檢視站點列表,並且在其中添加或刪除站點。在添加站點後,運算裝置50替新站點分配編號以進行標誌。 In one embodiment, the cycle time detection and correction system 100 proposed by the present invention further includes a user interface. The user interface is, for example, in the form of a web page, allowing the user to set a site name, site address, and model parameters. The site represents the location where the camera device 10 is installed, and the site address is, for example, the Internet of the camera device 10 . Internet protocol address (IP address), which ensures that the system 100 can stream the captured video through Real Time Streaming Protocol (RTSP) or Hypertext Transfer Protocol (HTTP) . The computing device 50 further stores a site list, which records the information filled in by the user through the user interface. Users can also view the site list and add or delete sites from it. After adding a site, the computing device 50 assigns a number to the new site for identification.

使用者介面還可以讓使用者設置第二階段(AI推論)中所需的參數,例如在視訊中指定感興趣區域(region of interest,ROI)的定界框和週期提示。使用者可以從視訊裁剪出ROI以忽略不相關的資 訊,並且可以設置週期提示作為指導AI模型專注於視訊中某些特定週期的參數。 The user interface also allows users to set parameters required in the second stage (AI inference), such as bounding boxes and period prompts for specifying regions of interest (ROI) in the video. Users can crop ROI from videos to ignore irrelevant information information, and period prompts can be set as parameters to guide the AI model to focus on certain specific periods in the video.

在步驟S3中,運算裝置50從輸入裝置30取得定界框,並輸入定界框及視訊至週期時間偵測模型以產生初步報告。步驟S3包括前述的AI推論階段以及報告生成階段。在這個階段,系統100開始串流傳輸訊框並基於AI模型偵測週期。圖3是步驟S3的細部流程圖,包括步驟S30、S32、S34、S36及S38。詳言之,在步驟S32中,運算裝置50依據定界框裁剪視訊。在步驟S32中,運算裝置50將視訊的多個訊框輸入神經網路模型以產生多個特徵向量。在步驟S34中,運算裝置50對這些特徵向量執行主成分分析(principal component analysis,PCA)以降低這些特徵向量的維度並產生多個低維度訊號。在步驟S36中,運算裝置50再依據這些低維度訊號執行短時距傅立葉變換(Short-Time Fourier Transform,STFT)以產生多個平滑化訊號。在步驟S38中,運算裝置50依據這些平滑化訊號中的多個峰值識別週期性事件以獲得所述多個候選事件。 In step S3, the computing device 50 obtains the bounding box from the input device 30, and inputs the bounding box and the video into the cycle time detection model to generate a preliminary report. Step S3 includes the aforementioned AI inference stage and report generation stage. At this stage, the system 100 starts streaming frames and detects cycles based on the AI model. Figure 3 is a detailed flow chart of step S3, including steps S30, S32, S34, S36 and S38. Specifically, in step S32, the computing device 50 crops the video according to the bounding box. In step S32, the computing device 50 inputs multiple frames of the video into the neural network model to generate multiple feature vectors. In step S34, the computing device 50 performs principal component analysis (PCA) on these feature vectors to reduce the dimensions of these feature vectors and generate multiple low-dimensional signals. In step S36, the computing device 50 then performs short-time Fourier Transform (STFT) based on these low-dimensional signals to generate a plurality of smoothed signals. In step S38, the computing device 50 identifies periodic events based on multiple peaks in the smoothed signals to obtain the multiple candidate events.

在一實施例中,運算裝置50啟動一個執行緒(thread)來串流傳輸訊框並將訊框存儲在緩衝區(buffer)中,並啟動另一個執行緒從緩衝區中獲取訊框,計算AI推論結果並存儲結果。 In one embodiment, the computing device 50 starts a thread to stream the frame and store the frame in a buffer, and starts another thread to obtain the frame from the buffer, calculate The AI infers results and stores the results.

在一實施例中,降低特徵向量的維度的作法是將向量投影到一維空間。 In one embodiment, the dimensionality of the feature vector is reduced by projecting the vector into a one-dimensional space.

在一實施例中,在依據多個低維度訊號執行STFT以產生多個平滑化訊號之前,運算裝置50依據週期提示設定STFT中的滑動窗尺寸,例如將週期提示設定為65秒。 In one embodiment, before performing STFT based on multiple low-dimensional signals to generate multiple smoothed signals, the computing device 50 sets the sliding window size in the STFT according to the period prompt, for example, the period prompt is set to 65 seconds.

在一實施例中,運算裝置50依據事件閾值(event threshold)過濾平滑化訊號中的峰值以去除雜訊(noise),也就是保留峰值突出度(peak prominence)高於事件閾值的事件作為候選事件。 In one embodiment, the computing device 50 filters the peaks in the smoothed signal according to an event threshold to remove noise, that is, retaining events whose peak prominence is higher than the event threshold as candidate events. .

在報告生成階段,系統100透過使用者介面呈現表格和圖表供使用者檢視,表格的範例如下所示,圖表的範例如圖4所示。 During the report generation stage, the system 100 presents tables and charts through the user interface for users to view. An example of a table is shown below, and an example of a chart is shown in Figure 4.

Figure 111144167-A0305-02-0009-1
Figure 111144167-A0305-02-0009-1

表格一中的每一列代表一個候選事件。每個候選事件包括起始時間(事件時間)、候選週期時間及AI標籤。上述資訊由週期時間偵測模型產生。例如,事件時間由AI推論得到,再透過計算兩個連續事件之間的時間差來估計週期時間,最後將週期時間與正常區間進行比較以決定AI標籤。位於正常區間內的候選事件屬於正常事件,位於正常區間以外的候選事件屬於異常事件。正常區間包括前述的上邊界及下邊界,可以在報告生成階段時或是資料交換階段由使用者透過輸入裝置30設定。例如,上邊界可設定為100秒,下邊界可設定為30秒,其對應的圖式如圖4所示。修訂標籤及描述由使用者填寫。例如在表格1的範例中,使用者將事件時間為0:06:28,週期時間為134秒的異常事件修正為正常事件。 Each column in Table 1 represents a candidate event. Each candidate event includes a start time (event time), candidate cycle time and AI label. The above information is generated by the cycle time detection model. For example, the event time is inferred by AI, and then the cycle time is estimated by calculating the time difference between two consecutive events. Finally, the cycle time is compared with the normal interval to determine the AI label. Candidate events located within the normal range are normal events, and candidate events located outside the normal range are abnormal events. The normal interval includes the aforementioned upper boundary and lower boundary, which can be set by the user through the input device 30 during the report generation stage or the data exchange stage. For example, the upper boundary can be set to 100 seconds and the lower boundary can be set to 30 seconds. The corresponding diagram is shown in Figure 4. Revision labels and descriptions are filled in by the user. For example, in the example in Table 1, the user corrects an abnormal event with an event time of 0:06:28 and a cycle time of 134 seconds into a normal event.

在一實施例中,如果偵測到異常週期事件,運算裝置50更發出警報訊號通知使用者。另外,運算裝置50透過收集使用者反饋的修訂標籤來微調週期時間偵測模型,使得AI能夠模擬人類決策並持續更新進化以貼近當下情境。 In one embodiment, if an abnormal periodic event is detected, the computing device 50 further sends an alarm signal to notify the user. In addition, the computing device 50 fine-tunes the cycle time detection model by collecting revision tags from user feedback, so that the AI can simulate human decision-making and continuously update and evolve to fit the current situation.

在步驟S7中,運算裝置50依據修訂標籤調整週期時間偵測模型的超參數。步驟S7屬於前述的超參數調整階段。超參數是AI演算法的常見需求。不同的超參數適應不同的場景或資料,因此選擇合適的超參數可以提高演算法的表現。本發明提出的週期時間偵測及修正系統100會根據使用者在第三階段「報告生成」中的輸入自動微調超參數,並持續進行修正。在一實施例中,可以修正的超參數包括事件閾值以及正常區間(上邊界和下邊界),進一步說,事件閾值可用於過濾峰值突出度 過低的事件,藉此達到去除雜訊的效果,然而峰值突出度並不容易對應到現實生活的概念,因此使用者不易手動調整,此時由系統自動微調就是一個更好的做法。 In step S7, the computing device 50 adjusts the hyperparameters of the cycle time detection model according to the revision tag. Step S7 belongs to the aforementioned hyperparameter adjustment stage. Hyperparameters are a common requirement for AI algorithms. Different hyperparameters adapt to different scenarios or data, so choosing appropriate hyperparameters can improve the performance of the algorithm. The cycle time detection and correction system 100 proposed by the present invention will automatically fine-tune the hyperparameters based on the user's input in the third stage "report generation" and continue to make corrections. In one embodiment, the hyperparameters that can be modified include event thresholds and normal intervals (upper and lower boundaries). Furthermore, event thresholds can be used to filter peak prominence. Events that are too low can achieve the effect of removing noise. However, the peak prominence does not easily correspond to the concept of real life, so it is not easy for users to adjust manually. In this case, it is better to have the system automatically fine-tune it.

事件閾值用於查找事件,AI模型藉由找到平滑化訊號的峰值來從事訊中找到候選事件。因此,運算裝置50透過將事件閾值更新為歷史資料中的最低峰值突出度來微調事件閾值。 Event thresholds are used to find events, and the AI model finds candidate events in the signal by finding the peaks of the smoothed signal. Therefore, the computing device 50 fine-tunes the event threshold by updating the event threshold to the lowest peak prominence in the historical data.

正常區間用於對事件進行分類,而運算裝置50將位於下邊界和上邊界之間的事件標記為正常事件,並將其他事件標記為異常事件。因此,運算裝置50透過移動邊界以包含修改後的事件來微調正常區間。 The normal interval is used to classify events, and the computing device 50 marks events located between the lower boundary and the upper boundary as normal events, and marks other events as abnormal events. Therefore, the computing device 50 fine-tunes the normal interval by moving the boundaries to include the modified events.

綜上所述,本發明提供一種基於視訊的自動週期時間偵測及修正系統及方法,具有自動化、靈活性及持續修正的優點。首先使用串流視訊資料進行週期性影像偵測,然後將偵測到的週期標記為正常或異常,並透過過即時警報或定期報告通知使用者。此外,本發明還設計了一個反饋機制,避免錯誤的警報。使用者可以自由地糾正結果推論結果,修訂標籤進行反饋並說明原因以利未來改善計畫,或微調AI推論模型來模擬人類決策並貼近現況。本發明提出的系統及方法具有以下三個優點: To sum up, the present invention provides a video-based automatic cycle time detection and correction system and method, which has the advantages of automation, flexibility and continuous correction. First, the streaming video data is used for periodic image detection, and then the detected period is marked as normal or abnormal, and the user is notified through real-time alarms or periodic reports. In addition, the invention also designs a feedback mechanism to avoid false alarms. Users can freely correct the result inference results, revise labels to provide feedback and explain the reasons to facilitate future improvement plans, or fine-tune the AI inference model to simulate human decision-making and get closer to the current situation. The system and method proposed by the present invention have the following three advantages:

第一,自動化。本發明提出的系統可根據視訊自動識別週期,無需人為干預。因此,它減輕了工人手動計數的機會成本。此外,本發明提出的系統在後台運行,工人照常工作。因此,不會出現手動測量中的觀察者偏差。 First, automation. The system proposed by the present invention can automatically identify the cycle based on the video without human intervention. Therefore, it relieves workers of the opportunity cost of manual counting. In addition, the system proposed by the present invention runs in the background and workers work as usual. Therefore, observer bias in manual measurements does not occur.

第二,靈活性。在習知技術的感測器測量時,感測器僅能偵測特定事件。相比之下,由於視訊包含大量有關週期的資訊,本發明提出的系統適用於多種站點。詳言之,本發明提出的系統適用於所有具有攝像裝置的站點。 Second, flexibility. When measuring with conventional sensors, the sensor can only detect specific events. In contrast, since video contains a large amount of periodic information, the system proposed in the present invention is suitable for a variety of sites. In detail, the system proposed by the present invention is applicable to all sites with camera devices.

第三,持續修正。本發明提出的系統提供使用者一個修改異常偵測結果的使用者介面。該介面不僅可用於生成報告,還可用於微調系統內部的AI模型。例如,微調神經網路或調整演算法的超參數。修訂標籤可以被視為機器學習中的標記資料,可用於模型訓練。使用標記資料,可以微調神經網路以適應當前資料。此外,標記資料還可以用於調整演算法的超參數,藉此降低錯誤率或誤報率。通過持續修正,本發明提出的系統可以模擬人類的決策方式並貼近現況。 Third, continue to correct. The system proposed by the present invention provides users with a user interface for modifying abnormality detection results. This interface can be used not only to generate reports, but also to fine-tune the AI models within the system. For example, fine-tuning a neural network or adjusting the hyperparameters of an algorithm. Revision labels can be viewed as labeled data in machine learning and can be used for model training. Using labeled data, the neural network can be fine-tuned to fit the current data. In addition, labeled data can also be used to adjust the hyperparameters of the algorithm, thereby reducing the error rate or false positive rate. Through continuous modification, the system proposed in the present invention can simulate human decision-making and be close to the current situation.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。 Although the present invention is disclosed in the foregoing embodiments, they are not intended to limit the present invention. All changes and modifications made without departing from the spirit and scope of the present invention shall fall within the scope of patent protection of the present invention. Regarding the protection scope defined by the present invention, please refer to the attached patent application scope.

S1~S7:步驟 S1~S7: steps

Claims (8)

一種週期時間偵測及修正方法,包含以運算裝置執行:從一攝像裝置取得一視訊;從一輸入裝置取得一定界框,並輸入該定界框及該視訊至一週期時間偵測模型以產生一初步報告,其中該定界框用於在該視訊中標示一感興趣區域,該初步報告包括多個候選事件,該些候選事件的每一者包括起始時間及候選週期時間;從該輸入裝置接收關聯於該些候選事件中至少一者的一修訂標籤;以及依據該修訂標籤調整該週期時間偵測模型的超參數,其中從該輸入裝置取得該定界框,並輸入該定界框及該視訊至該週期時間偵測模型以產生該初步報告包括:依據該定界框裁剪該視訊;將該視訊的多個訊框輸入一神經網路模型以產生多個特徵向量;對該些特徵向量執行一主成分分析以降低該些特徵向量的維度,產生多個低維度訊號;依據該些低維度訊號執行短時距傅立葉變換以產生多個平滑化訊號;以及依據該些平滑化訊號中的多個峰值識別週期性事件以獲得該些候選事件。 A cycle time detection and correction method includes executing with a computing device: obtaining a video from a camera device; obtaining a certain bounding box from an input device, and inputting the bounding box and the video to a cycle time detection model to generate a preliminary report, wherein the bounding box is used to mark a region of interest in the video, the preliminary report including a plurality of candidate events, each of the candidate events including a start time and a candidate cycle time; from the input The device receives a revision tag associated with at least one of the candidate events; and adjusts hyperparameters of the cycle time detection model according to the revision tag, wherein the bounding box is obtained from the input device and the bounding box is input and applying the video to the cycle time detection model to generate the preliminary report includes: cropping the video according to the bounding box; inputting multiple frames of the video into a neural network model to generate multiple feature vectors; performing a principal component analysis on the feature vectors to reduce the dimensions of the feature vectors to generate multiple low-dimensional signals; performing short-time Fourier transform on the low-dimensional signals to generate multiple smoothed signals; and based on the smoothed signals Multiple peaks in the periodic events are identified to obtain these candidate events. 如請求項1所述的週期時間偵測及修正方法,更包括:從該輸入裝置接收上邊界及下邊界;以及 在依據該平滑化訊號中的該些峰值識別該週期性事件以獲得該些候選事件之前,依據該上邊界及該下邊界所涵蓋的正常事件範圍篩選該些峰值。 The cycle time detection and correction method of claim 1, further comprising: receiving an upper boundary and a lower boundary from the input device; and Before identifying the periodic events based on the peaks in the smoothed signal to obtain the candidate events, the peaks are screened based on the normal event ranges covered by the upper boundary and the lower boundary. 如請求項1所述的週期時間偵測及修正方法,更包括:從該輸入裝置接收週期提示;以及在依據該些低維度訊號執行短時距傅立葉變換以產生多個平滑化訊號之前,依據該週期提示設定該短時距傅立葉變換中的滑動窗尺寸。 The cycle time detection and correction method as described in claim 1 further includes: receiving a cycle prompt from the input device; and before performing short-time Fourier transform based on the low-dimensional signals to generate a plurality of smoothed signals, based on This period prompt sets the sliding window size in this short-time Fourier transform. 如請求項2所述的週期時間偵測及修正方法,其中該些事件的每一者更包括一事件標籤,該事件標籤用於指示該些事件的每一者屬於正常事件或異常事件;該修訂標籤用於將屬於該正常事件的該候選事件修正為異常事件,或將屬於該異常事件的該候選事件修正為正常事件;以及依據該修訂標籤調整該週期時間偵測模型的超參數包括:依據該修訂標籤調整該上邊界及該下邊界的數值設定。 The cycle time detection and correction method as described in claim 2, wherein each of the events further includes an event tag, the event tag is used to indicate that each of the events is a normal event or an abnormal event; the The revision label is used to revise the candidate event belonging to the normal event into an abnormal event, or to revise the candidate event belonging to the abnormal event into a normal event; and adjusting the hyperparameters of the cycle time detection model according to the revision label include: Adjust the numerical settings of the upper boundary and the lower boundary according to the revision label. 如請求項3所述的週期時間偵測及修正方法,其中依據該修訂標籤調整該週期時間偵測模型的超參數包括:依據該修訂標籤調整該週期提示的數值設定。 The cycle time detection and correction method described in claim 3, wherein adjusting the hyperparameters of the cycle time detection model based on the revision label includes: adjusting the numerical setting of the cycle prompt based on the revision label. 一種週期時間偵測及修正系統,包括:攝像裝置,拍攝一環境產生一視訊;輸入裝置,接收在該視訊中標示感興趣區域的定界框及一修訂標籤;以及 運算裝置,通訊連接該攝像裝置及該輸入裝置,該運算裝置用於輸入該定界框及該視訊至一週期時間偵測模型以產生一初步報告,其中該定界框用於在該視訊中標示一感興趣區域,該初步報告包括多個候選事件,該些候選事件的每一者包括起始時間及候選週期時間,該運算裝置更用於依據該修訂標籤調整該週期時間偵測模型的超參數,其中該修訂標籤關聯於該些候選事件中至少一者,其中該運算裝置更用於:依據該定界框裁剪該視訊;將該視訊的多個訊框輸入一神經網路模型以產生多個特徵向量;對該些特徵向量執行一主成分分析以降低該些特徵向量的維度,產生多個低維度訊號;依據該些低維度訊號執行短時距傅立葉變換以產生多個平滑化訊號;以及依據該些平滑化訊號中的多個峰值識別週期性事件以獲得該些候選事件。 A cycle time detection and correction system includes: a camera device that shoots an environment to generate a video; an input device that receives a bounding box and a revision tag that mark an area of interest in the video; and A computing device, communicatively connected to the camera device and the input device, the computing device is used to input the bounding box and the video into a cycle time detection model to generate a preliminary report, wherein the bounding box is used in the video Marking a region of interest, the preliminary report includes a plurality of candidate events, each of the candidate events includes a start time and a candidate cycle time, and the computing device is further configured to adjust the cycle time detection model according to the revision tag. Hyperparameters, wherein the revision label is associated with at least one of the candidate events, wherein the computing device is further configured to: crop the video according to the bounding box; input multiple frames of the video into a neural network model to Generate multiple feature vectors; perform a principal component analysis on these feature vectors to reduce the dimensions of the feature vectors to generate multiple low-dimensional signals; perform short-time Fourier transforms based on the low-dimensional signals to generate multiple smoothings signals; and identifying periodic events based on multiple peaks in the smoothed signals to obtain the candidate events. 如請求項6所述的週期時間偵測及修正系統,其中該輸入裝置更用於接收上邊界及下邊界,且該運算裝置更依據該上邊界及該下邊界所涵蓋的正常事件範圍篩選該些峰值。 The cycle time detection and correction system of claim 6, wherein the input device is further used to receive an upper boundary and a lower boundary, and the computing device further screens the normal event ranges covered by the upper boundary and the lower boundary. some peaks. 如請求項7所述的週期時間偵測及修正系統,其中該輸入裝置更用於接收週期提示,且該運算裝置更依據該週期提示設定該短時距傅立葉變換中的滑動窗尺寸。 The cycle time detection and correction system of claim 7, wherein the input device is further configured to receive a cycle prompt, and the computing device further sets the sliding window size in the short-time Fourier transform according to the cycle prompt.
TW111144167A 2022-11-18 2022-11-18 Cycle time detection and correction system and method TWI826129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111144167A TWI826129B (en) 2022-11-18 2022-11-18 Cycle time detection and correction system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111144167A TWI826129B (en) 2022-11-18 2022-11-18 Cycle time detection and correction system and method

Publications (1)

Publication Number Publication Date
TWI826129B true TWI826129B (en) 2023-12-11

Family

ID=90053206

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111144167A TWI826129B (en) 2022-11-18 2022-11-18 Cycle time detection and correction system and method

Country Status (1)

Country Link
TW (1) TWI826129B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572065A (en) * 2013-10-15 2015-04-29 福特全球技术公司 Remote vehicle monitoring
CN109922310A (en) * 2019-01-24 2019-06-21 北京明略软件系统有限公司 The monitoring method of target object, apparatus and system
CN109919009A (en) * 2019-01-24 2019-06-21 北京明略软件系统有限公司 The monitoring method of target object, apparatus and system
US10395385B2 (en) * 2017-06-27 2019-08-27 Qualcomm Incorporated Using object re-identification in video surveillance
WO2020108618A1 (en) * 2018-11-30 2020-06-04 中兴通讯股份有限公司 Object prompting method, apparatus, device, and computer-readable medium
TW202242720A (en) * 2021-04-19 2022-11-01 南韓商三星電子股份有限公司 Method of optimizing neural network model and method of providing graphical user interface related to optimizing aneural network model

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572065A (en) * 2013-10-15 2015-04-29 福特全球技术公司 Remote vehicle monitoring
US10395385B2 (en) * 2017-06-27 2019-08-27 Qualcomm Incorporated Using object re-identification in video surveillance
WO2020108618A1 (en) * 2018-11-30 2020-06-04 中兴通讯股份有限公司 Object prompting method, apparatus, device, and computer-readable medium
CN109922310A (en) * 2019-01-24 2019-06-21 北京明略软件系统有限公司 The monitoring method of target object, apparatus and system
CN109919009A (en) * 2019-01-24 2019-06-21 北京明略软件系统有限公司 The monitoring method of target object, apparatus and system
TW202242720A (en) * 2021-04-19 2022-11-01 南韓商三星電子股份有限公司 Method of optimizing neural network model and method of providing graphical user interface related to optimizing aneural network model

Similar Documents

Publication Publication Date Title
CN109299703B (en) Method and device for carrying out statistics on mouse conditions and image acquisition equipment
US8934709B2 (en) Dynamic object classification
WO2020073686A1 (en) Foundation pit automatic monitoring data screening method and system based on image identification
CN109984054B (en) Estrus detection method, estrus detection device and estrus detection system
US20170155877A1 (en) System and method for predicting patient falls
CN101188743A (en) An intelligent digital system based on video and its processing method
WO2017057780A1 (en) Data collection device, method, and program for display panel or control panel
CN111709296A (en) Scene identification method and device, electronic equipment and readable storage medium
CN110717358B (en) Visitor number counting method and device, electronic equipment and storage medium
CN117456428B (en) Garbage throwing behavior detection method based on video image feature analysis
CN110459027A (en) A kind of Community Safety means of defence and system based on multi-source heterogeneous data fusion
JP2018005752A (en) Behavior detection system
TWI826129B (en) Cycle time detection and correction system and method
JP7446060B2 (en) Information processing device, program and information processing method
CN106781167A (en) The method and apparatus of monitoring object motion state
CN102867214B (en) Counting management method for people within area range
CA3026624A1 (en) Automatic visual and acoustic analytics for event detection
CN113052125B (en) Construction site violation image recognition and alarm method
CN113487166A (en) Chemical fiber floating filament quality detection method and system based on convolutional neural network
CN118038110A (en) Cycle time detection and correction system and method
JP3571628B2 (en) Image processing device
US20210275089A1 (en) Deriving information about a person's sleep and wake states from a sequence of video frames
CN116452961A (en) Industrial equipment state judging method and device
US20230177324A1 (en) Deep-learning-based real-time process monitoring system, and method therefor
He et al. Graph-based clustering for identifying region of interest in eye tracker data analysis