TWI780382B - Microcontroller updating system and method - Google Patents

Microcontroller updating system and method Download PDF

Info

Publication number
TWI780382B
TWI780382B TW108144449A TW108144449A TWI780382B TW I780382 B TWI780382 B TW I780382B TW 108144449 A TW108144449 A TW 108144449A TW 108144449 A TW108144449 A TW 108144449A TW I780382 B TWI780382 B TW I780382B
Authority
TW
Taiwan
Prior art keywords
mentioned
microcontroller
file
burning
burning file
Prior art date
Application number
TW108144449A
Other languages
Chinese (zh)
Other versions
TW202123091A (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 TW108144449A priority Critical patent/TWI780382B/en
Priority to CN201911362914.1A priority patent/CN112925533A/en
Publication of TW202123091A publication Critical patent/TW202123091A/en
Application granted granted Critical
Publication of TWI780382B publication Critical patent/TWI780382B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Abstract

A microcontroller updating system is provided in the invention. The microcontroller updating system may comprise a network platform, a first electronic device and a microcontroller. The first electronic device receives a training audio data or a training image data, uses a neural network algorithm to generate a recognition model according to the training audio data or training image data, and generates a header file according to the parameters of the recognition model, and converts the header file into a bin file and transmits the bin file to the network platform. The microcontroller obtains the bin file and updates the parameters corresponding to the recognition model according to the bin file.

Description

微控制器更新系統和方法Microcontroller update system and method

本發明之實施例主要係有關於一微控制器更新技術,特別係有關於藉由一燒錄檔更新微控制器中的辨識模型之參數之微控制器更新技術。 The embodiments of the present invention are mainly related to a micro-controller update technology, especially related to the micro-controller update technology of updating the parameters of the identification model in the micro-controller through a programming file.

在目前基於機器學習(machine learning)技術的辨識模型,不論是智慧影像辨識模型或是語音關鍵字識別模型,都需要先將資料透過遠端主機進行訓練,以得到訓練參數(例如:權重(weight)和偏權值(bias))。權重和偏權值在神經網路系統裡扮演非常重要的角色。 In the current recognition model based on machine learning technology, whether it is a smart image recognition model or a voice keyword recognition model, it is necessary to first train the data through a remote host to obtain training parameters (for example: weight ) and partial weight (bias)). Weights and biases play a very important role in neural network systems.

然而,當在客戶端之開發者需要更新辨識模型之參數時,若在客戶端之開發者不具有足夠的機器學習知識背景,將無法正確以及有效率地對資料進行編譯,以產生所需之訓練參數。因此,如何提供客戶端之開發者更正確和有效率地更新微控制器中的辨識模型之參數,將是個值得討論之課題。 However, when the developer on the client side needs to update the parameters of the identification model, if the developer on the client side does not have sufficient machine learning knowledge background, he will not be able to compile the data correctly and efficiently to generate the required training parameters. Therefore, how to provide the developer of the client side to update the parameters of the identification model in the microcontroller more correctly and efficiently will be a topic worth discussing.

有鑑於上述先前技術之問題,本發明之實施例提供了一種微控制器更新系統和方法。 In view of the above-mentioned problems in the prior art, embodiments of the present invention provide a system and method for updating a microcontroller.

根據本發明之一實施例提供了一種微控制器更新系統。微控制器更新系統可包括一網路平台、一第一電子裝置以及一微控制器。第一電子裝置可接收一訓練語音資料或一訓練影像資料,藉由一遞歸神經網路演算法,根據上述訓練語音資料,或藉由一卷積神經網路演算法,根據上述訓練影像資料,產生一辨識模型,以及根據上述辨識模型所包含之參數,產生一標頭檔,以及將上述標頭檔轉換成一燒錄檔,並將上述燒錄檔上傳至網路平台。微控制器可取得上述燒錄檔,並根據上述燒錄檔更新對應上述辨識模型之上述參數。 According to an embodiment of the present invention, a microcontroller updating system is provided. The microcontroller update system may include a network platform, a first electronic device and a microcontroller. The first electronic device can receive a training voice data or a training image data, and generate a training voice data based on a recurrent neural network algorithm, or a convolutional neural network algorithm based on the training image data. Identify the model, and generate a header file according to the parameters included in the identification model, convert the header file into a burning file, and upload the burning file to the network platform. The microcontroller can obtain the above-mentioned burning file, and update the above-mentioned parameters corresponding to the above-mentioned identification model according to the above-mentioned burning file.

在一些實施例中,微控制器更新系統更包括一燒錄裝置。燒錄裝置可取得上述燒錄檔,並將上述燒錄檔燒錄在上述微控制器之一快閃記憶體中。 In some embodiments, the microcontroller update system further includes a programming device. The burning device can obtain the above-mentioned burning file, and burn the above-mentioned burning file in one of the flash memory of the above-mentioned microcontroller.

在一些實施例中,微控制器更新系統更包括一安全數位卡。安全數位卡可用以儲存上傳至上述網路平台之上述燒錄檔。上述微控制器經由上述安全數位卡取得上述燒錄檔。 In some embodiments, the microcontroller update system further includes a secure digital card. The secure digital card can be used to store the above-mentioned burning files uploaded to the above-mentioned network platform. The above-mentioned microcontroller obtains the above-mentioned burning file through the above-mentioned secure digital card.

在一些實施例中,上述參數包含上述辨識模型對應之辨識類別數、模型大小、權重值以及偏權值。 In some embodiments, the above-mentioned parameters include the number of recognition categories corresponding to the above-mentioned recognition model, model size, weight value and partial weight value.

根據本發明之一實施例提供了一種微控制器更新方法。上述微控制器更新方法之步驟包括:接收一訓練語音資料或一訓練影像資料;藉由一遞歸神經網路演算法,根據上述訓練語音資料,或藉由一卷積神經網路演算法,根據上述訓練影像資料,產生一辨識模型;根據上述辨識模型所包含之參數,產生一標頭檔; 將上述標頭檔轉換成一燒錄檔;將上述燒錄檔上傳至一網路平台;以及取得上述燒錄檔,並根據上述燒錄檔更新對應上述辨識模型之上述參數。 According to an embodiment of the present invention, a method for updating a microcontroller is provided. The steps of the above microcontroller updating method include: receiving a training voice data or a training image data; using a recursive neural network algorithm, according to the training voice data, or using a convolutional neural network algorithm, according to the training Generate a recognition model from the image data; generate a header file according to the parameters included in the above recognition model; Converting the above-mentioned header file into a burning file; uploading the above-mentioned burning file to a network platform; and obtaining the above-mentioned burning file, and updating the above-mentioned parameters corresponding to the above-mentioned identification model according to the above-mentioned burning file.

於本發明其他附加的特徵與優點,此領域之熟習技術人士,在不脫離本發明之精神和範圍內,當可根據本案實施方法中所揭露之微控制器更新系統和方法,做些許的更動與潤飾而得到。 For other additional features and advantages of the present invention, those skilled in the art can make some changes according to the microcontroller update system and method disclosed in the implementation method of this case without departing from the spirit and scope of the present invention. obtained with retouching.

100:微控制器更新系統 100: Microcontroller update system

110:第一電子裝置 110: The first electronic device

111:收音裝置 111: Radio device

112:影像擷取裝置 112: Image capture device

113:第一處理器 113: The first processor

120:網路平台 120: Internet platform

130:第二電子裝置 130: the second electronic device

140:微控制器 140: microcontroller

141:快閃記憶體 141: Flash memory

142:儲存裝置 142: storage device

143:第二處理器 143: second processor

200:燒錄裝置 200: Burning device

300:安全數位卡 300: Secure Digital Card

S310~S360:步驟 S310~S360: Steps

第1圖係顯示根據本發明之一實施例所述之一微控制器更新系統100之方塊圖。 FIG. 1 is a block diagram of a microcontroller updating system 100 according to an embodiment of the present invention.

第2A圖係顯示根據本發明之一實施例所述之更新微控制器140之方塊圖。 FIG. 2A shows a block diagram of an updated microcontroller 140 according to one embodiment of the present invention.

第2B圖係顯示根據本發明之一實施例所述之更新微控制器140之方塊圖。 FIG. 2B shows a block diagram of an updated microcontroller 140 according to one embodiment of the present invention.

第3圖係根據本發明之一實施例所述之微控制器更新方法之流程圖。 FIG. 3 is a flowchart of a method for updating a microcontroller according to an embodiment of the present invention.

本章節所敘述的是實施本發明之較佳方式,目的在於說明本發明之精神而非用以限定本發明之保護範圍,本發明之保護範圍當視後附之申請專利範圍所界定者為準。 What is described in this chapter is the best way to implement the present invention. The purpose is to illustrate the spirit of the present invention and not to limit the protection scope of the present invention. .

第1圖係顯示根據本發明之一實施例所述之一微控制器更新系統100之方塊圖。如第1圖所示,微控制器更新系統100 包括一第一電子裝置110、一網路平台120、一第二電子裝置130,以及一微控制器140。注意地是,在第1圖中所示之方塊圖,僅係為了方便說明本發明之實施例,但本發明並不以第1圖為限。 FIG. 1 is a block diagram of a microcontroller updating system 100 according to an embodiment of the present invention. As shown in Figure 1, the microcontroller update system 100 It includes a first electronic device 110 , a network platform 120 , a second electronic device 130 , and a microcontroller 140 . It should be noted that the block diagram shown in FIG. 1 is only for the convenience of describing the embodiment of the present invention, but the present invention is not limited to FIG. 1 .

在本發明之一些實施例中,第一電子裝置110可係一桌上型電腦、一筆記型電腦或其他具有運算和資料處理功能之電子裝置。在本發明之一些實施例中,第一電子裝置110可係位於雲端系統之一伺服器或一遠端伺服器。 In some embodiments of the present invention, the first electronic device 110 may be a desktop computer, a notebook computer or other electronic devices with computing and data processing functions. In some embodiments of the present invention, the first electronic device 110 may be located in a server of the cloud system or a remote server.

在本發明之一些實施例中,第二電子裝置130可係一桌上型電腦、一筆記型電腦或其他具有運算和資料處理功能之電子裝置。在本發明之一些實施例中,第二電子裝置130可係一具有燒錄功能之電子裝置。 In some embodiments of the present invention, the second electronic device 130 may be a desktop computer, a notebook computer or other electronic devices with computing and data processing functions. In some embodiments of the present invention, the second electronic device 130 may be an electronic device with a programming function.

在本發明之實施例中,第一電子裝置110可包括一收音裝置111、影像擷取裝置112以及一第一處理器113,但本發明並不以此為限。收音裝置111可係一麥克風,但本發明不以此為限。收音裝置可用以接收至少一訓練語音資料,並將資料傳送給第一處理器113。此外,在本發明之實施例中,影像擷取裝置112可係由一電荷耦合元件(Charge Coupled Device;CCD)或一互補式金氧半導體(Complementary Metal-Oxide Semiconductor;CMOS)感測器所組成。影像擷取裝置112可用以接收至少一訓練影像資料,並將資料傳送給第一處理器113。根據本發明一實施例,第一電子裝置110可同時或是先後接收一或多個訓練影像資料(例如:依序輸入一組具有“0”到“9”圖樣的訓練影像資料,但本發明不以此為限)及/或一或多個訓練語音資料(例如:依序輸入一組具有「零」到「九」發音的訓練語音資料,但本發明不以此為限)。 In the embodiment of the present invention, the first electronic device 110 may include a sound receiving device 111 , an image capturing device 112 and a first processor 113 , but the present invention is not limited thereto. The sound collecting device 111 can be a microphone, but the present invention is not limited thereto. The sound receiving device can be used to receive at least one training voice data, and transmit the data to the first processor 113 . In addition, in the embodiment of the present invention, the image capture device 112 may be composed of a charge coupled device (Charge Coupled Device; CCD) or a complementary metal-oxide semiconductor (Complementary Metal-Oxide Semiconductor; CMOS) sensor . The image capture device 112 can be used to receive at least one training image data, and send the data to the first processor 113 . According to an embodiment of the present invention, the first electronic device 110 may simultaneously or sequentially receive one or more training image data (for example: sequentially input a set of training image data with "0" to "9" patterns, but the present invention not limited thereto) and/or one or more training speech data (for example: input a set of training speech data having pronunciations from "zero" to "nine" sequentially, but the present invention is not limited thereto).

在本發明之實施例中,微控制器140可包括一快閃記憶體141、一儲存裝置142,以及一第二處理器143,但本發明並不以此為限。 In an embodiment of the present invention, the microcontroller 140 may include a flash memory 141, a storage device 142, and a second processor 143, but the present invention is not limited thereto.

在本發明之實施例中,當第一處理器113接收到訓練語音資料或訓練影像資料時,第一處理器113會擷取訓練語音資料中的複數個語音特徵,或擷取訓練影像資料中的複數個影像特徵。當第一處理器113接收到訓練語音資料時,第一處理器113會擷取訓練語音資料中的複數個語音特徵,當第一處理器113接收到訓練影像資料時,第一處理器113會擷取訓練影像資料中的複數個影像特徵,以及當第一處理器113接收到訓練語音資料及訓練影像資料時,第一處理器113會依據接收到的順序,依序擷取出語音特徵和影像特徵。 In an embodiment of the present invention, when the first processor 113 receives training voice data or training image data, the first processor 113 will extract a plurality of voice features in the training voice data, or extract a plurality of voice features in the training image data. The complex image features of . When the first processor 113 receives the training voice data, the first processor 113 will extract a plurality of voice features in the training voice data; when the first processor 113 receives the training image data, the first processor 113 will Extract a plurality of image features in the training image data, and when the first processor 113 receives the training voice data and the training image data, the first processor 113 will sequentially extract the voice features and images according to the order received feature.

根據本發明一實施例,第一處理器113係藉由梅爾倒頻譜係數(Mel-scale Frequency Cepstral Coefficients,MFCC)演算法來擷取訓練語音資料中所包含的語音特徵,但本發明並不以此為限。在一些實施例中,可依系統實際實作方式採用其他擷取語音特徵的演算法。 According to an embodiment of the present invention, the first processor 113 uses the Mel-scale Frequency Cepstral Coefficients (MFCC) algorithm to extract the speech features contained in the training speech data, but the present invention does not This is the limit. In some embodiments, other algorithms for extracting speech features can be used according to the actual implementation of the system.

根據本發明一實施例,第一處理器113會分析訓練影像資料中的每個像素,以取得訓練影像資料所包含的影像特徵。舉例來說,第一處理器113可藉由獲取訓練影像資料中每個點的像素值,並將每個像素值都視為影像特徵,但本發明並不以此為限。在一些實施例中,可依系統實際實作方式採用其他擷取影像特徵的演算法。 According to an embodiment of the present invention, the first processor 113 analyzes each pixel in the training image data to obtain image features included in the training image data. For example, the first processor 113 may obtain the pixel value of each point in the training image data, and regard each pixel value as an image feature, but the invention is not limited thereto. In some embodiments, other algorithms for extracting image features may be used according to the actual implementation of the system.

根據本發明一實施例,當第一處理器113擷取出語 音特徵後,第一處理器113可依據擷取出之語音特徵,產生一特定數量的複數語音參數。接著,第一處理器113會進行一神經網路(neural network)演算法的程序。第一處理器113會將產生之語音參數輸入遞歸神經網路(Recurrent neural network,RNN)演算法中,並執行遞歸神經網路演算法的程序,以產生一辨識模型。根據本發明一實施例,當第一處理器113擷取出語音特徵後,第一處理器113會依據擷取出之語音特徵,產生特定數量的語音參數(例如:250個,但本發明不以此為限),並將語音參數以一維特徵集的方式呈現之。根據本發明一實施例,第一處理器113會將語音參數及一訓練答案(例如:答案為「零」的發音,但本發明不以此為限)輸入遞歸神經網路演算法中,並執行遞歸神經網路演算法的程序,以產生辨識模型。 According to an embodiment of the present invention, when the first processor 113 retrieves the word After the voice features are extracted, the first processor 113 can generate a specific number of complex voice parameters according to the extracted voice features. Next, the first processor 113 executes a procedure of a neural network algorithm. The first processor 113 inputs the generated speech parameters into a recurrent neural network (RNN) algorithm, and executes the program of the recurrent neural network algorithm to generate a recognition model. According to an embodiment of the present invention, after the first processor 113 extracts the speech features, the first processor 113 will generate a specific number of speech parameters (for example: 250, but the present invention does not limited), and present the speech parameters in the form of a one-dimensional feature set. According to an embodiment of the present invention, the first processor 113 will input speech parameters and a training answer (for example: the pronunciation of the answer "zero", but the present invention is not limited thereto) into the recurrent neural network algorithm, and execute Program of the recurrent neural network algorithm to generate the identification model.

根據本發明一實施例,當第一處理器113擷取出影像特徵後,第一處理器113可依據擷取出之影像特徵,產生一特定數量的複數影像參數。接著,第一處理器113會進行一卷積神經網路(Convolutional neural network,CNN)演算法的程序。第一處理器113會將產生之影像參數輸入一卷積神經網路演算法中,並執行卷積神經網路演算法的程序,以產生一辨識模型。根據本發明一實施例,當第一處理器113擷取出影像特徵後,第一處理器113會依據擷取出之影像特徵,產生特定數量的影像參數(例如:250個,但本發明不以此為限),並將影像參數以一維特徵集的方式呈現之。根據本發明一實施例,第一處理器113會將影像參數及訓練答案(例如:答案為“0”的影像,但本發明不以此為限)輸入深度神經網絡中,以產生辨識模型。 According to an embodiment of the present invention, after the first processor 113 extracts the image features, the first processor 113 can generate a specific number of complex image parameters according to the extracted image features. Next, the first processor 113 executes a program of a convolutional neural network (CNN) algorithm. The first processor 113 will input the generated image parameters into a convolutional neural network algorithm, and execute the program of the convolutional neural network algorithm to generate a recognition model. According to an embodiment of the present invention, after the first processor 113 extracts the image features, the first processor 113 will generate a specific number of image parameters (for example: 250, but the present invention does not limited), and present the image parameters as a one-dimensional feature set. According to an embodiment of the present invention, the first processor 113 inputs image parameters and training answers (for example, images whose answer is "0", but the present invention is not limited thereto) into the deep neural network to generate a recognition model.

本發明之實施例所述之神經網路演算法(例如:遞歸神經網路演算法和卷積神經網路演算法)亦可係其他適合之深度學習(deep learning)或機器學習(machine learning)之方法。由於神經網路演算法為已知技術,故此處不贅述之。 The neural network algorithm (for example: recurrent neural network algorithm and convolutional neural network algorithm) described in the embodiments of the present invention may also be other suitable deep learning or machine learning methods. Since the neural network algorithm is a known technology, it will not be repeated here.

根據本發明一實施例,當第一處理器113產生辨識模型後,第一處理器113會根據辨識模型所包含之參數,產生一標頭檔(header file)。根據本發明一實施例,辨識模型所包含之參數可包括辨識模型對應之辨識類別數、模型大小、權重值以及偏權值,但本發明並不以此為限。 According to an embodiment of the present invention, after the first processor 113 generates the identification model, the first processor 113 generates a header file according to the parameters included in the identification model. According to an embodiment of the present invention, the parameters included in the recognition model may include the number of recognition categories corresponding to the recognition model, model size, weight value and partial weight value, but the present invention is not limited thereto.

產生標頭檔後,第一處理器113會將標頭檔轉換成一燒錄檔(例如:bin檔),並將燒錄檔上傳至網路平台120。當在客戶端要更新微控制器140時,客戶端可藉由第二電子裝置130從網路平台120取得燒錄檔,並使用燒錄檔來更新微控制器140。底下將以第2A-2B圖來做說明。 After generating the header file, the first processor 113 converts the header file into a burning file (for example: bin file), and uploads the burning file to the network platform 120 . When the client needs to update the microcontroller 140 , the client can obtain the burning file from the network platform 120 through the second electronic device 130 and use the burning file to update the microcontroller 140 . The following will be illustrated with Figures 2A-2B.

第2A圖係顯示根據本發明之一實施例所述之更新微控制器140之方塊圖。如第2A圖所示,第二電子裝置130可係一燒錄裝置200。根據本發明一實施例,當在客戶端要更新微控制器140時,燒錄裝置200會從網路平台120取得燒錄檔,並藉由一線上燒錄的方式,例如:系統內編程(ISP,In System Programming),將燒錄檔燒錄在微控制器140之一快閃記憶體141中,以更新微控制器140。微控制器140之第二處理器143可從快閃記憶體141取得燒錄檔,並根據燒錄檔中包含之資訊,更新儲存在儲存裝置142之辨識模型之參數。 FIG. 2A shows a block diagram of an updated microcontroller 140 according to one embodiment of the present invention. As shown in FIG. 2A , the second electronic device 130 may be a burning device 200 . According to an embodiment of the present invention, when the microcontroller 140 is to be updated on the client side, the programming device 200 will obtain the programming file from the network platform 120, and use an online programming method, for example: in-system programming ( ISP, In System Programming), burn the programming file in one of the flash memory 141 of the microcontroller 140 to update the microcontroller 140. The second processor 143 of the microcontroller 140 can obtain the programming file from the flash memory 141 , and update the parameters of the identification model stored in the storage device 142 according to the information contained in the programming file.

第2B圖係顯示根據本發明之另一實施例所述之更 新微控制器140之方塊圖。如第2B圖所示,根據本發明一實施例,當在客戶端要更新微控制器140時,第二電子裝置130可從網路平台120取得燒錄檔,並將燒錄檔儲存在一安全數位(Secure Digital,SD)卡300中。接者,客戶端之用戶可將SD卡300插入微控制器140之SD卡插槽中,以更新微控制器140。微控制器140之第二處理器143可從SD卡取得燒錄檔,並根據燒錄檔中包含之資訊,更新儲存在儲存裝置142之辨識模型之參數。 Fig. 2B shows the modification according to another embodiment of the present invention. Block diagram of the new microcontroller 140 . As shown in FIG. 2B, according to an embodiment of the present invention, when the microcontroller 140 is to be updated on the client side, the second electronic device 130 can obtain the programming file from the network platform 120 and store the programming file in a Secure Digital (Secure Digital, SD) card 300 . Next, the user of the client can insert the SD card 300 into the SD card slot of the microcontroller 140 to update the microcontroller 140 . The second processor 143 of the microcontroller 140 can obtain the burning file from the SD card, and update the parameters of the identification model stored in the storage device 142 according to the information contained in the burning file.

第3圖係根據本發明之一實施例所述之微控制器更新方法之流程圖。微控制器更新方法可適用微控制器更新系統100。在步驟S310,微控制器更新系統100之第一電子裝置會接收一訓練語音資料或一訓練影像資料。在步驟S320,微控制器更新系統100之第一電子裝置會藉由一遞歸神經網路演算法,根據上述訓練語音資料,或藉由一卷積神經網路演算法,根據上述訓練影像資料,產生一辨識模型。在步驟S330,微控制器更新系統100之第一電子裝置會根據上述辨識模型所包含之參數,產生一標頭檔。在步驟S340,微控制器更新系統100之第一電子裝置會將上述標頭檔轉換成一燒錄檔。在步驟S350,微控制器更新系統100之第一電子裝置會將上述燒錄檔上傳至一網路平台。在步驟S360,微控制器更新系統100之微控制器會取得上述燒錄檔,並根據上述燒錄檔更新對應上述辨識模型之參數。 FIG. 3 is a flowchart of a method for updating a microcontroller according to an embodiment of the present invention. The microcontroller update method is applicable to the microcontroller update system 100 . In step S310, the first electronic device of the microcontroller updating system 100 receives a training voice data or a training video data. In step S320, the first electronic device of the microcontroller updating system 100 generates a training voice data based on a recursive neural network algorithm, or a convolutional neural network algorithm based on the training image data. Identify the model. In step S330, the first electronic device of the microcontroller updating system 100 generates a header file according to the parameters included in the identification model. In step S340, the first electronic device of the microcontroller updating system 100 converts the header file into a burning file. In step S350, the first electronic device of the microcontroller updating system 100 uploads the above-mentioned burning file to a network platform. In step S360, the microcontroller of the microcontroller updating system 100 obtains the above-mentioned burning file, and updates the parameters corresponding to the above-mentioned identification model according to the above-mentioned burning file.

根據本發明一些實施例,微控制器更新方法之步驟S360更包括,藉由一燒錄裝置從網路平台取得燒錄檔,並將燒錄檔燒錄在微控制器之一快閃記憶體中。微控制器即可根據燒錄檔更新對應辨識模型之參數。 According to some embodiments of the present invention, the step S360 of the method for updating the microcontroller further includes, using a burning device to obtain the burning file from the network platform, and burning the burning file in a flash memory of the microcontroller middle. The microcontroller can update the parameters of the corresponding identification model according to the programming file.

根據本發明一些實施例,微控制器更新方法之步驟S360更包括,藉由一安全數位(SD)卡儲存上傳至網路平台之燒錄檔。當微控制器從SD卡取得燒錄檔後,微控制器即可根據燒錄檔更新對應辨識模型之參數。 According to some embodiments of the present invention, the step S360 of the method for updating the microcontroller further includes, using a secure digital (SD) card to store the burning file uploaded to the network platform. After the microcontroller obtains the burning file from the SD card, the microcontroller can update the parameters of the corresponding identification model according to the burning file.

根據本發明一些實施例,辨識模型所包含之參數包含辨識模型對應之辨識類別數、模型大小、權重值,以及偏權值,但本發明不以此為限。 According to some embodiments of the present invention, the parameters included in the recognition model include the number of recognition categories corresponding to the recognition model, model size, weight value, and partial weight value, but the present invention is not limited thereto.

根據本發明之實施例所提出之微控制器更新方法,當在客戶端之開發者需要更新辨識模型之參數時,客戶端之開發者僅需從網路平台取得燒錄檔,即可更新微控制器中的辨識模型之參數。因此,客戶端之開發者將可更正確和有效率地更新微控制器中的辨識模型之參數。 According to the micro-controller update method proposed by the embodiment of the present invention, when the developer of the client needs to update the parameters of the identification model, the developer of the client only needs to obtain the burning file from the network platform to update the micro-controller. Parameters of the identification model in the controller. Therefore, the developer of the client can update the parameters of the identification model in the microcontroller more correctly and efficiently.

在本說明書中以及申請專利範圍中的序號,例如「第一」、「第二」等等,僅係為了方便說明,彼此之間並沒有順序上的先後關係。 The serial numbers in this specification and the claims, such as "first", "second", etc., are only for convenience of description, and there is no sequential relationship between them.

本發明之說明書所揭露之方法和演算法之步驟,可直接透過執行一處理器直接應用在硬體以及軟體模組或兩者之結合上。一軟體模組(包括執行指令和相關數據)和其它數據可儲存在數據記憶體中,像是隨機存取記憶體(RAM)、快閃記憶體(flash memory)、唯讀記憶體(ROM)、可抹除可規化唯讀記憶體(EPROM)、電子可抹除可規劃唯讀記憶體(EEPROM)、暫存器、硬碟、可攜式應碟、光碟唯讀記憶體(CD-ROM)、DVD或在此領域習之技術中任何其它電腦可讀取之儲存媒體格式。一儲存媒體可耦接至一機器裝置,舉例來說,像是電腦/處理器(為了說明之方便,在本說明書 以處理器來表示),上述處理器可透過來讀取資訊(像是程式碼),以及寫入資訊至儲存媒體。一儲存媒體可整合一處理器。一特殊應用積體電路(ASIC)包括處理器和儲存媒體。一用戶設備則包括一特殊應用積體電路。換句話說,處理器和儲存媒體以不直接連接用戶設備的方式,包含於用戶設備中。此外,在一些實施例中,任何適合電腦程序之產品包括可讀取之儲存媒體,其中可讀取之儲存媒體包括和一或多個所揭露實施例相關之程式碼。在一些實施例中,電腦程序之產品可包括封裝材料。 The steps of the methods and algorithms disclosed in the description of the present invention can be directly applied to hardware and software modules or a combination of the two by executing a processor. A software module (including execution instructions and associated data) and other data can be stored in data memory, such as random access memory (RAM), flash memory (flash memory), read only memory (ROM) , Erasable Programmable Read-Only Memory (EPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), Temporary Register, Hard Disk, Portable Application Disk, CD-ROM ROM), DVD, or any other computer-readable storage medium format within the skill of the art. A storage medium can be coupled to a machine device, such as a computer/processor (for the convenience of description, in this specification Represented by a processor), the processor can read information (such as code) and write information to the storage medium. A storage medium can integrate a processor. An application specific integrated circuit (ASIC) includes a processor and storage media. A user equipment includes an ASIC. In other words, the processor and the storage medium are included in the user equipment without being directly connected to the user equipment. Furthermore, in some embodiments, any product suitable for a computer program includes a readable storage medium that includes code associated with one or more disclosed embodiments. In some embodiments, the product of the computer program may include packaging materials.

以上段落使用多種層面描述。顯然的,本文的教示可以多種方式實現,而在範例中揭露之任何特定架構或功能僅為一代表性之狀況。根據本文之教示,任何熟知此技藝之人士應理解在本文揭露之各層面可獨立實作或兩種以上之層面可以合併實作。 The above paragraphs use various levels of description. Obviously, the teachings herein can be implemented in many ways, and any specific structure or function disclosed in the examples is only a representative situation. According to the teaching of this article, any person familiar with the art should understand that each aspect disclosed in this article can be implemented independently or two or more aspects can be implemented in combination.

雖然本揭露已以實施例揭露如上,然其並非用以限定本揭露,任何熟習此技藝者,在不脫離本揭露之精神和範圍內,當可作些許之更動與潤飾,因此發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the disclosure has been disclosed above with the embodiment, it is not intended to limit the disclosure. Anyone who is familiar with this technology can make some changes and modifications without departing from the spirit and scope of the disclosure. Therefore, the protection scope of the invention The ones defined in the scope of the attached patent application shall prevail.

S310~S360:步驟S310~S360: Steps

Claims (8)

一種微控制器更新系統,包括:一網路平台;一第一電子裝置,接收一訓練語音資料或一訓練影像資料,藉由一遞歸神經網路演算法,根據上述訓練語音資料,或藉由一卷積神經網路演算法,根據上述訓練影像資料,產生一辨識模型,以及根據上述辨識模型所包含之參數,產生一標頭檔,以及將上述標頭檔轉換成一燒錄檔,並將上述燒錄檔上傳至上述網路平台;以及一微控制器,取得上述燒錄檔,並根據上述燒錄檔更新對應上述辨識模型之上述參數。 A microcontroller update system, comprising: a network platform; a first electronic device, receiving a training voice data or a training image data, by a recursive neural network algorithm, according to the training voice data, or by a The convolutional neural network algorithm generates a recognition model based on the above-mentioned training image data, and generates a header file according to the parameters contained in the above-mentioned recognition model, and converts the above-mentioned header file into a burning file, and burns the above-mentioned The recording file is uploaded to the above-mentioned network platform; and a microcontroller, which obtains the above-mentioned burning file, and updates the above-mentioned parameters corresponding to the above-mentioned identification model according to the above-mentioned burning file. 如申請專利範圍第1項所述之微控制器更新系統,更包括:一燒錄裝置,取得上述燒錄檔,並將上述燒錄檔燒錄在上述微控制器之一快閃記憶體中。 The microcontroller update system described in item 1 of the scope of the patent application further includes: a burning device, which obtains the above-mentioned burning file, and burns the above-mentioned burning file into a flash memory of the above-mentioned microcontroller . 如申請專利範圍第1項所述之微控制器更新系統,更包括:一安全數位卡,儲存上傳至上述網路平台之上述燒錄檔,其中上述微控制器經由上述安全數位卡取得上述燒錄檔。 The microcontroller update system described in Item 1 of the scope of the patent application further includes: a secure digital card for storing the above-mentioned burning file uploaded to the above-mentioned network platform, wherein the above-mentioned microcontroller obtains the above-mentioned burning file through the above-mentioned secure digital card record. 如申請專利範圍第1項所述之微控制器更新系統,其中上述參數包含上述辨識模型對應之辨識類別數、模型大小、權重值以及偏權值。 The microcontroller updating system described in item 1 of the scope of the patent application, wherein the above-mentioned parameters include the number of recognition categories, model size, weight value and partial weight value corresponding to the above-mentioned recognition model. 一種微控制器更新方法,包括:接收一訓練語音資料或一訓練影像資料; 藉由一遞歸神經網路演算法,根據上述訓練語音資料,或藉由一卷積神經網路演算法,根據上述訓練影像資料,產生一辨識模型;根據上述辨識模型所包含之參數,產生一標頭檔;將上述標頭檔轉換成一燒錄檔;將上述燒錄檔上傳至一網路平台;以及取得上述燒錄檔,並根據上述燒錄檔更新對應上述辨識模型之上述參數。 A microcontroller updating method, comprising: receiving a training voice data or a training image data; A recurrent neural network algorithm is used to generate a recognition model based on the above-mentioned training voice data, or a convolutional neural network algorithm is used to generate a recognition model based on the above-mentioned training image data; a header is generated according to the parameters contained in the above-mentioned recognition model converting the above-mentioned header file into a burning file; uploading the above-mentioned burning file to a network platform; and obtaining the above-mentioned burning file, and updating the above-mentioned parameters corresponding to the above-mentioned identification model according to the above-mentioned burning file. 如申請專利範圍第5項所述之微控制器更新方法,更包括:藉由一燒錄裝置從上述網路平台取得上述燒錄檔;將上述燒錄檔燒錄在一微控制器之一快閃記憶體中;以及根據上述燒錄檔更新上述微控制器。 The microcontroller update method described in item 5 of the scope of the patent application further includes: obtaining the above-mentioned burning file from the above-mentioned network platform by a burning device; burning the above-mentioned burning file in one of the microcontrollers in the flash memory; and update the above-mentioned microcontroller according to the above-mentioned burning file. 如申請專利範圍第5項所述之微控制器更新方法,更包括:藉由一安全數位卡儲存上傳至上述網路平台之上述燒錄檔;根據上述安全數位卡取得之上述燒錄檔更新上述微控制器。 The microcontroller update method described in item 5 of the scope of the patent application further includes: using a secure digital card to store the above-mentioned burning file uploaded to the above-mentioned network platform; updating the above-mentioned burning file obtained according to the above-mentioned secure digital card the aforementioned microcontroller. 如申請專利範圍第5項所述之微控制器更新方法,其中上述參數包含上述辨識模型對應之辨識類別數、模型大小、權重值以及偏權值。 The microcontroller update method described in item 5 of the patent application, wherein the above-mentioned parameters include the number of recognition categories corresponding to the above-mentioned recognition model, model size, weight value and partial weight value.
TW108144449A 2019-12-05 2019-12-05 Microcontroller updating system and method TWI780382B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW108144449A TWI780382B (en) 2019-12-05 2019-12-05 Microcontroller updating system and method
CN201911362914.1A CN112925533A (en) 2019-12-05 2019-12-26 Microcontroller update system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108144449A TWI780382B (en) 2019-12-05 2019-12-05 Microcontroller updating system and method

Publications (2)

Publication Number Publication Date
TW202123091A TW202123091A (en) 2021-06-16
TWI780382B true TWI780382B (en) 2022-10-11

Family

ID=76162121

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108144449A TWI780382B (en) 2019-12-05 2019-12-05 Microcontroller updating system and method

Country Status (2)

Country Link
CN (1) CN112925533A (en)
TW (1) TWI780382B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714852A (en) * 2015-03-17 2015-06-17 华中科技大学 Parameter synchronization optimization method and system suitable for distributed machine learning
CN105550746A (en) * 2015-12-08 2016-05-04 北京旷视科技有限公司 Training method and training device of machine learning model
CN105956021A (en) * 2016-04-22 2016-09-21 华中科技大学 Automated task parallel method suitable for distributed machine learning and system thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW374883B (en) * 1998-10-06 1999-11-21 Winbond Electronics Corp Microcontroller featuring engraving functions on chips
CN103593730B (en) * 2013-10-30 2016-08-17 中国运载火箭技术研究院 A kind of design parameter management system recalled
US20180144244A1 (en) * 2016-11-23 2018-05-24 Vital Images, Inc. Distributed clinical workflow training of deep learning neural networks
CN106951926B (en) * 2017-03-29 2020-11-24 山东英特力数据技术有限公司 Deep learning method and device of hybrid architecture

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714852A (en) * 2015-03-17 2015-06-17 华中科技大学 Parameter synchronization optimization method and system suitable for distributed machine learning
CN105550746A (en) * 2015-12-08 2016-05-04 北京旷视科技有限公司 Training method and training device of machine learning model
CN105956021A (en) * 2016-04-22 2016-09-21 华中科技大学 Automated task parallel method suitable for distributed machine learning and system thereof

Also Published As

Publication number Publication date
CN112925533A (en) 2021-06-08
TW202123091A (en) 2021-06-16

Similar Documents

Publication Publication Date Title
TWI682325B (en) Recognition system and recognition method
KR102494139B1 (en) Apparatus and method for training neural network, apparatus and method for speech recognition
US11836593B1 (en) Devices, systems, and methods for learning and using artificially intelligent interactive memories
US11776530B2 (en) Speech model personalization via ambient context harvesting
RU2666631C2 (en) Training of dnn-student by means of output distribution
KR102209689B1 (en) Apparatus and method for generating an acoustic model, Apparatus and method for speech recognition
US10839238B2 (en) Remote user identity validation with threshold-based matching
WO2020015153A1 (en) Method and device for generating music for lyrics text, and computer-readable storage medium
US20170053211A1 (en) Method of training classifier and detecting object
CN109461437B (en) Verification content generation method and related device for lip language identification
CN112016553B (en) Optical Character Recognition (OCR) system, automatic OCR correction system, method
WO2019200702A1 (en) Descreening system training method and apparatus, descreening method and apparatus, device, and medium
JP2019508803A (en) Method, apparatus and electronic device for training neural network model
CN107229691B (en) Method and equipment for providing social contact object
TWI690862B (en) Local learning system in artificial intelligence device
CN108509961A (en) Image processing method and device
JP6989450B2 (en) Image analysis device, image analysis method and program
WO2017201907A1 (en) Search term classification method and device
TWI780382B (en) Microcontroller updating system and method
CN108875506B (en) Face shape point tracking method, device and system and storage medium
JP2023535047A (en) METHOD, APPARATUS AND COMPUTER-READABLE STORAGE MEDIA FOR MULTIMEDIA WORKS
CN111507218A (en) Matching method and device of voice and face image, storage medium and electronic equipment
CN111104964A (en) Music and action matching method, equipment and computer storage medium
TW202338730A (en) Method for expanding images, computer device and storage medium
JP7265837B2 (en) Learning device and learning method

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent