TWI752493B - Poultry image recognition dwell time analysis system and method - Google Patents

Poultry image recognition dwell time analysis system and method Download PDF

Info

Publication number
TWI752493B
TWI752493B TW109115897A TW109115897A TWI752493B TW I752493 B TWI752493 B TW I752493B TW 109115897 A TW109115897 A TW 109115897A TW 109115897 A TW109115897 A TW 109115897A TW I752493 B TWI752493 B TW I752493B
Authority
TW
Taiwan
Prior art keywords
bird
image
analyzed
area
poultry
Prior art date
Application number
TW109115897A
Other languages
Chinese (zh)
Other versions
TW202143171A (en
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 TW109115897A priority Critical patent/TWI752493B/en
Publication of TW202143171A publication Critical patent/TW202143171A/en
Application granted granted Critical
Publication of TWI752493B publication Critical patent/TWI752493B/en

Links

Images

Abstract

一種禽隻圖像辨識停留時間分析方法,適用於分析多張待分析禽隻圖像,由一系統執行,該方法包含:(A)利用一禽隻偵測模型,產生多個分別對應該等待分析禽隻圖像的禽隻偵測結果,每一禽隻偵測結果包括至少一禽隻區域位置;(B)對於每一待分析禽隻圖像,根據該待分析禽隻圖像對應的禽隻偵測結果,及一前一待分析禽隻圖像所對應的一前一禽隻偵測結果,計算出每一禽隻區域位置與其所對應的禽隻區域位置的重疊率;及(C)根據該等待分析禽隻圖像、該等禽隻偵測結果及該等待分析禽隻圖像所對應的重疊率,計算出該等待分析禽隻圖像之禽隻的停留時間。 A method for analyzing residence time of poultry image recognition, which is suitable for analyzing a plurality of images of poultry to be analyzed, and is executed by a system. Analyze the bird detection results of the bird images, each bird detection result includes at least one bird area position; (B) for each bird image to be analyzed, according to the corresponding bird image to be analyzed. The bird detection result, and the previous bird detection result corresponding to the previous bird image to be analyzed, calculate the overlap rate of each bird area position and its corresponding bird area position; and ( C) According to the bird image waiting to be analyzed, the detection results of the birds and the overlap ratio corresponding to the bird image waiting to be analyzed, calculate the dwell time of the bird waiting to be analyzed.

Description

禽隻圖像辨識停留時間分析系統和方法 Poultry image recognition dwell time analysis system and method

本發明是有關於一種圖像辨識之分析方法,特別是指一種禽隻圖像辨識停留時間分析系統和方法。 The present invention relates to an analysis method for image recognition, in particular to a system and method for analyzing residence time of bird image recognition.

禽類在罹病的情況下,常有蹲伏、嗜睡、腹瀉、羽毛皺褶等明顯的臨床症狀,這些症狀都會使得禽類活動力下降,而常駐原地。為了觀察禽隻是否有因罹病而產生的異常行為,在傳統禽類飼養場飼養管理上,常是以管理人員進入現場禽舍觀察禽隻採食及行為情況為主。但是大部分禽隻生性敏感容易受到驚嚇,一旦受到驚嚇可能數天難以平靜。在人為干擾之下可能會造成禽隻有緊迫的狀況發生,進而影響到禽隻生活品質或是異常行為判斷的正確性。 When birds are sick, they often have obvious clinical symptoms such as crouching, lethargy, diarrhea, and feather wrinkling. These symptoms will reduce the activity of birds and stay in place. In order to observe whether the birds have abnormal behaviors due to disease, in the feeding management of traditional poultry farms, managers often enter the on-site poultry house to observe the feeding and behavior of the birds. However, most birds are naturally sensitive and easily frightened, and once frightened, it may be difficult to calm down for several days. Under human interference, it may cause urgent situations of birds, which in turn affect the quality of life of birds or the correctness of abnormal behavior judgments.

目前禽類飼養場已逐漸開始導入攝影設備協助飼養管理,管理人員只要在辦公室內就能夠監視現場禽舍內部禽隻的停留狀況,以分析禽隻是否有活動力下降而有罹病風險,降低管理人員進入現場禽舍的頻率,減少對於飼養禽隻的干擾以及意外帶入病原的風險。 At present, poultry farms have gradually begun to introduce photographic equipment to assist in breeding management. As long as the management personnel are in the office, they can monitor the staying status of the birds in the on-site poultry house to analyze whether the birds have decreased activity and risk of disease, and reduce the management personnel. The frequency of entry to the on-site poultry house to reduce disturbance to the birds and the risk of accidental introduction of pathogens.

然而,現有的管理方式,還是需要仰賴人工24小時的監視攝影設備的畫面,以掌握禽隻的停留狀況,非常地耗費人力成本。 However, the existing management method still needs to rely on manual 24-hour monitoring of the images of the photographic equipment to grasp the staying status of the birds, which is very labor-intensive.

因此,本發明的目的,即在提供一種根據禽隻圖像自動計算禽隻停留時間的禽隻圖像辨識停留時間分析方法。 Therefore, the purpose of the present invention is to provide a bird image recognition dwell time analysis method for automatically calculating the bird dwell time according to the bird image.

於是,本發明禽隻圖像辨識停留時間分析方法,適用於分析連續拍攝的多張待分析禽隻圖像,每一待分析禽隻圖像包括至少一禽隻及一拍攝時間,由一禽隻圖像辨識停留時間分析系統執行,該方法包含一步驟(A)、一步驟(B),及一步驟(C)。 Therefore, the residence time analysis method for bird image recognition according to the present invention is suitable for analyzing a plurality of images of birds to be analyzed that are continuously photographed. Only the image recognition dwell time analysis system is performed, and the method includes a step (A), a step (B), and a step (C).

在該步驟(A)中,該禽隻圖像辨識停留時間分析系統利用一用於偵測禽隻區域的禽隻偵測模型,偵測該等待分析禽隻圖像的禽隻區域,以產生多個分別對應該等待分析禽隻圖像的禽隻偵測結果,每一禽隻偵測結果包括至少一禽隻區域位置。 In the step (A), the bird image recognition dwell time analysis system uses a bird detection model for detecting bird regions to detect the bird regions waiting to be analyzed for the bird images to generate A plurality of bird detection results respectively corresponding to the bird images waiting to be analyzed, and each bird detection result includes at least one bird area location.

在該步驟(B)中,對於每一待分析禽隻圖像,該禽隻圖像辨識停留時間分析系統根據該待分析禽隻圖像對應的禽隻偵測結果之至少一禽隻區域位置,及一在前一拍攝時間拍攝之前一待分析禽隻圖像所對應的一前一禽隻偵測結果之至少一禽隻區域位置,計算出每一禽隻區域位置與其所對應的禽隻區域位置的重疊率。 In this step (B), for each bird image to be analyzed, the bird image recognition dwell time analysis system according to the bird image to be analyzed corresponds to the bird detection result corresponding to at least one bird area position , and at least one bird region position of a previous bird detection result corresponding to a bird image to be analyzed before the previous shooting time, and calculate each bird region position and its corresponding bird The overlap ratio of the region locations.

在該步驟(C)中,該禽隻圖像辨識停留時間分析系統根據 該等待分析禽隻圖像、該等禽隻偵測結果及該等待分析禽隻圖像所對應的重疊率,計算出該等待分析禽隻圖像之禽隻的停留時間。 In this step (C), the poultry image recognition residence time analysis system is based on The bird image waiting to be analyzed, the detection results of the birds and the overlap ratio corresponding to the bird image waiting to be analyzed, the dwell time of the bird waiting to be analyzed is calculated.

本發明的另一目的,即在提供一種根據禽隻圖像自動計算禽隻停留時間的禽隻圖像辨識停留時間分析系統。 Another object of the present invention is to provide a bird image recognition dwell time analysis system that automatically calculates the bird dwell time according to the bird image.

於是,本發明禽隻圖像辨識停留時間分析系統,包含一儲存裝置、一圖像拍攝裝置,及一分析伺服器。 Therefore, the poultry image recognition residence time analysis system of the present invention includes a storage device, an image capture device, and an analysis server.

該儲存裝置連接一通訊網路。 The storage device is connected to a communication network.

該圖像拍攝裝置經由該通訊網路連接該儲存裝置,並用以連續的拍攝一禽隻飼養場,以產生並經由該通訊網路傳送多張待分析禽隻圖像至該儲存裝置,每一待分析禽隻圖像包括至少一禽隻及一拍攝時間。 The image capturing device is connected to the storage device via the communication network, and is used for continuously capturing a poultry farm to generate and transmit a plurality of images of the birds to be analyzed to the storage device through the communication network, each of which is to be analyzed. The bird image includes at least one bird and a shooting time.

該分析伺服器經由該通訊網路連接該儲存裝置,利用一用於偵測禽隻區域的禽隻偵測模型,偵測該等待分析禽隻圖像的禽隻區域,以產生多個分別對應該等待分析禽隻圖像的禽隻偵測結果,每一禽隻偵測結果包括至少一禽隻區域位置,並對於每一待分析禽隻圖像,根據該待分析禽隻圖像對應的禽隻偵測結果之至少一禽隻區域位置,及一在前一拍攝時間拍攝之前一待分析禽隻圖像所對應的一前一禽隻偵測結果之至少一禽隻區域位置,計算出每一禽隻區域位置與其所對應的禽隻區域位置的重疊率,再根據該等待分析禽隻圖像、該等禽隻偵測結果及該等待分析禽隻圖像所對應的重 疊率,計算出該等待分析禽隻圖像之禽隻的停留時間。 The analysis server is connected to the storage device via the communication network, and uses a bird detection model for detecting the bird region to detect the bird region waiting to be analyzed for the bird image, so as to generate a plurality of corresponding bird regions respectively. Waiting for the bird detection result of the analyzed bird image, each bird detection result includes at least one bird area position, and for each bird image to be analyzed, according to the bird image corresponding to the bird image to be analyzed Only the position of at least one bird area of the detection result and the position of at least one bird area of the previous bird detection result corresponding to the image of the bird to be analyzed before the previous shooting time was calculated, and each The overlap ratio between the position of the poultry area and the position of the corresponding poultry area, and then according to the pending analysis poultry image, the poultry detection results and the weight corresponding to the pending analysis poultry image The overlap rate is calculated to calculate the dwell time of the bird waiting to analyze the bird image.

本發明的功效在於:藉由該分析伺服器利用該禽隻偵測模型偵測該等待分析禽隻圖像的禽隻區域,並根據該待分析禽隻圖像與該前一待分析禽隻圖像,計算出每一禽隻區域位置與其所對應的禽隻區域位置的重疊率,再根據該等待分析禽隻圖像、該等禽隻偵測結果及該等待分析禽隻圖像所對應的重疊率,計算出該等待分析禽隻圖像之禽隻的停留時間。 The effect of the present invention is: the analysis server uses the bird detection model to detect the bird area of the bird image to be analyzed, and according to the image of the bird to be analyzed and the previous bird to be analyzed image, calculate the overlap rate of each bird area position and its corresponding bird area position, and then according to the pending analysis bird image, the poultry detection results and the corresponding poultry image to be analyzed Calculate the dwell time of the bird waiting to analyze the bird image.

11:儲存裝置 11: Storage device

12:圖像拍攝裝置 12: Image capture device

13:訓練伺服器 13: Train the server

14:分析伺服器 14: Analysis Server

100:通訊網路 100: Communication Network

2:訓練程序 2: Training program

201~205:步驟 201~205: Steps

3:分析程序 3: Analysis procedure

301~312:步驟 301~312: Steps

41:禽隻區域位置 41: Poultry area location

42:禽隻區域位置 42: Poultry area location

43:交集面積 43: Intersection area

44:聯集面積 44: Union area

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是一方塊圖,說明本發明禽隻圖像辨識停留時間分析系統的一實施例;圖2是一流程圖,說明本發明禽隻圖像辨識停留時間分析方法的一實施例的一訓練程序;圖3是一流程圖,說明本發明禽隻圖像辨識停留時間分析方法的該實施例的一分析程序;及圖4是一示意圖,說明二禽隻區域位置之一重疊率的計算方式。 Other features and effects of the present invention will be clearly presented in the embodiments with reference to the drawings, wherein: Fig. 1 is a block diagram illustrating an embodiment of the dwell time analysis system for bird image recognition according to the present invention; Fig. 2 Fig. 3 is a flow chart illustrating a training procedure of an embodiment of the dwell time analysis method for bird image recognition according to the present invention; an analysis procedure; and FIG. 4 is a schematic diagram illustrating a calculation method of an overlap ratio of two regional positions of birds.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。 Before the present invention is described in detail, it should be noted that in the following description, similar elements are designated by the same reference numerals.

參閱圖1,本發明禽隻圖像辨識停留時間分析系統的一實施例,該實施例包括一儲存裝置11、一圖像拍攝裝置12、一訓練伺服器13,及一分析伺服器14。 Referring to FIG. 1 , an embodiment of a system for analyzing residence time of poultry image recognition according to the present invention includes a storage device 11 , an image capturing device 12 , a training server 13 , and an analysis server 14 .

該儲存裝置11儲存多張訓練禽隻圖像,且連接一通訊網路100,每一訓練禽隻圖像標註有至少一禽隻區域。值得注意的是,在本實施例中,該通訊網路100例如為網際網路(internet),每一禽隻區域是以矩形標註,但不以此為限,在其他實施方式中,禽隻區域一可以圓形、橢圓形、多邊形等形狀標註。 The storage device 11 stores a plurality of training bird images and is connected to a communication network 100 , and each training bird image is marked with at least one bird area. It should be noted that, in this embodiment, the communication network 100 is, for example, the Internet, and each poultry area is marked with a rectangle, but not limited thereto. In other embodiments, the poultry area One can be marked in shapes such as circle, ellipse, and polygon.

該圖像拍攝裝置12經由該通訊網路100連接該儲存裝置11,並用以連續的拍攝一禽隻飼養場,以產生並經由該通訊網路100傳送多張待分析禽隻圖像至該儲存裝置11,每一待分析禽隻圖像包括至少一禽隻及一拍攝時間。值得注意的是,在本實施例中,該圖像拍攝裝置12具有一攝影機,及一電連接該攝影機的嵌入式系統(Embedded System),該嵌入式系統控制該攝影機拍攝該禽隻飼養場。 The image capturing device 12 is connected to the storage device 11 via the communication network 100 and is used to continuously capture a poultry farm to generate and transmit a plurality of images of the birds to be analyzed to the storage device 11 via the communication network 100 , each bird image to be analyzed includes at least one bird and a shooting time. It should be noted that, in this embodiment, the image capturing device 12 has a camera, and an embedded system (Embedded System) electrically connected to the camera, and the embedded system controls the camera to capture the poultry farm.

值得注意的是,在本實施例中,該等訓練禽隻圖像及該等待分析禽隻圖像皆是以俯視角度拍攝,以避免出現同一張圖像禽隻重疊現象發生,但不以此為限。 It is worth noting that, in this embodiment, the images of the training birds and the images of the birds to be analyzed are all taken from an overhead angle to avoid the phenomenon of overlapping birds in the same image, but this is not the case. limited.

該訓練伺服器13經由該通訊網路100連接該儲存裝置11。 The training server 13 is connected to the storage device 11 via the communication network 100 .

該分析伺服器14經由該通訊網路100連接該儲存裝置11及該訓練伺服器13。 The analysis server 14 is connected to the storage device 11 and the training server 13 via the communication network 100 .

值得注意的是,在本實施例中,由於該訓練伺服器13及該分析伺服器14需要處理高解析度的圖像,故皆具有圖形處理單元(Graphics Processing Unit,GPU)。 It should be noted that, in this embodiment, since the training server 13 and the analysis server 14 need to process high-resolution images, they both have a Graphics Processing Unit (GPU).

本發明禽隻圖像辨識停留時間分析方法的一實施例,包含一訓練程序2及一分析程序3,以下詳述該禽隻圖像辨識停留時間分析如何實施該實施例。 An embodiment of the method for analyzing dwell time for bird image recognition according to the present invention includes a training program 2 and an analysis program 3. The following describes in detail how the dwell time analysis for bird image recognition implements the embodiment.

參閱圖2,該實施例的該訓練程序2,包含步驟201~205。 Referring to FIG. 2 , the training program 2 of this embodiment includes steps 201 to 205 .

在步驟201中,該訓練伺服器13經由該通訊網路100從該儲存裝置11獲得該訓練禽隻圖像。 In step 201 , the training server 13 obtains the training bird image from the storage device 11 via the communication network 100 .

在步驟202中,該訓練伺服器13將該等訓練禽隻圖像分群成一訓練集(training dataset)及一驗證集(validation dataset)。 In step 202, the training server 13 groups the training bird images into a training dataset and a validation dataset.

在步驟203中,該訓練伺服器13根據該訓練集中的所有訓練禽隻圖像,利用一機器學習演算法,建立一訓練模型。在本實施例中,該該機器學習演算法例如為一卷積神經網路(Convolutional Neural Network,CNN)演算法,但不以此為 限。 In step 203, the training server 13 uses a machine learning algorithm to establish a training model according to all the training bird images in the training set. In this embodiment, the machine learning algorithm is, for example, a Convolutional Neural Network (CNN) algorithm, but it is not limit.

在步驟204中,該訓練伺服器13根據該驗證集中的所有訓練禽隻圖像調整該訓練模型,以獲得一用於偵測禽隻區域的禽隻偵測模型。 In step 204, the training server 13 adjusts the training model according to all training bird images in the validation set to obtain a bird detection model for detecting bird areas.

在步驟205中,該訓練伺服器13經由該通訊網路100將該禽隻偵測模型傳送至該分析伺服器14。 In step 205 , the training server 13 transmits the bird detection model to the analysis server 14 via the communication network 100 .

參閱圖3,該實施例的該分析程序3,包含步驟301~312。要特別說明的是,在本實施例中,該圖像拍攝裝置12例如產生並經由該通訊網路100傳送N張待分析禽隻圖像至該儲存裝置11,其中N>1。 Referring to FIG. 3 , the analysis program 3 of this embodiment includes steps 301 to 312 . It should be noted that, in this embodiment, the image capturing device 12, for example, generates and transmits N images of birds to be analyzed to the storage device 11 via the communication network 100, where N>1.

在步驟301中,初始時也就是在開始執行該分析程序3時,該分析伺服器14令i=1,以指示出當前對應於第1張待分析禽隻圖像。 In step 301, initially, that is, when starting to execute the analysis program 3, the analysis server 14 sets i=1 to indicate that the current image corresponds to the first bird image to be analyzed.

在步驟302中,該分析伺服器14利用該禽隻偵測模型,偵測第i張待分析禽隻圖像的禽隻區域,以產生一對應該第i張待分析禽隻圖像的禽隻偵測結果,該禽隻偵測結果包括K i 個禽隻區域位置,其中K i

Figure 109115897-A0305-02-0008-1
1。值得注意的是,每一禽隻區域位置例如包括在待分析禽隻圖像定義的一個二維坐標系的一最小x軸座標、一最小y座標、一最大x軸座標,及一最大y軸座標,其中根據該最小x軸座標、該最小y座標、該最大x軸座標,及該最大y軸座標可在待分析 禽隻圖像中構成一定界框(bounding box)。 In step 302, the analysis server 14 uses the bird detection model to detect the bird area of the i-th bird image to be analyzed, so as to generate a pair of birds corresponding to the i-th bird image to be analyzed Only the detection result, the bird detection result includes K i poultry area locations, where K i
Figure 109115897-A0305-02-0008-1
1. It is worth noting that the position of each bird area includes, for example, a minimum x-axis coordinate, a minimum y-coordinate, a maximum x-axis coordinate, and a maximum y-axis in a two-dimensional coordinate system defined by the image of the bird to be analyzed. Coordinates, wherein a certain bounding box can be formed in the image of the bird to be analyzed according to the minimum x-axis coordinate, the minimum y-axis coordinate, the maximum x-axis coordinate, and the maximum y-axis coordinate.

在步驟303中,該分析伺服器14判定i是否大於1。當該分析伺服器14判定i不大於1時,流程進行步驟304;而當該分析伺服器14判定i大於1時,流程進行步驟305。 In step 303, the analysis server 14 determines whether i is greater than 1. When the analysis server 14 determines that i is not greater than 1, the process proceeds to step 304; and when the analysis server 14 determines that i is greater than 1, the process proceeds to step 305.

在步驟304中,該分析伺服器14對於第(i+1)張待分析禽隻圖像,亦即將i設為i+1,並重複步驟302。 In step 304 , the analysis server 14 sets i as i+1 for the (i+1)th bird image to be analyzed, and repeats step 302 .

在步驟305中,該分析伺服器14令j=1,以指示出當前對應於第i張待分析禽隻圖像的第j個禽隻區域位置。 In step 305, the analysis server 14 sets j=1 to indicate the position of the j-th bird area currently corresponding to the i-th bird image to be analyzed.

在步驟306中,該分析伺服器14根據該第j個禽隻區域位置,及第i-1張待分析禽隻圖像,計算出該第j個禽隻區域位置與其在該第i-1張待分析禽隻圖像所對應的禽隻區域位置的一重疊率。 In step 306, the analysis server 14 calculates the position of the j-th bird area and its position in the i-1-th bird area according to the position of the j-th bird area and the i-1-th bird image to be analyzed An overlap ratio of the position of the bird region corresponding to the bird image to be analyzed.

值得注意的是,搭配參閱圖4,在本實施例中,該分析伺服器14係根據該第j個禽隻區域位置41與其在該第i-1張待分析禽隻圖像所對應的禽隻區域位置42之交集面積43及聯集面積44計算,該重疊率為該第j個禽隻區域位置41與其在該第i-1張待分析禽隻圖像所對應的禽隻區域位置42的交集面積43除以該第j個禽隻區域位置41與其在該第i-1張待分析禽隻圖像所對應的禽隻區域位置42的聯集面積44,但不此為限。 It should be noted that, referring to FIG. 4 , in this embodiment, the analysis server 14 is based on the position 41 of the j-th bird area and the bird corresponding to the i-1-th bird image to be analyzed. The intersection area 43 and the union area 44 of the area position 42 are calculated, and the overlap ratio is the jth poultry area position 41 and the poultry area position 42 corresponding to the i-1th bird image to be analyzed. The intersection area 43 of , divided by the union area 44 of the j-th bird region position 41 and the bird region position 42 corresponding to the i-1th bird image to be analyzed, but not limited thereto.

在步驟307中,該分析伺服器14判定該重疊率是否大於一門檻值。當該分析伺服器14判定出該重疊率不大於該門檻值時, 流程進行步驟308;而當該分析伺服器14判定出該重疊率大於該門檻值時,流程進行步驟309。值得注意的是,在本實施例中,該門檻值例如為0.9,但不以此為限。 In step 307, the analysis server 14 determines whether the overlap ratio is greater than a threshold value. When the analysis server 14 determines that the overlap ratio is not greater than the threshold value, The process goes to step 308 ; and when the analysis server 14 determines that the overlap ratio is greater than the threshold value, the process goes to step 309 . It should be noted that, in this embodiment, the threshold value is, for example, 0.9, but not limited thereto.

在步驟308中,該分析伺服器14產生一包括一停留開始時間、該第j個禽隻區域位置,及一累計時間的禽隻停留事件資料,其中該停留開始時間為該待分析禽隻圖像的拍攝時間,及該累計時間初始值為0。 In step 308, the analysis server 14 generates a bird stop event data including a stop start time, the j-th bird area position, and a cumulative time, wherein the stop start time is the image of the bird to be analyzed The shooting time of the image, and the initial value of the accumulated time is 0.

在步驟309中,該分析伺服器14獲得包括該第j個禽隻區域位置在該第i-1張待分析禽隻圖像所對應的禽隻區域位置的禽隻停留事件資料,並根據該禽隻停留事件資料之停留開始時間及該第i張待分析禽隻圖像的拍攝時間,更新該禽隻停留事件資料之累計時間,且將該第j個禽隻區域位置儲存至該禽隻停留事件資料。值得注意的是,該累計時間即為禽隻的停留時間,該累計時間為該第i張待分析禽隻圖像的拍攝時間減去該禽隻停留事件資料之停留開始時間的時間。 In step 309, the analysis server 14 obtains the bird stay event data including the position of the jth bird area at the position of the bird area corresponding to the i-1th bird image to be analyzed. The stop start time of the bird stop event data and the shooting time of the i-th bird image to be analyzed, update the accumulated time of the bird stop event data, and store the j-th bird area location to the bird Stop event data. It is worth noting that the accumulated time is the stay time of the bird, and the accumulated time is the time taken from the shooting time of the i-th bird image to be analyzed minus the stay start time of the bird stay event data.

要特別注意的是,為方便管理,在其他實施方式中,對於每一禽隻區域位置,該分析伺服器14亦可產生一對應該禽隻區域位置的唯一識別碼(Unique Identifier,UID),並在步驟308中的該禽隻停留事件資料的該第j個禽隻區域位置以該第j個禽隻區域位置對應的唯一識別碼取代,而在步驟309中即可以該唯一識別碼快 速獲得包括該唯一識別碼的禽隻停留事件資料,並儲存該第j個禽隻區域位置對應的唯一識別碼儲存至該禽隻停留事件資料。 It should be noted that, for the convenience of management, in other embodiments, for each bird area location, the analysis server 14 may also generate a unique identifier (Unique Identifier, UID) for the corresponding bird area location, And in step 308, the position of the j-th poultry area in the poultry stay event data is replaced with the unique identification code corresponding to the position of the j-th poultry area, and in step 309, the unique identification code can be quickly Quickly obtain the bird stay event data including the unique identification code, and store the unique identification code corresponding to the jth bird area position to the bird stay event data.

在步驟308、309之後的步驟310中,該分析伺服器14判定該第j個禽隻區域位置是否為第K i 個禽隻區域位置,即判定是否j=K i 。當該分析伺服器14判定出該第j個禽隻區域位置不為第K i 個禽隻區域位置時,流程進行步驟311;而當該分析伺服器14判定出該第j個禽隻區域位置為第K i 個禽隻區域位置時,流程進行步驟312。 After step 308, 309, 310, the analysis server 14 determines that the j-th position is the region of the poultry K i th poultry region position, that is, whether j = K i. When the analysis server 14 determines that the position of the j-th region is not the first poultry K i th poultry area location, the flow proceeds to step 311; and when the analysis server 14 determines that the position of the j-th region poultry When it is the K i th bird area position, the process proceeds to step 312 .

在步驟311中,該分析伺服器14對於第(j+1)個禽隻區域位置,亦即將j設為j+1,並重複步驟306。 In step 311 , the analysis server 14 sets j to j+1 for the (j+1)th bird area position, and repeats step 306 .

在步驟312中,該分析伺服器14判定該第i張待分析禽隻圖像是否為第N張待分析禽隻圖像,即判定是否i=N。當該分析伺服器14判定出該第i張待分析禽隻圖像不為第N張待分析禽隻圖像,重複步驟304;而當該分析伺服器14判定出該第i張待分析禽隻圖像為第N張待分析禽隻圖像,則結束該分析程序3。 In step 312, the analysis server 14 determines whether the i-th bird image to be analyzed is the N-th bird image to be analyzed, that is, determines whether i=N. When the analysis server 14 determines that the i-th bird image to be analyzed is not the N-th bird image to be analyzed, step 304 is repeated; and when the analysis server 14 determines that the i-th bird image to be analyzed is not the bird image to be analyzed If only the image is the Nth bird image to be analyzed, the analysis procedure 3 is ended.

綜上所述,本發明禽隻圖像辨識停留時間分析系統和方法,該訓練伺服器13根據該等訓練禽隻圖像建立該禽隻偵測模型,再藉由該分析伺服器14利用該禽隻偵測模型偵測該等待分析禽隻圖像的禽隻區域,並根據該第i張待分析禽隻圖像與該第i-1張待分析禽隻圖像,計算出該第i張待分析禽隻圖像的該第j個禽隻區域位 置與其在該第i-1張待分析禽隻圖像所對應的禽隻區域位置的重疊率,再根據該等待分析禽隻圖像、該等禽隻偵測結果及該等待分析禽隻圖像所對應的重疊率,計算出該等待分析禽隻圖像之禽隻的停留時間,故確實能達成本發明的目的。 To sum up, in the system and method for analyzing dwell time of bird image recognition according to the present invention, the training server 13 establishes the bird detection model according to the training bird images, and then uses the analysis server 14 to use the bird detection model. The bird detection model detects the area of the bird to be analyzed in the bird image, and calculates the i-th bird image according to the i-th bird image to be analyzed and the i-1th bird image to be analyzed. The j-th bird region of the bird image to be analyzed Set the overlap ratio with the position of the bird area corresponding to the i-1 th bird image to be analyzed, and then according to the image of the bird to be analyzed, the detection results of the birds and the image of the bird to be analyzed According to the corresponding overlap rate, the dwell time of the bird waiting to be analyzed for the bird image is calculated, so the object of the present invention can indeed be achieved.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。 However, the above are only examples of the present invention, and should not limit the scope of implementation of the present invention. Any simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the contents of the patent specification are still included in the scope of the present invention. within the scope of the invention patent.

3:分析程序 3: Analysis procedure

301~312:步驟 301~312: Steps

Claims (14)

一種禽隻圖像辨識停留時間分析方法,適用於分析連續拍攝的多張待分析禽隻圖像,每一待分析禽隻圖像包括至少一禽隻及一拍攝時間,由一禽隻圖像辨識停留時間分析系統執行,該方法包含以下步驟:(A)利用一用於偵測禽隻區域的禽隻偵測模型,偵測該等待分析禽隻圖像的禽隻區域,以產生多個分別對應該等待分析禽隻圖像的禽隻偵測結果,每一禽隻偵測結果包括至少一禽隻區域位置;(B)對於每一待分析禽隻圖像,根據該待分析禽隻圖像對應的禽隻偵測結果之至少一禽隻區域位置,及一在前一拍攝時間拍攝之前一待分析禽隻圖像所對應的一前一禽隻偵測結果之至少一禽隻區域位置,計算出位於該待分析禽隻圖像的每一禽隻區域位置與其所對應且位於該前一待分析禽隻圖像的禽隻區域位置的重疊率;及(C)根據該等待分析禽隻圖像、該等禽隻偵測結果及該等待分析禽隻圖像所對應的重疊率,計算出該等待分析禽隻圖像之禽隻的停留時間。 A method for analyzing residence time of poultry image recognition, which is suitable for analyzing a plurality of consecutively shot images of poultry to be analyzed. The identification dwell time analysis system is executed, and the method includes the following steps: (A) using a bird detection model for detecting bird regions to detect the bird region waiting to be analyzed for the bird image, so as to generate a plurality of Corresponding to the bird detection results of the bird images waiting to be analyzed, each bird detection result includes at least one bird area position; (B) for each bird image to be analyzed, according to the bird to be analyzed image The position of at least one bird region of the bird detection result corresponding to the image, and the at least one bird region of a previous bird detection result corresponding to a bird image to be analyzed before the previous shooting time position, calculating the overlap ratio between the position of each bird region in the bird image to be analyzed and the position of the bird region corresponding to the previous bird image to be analyzed; and (C) according to the waiting analysis The bird images, the bird detection results and the overlap ratios corresponding to the bird images waiting to be analyzed are used to calculate the dwell time of the birds waiting to be analyzed. 如請求項1所述的禽隻圖像辨識停留時間分析方法,其中,步驟(C)包括以下子步驟:(C-1)對於每一待分析禽隻圖像所對應的每一重疊率,判定該重疊率是否大於一門檻值;(C-2)對於每一待分析禽隻圖像所對應的每一重疊率,當判定出該重疊率不大於該門檻值時,產生一包括一 停留開始時間、該至少一禽隻區域位置中該重疊率對應的禽隻區域位置,及一累計時間的禽隻停留事件資料,其中該停留開始時間為該待分析禽隻圖像的拍攝時間;及(C-3)對於每一待分析禽隻圖像所對應的每一重疊率,當判定出該重疊率大於該門檻值時,獲得包括該至少一禽隻區域位置中該重疊率對應的禽隻區域位置的禽隻停留事件資料,並根據該禽隻停留事件資料之停留開始時間及該待分析禽隻圖像的拍攝時間,更新該禽隻停留事件資料之累計時間,且將該至少一禽隻區域位置中該重疊率對應的禽隻區域位置儲存至該禽隻停留事件資料。 The method for analyzing residence time of bird image recognition according to claim 1, wherein step (C) includes the following sub-steps: (C-1) for each overlap ratio corresponding to each bird image to be analyzed, Determine whether the overlap ratio is greater than a threshold value; (C-2) for each overlap ratio corresponding to each bird image to be analyzed, when it is determined that the overlap ratio is not greater than the threshold value, generate an image including a The stay start time, the position of the bird area corresponding to the overlap rate in the at least one bird area position, and the poultry stay event data of a cumulative time, wherein the stay start time is the shooting time of the image of the bird to be analyzed; and (C-3) for each overlap ratio corresponding to each bird image to be analyzed, when it is determined that the overlap ratio is greater than the threshold value, obtain an image including the overlap ratio corresponding to the at least one bird area position. The bird stay event data at the location of the poultry area, and according to the stay start time of the bird stay event data and the shooting time of the image of the bird to be analyzed, update the cumulative time of the bird stay event data, and at least A bird area position corresponding to the overlap rate in a bird area position is stored in the bird stop event data. 如請求項2所述的禽隻圖像辨識停留時間分析方法,其中,在步驟(C-1)中,該門檻值為0.9。 The method for analyzing residence time of poultry image recognition according to claim 2, wherein, in step (C-1), the threshold value is 0.9. 如請求項1所述的禽隻圖像辨識停留時間分析方法,其中,在步驟(B)中,每一重疊率為禽隻區域位置與其所對應的禽隻區域位置的交集面積除以禽隻區域位置與其所對應的禽隻區域位置的聯集面積。 The method for analyzing residence time of poultry image recognition according to claim 1, wherein, in step (B), each overlap ratio is the intersection area of the position of the poultry area and its corresponding position of the poultry area divided by the poultry area The combined area of the area location and its corresponding poultry area location. 如請求項1所述的禽隻圖像辨識停留時間分析方法,該禽隻圖像辨識停留時間分析系統儲存有多張訓練禽隻圖像,每一訓練禽隻圖像標註有至少一禽隻區域,在步驟(A)之前還包含以下步驟:(D)根據該等訓練禽隻圖像,利用一機器學習演算法,建立該禽隻偵測模型。 According to the method for analyzing residence time of bird image recognition according to claim 1, the system for analyzing residence time of bird image recognition stores a plurality of training bird images, and each training bird image is marked with at least one bird region, before step (A), it also includes the following steps: (D) according to the training bird images, using a machine learning algorithm to establish the bird detection model. 如請求項5所述的禽隻圖像辨識停留時間分析方法,其中,步驟(D)包括以下子步驟: (D-1)將該等訓練禽隻圖像分群成一訓練集及一驗證集;(D-2)根據該訓練集中的所有訓練禽隻圖像,利用該機器學習演算法,建立一訓練模型;及(D-3)根據該驗證集中的所有訓練禽隻圖像調整該訓練模型,以獲得該禽隻偵測模型。 The method for analyzing residence time of poultry image recognition according to claim 5, wherein step (D) comprises the following sub-steps: (D-1) Group the training bird images into a training set and a validation set; (D-2) According to all the training bird images in the training set, use the machine learning algorithm to establish a training model ; and (D-3) adjusting the training model according to all training bird images in the validation set to obtain the bird detection model. 如請求項5所述的禽隻圖像辨識停留時間分析方法,其中,在步驟(D)中,該機器學習演算法為一卷積神經網路演算法。 The method for analyzing residence time of poultry image recognition according to claim 5, wherein, in step (D), the machine learning algorithm is a convolutional neural network road algorithm. 一種禽隻圖像辨識停留時間分析系統,包含:一儲存裝置,連接一通訊網路;一圖像拍攝裝置,經由該通訊網路連接該儲存裝置,並用以連續的拍攝一禽隻飼養場,以產生並經由該通訊網路傳送多張待分析禽隻圖像至該儲存裝置,每一待分析禽隻圖像包括至少一禽隻及一拍攝時間;一分析伺服器,經由該通訊網路連接該儲存裝置,利用一用於偵測禽隻區域的禽隻偵測模型,偵測該等待分析禽隻圖像的禽隻區域,以產生多個分別對應該等待分析禽隻圖像的禽隻偵測結果,每一禽隻偵測結果包括至少一禽隻區域位置,並對於每一待分析禽隻圖像,根據該待分析禽隻圖像對應的禽隻偵測結果之至少一禽隻區域位置,及一在前一拍攝時間拍攝之前一待分析禽隻圖像所對應的一前一禽隻偵測結果之至少一禽隻區域位置,計算出位於該待分析禽隻圖像的每一禽隻區域位置與其所對應且位 於該前一待分析禽隻圖像的禽隻區域位置的重疊率,再根據該等待分析禽隻圖像、該等禽隻偵測結果及該等待分析禽隻圖像所對應的重疊率,計算出該等待分析禽隻圖像之禽隻的停留時間。 A system for analyzing residence time of poultry image recognition, comprising: a storage device connected to a communication network; an image capture device connected to the storage device via the communication network, and used for continuously photographing a poultry farm to generate and transmit a plurality of images of the poultry to be analyzed to the storage device through the communication network, each image of the poultry to be analyzed includes at least one bird and a shooting time; an analysis server is connected to the storage device through the communication network , using a bird detection model for detecting the bird area, to detect the bird area waiting for the analysis of the bird image, so as to generate a plurality of bird detection results corresponding to the bird image waiting to be analyzed , each bird detection result includes at least one bird region position, and for each bird image to be analyzed, according to the at least one bird region position of the bird detection result corresponding to the bird image to be analyzed, and a position of at least one bird region of a previous bird detection result corresponding to a bird image to be analyzed before the previous shooting time, to calculate each bird located in the bird image to be analyzed The location of the area and its corresponding the overlap ratio of the position of the bird region in the previous bird image to be analyzed, and then the overlap ratio corresponding to the bird image to be analyzed, the bird detection results and the bird image to be analyzed, The dwell time of the bird waiting to analyze the bird image is calculated. 如請求項8所述的禽隻圖像辨識停留時間分析系統,其中,對於每一待分析禽隻圖像所對應的每一重疊率,該分析伺服器判定該重疊率是否大於一門檻值,當判定出該重疊率不大於該門檻值時,該分析伺服器產生一包括一停留開始時間、該至少一禽隻區域位置中該重疊率對應的禽隻區域位置,及一累計時間的禽隻停留事件資料,該停留開始時間為該待分析禽隻圖像的拍攝時間;當判定出該重疊率大於該門檻值時,該分析伺服器獲得包括該至少一禽隻區域位置中該重疊率對應的禽隻區域位置的禽隻停留事件資料,並根據該禽隻停留事件資料之停留開始時間及該待分析禽隻圖像的拍攝時間,更新該禽隻停留事件資料之累計時間,且將該至少一禽隻區域位置中該重疊率對應的禽隻區域位置儲存至該禽隻停留事件資料。 The poultry image recognition residence time analysis system according to claim 8, wherein, for each overlap ratio corresponding to each bird image to be analyzed, the analysis server determines whether the overlap ratio is greater than a threshold value, When it is determined that the overlap rate is not greater than the threshold value, the analysis server generates a bird area including a stop start time, a bird area position corresponding to the overlap rate in the at least one bird area position, and an accumulated time. stay event data, the stay start time is the shooting time of the image of the bird to be analyzed; when it is determined that the overlap rate is greater than the threshold value, the analysis server obtains the location of the at least one bird area corresponding to the overlap rate The bird stop event data at the location of the bird area, and according to the stop start time of the bird stop event data and the shooting time of the image of the bird to be analyzed, update the accumulated time of the bird stop event data, and the The bird area position corresponding to the overlap ratio in at least one bird area position is stored in the bird stop event data. 如請求項9所述的禽隻圖像辨識停留時間分析系統,其中,該門檻值為0.9。 The poultry image recognition residence time analysis system according to claim 9, wherein the threshold value is 0.9. 如請求項8所述的禽隻圖像辨識停留時間分析系統,其中,每一重疊率為禽隻區域位置與其所對應的禽隻區域位置的交集面積除以禽隻區域位置與其所對應的禽隻區域位置的聯集面積。 The bird image recognition residence time analysis system according to claim 8, wherein each overlap ratio is the intersection area of the bird area position and its corresponding bird area position divided by the bird area position and its corresponding bird area Only the union area of the region location. 如請求項8所述的禽隻圖像辨識停留時間分析系統,還 包含:一訓練伺服器,經由該通訊網路連接該儲存裝置及該分析伺服器,儲存有多張訓練禽隻圖像,每一訓練禽隻圖像標註有至少一禽隻區域,並根據該等訓練禽隻圖像,利用一機器學習演算法,建立該禽隻偵測模型,並經由該通訊網路將該禽隻偵測模型傳送至該分析伺服器。 The poultry image recognition residence time analysis system according to claim 8, further Including: a training server, connected to the storage device and the analysis server through the communication network, storing a plurality of training bird images, each training bird image is marked with at least one bird area, and according to the training bird images, using a machine learning algorithm to build the bird detection model, and sending the bird detection model to the analysis server via the communication network. 如請求項12所述的禽隻圖像辨識停留時間分析系統,其中,該訓練伺服器將該等訓練禽隻圖像分群成一訓練集及一驗證集,並根據該訓練集中的所有訓練禽隻圖像,利用該機器學習演算法,建立一訓練模型,再根據該驗證集中的所有訓練禽隻圖像調整該訓練模型,以獲得該禽隻偵測模型。 The bird image recognition dwell time analysis system of claim 12, wherein the training server groups the training bird images into a training set and a validation set, and analyzes all training birds according to the training set. image, use the machine learning algorithm to establish a training model, and then adjust the training model according to all training bird images in the validation set to obtain the bird detection model. 如請求項12所述的禽隻圖像辨識停留時間分析系統,其中,該機器學習演算法為一卷積神經網路演算法。 The system for analyzing residence time of poultry image recognition according to claim 12, wherein the machine learning algorithm is a convolutional neural network road algorithm.
TW109115897A 2020-05-13 2020-05-13 Poultry image recognition dwell time analysis system and method TWI752493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109115897A TWI752493B (en) 2020-05-13 2020-05-13 Poultry image recognition dwell time analysis system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109115897A TWI752493B (en) 2020-05-13 2020-05-13 Poultry image recognition dwell time analysis system and method

Publications (2)

Publication Number Publication Date
TW202143171A TW202143171A (en) 2021-11-16
TWI752493B true TWI752493B (en) 2022-01-11

Family

ID=80783347

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109115897A TWI752493B (en) 2020-05-13 2020-05-13 Poultry image recognition dwell time analysis system and method

Country Status (1)

Country Link
TW (1) TWI752493B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180108044A1 (en) * 2016-10-05 2018-04-19 Shelfbucks, Inc. Assessing state information for retail displays
WO2018131485A1 (en) * 2017-01-13 2018-07-19 キヤノン株式会社 People flow analysis device and method thereof
US20190139258A1 (en) * 2017-11-08 2019-05-09 Worldcam Llc Determining vehicle dwell time within predetermined zones
TW201928787A (en) * 2017-12-27 2019-07-16 中華電信股份有限公司 System and method for image-based people counting by excluding specific people
WO2019207853A1 (en) * 2018-04-27 2019-10-31 富士通株式会社 Display control program, display control device, and display control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180108044A1 (en) * 2016-10-05 2018-04-19 Shelfbucks, Inc. Assessing state information for retail displays
WO2018131485A1 (en) * 2017-01-13 2018-07-19 キヤノン株式会社 People flow analysis device and method thereof
US20190139258A1 (en) * 2017-11-08 2019-05-09 Worldcam Llc Determining vehicle dwell time within predetermined zones
US10628962B2 (en) * 2017-11-08 2020-04-21 Worldcam Llc Determining vehicle dwell time within predetermined zones
TW201928787A (en) * 2017-12-27 2019-07-16 中華電信股份有限公司 System and method for image-based people counting by excluding specific people
WO2019207853A1 (en) * 2018-04-27 2019-10-31 富士通株式会社 Display control program, display control device, and display control method

Also Published As

Publication number Publication date
TW202143171A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
Jun et al. Estimating pig weights from images without constraint on posture and illumination
KR101607934B1 (en) The method for monitoring communicable disease and system using the method, recording medium for performing the method
JP2020504360A5 (en)
KR101271074B1 (en) Monitering method for greenhouse crops and monitoring system for greenhouse crops by photographing
DE102018214339A1 (en) INSPECTION DEVICE AND INSPECTION SYSTEM
DE102017115997A1 (en) Profound machine learning to predict and prevent unfavorable conditions in structures
WO2021073120A1 (en) Method and device for marking lung area shadows in medical image, server, and storage medium
CN110298265A (en) Specific objective detection method in a kind of elevator based on YOLO neural network
CN108182423A (en) A kind of poultry Activity recognition method based on depth convolutional neural networks
LU500649B1 (en) METHOD AND SYSTEM FOR DETECTING FISHNET DAMAGE BY UNDERWATER IMAGING BASED ON DEPTH LEARNING
CN110414400A (en) A kind of construction site safety cap wearing automatic testing method and system
CN111986234A (en) Self-adaptive resolution ratio livestock video information processing method based on artificial intelligence
CN110826371A (en) Animal identification method, device, medium and electronic equipment
CN111767794A (en) Cage-rearing poultry abnormal behavior detection method and detection system based on machine vision
CN113095441A (en) Pig herd bundling detection method, device, equipment and readable storage medium
CN108460370B (en) Fixed poultry life information alarm device
CN114049550A (en) Cage-rearing dead broiler automatic identification method based on deep learning
CN106570440A (en) People counting method and people counting device based on image analysis
CN113421192A (en) Training method of object statistical model, and statistical method and device of target object
CN110634557B (en) Medical care resource auxiliary allocation method and system based on deep neural network
TWI752493B (en) Poultry image recognition dwell time analysis system and method
CN108664886A (en) A kind of fast face recognition method adapting to substation's disengaging monitoring demand
EP4226319A1 (en) Generating three-dimensional skeleton representations of aquatic animals using machine learning
CN111223125A (en) Python environment-based target motion video tracking method
CN116704401A (en) Grading verification method and device for operation type examination, electronic equipment and storage medium