JP7825006B2 - system - Google Patents
systemInfo
- Publication number
- JP7825006B2 JP7825006B2 JP2024161782A JP2024161782A JP7825006B2 JP 7825006 B2 JP7825006 B2 JP 7825006B2 JP 2024161782 A JP2024161782 A JP 2024161782A JP 2024161782 A JP2024161782 A JP 2024161782A JP 7825006 B2 JP7825006 B2 JP 7825006B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- user
- server
- weight
- customer
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Landscapes
- Medical Treatment And Welfare Office Work (AREA)
Description
本開示の技術は、システムに関する。 The technology disclosed herein relates to a system.
特許文献1には、少なくとも一つのプロセッサにより遂行される、ペルソナチャットボット制御方法であって、ユーザ発話を受信するステップと、前記ユーザ発話を、チャットボットのキャラクターに関する説明と関連した指示文を含むプロンプトに追加するステップと前記プロンプトをエンコードするステップと、前記エンコードしたプロンプトを言語モデルに入力して、前記ユーザ発話に応答するチャットボット発話を生成するステップ、を含む、方法が開示されている。 Patent document 1 discloses a persona chatbot control method executed by at least one processor, the method including the steps of receiving a user utterance, adding the user utterance to a prompt including an instruction sentence related to a description of the chatbot's character, encoding the prompt, and inputting the encoded prompt into a language model to generate a chatbot utterance in response to the user utterance.
現在、消費者は自身の健康状態やダイエット目標に合わせて、必要な食品の選択や購入を行う必要がある。しかし、その選択は個々の知識や経験に依存し、適切な選択が困難である場合が多い。また、不必要な商品を購入することで無駄な出費が生じ、経済的な負担を感じる消費者も少なくない。 Today, consumers need to select and purchase the foods they need based on their health condition and diet goals. However, these choices depend on individual knowledge and experience, making the right choice can often be difficult. Furthermore, purchasing unnecessary products results in unnecessary expenses, and many consumers feel a financial burden.
本発明は、消費者が自身の身長体重と目標を記入し、買い物後に購入レシートを提出する。そして、システムが今回の買い物で不要だと判断できる商品を添削し、不要商品を買わなかった場合の節約できるお金と減る体重を可視化する。これにより、消費者は自身の健康状態やダイエット目標に合わせた適切な商品選択と購入を行うことができ、無駄な出費を抑制することが可能となる。 With this system, consumers enter their height, weight, and goals, and then submit their purchase receipt after shopping. The system then identifies items that it determines are unnecessary for that purchase, and visualizes the money saved and weight loss that would result if the unnecessary items were not purchased. This allows consumers to select and purchase products that are appropriate for their health condition and diet goals, thereby reducing unnecessary spending.
以下、添付図面に従って本開示の技術に係るシステムの実施形態の一例について説明する。 Below, an example of an embodiment of a system relating to the technology disclosed herein will be described with reference to the accompanying drawings.
先ず、以下の説明で使用される文言について説明する。 First, let me explain the terminology used in the following explanation.
以下の実施形態において、符号付きのプロセッサ(以下、単に「プロセッサ」と称する)は、1つの演算装置であってもよいし、複数の演算装置の組み合わせであってもよい。また、プロセッサは、1種類の演算装置であってもよいし、複数種類の演算装置の組み合わせであってもよい。演算装置の一例としては、CPU(Central Processing Unit)、GPU(Graphics Processing Unit)、GPGPU(General-Purpose computing on Graphics Processing Units)、APU(Accelerated Processing Unit)、又はTPU(TENSOR PROCESSING UNIT(登録商標))等が挙げられる。 In the following embodiments, a coded processor (hereinafter simply referred to as a "processor") may be a single arithmetic unit or a combination of multiple arithmetic units. Furthermore, a processor may be a single type of arithmetic unit or a combination of multiple types of arithmetic units. Examples of arithmetic units include a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a GPGPU (General-Purpose Computing on Graphics Processing Units), an APU (Accelerated Processing Unit), or a TPU (TENSOR PROCESSING UNIT (registered trademark)).
以下の実施形態において、符号付きのRAM(Random Access Memory)は、一時的に情報が格納されるメモリであり、プロセッサによってワークメモリとして用いられる。 In the following embodiments, coded random access memory (RAM) is memory in which information is temporarily stored and is used by the processor as work memory.
以下の実施形態において、符号付きのストレージは、各種プログラム及び各種パラメータ等を記憶する1つ又は複数の不揮発性の記憶装置である。不揮発性の記憶装置の一例としては、フラッシュメモリ(SSD(Solid State Drive))、磁気ディスク(例えば、ハードディスク)、又は磁気テープ等が挙げられる。 In the following embodiments, the coded storage refers to one or more non-volatile storage devices that store various programs, parameters, etc. Examples of non-volatile storage devices include flash memory (SSD (Solid State Drive)), magnetic disks (e.g., hard disks), and magnetic tapes.
以下の実施形態において、符号付きの通信I/F(Interface)は、通信プロセッサ及びアンテナ等を含むインタフェースである。通信I/Fは、複数のコンピュータ間での通信を司る。通信I/Fに対して適用される通信規格の一例としては、5G(5th Generation Mobile Communication System)、Wi-Fi(登録商標)、又はBluetooth(登録商標)等を含む無線通信規格が挙げられる。 In the following embodiments, a communication I/F (Interface) with a symbol is an interface that includes a communication processor, an antenna, etc. The communication I/F controls communication between multiple computers. Examples of communication standards that can be applied to the communication I/F include wireless communication standards such as 5G (5th Generation Mobile Communication System), Wi-Fi (registered trademark), or Bluetooth (registered trademark).
以下の実施形態において、「A及び/又はB」は、「A及びBのうちの少なくとも1つ」と同義である。つまり、「A及び/又はB」は、Aだけであってもよいし、Bだけであってもよいし、A及びBの組み合わせであってもよい、という意味である。また、本明細書において、3つ以上の事柄を「及び/又は」で結び付けて表現する場合も、「A及び/又はB」と同様の考え方が適用される。 In the following embodiments, "A and/or B" is synonymous with "at least one of A and B." In other words, "A and/or B" means that it may be just A, just B, or a combination of A and B. Furthermore, in this specification, the same concept as "A and/or B" also applies when three or more things are expressed connected by "and/or."
[第1実施形態] [First embodiment]
図1には、第1実施形態に係るデータ処理システム10の構成の一例が示されている。 Figure 1 shows an example of the configuration of a data processing system 10 according to the first embodiment.
図1に示すように、データ処理システム10は、データ処理装置12及びスマートデバイス14を備えている。データ処理装置12の一例としては、サーバが挙げられる。 As shown in FIG. 1, the data processing system 10 includes a data processing device 12 and a smart device 14. An example of the data processing device 12 is a server.
データ処理装置12は、コンピュータ22、データベース24、及び通信I/F26を備えている。コンピュータ22は、本開示の技術に係る「コンピュータ」の一例である。コンピュータ22は、プロセッサ28、RAM30、及びストレージ32を備えている。プロセッサ28、RAM30、及びストレージ32は、バス34に接続されている。また、データベース24及び通信I/F26も、バス34に接続されている。通信I/F26は、ネットワーク54に接続されている。ネットワーク54の一例としては、WAN(Wide Area Network)及び/又はLAN(Local Area Network)等が挙げられる。 The data processing device 12 includes a computer 22, a database 24, and a communication I/F 26. The computer 22 is an example of a "computer" according to the technology of the present disclosure. The computer 22 includes a processor 28, RAM 30, and storage 32. The processor 28, RAM 30, and storage 32 are connected to a bus 34. The database 24 and communication I/F 26 are also connected to the bus 34. The communication I/F 26 is connected to a network 54. Examples of the network 54 include a WAN (Wide Area Network) and/or a LAN (Local Area Network).
スマートデバイス14は、コンピュータ36、受付装置38、出力装置40、カメラ42、及び通信I/F44を備えている。コンピュータ36は、プロセッサ46、RAM48、及びストレージ50を備えている。プロセッサ46、RAM48、及びストレージ50は、バス52に接続されている。また、受付装置38、出力装置40、及びカメラ42も、バス52に接続されている。 The smart device 14 includes a computer 36, a reception device 38, an output device 40, a camera 42, and a communication I/F 44. The computer 36 includes a processor 46, RAM 48, and storage 50. The processor 46, RAM 48, and storage 50 are connected to a bus 52. The reception device 38, output device 40, and camera 42 are also connected to the bus 52.
受付装置38は、タッチパネル38A及びマイクロフォン38B等を備えており、ユーザ入力を受け付ける。タッチパネル38Aは、指示体(例えば、ペン又は指等)の接触を検出することにより、指示体の接触によるユーザ入力を受け付ける。マイクロフォン38Bは、ユーザの音声を検出することにより、音声によるユーザ入力を受け付ける。制御部46Aは、タッチパネル38A及びマイクロフォン38Bによって受け付けたユーザ入力を示すデータをデータ処理装置12に送信する。データ処理装置12では、特定処理部290が、ユーザ入力を示すデータを取得する。 The reception device 38 is equipped with a touch panel 38A, a microphone 38B, etc., and receives user input. The touch panel 38A detects contact with an indicator (e.g., a pen or finger) to receive user input via the indicator. The microphone 38B detects the user's voice to receive user input via voice. The control unit 46A transmits data indicating the user input received by the touch panel 38A and the microphone 38B to the data processing device 12. In the data processing device 12, the specific processing unit 290 acquires the data indicating the user input.
出力装置40は、ディスプレイ40A及びスピーカ40B等を備えており、データをユーザ20が知覚可能な表現形(例えば、音声及び/又はテキスト)で出力することでデータをユーザ20に対して提示する。ディスプレイ40Aは、プロセッサ46からの指示に従ってテキスト及び画像等の可視情報を表示する。スピーカ40Bは、プロセッサ46からの指示に従って音声を出力する。カメラ42は、レンズ、絞り、及びシャッタ等の光学系と、CMOS(Complementary Metal-Oxide-Semiconductor)イメージセンサ又はCCD(Charge Coupled Device)イメージセンサ等の撮像素子とが搭載された小型デジタルカメラである。 The output device 40 is equipped with a display 40A and a speaker 40B, and presents data to the user 20 by outputting the data in a form perceptible by the user 20 (e.g., audio and/or text). The display 40A displays visible information such as text and images in accordance with instructions from the processor 46. The speaker 40B outputs audio in accordance with instructions from the processor 46. The camera 42 is a compact digital camera equipped with an optical system including a lens, aperture, and shutter, and an imaging element such as a CMOS (Complementary Metal-Oxide-Semiconductor) image sensor or a CCD (Charge Coupled Device) image sensor.
通信I/F44は、ネットワーク54に接続されている。通信I/F44及び26は、ネットワーク54を介してプロセッサ46とプロセッサ28との間の各種情報の授受を司る。 The communication I/F 44 is connected to the network 54. The communication I/Fs 44 and 26 are responsible for the exchange of various information between the processor 46 and the processor 28 via the network 54.
図2には、データ処理装置12及びスマートデバイス14の要部機能の一例が示されている。 Figure 2 shows an example of the main functions of the data processing device 12 and smart device 14.
図2に示すように、データ処理装置12では、プロセッサ28によって特定処理が行われる。ストレージ32には、特定処理プログラム56が格納されている。特定処理プログラム56は、本開示の技術に係る「プログラム」の一例である。プロセッサ28は、ストレージ32から特定処理プログラム56を読み出し、読み出した特定処理プログラム56をRAM30上で実行する。特定処理は、プロセッサ28がRAM30上で実行する特定処理プログラム56に従って特定処理部290として動作することによって実現される。 As shown in FIG. 2, in the data processing device 12, specific processing is performed by the processor 28. A specific processing program 56 is stored in the storage 32. The specific processing program 56 is an example of a "program" according to the technology of the present disclosure. The processor 28 reads the specific processing program 56 from the storage 32 and executes the read specific processing program 56 on the RAM 30. The specific processing is realized by the processor 28 operating as a specific processing unit 290 in accordance with the specific processing program 56 executed on the RAM 30.
ストレージ32には、データ生成モデル58及び感情特定モデル59が格納されている。データ生成モデル58及び感情特定モデル59は、特定処理部290によって用いられる。 Storage 32 stores a data generation model 58 and an emotion identification model 59. The data generation model 58 and the emotion identification model 59 are used by the identification processing unit 290.
スマートデバイス14では、プロセッサ46によって受付出力処理が行われる。ストレージ50には、受付出力プログラム60が格納されている。受付出力プログラム60は、データ処理システム10によって特定処理プログラム56と併用される。プロセッサ46は、ストレージ50から受付出力プログラム60を読み出し、読み出した受付出力プログラム60をRAM48上で実行する。受付出力処理は、プロセッサ46がRAM48上で実行する受付出力プログラム60に従って、制御部46Aとして動作することによって実現される。 In the smart device 14, the processor 46 performs the reception output processing. The storage 50 stores a reception output program 60. The reception output program 60 is used in conjunction with the specific processing program 56 by the data processing system 10. The processor 46 reads the reception output program 60 from the storage 50 and executes the read reception output program 60 on the RAM 48. The reception output processing is realized by the processor 46 operating as the control unit 46A in accordance with the reception output program 60 executed on the RAM 48.
次に、データ処理装置12の特定処理部290による特定処理について説明する。 Next, we will explain the identification process performed by the identification processing unit 290 of the data processing device 12.
「形態例1」
本発明の形態は、消費者が自身の身長体重と目標を記入する手段として、専用の入力フォームを提供する。この入力フォームは、ウェブサイトやスマートフォンアプリケーション上に設けられ、消費者が自身の身長、体重、ダイエット目標等を直接入力できるようになっている。
"Example 1"
This embodiment of the present invention provides a dedicated input form as a means for consumers to enter their height, weight, and diet goals. This input form is provided on a website or smartphone application, and allows consumers to directly input their height, weight, diet goals, etc.
「形態例2」
次に、消費者が買い物後に購入レシートを提出する手段として、スマートフォンのカメラを用いてレシートの画像を撮影し、アプリケーションにアップロードする機能を提供する。この機能により、消費者は物理的なレシートを直接提出することなく、購入情報をシステムに伝えることができる。
"Example 2"
Next, as a means for consumers to submit their purchase receipts after shopping, the system provides a function for them to take an image of the receipt using their smartphone camera and upload it to the application. This function allows consumers to communicate purchase information to the system without having to submit a physical receipt directly.
「形態例3」
そして、今回の買い物で不要だと判断できる商品を添削する手段として、システムは消費者が入力した身長体重とダイエット目標、及び提出されたレシートの情報を基に、不要な商品を自動的に検出する。例えば、ダイエット目標が「糖質制限」である場合、システムはレシート上の「パン」や「お菓子」等の糖質が多い商品を不要な商品として検出する。
"Example 3"
Then, as a means of correcting items that are deemed unnecessary for this shopping trip, the system automatically detects unnecessary items based on the consumer's height, weight, and diet goal entered by the consumer, as well as the submitted receipt information. For example, if the diet goal is to "limit carbohydrates," the system will detect items on the receipt that are high in carbohydrates, such as "bread" and "sweets," as unnecessary items.
「形態例4」
最後に、不要商品を買わなかった場合の節約できるお金と減る体重を可視化する手段として、システムは検出した不要な商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算し、グラフやチャート等の形で消費者に表示する。これにより、消費者は自身の健康管理と節約の両方を具体的に把握することができる。
"Example 4"
Finally, to visualize the money saved and weight lost by not purchasing unnecessary products, the system calculates the total cost of the detected unnecessary products and the estimated weight loss if those products were not consumed, and displays this information to consumers in the form of graphs, charts, etc. This allows consumers to concretely understand both their health management and savings.
以下に、各形態例の処理の流れについて説明する。 The processing flow for each example form is explained below.
「形態例1」 "Example 1"
ステップ1:消費者は専用の入力フォームに自身の身長、体重、ダイエット目標等を入力する。例えば、身長170cm、体重65kg、ダイエット目標は「糖質制限」等を入力する。 Step 1: Consumers enter their height, weight, diet goals, etc. into a dedicated input form. For example, they might enter a height of 170 cm, a weight of 65 kg, and a diet goal of "restricting carbohydrates."
ステップ2:入力が完了したら、消費者は「送信」ボタンを押して情報をシステムに送信する。 Step 2: Once the information is complete, the consumer presses the "Submit" button to send the information to the system.
「形態例2」 "Example 2"
ステップ1:消費者は買い物を行い、購入した商品のレシートを取得する。 Step 1: The consumer makes a purchase and obtains a receipt for the items purchased.
ステップ2:消費者はスマートフォンのカメラを用いてレシートの画像を撮影する。 Step 2: The consumer takes a picture of the receipt using their smartphone camera.
ステップ3:撮影した画像はアプリケーションにアップロードされ、システムがレシートの情報を読み取る。 Step 3: The captured image is uploaded to the application and the system reads the receipt information.
「形態例3」 "Example 3"
ステップ1:システムは消費者が入力した身長体重と目標、及び提出されたレシートの情報を基に、不要な商品を自動的に検出する。 Step 1: The system automatically detects unwanted items based on the consumer's height, weight, and goals entered, as well as the submitted receipt information.
ステップ2:例えば、ダイエット目標が「糖質制限」である場合、システムはレシート上の「パン」や「お菓子」等の糖質が多い商品を不要な商品として検出する。 Step 2: For example, if the diet goal is to "limit carbohydrates," the system will detect items on the receipt that are high in carbohydrates, such as "bread" and "sweets," as unnecessary items.
「形態例4」 "Example 4"
ステップ1:システムは検出した不要な商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算する。 Step 1: The system calculates the total value of the detected unwanted products and the estimated weight loss that would occur if the product were not consumed.
ステップ2:計算結果はグラフやチャート等の形で消費者に表示される。これにより、消費者は自身の健康管理と節約の両方を具体的に把握することができる。 Step 2: The calculation results are displayed to consumers in the form of graphs, charts, etc. This allows consumers to concretely understand both their health management and savings.
(実施例1) (Example 1)
次に、形態例1の実施例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Example 1 of Form Example 1. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
従来のダイエット支援システムでは、ユーザが自身の身長や体重、ダイエット目標を入力するだけでなく、買い物後に購入レシートを提出し、不要な商品を判断する手段が必要であった。しかし、これらのシステムはユーザにとって手間がかかり、継続的な利用が難しいという課題があった。また、ユーザが入力したデータを基に、個別に適切なダイエットプランを提案する機能が不足していたため、効果的なダイエット支援が行えないという問題もあった Traditional diet support systems required users to input their height, weight, and diet goals, as well as submit purchase receipts after shopping and identify unwanted items. However, these systems were time-consuming for users, making them difficult to use on an ongoing basis. Furthermore, they lacked the ability to individually suggest appropriate diet plans based on the data entered by the user, making them unable to provide effective diet support.
実施例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客が入力したデータを受信し、保存する手段と、保存されたデータを基に生成AIモデルに対するプロンプト文を生成する手段と、生成AIモデルがダイエットプランを提案する手段と、を含む。これにより、ユーザが手間をかけずに継続的に利用でき、個別に適切なダイエットプランを提案することが可能となる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for receiving and saving the data entered by the customer, means for generating prompt sentences for the generative AI model based on the saved data, and means for the generative AI model to suggest a diet plan. This allows users to use the system continuously without any hassle, and makes it possible to suggest appropriate diet plans individually.
「顧客」とは、システムを利用するユーザを指す。 "Customer" refers to the user of the system.
「身長体重」とは、顧客の現在の身長と体重のデータを指す。 "Height and Weight" refers to the customer's current height and weight data.
「目標」とは、顧客が設定するダイエットや健康に関する目標を指す。 "Goals" refers to the diet and health goals set by the customer.
「入力フォーム」とは、顧客が身長、体重、目標などのデータを入力するためのインターフェースを指す。 "Input form" refers to the interface where customers enter data such as height, weight, and goals.
「購入レシート」とは、顧客が買い物後に受け取る購入品の明細書を指す。 "Purchase receipt" refers to the detailed list of purchases that a customer receives after making a purchase.
「添削する手段」とは、顧客の身長体重と目標に基づいて不要な商品を判断し、リストから削除する機能を指す。 "Means for correcting" refers to the function that determines unnecessary products based on the customer's height, weight, and goals, and removes them from the list.
「可視化する手段」とは、不要商品を買わなかった場合に節約できるお金や減る体重を視覚的に表示する機能を指す。 "Visualization means" refers to a function that visually displays the money you can save and the weight you will lose if you don't buy unnecessary products.
「データを受信し、保存する手段」とは、顧客が入力したデータをサーバが受け取り、データベースなどに保存する機能を指す。 "Means for receiving and storing data" refers to the function by which the server receives data entered by the customer and stores it in a database, etc.
「生成AIモデル」とは、入力されたデータを基に適切なダイエットプランを生成する人工知能モデルを指す。 "Generative AI model" refers to an artificial intelligence model that generates an appropriate diet plan based on input data.
「プロンプト文」とは、生成AIモデルに対して入力データを基に生成される指示文を指す。 "Prompt sentence" refers to an instruction sentence generated for a generative AI model based on input data.
「ダイエットプラン」とは、生成AIモデルが提案する、顧客の目標達成のための具体的な行動計画を指す。 "Diet Plan" refers to a specific action plan proposed by the generative AI model to help customers achieve their goals.
この発明は、顧客が自身の身長、体重、ダイエット目標を入力するための専用の入力フォームを提供するシステムである。システムは、ウェブサイトやスマートフォンアプリケーション上に設けられ、顧客が入力したデータを基に生成AIモデルが適切なダイエットプランを提案する。 This invention is a system that provides a dedicated input form for customers to enter their height, weight, and diet goals. The system is installed on a website or smartphone application, and a generative AI model proposes an appropriate diet plan based on the data entered by the customer.
使用するハードウェアおよびソフトウェア Hardware and software used
ハードウェア: サーバ(例: AWS(登録商標) EC2)、ユーザ端末(例: スマートフォン、PC) Hardware: Servers (e.g., AWS (registered trademark) EC2), user devices (e.g., smartphones, PCs)
ソフトウェア: ウェブサーバ(例: Apache(登録商標)、Nginx)、データベース(例: MySQL(登録商標)、PostgreSQL)、スマートフォンアプリケーション(例: iOSアプリ、ANDROID(登録商標)アプリ) Software: Web servers (e.g., Apache (registered trademark), Nginx), databases (e.g., MySQL (registered trademark), PostgreSQL), smartphone applications (e.g., iOS apps, ANDROID (registered trademark) apps)
システムの具体的な動作 Specific system operation
サーバ Server
サーバは、ウェブサイトやスマートフォンアプリケーション上に専用の入力フォームを提供する。この入力フォームは、顧客が自身の身長、体重、ダイエット目標などを入力するためのものである。サーバは、入力されたデータを受信し、データベースに保存する。保存されたデータは、生成AIモデルに対してプロンプト文として利用される。 The server provides a dedicated input form on a website or smartphone application. This input form allows customers to enter their height, weight, diet goals, etc. The server receives the input data and stores it in a database. The stored data is used as prompts for the generative AI model.
端末 Device
端末は、ユーザがアクセスするウェブサイトやスマートフォンアプリケーションを表示する。ユーザが入力フォームに身長、体重、ダイエット目標を入力すると、端末はそのデータをサーバに送信する。端末は、ユーザが入力したデータをリアルタイムで表示し、確認できるようにする。 The device displays the websites and smartphone applications that the user accesses. When the user enters their height, weight, and diet goals into an input form, the device sends the data to a server. The device then displays the data the user has entered in real time, allowing them to check it.
ユーザ User
ユーザは、ウェブサイトやスマートフォンアプリケーションにアクセスし、専用の入力フォームに自身の身長、体重、ダイエット目標を入力する。ユーザが入力を完了すると、そのデータはサーバに送信される。ユーザは、入力したデータを確認し、必要に応じて修正することができる。 Users access a website or smartphone application and enter their height, weight, and diet goals into a dedicated input form. Once the user has completed the input, the data is sent to the server. The user can then review the data they have entered and make any necessary corrections.
具体例 Specific examples
例1: ウェブサイトでの利用 Example 1: Website use
ユーザがウェブサイトにアクセスし、入力フォームに以下の情報を入力する: A user visits a website and enters the following information into a form:
身長: 170 cm
体重: 70 kg
ダイエット目標: 5 kg減量
Height: 170 cm
Weight: 70 kg
Diet goal: Lose 5 kg
入力が完了すると、端末はこのデータをサーバに送信する。サーバはデータを受信し、データベースに保存する。その後、生成AIモデルに対して以下のプロンプト文を生成する: Once the input is complete, the device sends this data to the server. The server receives the data and stores it in a database. It then generates the following prompt for the generative AI model:
プロンプト文の例: Example prompt:
「ユーザの身長は170 cm、体重は70 kg、ダイエット目標は5 kg減量です。この情報を基に、適切なダイエットプランを提案してください。」 "The user's height is 170 cm, weight is 70 kg, and their diet goal is to lose 5 kg. Based on this information, please suggest an appropriate diet plan."
例2: スマートフォンアプリケーションでの利用 Example 2: Use in a smartphone application
ユーザがスマートフォンアプリケーションを開き、入力フォームに以下の情報を入力する: A user opens a smartphone application and enters the following information into the input form:
身長: 160 cm
体重: 60 kg
ダイエット目標: 3 kg減量
Height: 160 cm
Weight: 60 kg
Diet goal: Lose 3 kg
入力が完了すると、端末はこのデータをサーバに送信する。サーバはデータを受信し、データベースに保存する。その後、生成AIモデルに対して以下のプロンプト文を生成する: Once the input is complete, the device sends this data to the server. The server receives the data and stores it in a database. It then generates the following prompt for the generative AI model:
プロンプト文の例: Example prompt:
「ユーザの身長は160 cm、体重は60 kg、ダイエット目標は3 kg減量です。この情報を基に、適切なダイエットプランを提案してください。」 "The user's height is 160 cm, weight is 60 kg, and their diet goal is to lose 3 kg. Based on this information, please suggest an appropriate diet plan."
このようにして、ユーザが入力したデータを基に、生成AIモデルが適切なダイエットプランを提案するシステムが構築される。 In this way, a system is created in which a generative AI model suggests an appropriate diet plan based on data entered by the user.
実施例1における特定処理の流れについて図11を用いて説明する。 The flow of the identification process in Example 1 will be explained using Figure 11.
ステップ1: Step 1:
ユーザが入力フォームにアクセスする。 The user accesses the input form.
ユーザは、ウェブサイトやスマートフォンアプリケーションを開き、入力フォームにアクセスする。入力フォームは、ユーザが自身の身長、体重、ダイエット目標を入力するためのインターフェースである。入力フォームが表示されると、ユーザは必要な情報を入力する準備が整う。 A user opens a website or smartphone application and accesses an input form. The input form is an interface where the user can enter their height, weight, and diet goals. Once the input form is displayed, the user is ready to enter the required information.
ステップ2: Step 2:
ユーザがデータを入力する。 The user enters the data.
ユーザは、入力フォームに自身の身長、体重、ダイエット目標を入力する。例えば、ユーザが「身長: 170 cm」、「体重: 70 kg」、「ダイエット目標: 5 kg減量」と入力する。入力が完了したら、ユーザは「送信」ボタンをタップする。入力データは、JSON形式で端末に保存される。 The user enters their height, weight, and diet goal into the input form. For example, the user might enter "Height: 170 cm", "Weight: 70 kg", and "Diet goal: Lose 5 kg". Once the input is complete, the user taps the "Submit" button. The input data is saved on the device in JSON format.
ステップ3: Step 3:
端末がデータをサーバに送信する。 The device sends the data to the server.
端末は、ユーザが入力したデータをサーバに送信する。具体的には、端末はHTTP POSTリクエストを使用して、入力データをサーバに送信する。このとき、データはJSON形式で送信される。入力データ(身長、体重、ダイエット目標)がサーバに送信される。 The device sends the data entered by the user to the server. Specifically, the device uses an HTTP POST request to send the input data to the server. At this time, the data is sent in JSON format. The input data (height, weight, diet goal) is sent to the server.
ステップ4: Step 4:
サーバがデータを受信し、保存する。 The server receives and stores the data.
サーバは、端末から送信されたデータを受信する。受信したデータは、データベースに保存される。例えば、サーバはMySQLデータベースに接続し、以下のようなSQLクエリを実行する: The server receives the data sent from the device. The received data is stored in a database. For example, the server connects to a MySQL database and executes the following SQL query:
sql sql
INSERT INTO user_data (height, weight, goal) VALUES (170, 70, '5 kg減量'); INSERT INTO user_data (height, weight, goal) VALUES (170, 70, '5 kg weight loss');
この処理により、ユーザの入力データがデータベースに保存される。 This process saves the user's input data in the database.
ステップ5: Step 5:
サーバが生成AIモデルにプロンプト文を生成する。 The server generates a prompt for the generative AI model.
サーバは、保存されたデータを基に生成AIモデルに対するプロンプト文を生成する。例えば、以下のようなプロンプト文を生成する: The server generates prompts for the generative AI model based on the stored data. For example, it generates prompts like the following:
「ユーザの身長は170 cm、体重は70 kg、ダイエット目標は5 kg減量です。この情報を基に、適切なダイエットプランを提案してください。」 "The user's height is 170 cm, weight is 70 kg, and their diet goal is to lose 5 kg. Based on this information, please suggest an appropriate diet plan."
このプロンプト文は、生成AIモデルに送信される。 This prompt is sent to the generative AI model.
ステップ6: Step 6:
生成AIモデルがダイエットプランを提案する。 Generative AI models suggest diet plans.
生成AIモデルは、受け取ったプロンプト文を基にダイエットプランを生成する。例えば、生成AIモデルが以下のようなダイエットプランを提案する: The generative AI model generates a diet plan based on the prompt it receives. For example, the generative AI model might suggest the following diet plan:
1. 毎日30分の有酸素運動を行う 1. Do 30 minutes of aerobic exercise every day.
2. 1日のカロリー摂取量を1500 kcalに制限する 2. Limit your daily calorie intake to 1,500 kcal
3. 週に3回筋力トレーニングを行う 3. Strength training three times a week
このダイエットプランは、サーバを経由してユーザの端末に送信され、ユーザに表示される。 This diet plan is sent to the user's device via the server and displayed to the user.
このようにして、ユーザが入力したデータを基に、生成AIモデルが適切なダイエットプランを提案するシステムが構築される。 In this way, a system is created in which a generative AI model suggests an appropriate diet plan based on data entered by the user.
(応用例1) (Application Example 1)
次に、形態例1の応用例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Application Example 1 of Form Example 1. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
従来のフードデリバリーシステムでは、顧客の健康状態やダイエット目標に基づいた食事プランを提供することが難しく、個々のニーズに応じたサービスを提供することができなかった。また、顧客が不要な商品を購入してしまうことによる無駄な支出や、ダイエット目標達成の妨げとなる食事選択が問題となっていた Traditional food delivery systems struggled to provide meal plans based on customers' health status and diet goals, making it impossible to provide services tailored to individual needs. Furthermore, problems arose, such as customers buying unnecessary items and making meal choices that hindered the achievement of diet goals.
応用例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の身長体重と目標に基づいて適切な食事プランを生成する手段と、生成された食事プランを顧客に提示する手段と、を含む。これにより、顧客の健康状態やダイエット目標に応じた適切な食事プランを提供し、無駄な支出を抑えつつ、ダイエット目標の達成をサポートすることが可能となる。 In this invention, the server includes means for the customer to enter their current height, weight, and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for generating an appropriate meal plan based on the customer's height, weight, and goals, and means for presenting the generated meal plan to the customer. This makes it possible to provide an appropriate meal plan based on the customer's health condition and diet goals, and support the achievement of diet goals while reducing unnecessary spending.
「顧客」とは、サービスを利用する消費者を指す。 "Customer" refers to the consumer who uses the service.
「身長体重」とは、顧客の身体的な高さと体重を指す。 "Height and Weight" refers to the customer's physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な健康やダイエットに関する目的を指す。 "Goals" refer to the specific health or diet objectives that a customer wishes to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る購入品の明細書を指す。 "Purchase receipt" refers to the detailed list of purchases received by a customer when making a purchase.
「添削する手段」とは、顧客が購入した商品を評価し、不要な商品を特定するための方法やシステムを指す。 "Correction means" refers to a method or system for evaluating products purchased by customers and identifying unwanted products.
「可視化する手段」とは、節約できるお金や減る体重を視覚的に表示するための方法やシステムを指す。 "Visualization means" refers to a method or system that visually displays the money saved or weight lost.
「食事プラン」とは、顧客の健康状態やダイエット目標に基づいて提案される食事の内容やスケジュールを指す。 "Meal Plan" refers to the meal content and schedule suggested based on the client's health and diet goals.
「生成する手段」とは、顧客の入力データに基づいて食事プランを作成するための方法やシステムを指す。 "Means for generating" refers to a method or system for creating a meal plan based on customer input data.
「提示する手段」とは、生成された食事プランを顧客に見せるための方法やシステムを指す。 "Presentation means" refers to the method or system for showing the generated meal plan to the customer.
この発明を実施するための形態として、以下のシステム構成を提案する。 The following system configuration is proposed as an embodiment of this invention.
システム構成 System Configuration
システムは、顧客が使用するスマートフォンアプリケーション、サーバ、及び生成AIモデルを含む。スマートフォンアプリケーションは、顧客が自身の身長、体重、ダイエット目標を入力するためのインターフェースを提供する。サーバは、入力されたデータを受信し、生成AIモデルにプロンプト文を送信して適切な食事プランを生成する。生成された食事プランは、再びスマートフォンアプリケーションを通じて顧客に提示される。 The system includes a smartphone application used by customers, a server, and a generative AI model. The smartphone application provides an interface for customers to input their height, weight, and diet goals. The server receives the input data and sends prompts to the generative AI model to generate an appropriate meal plan. The generated meal plan is then presented to the customer again via the smartphone application.
使用するハードウェア及びソフトウェア Hardware and software used
ハードウェア: スマートフォン、サーバ Hardware: Smartphones, servers
ソフトウェア: スマートフォンアプリケーション、生成AIモデル(例: OpenAI(登録商標) GPT-3(登録商標)) Software: Smartphone applications, generative AI models (e.g., OpenAI (registered trademark) GPT-3 (registered trademark))
データ加工及びデータ演算 Data processing and calculation
1. データ入力: 顧客がスマートフォンアプリケーションを使用して、身長、体重、ダイエット目標を入力する。 1. Data entry: Customers use a smartphone application to enter their height, weight, and diet goals.
2. データ送信: スマートフォンアプリケーションが入力されたデータをサーバに送信する。 2. Data transmission: The smartphone application sends the entered data to the server.
3. プロンプト生成: サーバが受信したデータを基に、生成AIモデルに送信するプロンプト文を生成する。 3. Prompt generation: Based on the data received by the server, a prompt sentence is generated to be sent to the generative AI model.
4. 食事プラン生成: 生成AIモデルがプロンプト文を受け取り、適切な食事プランを生成する。 4. Meal plan generation: The generative AI model receives the prompt and generates an appropriate meal plan.
5. データ受信及び提示: サーバが生成された食事プランを受信し、スマートフォンアプリケーションを通じて顧客に提示する。 5. Data reception and presentation: The server receives the generated meal plan and presents it to the customer via the smartphone application.
具体例 Specific examples
例えば、顧客が身長170cm、体重70kg、ダイエット目標として「5kg減量」を入力した場合、サーバは以下のプロンプト文を生成AIモデルに送信する。 For example, if a customer enters their height as 170cm, weight as 70kg, and their diet goal as "lose 5kg," the server will send the following prompt text to the generative AI model:
プロンプト文の例 Example prompt
「身長: 170 cm, 体重: 70 kg, 目標: 5kg減量に基づいて、適切な食事プランを提案してください。」 "Please suggest an appropriate meal plan based on the following: height: 170 cm, weight: 70 kg, goal: to lose 5 kg."
生成AIモデルはこのプロンプト文を基に、バランスの取れた食事プランを生成する。例えば、「朝食 - オートミール、昼食 - サラダ、夕食 - 鶏胸肉と野菜」といった具体的な食事内容が提案される。この食事プランは、スマートフォンアプリケーションを通じて顧客に提示される。 Based on this prompt, the generative AI model generates a balanced meal plan. For example, it suggests specific meal options such as "Breakfast - oatmeal, Lunch - salad, Dinner - chicken breast and vegetables." This meal plan is presented to the customer via a smartphone application.
このようにして、顧客の健康状態やダイエット目標に応じた適切な食事プランを提供し、無駄な支出を抑えつつ、ダイエット目標の達成をサポートすることが可能となる。 In this way, we can provide customers with appropriate meal plans based on their health condition and diet goals, helping them achieve their diet goals while reducing unnecessary spending.
応用例1における特定処理の流れについて図12を用いて説明する。 The flow of the specific processing in Application Example 1 will be explained using Figure 12.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、身長、体重、ダイエット目標を入力する。入力されたデータは、スマートフォンアプリケーション内で一時的に保存される。入力データの例として、身長170cm、体重70kg、ダイエット目標「5kg減量」がある。 The user launches the smartphone application and enters their height, weight, and diet goal. The entered data is temporarily saved within the smartphone application. An example of input data is: height 170cm, weight 70kg, diet goal "lose 5kg."
ステップ2: Step 2:
スマートフォンアプリケーションが、入力されたデータをサーバに送信する。送信されるデータは、ユーザの身長、体重、ダイエット目標を含む。サーバは、受信したデータを解析し、次の処理ステップに進む。 The smartphone application sends the entered data to the server. The data sent includes the user's height, weight, and diet goals. The server analyzes the received data and proceeds to the next processing step.
ステップ3: Step 3:
サーバが、受信したデータを基にプロンプト文を生成する。具体的には、ユーザの身長、体重、ダイエット目標を組み合わせて、生成AIモデルに送信するためのプロンプト文を作成する。例えば、「身長: 170 cm, 体重: 70 kg, 目標: 5kg減量に基づいて、適切な食事プランを提案してください。」というプロンプト文が生成される。 The server generates a prompt based on the received data. Specifically, it combines the user's height, weight, and diet goal to create a prompt to send to the generative AI model. For example, a prompt might be generated that reads, "Based on height: 170 cm, weight: 70 kg, goal: to lose 5 kg, please suggest an appropriate meal plan."
ステップ4: Step 4:
サーバが、生成したプロンプト文を生成AIモデルに送信する。生成AIモデルは、受信したプロンプト文を基にデータ演算を行い、適切な食事プランを生成する。生成AIモデルは、例えばOpenAI GPT-3を使用する。 The server sends the generated prompt text to the generative AI model. The generative AI model performs data calculations based on the received prompt text and generates an appropriate meal plan. The generative AI model uses, for example, OpenAI GPT-3.
ステップ5: Step 5:
生成AIモデルが、プロンプト文に基づいて食事プランを生成し、その結果をサーバに返送する。生成された食事プランの例として、「朝食 - オートミール、昼食 - サラダ、夕食 - 鶏胸肉と野菜」がある。 The generative AI model generates a meal plan based on the prompt and sends the results back to the server. An example of a generated meal plan is "Breakfast - Oatmeal, Lunch - Salad, Dinner - Chicken Breast and Vegetables."
ステップ6: Step 6:
サーバが、生成AIモデルから受信した食事プランを解析し、スマートフォンアプリケーションに送信する。送信されるデータは、生成された食事プランを含む。 The server analyzes the meal plan received from the generative AI model and sends it to the smartphone application. The transmitted data includes the generated meal plan.
ステップ7: Step 7:
スマートフォンアプリケーションが、サーバから受信した食事プランをユーザに提示する。ユーザは、アプリケーションを通じて提案された食事プランを確認し、実行することができる。 The smartphone application presents the meal plan received from the server to the user. The user can review and implement the proposed meal plan through the application.
(実施例2) (Example 2)
次に、形態例2の実施例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
従来のシステムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかる上に、レシートの紛失や破損のリスクがあった。また、購入した商品の中で不要なものを判断し、節約できる金額や減る体重を可視化する手段が不十分であった。これにより、顧客が目標に向かって効果的に買い物を管理することが難しかった Under the previous system, customers had to physically submit receipts for their purchases, which was time-consuming and risked loss or damage. Furthermore, there were insufficient ways to identify unnecessary purchases and visualize savings and weight loss. This made it difficult for customers to effectively manage their shopping to achieve their goals.
実施例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出するために画像を撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できる金額および減る体重を可視化する手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、購入情報を簡単にシステムに伝えることが可能となる。また、不要な商品を判断し、節約できる金額や減る体重を可視化することで、顧客が目標に向かって効果的に買い物を管理することができる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to take an image of their purchase receipt after shopping and upload it to the application so that they can submit it, means for correcting items that are determined to be unnecessary for this purchase, and means for visualizing the amount of money saved and weight loss that would be achieved if the unnecessary items were not purchased. This saves the customer the trouble of submitting a physical receipt and allows them to easily communicate their purchase information to the system. Furthermore, by identifying unnecessary items and visualizing the amount of money saved and weight loss that would be achieved, customers can effectively manage their shopping toward their goals.
「顧客」とは、システムを利用して買い物を行い、購入情報を管理する個人を指す。 "Customer" refers to an individual who uses the system to shop and manages their purchase information.
「身長体重」とは、顧客の現在の身体的な高さと体重を指す。 "Height and Weight" refers to the customer's current physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な身体的または経済的な目標を指す。 "Goal" refers to a specific physical or financial goal that the client wishes to achieve.
「購入レシート」とは、顧客が買い物を行った際に発行される、購入した商品の詳細が記載された紙または電子の記録を指す。 "Purchase receipt" means a paper or electronic record issued to a customer when they make a purchase that contains details of the items purchased.
「画像を撮影する」とは、スマートフォンやカメラなどのデバイスを使用して、物理的なレシートの写真を撮る行為を指す。 "Taking an image" refers to the act of taking a photo of a physical receipt using a device such as a smartphone or camera.
「アプリケーション」とは、スマートフォンやタブレットなどのデバイス上で動作するソフトウェアプログラムを指す。 "Application" refers to a software program that runs on a device such as a smartphone or tablet.
「アップロードする」とは、撮影した画像をインターネットを通じてサーバに送信する行為を指す。 "Uploading" refers to the act of sending captured images to a server via the Internet.
「サーバ」とは、ネットワークを介してデータを受信、処理、保存するためのコンピュータシステムを指す。 "Server" refers to a computer system that receives, processes, and stores data over a network.
「画像を解析する」とは、画像認識技術を使用して、撮影されたレシートの内容をデジタルデータとして抽出する行為を指す。 "Analyzing an image" refers to the act of using image recognition technology to extract the contents of a photographed receipt as digital data.
「不要な商品」とは、顧客の目標に対して購入する必要がないと判断された商品を指す。 "Unnecessary products" refer to products that are determined not to be necessary for the customer to achieve their goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金銭的な額を指す。 "Savings" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を購入しなかった場合に期待される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss you would expect if you had not purchased unnecessary items.
「可視化する」とは、データを視覚的に表示することで、顧客が容易に理解できるようにする行為を指す。 "Visualizing" refers to the act of displaying data visually so that customers can easily understand it.
「グラフィカルに表示する」とは、データをグラフやチャートなどの視覚的な形式で表示する行為を指す。 "Displaying graphically" refers to the act of displaying data in a visual format such as a graph or chart.
この発明は、顧客が買い物後に購入レシートを提出するために画像を撮影し、アプリケーションにアップロードするシステムを提供するものである。以下に、このシステムの具体的な実施形態を説明する。 This invention provides a system that allows customers to take an image of their purchase receipt after shopping and upload it to an application in order to submit it. A specific embodiment of this system is described below.
ユーザは、スマートフォンのカメラを使用して購入レシートの画像を撮影する。撮影した画像は、専用のアプリケーション(例えば、「ReceiptUploader」)を使用してアップロードされる。アプリケーションは、ユーザが撮影した画像をサーバに送信する機能を持つ。 The user takes a picture of the purchase receipt using the smartphone camera. The image is then uploaded using a dedicated application (e.g., "ReceiptUploader"). The application has the function of sending the image taken by the user to the server.
サーバは、端末から送信されたレシートの画像を受信する。受信後、サーバはGoogle(登録商標) Cloud Vision APIなどの画像認識ソフトウェアを使用して、レシートの内容を解析する。解析には、文字認識(OCR)技術が使用され、レシートに記載された商品名、価格、購入日時などの情報が抽出される。 The server receives the image of the receipt sent from the device. After receiving it, the server uses image recognition software such as Google® Cloud Vision API to analyze the contents of the receipt. Optical character recognition (OCR) technology is used for the analysis, and information such as the product name, price, and purchase date and time written on the receipt is extracted.
解析されたデータは、サーバによってデータベースに保存される。保存されたデータには、商品名、価格、購入日時、店舗名などが含まれる。これにより、ユーザの購入履歴がデータベースに蓄積される。 The analyzed data is stored in a database by the server. The stored data includes the product name, price, purchase date and time, store name, etc. This allows the user's purchase history to be accumulated in the database.
ユーザは、アプリケーションを使用して購入履歴を確認することができる。アプリケーション内の「購入履歴」セクションを開くと、サーバから取得されたデータが表示される。ユーザは、過去の購入情報を一覧で確認することができる。 Users can check their purchase history using the application. By opening the "Purchase History" section within the application, data retrieved from the server is displayed. Users can view a list of past purchases.
具体例として、ユーザがスーパーで買い物をした後のシナリオを考える。ユーザはスマートフォンのカメラを使ってレシートの画像を撮影し、「ReceiptUploader」アプリケーションを開く。アプリケーション内で「アップロード」ボタンをタップし、撮影したレシートの画像を選択してアップロードする。アプリケーションは画像をサーバに送信し、サーバはGoogle Cloud Vision APIを使用してレシートの内容を解析する。解析されたデータはデータベースに保存され、ユーザはアプリケーション内で「購入履歴」セクションを開いて、最近の購入情報を確認することができる。 As a concrete example, consider a scenario after a user has shopped at a supermarket. The user takes a picture of the receipt using their smartphone camera and opens the "ReceiptUploader" application. Within the application, the user taps the "Upload" button, selects the image of the receipt, and uploads it. The application sends the image to a server, which uses the Google Cloud Vision API to analyze the contents of the receipt. The analyzed data is stored in a database, and the user can open the "Purchase History" section within the application to view information about recent purchases.
生成AIモデルへ入力するプロンプト文の例としては、以下のようなものが考えられる。 Examples of prompts to input into a generative AI model include:
「ユーザがスマートフォンのカメラを使用してレシートの画像を撮影し、アプリケーションにアップロードする機能を説明してください。具体的なハードウェアやソフトウェアの名前も含めてください。」 "Please describe the functionality that allows users to take a picture of a receipt using their smartphone camera and upload it to the application. Please include the names of any specific hardware or software."
このプロンプト文を使用することで、生成AIモデルはシステムの処理を詳細に説明する文章を生成することができる。 Using this prompt, the generative AI model can generate sentences that explain in detail how the system will operate.
実施例2における特定処理の流れについて図13を用いて説明する。 The flow of the identification process in Example 2 will be explained using Figure 13.
ステップ1: Step 1:
ユーザがレシートの画像を撮影する。 The user takes a picture of the receipt.
ユーザはスマートフォンのカメラを使用して、購入した商品のレシートの画像を撮影する。撮影時には、レシート全体が鮮明に写るように注意する。入力は物理的なレシートであり、出力はデジタル画像である。 The user uses their smartphone camera to take an image of the receipt for the item they purchased. When taking the photo, they are careful to capture the entire receipt clearly. The input is the physical receipt, and the output is a digital image.
ステップ2: Step 2:
端末が画像をアプリケーションにアップロードする。 The device uploads the image to the application.
端末(スマートフォン)は、撮影したレシートの画像を「ReceiptUploader」アプリケーションにアップロードする。ユーザはアプリケーションを開き、「アップロード」ボタンをタップして、撮影した画像を選択する。入力はデジタル画像であり、出力はサーバへの画像データの送信である。 The device (smartphone) uploads the captured image of the receipt to the "ReceiptUploader" application. The user opens the application, taps the "Upload" button, and selects the captured image. The input is a digital image, and the output is the transmission of image data to the server.
ステップ3: Step 3:
サーバが画像を受信し、解析する。 The server receives and analyzes the image.
サーバは、端末から送信されたレシートの画像を受信する。受信後、サーバはGoogle Cloud Vision APIなどの画像認識ソフトウェアを使用して、レシートの内容を解析する。解析には、文字認識(OCR)技術が使用され、レシートに記載された商品名、価格、購入日時などの情報が抽出される。入力は画像データであり、出力は解析されたテキストデータである。 The server receives the image of the receipt sent from the device. After receiving it, the server uses image recognition software such as Google Cloud Vision API to analyze the contents of the receipt. Optical character recognition (OCR) technology is used for the analysis, and information such as the product name, price, and purchase date and time written on the receipt is extracted. The input is image data, and the output is analyzed text data.
ステップ4: Step 4:
サーバが解析結果をデータベースに保存する。 The server stores the analysis results in a database.
サーバは、解析されたデータをデータベースに保存する。保存されるデータには、商品名、価格、購入日時、店舗名などが含まれる。これにより、ユーザの購入履歴がデータベースに蓄積される。入力は解析されたテキストデータであり、出力はデータベースへの保存である。 The server saves the analyzed data in a database. The saved data includes the product name, price, purchase date and time, store name, etc. This allows the user's purchase history to be accumulated in the database. The input is the analyzed text data, and the output is saved in the database.
ステップ5: Step 5:
ユーザが購入履歴を確認する。 The user checks their purchase history.
ユーザは「ReceiptUploader」アプリケーションを使用して、購入履歴を確認することができる。アプリケーション内の「購入履歴」セクションを開くと、サーバから取得されたデータが表示される。ユーザは、過去の購入情報を一覧で確認することができる。入力はデータベースから取得されたデータであり、出力はアプリケーション上の表示である。 Users can use the "ReceiptUploader" application to check their purchase history. When they open the "Purchase History" section in the application, data retrieved from the server is displayed. Users can view a list of past purchases. The input is data retrieved from the database, and the output is displayed in the application.
(応用例2) (Application Example 2)
次に、形態例2の応用例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Application Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
従来の買い物システムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかる上に、購入情報の管理が煩雑であった。また、購入情報を基にしたポイント還元や節約効果の可視化が十分に行われていなかった。さらに、顧客の健康目標に基づいて不要な商品を判断し、節約効果や健康効果を可視化するシステムが不足していた Traditional shopping systems required customers to physically submit receipts for their purchases, which was time-consuming and made managing purchase information cumbersome. Furthermore, there was a lack of systems that could identify unnecessary products based on customers' health goals and visualize their savings and health benefits.
応用例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、購入レシートの内容を解析し、購入情報を自動的に抽出する手段と、抽出された購入情報に基づいて、顧客にポイントを還元する手段と、還元されたポイントを次回の購入時に使用できる手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、購入情報の管理が容易になり、ポイント還元や節約効果の可視化が可能となる。また、顧客の健康目標に基づいて不要な商品を判断し、節約効果や健康効果を可視化することができる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 2 is realized by the following means. In this invention, the server includes: a means for the customer to enter their current height and weight and goals; a means for the customer to take a photo of their purchase receipt with their smartphone camera after shopping and upload it to the application; a means for correcting items determined to be unnecessary for the current purchase; a means for visualizing the money saved and weight lost if the unnecessary items were not purchased; a means for analyzing the contents of the purchase receipt and automatically extracting purchase information; a means for rewarding points to the customer based on the extracted purchase information; and a means for allowing the rewarded points to be used for the next purchase. This saves the customer the trouble of submitting a physical receipt, simplifies management of purchase information, and enables visualization of point rewards and savings. It also identifies unnecessary items based on the customer's health goals and visualizes savings and health benefits.
「顧客」とは、商品やサービスを購入する消費者のことである。 "Customer" refers to a consumer who purchases goods or services.
「身長体重」とは、顧客の身体の高さと体重を指す基本的な身体情報である。 "Height and weight" refers to basic physical information that refers to the customer's physical height and weight.
「目標」とは、顧客が達成したい具体的な数値や状態を指すものである。 A "goal" refers to a specific numerical value or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される取引の詳細を記載した紙または電子の記録である。 A "purchase receipt" is a paper or electronic record detailing a transaction issued to a customer when they purchase goods.
「スマートフォン」とは、インターネット接続やアプリケーションの利用が可能な携帯電話の一種である。 A "smartphone" is a type of mobile phone that can connect to the Internet and use applications.
「カメラ」とは、画像や動画を撮影するための装置である。 A "camera" is a device used to take images and videos.
「アプリケーション」とは、スマートフォンやコンピュータ上で動作するソフトウェアプログラムである。 An "application" is a software program that runs on a smartphone or computer.
「アップロード」とは、データをローカルデバイスからサーバやクラウドに転送する行為である。 "Uploading" is the act of transferring data from a local device to a server or cloud.
「不要な商品」とは、顧客の目標達成に対して必要でないと判断される商品である。 "Unnecessary products" are products that are deemed not necessary for achieving the customer's goals.
「添削」とは、内容を確認し、修正や改善を行う行為である。 "Correction" is the act of checking the content and making corrections or improvements.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額である。 "Money saved" is the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を購入しなかった結果として減少した体重である。 "Weight lost" refers to the weight lost as a result of not purchasing unnecessary items.
「可視化」とは、データや情報を視覚的に表示することを指す。 "Visualization" refers to the visual display of data or information.
「解析」とは、データや情報を詳細に調べて、その構造や意味を明らかにする行為である。 "Analysis" is the act of examining data or information in detail to clarify its structure and meaning.
「購入情報」とは、顧客が購入した商品の詳細情報である。 "Purchase information" refers to detailed information about the products purchased by the customer.
「自動的に抽出」とは、システムが人の手を介さずにデータを取り出すことを指す。 "Automatic extraction" means that the system extracts data without human intervention.
「ポイント還元」とは、購入金額に応じて顧客にポイントを付与する行為である。 "Point redemption" is the act of awarding points to customers based on the purchase amount.
「次回の購入時に使用できる」とは、顧客が次に商品を購入する際にポイントを利用できることを指す。 "Can be used on next purchase" means that the customer can use the points the next time they purchase a product.
この発明を実施するための形態について、以下に詳細に説明する。 The following describes in detail the mode for implementing this invention.
まず、顧客が現在の身長体重と目標を記入する手段として、スマートフォンアプリケーションを用いる。顧客はアプリケーションを起動し、身長体重および目標を入力する。これにより、顧客の健康目標がシステムに登録される。 First, a smartphone application is used by customers to enter their current height, weight, and goals. The customer launches the application and enters their height, weight, and goals. This registers the customer's health goals in the system.
次に、顧客が買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする手段を提供する。顧客はレシートを撮影し、アプリケーション内のアップロード機能を使用して画像をサーバに送信する。 Next, we provide a way for customers to take a photo of their purchase receipt with their smartphone camera after shopping and upload it to the application. Customers take a photo of their receipt and use the upload function within the application to send the image to the server.
サーバは、アップロードされたレシート画像を受信し、OpenCVを用いて画像を前処理する。具体的には、画像をグレースケールに変換し、二値化処理を行う。次に、pytesseractを用いて前処理された画像からテキストを抽出する。抽出されたテキストから購入情報(商品名、金額など)を解析し、自動的に抽出する。 The server receives the uploaded receipt image and preprocesses it using OpenCV. Specifically, it converts the image to grayscale and performs binarization. Next, it uses pytesseract to extract text from the preprocessed image. It then analyzes and automatically extracts purchase information (product name, price, etc.) from the extracted text.
解析された購入情報に基づいて、顧客にポイントを還元する手段を提供する。サーバは、購入金額に応じてポイントを計算し、顧客のアカウントにポイントを付与する。還元されたポイントは、次回の購入時に使用できるようにアプリケーション内で管理される。 Based on the analyzed purchase information, the application provides a means for rewarding customers with points. The server calculates points based on the purchase amount and adds them to the customer's account. Rewarded points are managed within the application so they can be used for the next purchase.
さらに、今回の買い物で不要だと判断できる商品を添削する手段として、顧客の身長体重と目標に基づいて不要な商品を判断するアルゴリズムを実装する。サーバは、購入情報と顧客の健康目標を照らし合わせ、不要な商品を特定する。 Furthermore, as a means of filtering out items that may be deemed unnecessary for this shopping trip, an algorithm is implemented to determine unnecessary items based on the customer's height, weight, and goals. The server compares purchase information with the customer's health goals to identify unnecessary items.
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段として、サーバは節約できる金額と減少した体重を計算し、グラフィカルに表示する。これにより、顧客は節約効果と健康効果を視覚的に確認できる。 To visualize the money saved and weight lost by not buying unnecessary products, the server calculates the amount saved and weight lost and displays them graphically. This allows customers to visually see the savings and health benefits.
具体例として、ユーザーがコンビニで飲み物を購入し、レシートを撮影してアプリにアップロードする場合を考える。アプリがレシートから「飲み物」と「150円」を抽出し、15ポイントを還元する。また、ユーザーの健康目標に基づいて、飲み物が不要な商品と判断される場合、節約できる金額と減少した体重が表示される。 As a concrete example, consider the case where a user purchases a drink at a convenience store, takes a photo of the receipt, and uploads it to the app. The app extracts "drink" and "150 yen" from the receipt and rewards 15 points. Furthermore, if the drink is deemed an unnecessary item based on the user's health goals, the amount of money saved and the weight lost will be displayed.
生成AIモデルへのプロンプト文の例は以下の通りである: Examples of prompts for a generative AI model are as follows:
「ユーザーがスマートフォンのカメラで撮影したレシート画像をアップロードしました。この画像から購入情報を抽出し、ポイントを還元するプログラムを作成してください。購入金額の10%をポイントとして還元します。」 "A user has uploaded a receipt image taken with their smartphone camera. Please create a program that extracts purchase information from this image and rewards points. 10% of the purchase amount will be rewarded as points."
応用例2における特定処理の流れについて図14を用いて説明する。 The flow of the specific processing in Application Example 2 will be explained using Figure 14.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、現在の身長体重と目標を入力する。入力されたデータはアプリケーション内で一時的に保存され、サーバに送信される。入力データは、ユーザの健康目標を設定するための基礎情報として使用される。 The user launches the smartphone application and enters their current height, weight, and goals. The entered data is temporarily saved within the application and sent to the server. The entered data is used as the basis for setting the user's health goals.
ステップ2: Step 2:
ユーザが買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする。撮影されたレシート画像は、アプリケーション内で一時的に保存され、サーバに送信される。入力データは、レシート画像である。 After shopping, the user takes a photo of the purchase receipt with their smartphone camera and uploads it to the application. The captured receipt image is temporarily saved within the application and then sent to the server. The input data is the receipt image.
ステップ3: Step 3:
サーバがアップロードされたレシート画像を受信し、OpenCVを用いて画像を前処理する。具体的には、画像をグレースケールに変換し、二値化処理を行う。入力データはレシート画像であり、出力データは前処理された画像である。 The server receives the uploaded receipt image and preprocesses it using OpenCV. Specifically, it converts the image to grayscale and performs binarization. The input data is the receipt image, and the output data is the preprocessed image.
ステップ4: Step 4:
サーバが前処理された画像からpytesseractを用いてテキストを抽出する。入力データは前処理された画像であり、出力データは抽出されたテキストである。具体的な動作として、OCR(光学文字認識)技術を使用して画像内の文字情報を読み取る。 The server extracts text from the preprocessed image using pytesseract. The input data is the preprocessed image, and the output data is the extracted text. Specifically, it uses OCR (optical character recognition) technology to read the text information in the image.
ステップ5: Step 5:
サーバが抽出されたテキストから購入情報(商品名、金額など)を解析し、自動的に抽出する。入力データは抽出されたテキストであり、出力データは解析された購入情報である。具体的な動作として、テキスト解析アルゴリズムを使用して必要な情報を抽出する。 The server analyzes and automatically extracts purchase information (product name, price, etc.) from the extracted text. The input data is the extracted text, and the output data is the analyzed purchase information. Specifically, it uses a text analysis algorithm to extract the required information.
ステップ6: Step 6:
サーバが解析された購入情報に基づいて、顧客にポイントを還元する。入力データは解析された購入情報であり、出力データは還元されたポイントである。具体的な動作として、購入金額に応じてポイントを計算し、顧客のアカウントにポイントを付与する。 The server rewards the customer with points based on the analyzed purchase information. The input data is the analyzed purchase information, and the output data is the rewarded points. Specifically, it calculates points based on the purchase amount and adds them to the customer's account.
ステップ7: Step 7:
サーバが顧客の身長体重と目標に基づいて不要な商品を判断する。入力データは顧客の健康目標と購入情報であり、出力データは不要な商品のリストである。具体的な動作として、健康目標と購入情報を照らし合わせ、不要な商品を特定するアルゴリズムを実行する。 The server determines unnecessary products based on the customer's height, weight, and goals. The input data is the customer's health goals and purchase information, and the output data is a list of unnecessary products. Specifically, it runs an algorithm that compares the health goals with the purchase information and identifies unnecessary products.
ステップ8: Step 8:
サーバが不要商品を買わなかったら節約できるお金&減る体重を計算し、グラフィカルに表示する。入力データは不要な商品のリストと購入情報であり、出力データは節約できる金額と減少した体重である。具体的な動作として、節約効果と健康効果を計算し、ユーザに視覚的に表示する。 The server calculates the amount of money saved and weight lost if unnecessary items are not purchased, and displays this graphically. The input data is a list of unnecessary items and purchase information, and the output data is the amount saved and weight lost. Specifically, it calculates the savings and health benefits and displays them visually to the user.
ステップ9: Step 9:
ユーザが次回の購入時に還元されたポイントを使用する。入力データは還元されたポイントであり、出力データはポイントを使用した後の残高である。具体的な動作として、ポイントを使用して購入金額を割引し、残高を更新する。 The user uses the points they have earned on their next purchase. The input data is the points earned, and the output data is the balance after the points have been used. Specific operations include using the points to discount the purchase amount and updating the balance.
(実施例3) (Example 3)
次に、形態例3の実施例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を両立させることが難しいと感じている。特に、ダイエットや健康目標を持つ消費者は、買い物の際にどの商品が不要であるかを判断するのが困難である。また、不要な商品を購入しなかった場合の節約金額や健康効果を具体的に把握する手段が不足している。このため、消費者が健康管理と節約を効果的に行うためのシステムが求められている Today's consumers find it difficult to balance health management and saving money. Consumers with diet or health goals in particular have difficulty determining which products are unnecessary when shopping. Furthermore, there are few ways to specifically assess the savings and health benefits of not purchasing unnecessary products. For this reason, a system that helps consumers effectively manage their health and save money is needed.
実施例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、提出されたレシート情報を光学文字認識技術でテキストデータに変換する手段と、顧客の身長体重と目標に基づいて不要な商品を判断する手段と、不要商品を買わなかった場合に節約できる金額と減少する体重を計算する手段と、計算結果をグラフィカルに表示する手段を含む。これにより、消費者は買い物の際に不要な商品を簡単に特定し、節約金額と健康効果を具体的に把握することが可能となる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Example 3 is realized by the following means. In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for converting the submitted receipt information into text data using optical character recognition technology, means for determining unnecessary products based on the customer's height, weight, and goals, means for calculating the amount of money saved and the weight lost if the unnecessary products are not purchased, and means for graphically displaying the calculation results. This allows consumers to easily identify unnecessary products when shopping and specifically understand the amount of money saved and the health benefits.
「顧客」とは、システムを利用して自身の健康管理と節約を行おうとする消費者である。 "Customers" are consumers who use the system to manage their own health and save money.
「身長体重」とは、顧客の現在の身体的な測定値であり、健康管理の基礎データとして使用されるものである。 "Height and weight" refers to the customer's current physical measurements and is used as basic data for health management.
「目標」とは、顧客が設定する健康やダイエットに関する具体的な目的であり、例えば「糖質制限」や「カロリー制限」などが含まれる。 "Goals" are specific health and diet objectives set by customers, and include, for example, "carbohydrate restriction" or "calorie restriction."
「レシート」とは、顧客が買い物後に受け取る購入商品の明細書であり、商品名と価格が記載されているものである。 A "receipt" is a detailed list of purchased items that a customer receives after shopping, listing the product names and prices.
「光学文字認識技術」とは、画像データから文字情報を抽出する技術であり、レシート画像をテキストデータに変換するために使用されるものである。 "Optical character recognition technology" is a technology that extracts character information from image data and is used to convert receipt images into text data.
「テキストデータ」とは、光学文字認識技術によって変換された文字情報であり、商品名や価格などの情報が含まれるものである。 "Text data" refers to text information converted using optical character recognition technology, and includes information such as product names and prices.
「不要な商品」とは、顧客の身長体重と目標に基づいて、健康管理やダイエットの観点から購入する必要がないと判断される商品である。 "Unnecessary products" are products that are determined not to be necessary to purchase from the perspective of health management or dieting, based on the customer's height, weight, and goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金銭の総額である。 "Amount saved" is the total amount of money you can save by not purchasing unnecessary items.
「減少する体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量である。 "Weight loss" is the amount of weight loss predicted if the unnecessary product is not consumed.
「グラフィカルに表示する」とは、計算結果を視覚的にわかりやすくするために、グラフやチャートなどの形式で表示することである。 "Displaying graphically" means displaying the calculation results in the form of graphs, charts, etc. to make them easier to understand visually.
発明を実施するための形態 Form for implementing the invention
この発明は、消費者が健康管理と節約を効果的に行うためのシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system that enables consumers to effectively manage their health and save money. Specific embodiments of this system are described below.
システムの構成 System Configuration
このシステムは、以下の主要なコンポーネントから構成される。 The system consists of the following main components:
1. ユーザが身長、体重、目標を入力するための端末 1. A device for users to enter their height, weight, and goals.
2. ユーザが買い物後にレシートを提出するための端末 2. A terminal where users can submit receipts after shopping.
3. サーバがデータを受信し、処理を行うためのハードウェアおよびソフトウェア 3. Hardware and software for the server to receive and process data
使用するハードウェアおよびソフトウェア Hardware and software used
端末: スマートフォンやタブレットなどのモバイルデバイス Device: Mobile devices such as smartphones and tablets
サーバ: 高性能なデータ処理サーバ Server: High-performance data processing server
OCR技術: Google(登録商標) Cloud Vision APIなどの光学文字認識技術 OCR technology: Optical character recognition technology such as Google® Cloud Vision API
データベース: MySQLやPostgreSQLなどのリレーショナルデータベース Database: Relational database such as MySQL or PostgreSQL
データビジュアライゼーションライブラリ: D3.jsやChart.jsなど Data visualization libraries: D3.js, Chart.js, etc.
プログラムの処理 Program processing
サーバは、ユーザが入力した身長、体重、目標、および提出されたレシートの情報を受信する。サーバは、これらのデータを用いて不要な商品を検出するためのデータ加工とデータ演算を行う。具体的には、以下の手順で処理を行う。 The server receives the height, weight, and goal information entered by the user, as well as the submitted receipt. Using this data, the server processes and calculates the data to detect unwanted products. Specifically, the process is carried out as follows:
1. データ受信と解析: 1. Data reception and analysis:
サーバは、ユーザが入力した身長、体重、目標(例:糖質制限)を受信する。 The server receives the user's input height, weight, and goal (e.g., carbohydrate restriction).
サーバは、提出されたレシートの情報をOCR技術を用いてテキストデータに変換する。 The server converts the information on the submitted receipt into text data using OCR technology.
2. 不要商品の検出: 2. Detecting unwanted products:
サーバは、目標に基づいて不要な商品を検出する。例えば、目標が「糖質制限」である場合、サーバはレシート上の「パン」や「お菓子」などの糖質が多い商品を不要な商品としてリストアップする。 The server detects unnecessary products based on the goal. For example, if the goal is to "limit carbohydrates," the server will list high-carbohydrate products on the receipt, such as "bread" and "sweets," as unnecessary products.
3. 節約金額と体重減少量の計算: 3. Calculate savings and weight loss:
サーバは、検出した不要な商品の合計金額を計算する。 The server calculates the total price of the unwanted items detected.
サーバは、不要な商品を摂取しなかった場合の推定体重減少量を計算する。 The server calculates the estimated weight loss that would occur if the unnecessary products were not consumed.
4. 結果の可視化: 4. Visualizing the results:
サーバは、計算結果をグラフやチャートなどの形で消費者に表示する。 The server displays the calculation results to the consumer in the form of graphs, charts, etc.
具体例 Specific examples
ユーザが身長170cm、体重70kg、目標を「糖質制限」と設定し、レシートを提出したとする。レシートには「パン(300円)」、「お菓子(200円)」、「野菜(100円)」が含まれている。システムは「パン」と「お菓子」を不要な商品として検出し、合計金額500円を節約できると計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を0.5kgと計算し、グラフで表示する。 Let's say a user is 170cm tall, weighs 70kg, sets their goal to "restrict carbohydrates," and submits a receipt. The receipt includes "bread (300 yen)," "sweets (200 yen)," and "vegetables (100 yen)." The system detects "bread" and "sweets" as unnecessary items and calculates that a total of 500 yen can be saved. The system also calculates that the estimated weight loss would be 0.5kg if these items were not consumed, and displays this in a graph.
プロンプト文の例 Example prompt
「身長170cm、体重70kg、目標は糖質制限です。以下のレシート情報を基に不要な商品を検出し、節約金額と体重減少量を計算してください。レシート情報:パン(300円)、お菓子(200円)、野菜(100円)」実施例3における特定処理の流れについて図15を用いて説明する。 "Height 170cm, weight 70kg, goal is carbohydrate restriction. Detect unnecessary items based on the following receipt information and calculate the amount saved and weight loss. Receipt information: bread (300 yen), sweets (200 yen), vegetables (100 yen)." The flow of the identification process in Example 3 will be explained using Figure 15.
ステップ1: Step 1:
ユーザが身長、体重、目標を入力し、レシートを提出する。 Users enter their height, weight, and goal, then submit a receipt.
入力: ユーザはスマートフォンのアプリを開き、身長170cm、体重70kg、目標「糖質制限」を入力する。また、買い物後のレシートをスマートフォンのカメラで撮影し、アプリを通じてサーバにアップロードする。 Input: The user opens the app on their smartphone and enters their height (170cm), weight (70kg), and goal of "restricting carbohydrates." After shopping, they also take a photo of the receipt with their smartphone camera and upload it to the server via the app.
出力: ユーザの入力データとレシート画像がサーバに送信される。 Output: User input data and receipt image are sent to the server.
ステップ2: Step 2:
サーバが入力データとレシート情報を受信する。 The server receives the input data and receipt information.
入力: ユーザから送信された身長、体重、目標、およびレシート画像。 Input: Height, weight, goal, and receipt image submitted by the user.
出力: サーバ内のデータベースに保存されたユーザの入力データとレシート画像。 Output: User input data and receipt image stored in a database on the server.
ステップ3: Step 3:
サーバがレシート情報をOCR技術でテキストデータに変換する。 The server converts the receipt information into text data using OCR technology.
入力: サーバに保存されたレシート画像。 Input: Receipt image stored on the server.
データ加工: サーバはGoogle Cloud Vision APIを呼び出し、レシート画像を解析して商品名と価格を抽出する。 Data processing: The server calls the Google Cloud Vision API, analyzes the receipt image, and extracts the product name and price.
出力: 変換されたテキストデータ(例:「パン(300円)」、「お菓子(200円)」、「野菜(100円)」)。 Output: Converted text data (e.g., "Bread (300 yen)", "Sweets (200 yen)", "Vegetables (100 yen)").
ステップ4: Step 4:
サーバが目標に基づいて不要な商品を検出する。 The server detects unwanted items based on your goals.
入力: ユーザの目標(例:「糖質制限」)と変換されたテキストデータ。 Input: User's goal (e.g., "Limit carbohydrates") and converted text data.
データ演算: サーバは事前に定義された食品カテゴリと目標に基づくルールベースのフィルタリングを行い、不要な商品をリストアップする。 Data calculation: The server performs rule-based filtering based on predefined food categories and goals to list unwanted products.
出力: 不要な商品のリスト(例:「パン」、「お菓子」)。 Output: List of unwanted products (e.g., "bread", "sweets").
ステップ5: Step 5:
サーバが不要商品の合計金額と推定体重減少量を計算する。 The server calculates the total price of unwanted items and the estimated weight loss.
入力: 不要な商品のリストとそれぞれの価格。 Input: List of unwanted items and their respective prices.
データ演算: サーバは不要な商品の合計金額を計算し、さらに不要な商品を摂取しなかった場合の推定体重減少量を計算する。ここで使用するモデルは、消費カロリーと体重減少の関係を基にしたシミュレーションモデルである。 Data calculation: The server calculates the total price of the unnecessary products and also calculates the estimated weight loss if the unnecessary products were not consumed. The model used here is a simulation model based on the relationship between calories consumed and weight loss.
出力: 節約金額(例:500円)と推定体重減少量(例:0.5kg)。 Output: Amount saved (e.g., 500 yen) and estimated weight loss (e.g., 0.5 kg).
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化し、ユーザに表示する。 The server visualizes the calculation results in graphs and charts and displays them to the user.
入力: 節約金額と推定体重減少量。 Enter: Amount saved and estimated weight loss.
データ加工: サーバはD3.jsやChart.jsなどのデータビジュアライゼーションライブラリを用いて、計算結果をグラフやチャートで可視化する。 Data processing: The server uses data visualization libraries such as D3.js and Chart.js to visualize the calculation results in graphs and charts.
出力: ユーザの端末に表示されるグラフやチャート。 Output: Graphs and charts displayed on the user's device.
(応用例3) (Application Example 3)
次に、形態例3の応用例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Application Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を同時に達成することが難しいと感じている。特に、ダイエット目標を持つ消費者は、購入した商品の中から不要な商品を見つけ出し、それを避けることで健康と経済的な利益を得ることが求められている。しかし、これを手動で行うのは手間がかかり、正確性にも欠ける。したがって、消費者が簡単に不要な商品を特定し、節約と健康管理を効率的に行うためのシステムが必要である Today's consumers find it difficult to simultaneously manage their health and save money. In particular, consumers with dietary goals need to identify and avoid unnecessary products from their purchases in order to achieve health and financial benefits. However, doing this manually is time-consuming and inaccurate. Therefore, a system is needed that allows consumers to easily identify unnecessary products and efficiently manage their savings and health.
応用例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、レシートの情報を解析し、ダイエット目標に基づいて不要な商品を自動的に検出する手段と、不要商品を買わなかった場合の節約できる金額と推定体重減少量を計算し、グラフやチャートで表示する手段と、スマートフォンにインストールされるアプリケーションを含む。これにより、消費者は簡単に不要な商品を特定し、節約と健康管理を効率的に行うことが可能となる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for analyzing receipt information and automatically detecting unnecessary items based on diet goals, means for calculating the amount of money saved and estimated weight loss if the unnecessary items are not purchased and displaying them in graphs and charts, and an application installed on a smartphone. This allows consumers to easily identify unnecessary items and efficiently save money and manage their health.
「顧客」とは、システムを利用する消費者を指す。 "Customer" refers to consumers who use the system.
「身長体重」とは、顧客の身体的な高さと体重を示すデータである。 "Height and Weight" is data indicating the customer's physical height and weight.
「目標」とは、顧客が達成したい健康やダイエットに関する具体的な目的を指す。 "Goals" refer to the specific health or diet objectives that the customer wants to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を示す紙または電子データである。 A "purchase receipt" is paper or electronic data showing the purchase details of a product that a customer receives when making a purchase.
「不要な商品」とは、顧客の目標に対して不適切または不要と判断される商品を指す。 "Unwanted products" refer to products that are deemed inappropriate or unnecessary for the customer's goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss predicted if the unnecessary product is not consumed.
「レシートの情報」とは、購入レシートに記載されている商品の名称、価格、数量などのデータを指す。 "Receipt information" refers to data such as the product name, price, and quantity listed on the purchase receipt.
「ダイエット目標」とは、顧客が設定した体重減少や特定の栄養制限などの健康に関する目標を指す。 "Diet Goals" refers to health goals set by a customer, such as weight loss or specific nutritional restrictions.
「自動的に検出する」とは、システムがプログラムに基づいて人の介入なしに不要な商品を特定することを指す。 "Automatically detect" means that the system identifies unwanted products programmatically without human intervention.
「グラフやチャート」とは、データを視覚的に表示するための図表を指す。 "Graphs and charts" refer to diagrams used to visually display data.
「スマートフォンにインストールされるアプリケーション」とは、スマートフォン上で動作するソフトウェアプログラムを指す。 "Applications installed on smartphones" refers to software programs that run on smartphones.
この発明は、消費者が健康管理と節約を効率的に行うためのシステムである。以下に、このシステムを実施するための具体的な形態を説明する。 This invention is a system that allows consumers to efficiently manage their health and save money. Specific embodiments for implementing this system are described below.
システムの構成 System Configuration
システムは、以下の主要なコンポーネントから構成される: The system consists of the following main components:
1. ユーザー端末:スマートフォンなどの携帯端末。 1. User device: A mobile device such as a smartphone.
2. サーバ:データ処理と解析を行う中央サーバ。 2. Server: A central server that processes and analyzes data.
3. アプリケーション:スマートフォンにインストールされる専用アプリケーション。 3. Application: A dedicated application installed on a smartphone.
プログラムの処理 Program processing
ユーザー端末 User device
ユーザー端末は、以下の機能を持つ: The user device has the following functions:
ユーザー情報入力:ユーザーはアプリケーションを通じて、自身の身長、体重、ダイエット目標を入力する。 User information input: Users enter their height, weight, and diet goals through the application.
レシートスキャン:ユーザーが購入した商品のレシートをスマートフォンのカメラでスキャンし、画像データとして取得する。 Receipt scanning: The user scans the receipt for the item they purchased with their smartphone camera and obtains the image data.
サーバ Server
サーバは、以下の処理を行う: The server performs the following process:
レシート情報の解析:取得したレシート画像をOCR(光学文字認識)技術を用いてテキストデータに変換する。この処理には、pytesseractライブラリを使用する。 Analyzing receipt information: The acquired receipt image is converted into text data using OCR (optical character recognition) technology. This process uses the pytesseract library.
不要商品の検出:ユーザーのダイエット目標に基づいて、レシートのテキストデータから不要な商品を自動的に検出する。例えば、糖質制限を目標とするユーザーの場合、「パン」や「お菓子」などの高糖質商品を検出する。 Detection of unnecessary products: Automatically detect unnecessary products from receipt text data based on the user's diet goals. For example, for a user aiming to limit carbohydrate intake, high-carbohydrate products such as "bread" and "sweets" will be detected.
節約金額と体重減少量の計算:検出された不要商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、1kgの体重減少に必要なカロリー(約7700kcal)を基準とする。 Calculation of savings and weight loss: Calculates the total cost of the detected unnecessary products and the estimated weight loss if you did not consume those products. Weight loss is calculated based on the calories required to lose 1 kg of weight (approximately 7700 kcal).
アプリケーション application
アプリケーションは、以下の機能を持つ: The application has the following features:
結果の可視化:計算された節約金額と推定体重減少量をグラフやチャートで表示する。これにより、ユーザーは自身の健康管理と節約の効果を視覚的に確認できる。 Visualization of results: Calculated savings and estimated weight loss are displayed in graphs and charts, allowing users to visually see the effects of their health management and savings.
具体例 Specific examples
例えば、ユーザーが「糖質制限」を目標として設定し、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が不要商品として検出される。検出された不要商品の合計金額が500円で、推定体重減少量が0.2kgであるとする。 For example, if a user sets a goal of "restricting carbohydrates" and the receipt includes "bread" and "sweets," these items will be detected as unnecessary products. Let's say the total amount of the detected unnecessary products is 500 yen, and the estimated weight loss is 0.2 kg.
プロンプト文の例 Example prompt
ユーザー情報を入力してください: Please enter your user information:
身長:170 cm
体重:70 kg
ダイエット目標:糖質制限
Height: 170 cm
Weight: 70 kg
Diet goal: Carbohydrate restriction
レシートをスキャンしてください: Scan your receipt:
(レシート画像をアップロード) (Upload receipt image)
不要商品を検出しています... Unwanted items detected...
検出された不要商品: Unwanted items detected:
パン:200円
お菓子:300円
節約金額:500円
Bread: 200 yen Sweets: 300 yen Savings: 500 yen
推定体重減少量:0.2kg Estimated weight loss: 0.2kg
結果をグラフで表示します。 The results are displayed in a graph.
このようにして、ユーザーは簡単に不要な商品を特定し、節約と健康管理を効率的に行うことができる。 In this way, users can easily identify unnecessary products and efficiently save money and manage their health.
応用例3における特定処理の流れについて図16を用いて説明する。 The flow of the specific processing in Application Example 3 will be explained using Figure 16.
ステップ1: Step 1:
ユーザがスマートフォンのアプリケーションを起動し、自身の身長、体重、ダイエット目標を入力する。 The user launches the smartphone application and enters their height, weight, and diet goals.
入力:ユーザの身長、体重、ダイエット目標 Input: User's height, weight, and diet goal
出力:ユーザ情報データ Output: User information data
具体的な動作:ユーザはアプリケーションの入力フォームに身長、体重、ダイエット目標(例:糖質制限)を入力し、送信ボタンを押す。これにより、ユーザ情報データが生成され、サーバに送信される。 Specific operation: The user enters their height, weight, and diet goal (e.g., carbohydrate restriction) into the application's input form and presses the submit button. This generates user information data and sends it to the server.
ステップ2: Step 2:
ユーザが買い物後に購入した商品のレシートをスマートフォンのカメラでスキャンする。 After shopping, the user scans the receipt for the purchased items using their smartphone camera.
入力:レシート画像 Input: Receipt image
出力:レシート画像データ Output: Receipt image data
具体的な動作:ユーザはアプリケーション内のカメラ機能を使用して、購入レシートを撮影する。撮影されたレシート画像はアプリケーション内に保存され、サーバに送信される。 Specific operation: The user uses the application's camera function to take a photo of the purchase receipt. The captured receipt image is saved within the application and sent to the server.
ステップ3: Step 3:
サーバがレシート画像を受信し、OCR技術を用いてテキストデータに変換する。 The server receives the receipt image and converts it into text data using OCR technology.
入力:レシート画像データ Input: Receipt image data
出力:レシートテキストデータ Output: Receipt text data
具体的な動作:サーバはpytesseractライブラリを使用して、受信したレシート画像データからテキストを抽出する。抽出されたテキストデータはレシートテキストデータとして保存される。 Specific operation: The server uses the pytesseract library to extract text from the received receipt image data. The extracted text data is saved as receipt text data.
ステップ4: Step 4:
サーバがユーザのダイエット目標に基づいて、レシートテキストデータから不要な商品を自動的に検出する。 The server automatically detects unnecessary items from receipt text data based on the user's diet goals.
入力:ユーザ情報データ、レシートテキストデータ Input: User information data, receipt text data
出力:不要商品リスト Output: List of unwanted items
具体的な動作:サーバはユーザのダイエット目標(例:糖質制限)に基づいて、レシートテキストデータを解析する。特定のキーワード(例:「パン」、「お菓子」)を含む商品を不要商品としてリストアップする。 Specific operation: The server analyzes receipt text data based on the user's diet goal (e.g., carbohydrate restriction). Products containing specific keywords (e.g., "bread," "sweets") are listed as unwanted items.
ステップ5: Step 5:
サーバが不要商品を買わなかった場合の節約できる金額と推定体重減少量を計算する。 The server calculates the amount of money you could save and the estimated weight loss if you didn't buy unnecessary items.
入力:不要商品リスト Input: List of unwanted items
出力:節約金額、推定体重減少量 Output: Money saved, estimated weight loss
具体的な動作:サーバは不要商品リストに基づいて、各商品の価格を合計し、節約金額を計算する。また、各商品のカロリー情報を基に、推定体重減少量を計算する。体重減少量の計算には、1kgの体重減少に必要なカロリー(約7700kcal)を基準とする。 Specific operation: The server calculates the savings amount by adding up the prices of each item based on the list of unwanted items. It also calculates the estimated weight loss amount based on the calorie information of each item. The weight loss amount is calculated based on the calories required to lose 1 kg (approximately 7700 kcal).
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化し、ユーザのスマートフォンに表示する。 The server visualizes the calculation results in graphs and charts and displays them on the user's smartphone.
入力:節約金額、推定体重減少量 Input: Amount saved, estimated weight loss
出力:グラフやチャートの画像データ Output: Image data for graphs and charts
具体的な動作:サーバは計算結果を基に、節約金額と推定体重減少量をグラフやチャートとして生成する。生成されたグラフやチャートの画像データはユーザのスマートフォンに送信され、アプリケーション内で表示される。 Specific operation: Based on the calculation results, the server generates graphs and charts showing the amount of savings and estimated weight loss. Image data of the generated graphs and charts is sent to the user's smartphone and displayed within the application.
このようにして、ユーザは簡単に不要な商品を特定し、節約と健康管理を効率的に行うことができる。 In this way, users can easily identify unnecessary products and efficiently save money and manage their health.
更に、ユーザの感情を推定する感情エンジンを組み合わせてもよい。すなわち、特定処理部290は、感情特定モデル59を用いてユーザの感情を推定し、ユーザの感情を用いた特定処理を行うようにしてもよい。 Furthermore, an emotion engine that estimates the user's emotion may be combined. That is, the identification processing unit 290 may estimate the user's emotion using the emotion identification model 59 and perform identification processing using the user's emotion.
「形態例1」 "Example 1"
本発明の一実施形態として、感情エンジンを組み合わせたシステムが提供される。このシステムは、ユーザの感情を認識し、その感情に基づいて不要な商品を判断する。具体的には、ユーザがストレスを感じているときには、甘いお菓子などの不健康な食品を不要な商 One embodiment of the present invention provides a system that incorporates an emotion engine. This system recognizes the user's emotions and determines which products are unnecessary based on those emotions. Specifically, when a user is feeling stressed, it may be possible to avoid unnecessary purchases of unhealthy foods such as sweets.
品として検出する。また、ユーザがリラックスしているときには、健康的な食品を推奨する。 It also detects foods as being nutritious and recommends healthy foods when the user is relaxing.
「形態例2」 "Example 2"
さらに、感情エンジンは、ユーザの感情に基づいて節約できるお金と減る体重をグラフィカルに表示する。具体的には、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を表示する。これにより、ユーザは自身の感情と健康管理、節約の関係を視覚的に理解することができる。 Furthermore, the emotion engine graphically displays the money saved and weight lost based on the user's emotions. Specifically, it displays the amount of money saved and the amount of weight lost if the user refrains from purchasing unnecessary products when feeling stressed. This allows users to visually understand the relationship between their emotions, health management, and saving money.
「形態例3」 "Example 3"
具体例として、ユーザがストレスを感じているときにチョコレートを購入した場合、感情エンジンはチョコレートを不要な商品として検出する。そして、チョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。これにより、ユーザはストレスを感じているときに不健康な食品を購入する傾向があることを認識し、その結果としての金銭的、健康的な影響を理解することができる。 For example, if a user buys chocolate when feeling stressed, the emotion engine will detect the chocolate as an unnecessary item and display a graph of the amount of money saved and weight loss they would have experienced if they had not bought the chocolate. This helps users recognize their tendency to buy unhealthy foods when they are stressed and understand the resulting financial and health impacts.
以下に、各形態例の処理の流れについて説明する。 The processing flow for each example is explained below.
「形態例1」 "Example 1"
ステップ1:ユーザがシステムに自身の現在の身長と体重、目標を入力する。 Step 1: The user enters their current height, weight, and goal into the system.
ステップ2:ユーザがショッピングを行い、レシートをシステムに提出する。 Step 2: The user makes a purchase and submits the receipt to the system.
ステップ3:感情エンジンがユーザの感情を認識する。 Step 3: The emotion engine recognizes the user's emotions.
ステップ4:感情エンジンがユーザの感情に基づいて不要な商品を判断し、その結果をユーザに通知する。 Step 4: The emotion engine determines which products are unnecessary based on the user's emotions and notifies the user of the results.
「形態例2」 "Example 2"
ステップ1:ユーザがシステムに自身の現在の身長と体重、目標を入力する。 Step 1: The user enters their current height, weight, and goal into the system.
ステップ2:ユーザがショッピングを行い、レシートをシステムに提出する。 Step 2: The user makes a purchase and submits the receipt to the system.
ステップ3:感情エンジンがユーザの感情を認識する。 Step 3: The emotion engine recognizes the user's emotions.
ステップ4:感情エンジンがユーザの感情に基づいて節約できるお金と減る体重をグラフィカルに表示する。 Step 4: The emotion engine graphically displays the money saved and weight lost based on the user's emotions.
「形態例3」 "Example 3"
ステップ1:ユーザがストレスを感じているときにチョコレートを購入する。 Step 1: Buy chocolate when the user is feeling stressed.
ステップ2:感情エンジンがユーザの感情を認識し、チョコレートを不要な商品として検出する。 Step 2: The emotion engine recognizes the user's emotions and detects chocolate as an unwanted item.
ステップ3:感情エンジンがチョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。 Step 3: The emotion engine displays a graph of the amount of money saved and weight loss you would have experienced if you had not bought the chocolate.
(実施例1) (Example 1)
次に、形態例1の実施例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Example 1 of Form Example 1. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
従来のシステムでは、顧客が自身の身長体重と目標を記入する手段や、買い物後に購入レシートを提出する手段は提供されていたが、顧客の感情に基づいて不要な商品を判断し、健康的な商品を推奨する機能が欠けていた。そのため、顧客がストレスを感じている場合やリラックスしている場合に適切な商品を選択することが難しかった。また、不要商品を買わなかった場合の節約できるお金や減る体重を可視化する手段も不十分であった。これにより、顧客の健康管理や節約意識を高めることが困難であった The previous system allowed customers to enter their height, weight, and goals, and to submit receipts after shopping, but it lacked the ability to identify unnecessary products based on the customer's emotions and recommend healthy products. This made it difficult for customers to select appropriate products when they were stressed or relaxed. It also lacked a way to visualize the money saved and weight lost by not purchasing unnecessary items. This made it difficult to raise customers' awareness of health management and saving money.
実施例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を認識し、その感情に基づいて不要な商品を判断する手段と、顧客の感情に基づいて健康的な商品を推奨する手段と、を含む。これにより、顧客の感情状態に応じた適切な商品選択が可能となり、健康管理や節約意識を高めることができる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for recognizing the customer's emotions and determining unnecessary items based on those emotions, and means for recommending healthy products based on the customer's emotions. This enables the customer to select appropriate products according to their emotional state, thereby increasing their awareness of health management and saving money.
「顧客」とは、システムを利用して自身の身長体重やダイエット目標を入力し、買い物後に購入レシートを提出する個人を指す。 "Customer" refers to an individual who uses the system to enter their height, weight, and diet goals, and then submits a purchase receipt after shopping.
「身長体重」とは、顧客の現在の身体の高さと体重を指す。 "Height and Weight" refers to the customer's current height and weight.
「目標」とは、顧客が達成したいと考えるダイエットや健康に関する具体的な数値や状態を指す。 "Goals" refer to specific numerical values or conditions related to dieting or health that a customer wishes to achieve.
「入力手段」とは、顧客が自身の身長体重や目標をシステムに入力するためのインターフェースを指す。 "Input means" refers to the interface that allows customers to input their height, weight, and goals into the system.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を記載した紙または電子データを指す。 "Purchase receipt" refers to the paper or electronic data containing the purchase details of a product that a customer receives when making a purchase.
「提出手段」とは、顧客が購入レシートをシステムに送信するためのインターフェースを指す。 "Submission means" refers to the interface through which customers submit purchase receipts to the system.
「添削手段」とは、システムが顧客の入力データや感情データに基づいて不要な商品を判断し、顧客に通知する機能を指す。 "Correction method" refers to the function by which the system determines unnecessary products based on customer input data and emotional data and notifies the customer.
「可視化手段」とは、システムが不要商品を買わなかった場合の節約できるお金や減る体重をグラフィカルに表示する機能を指す。 "Visualization means" refers to the system's ability to graphically display the money saved and weight lost if unnecessary items are not purchased.
「感情認識手段」とは、システムが顧客の感情を分析し、その感情に基づいて不要な商品を判断する機能を指す。 "Emotion recognition means" refers to the system's ability to analyze customer emotions and determine which products are unnecessary based on those emotions.
「健康的な商品推奨手段」とは、システムが顧客の感情に基づいて健康的な商品を推奨する機能を指す。 "Healthy product recommendation means" refers to the system's ability to recommend healthy products based on customer sentiment.
この発明は、顧客が自身の身長体重と目標を記入するための専用の入力フォームを提供するシステムである。このシステムは、ウェブサイトやスマートフォンアプリケーション上に設けられ、顧客が自身の身長、体重、ダイエット目標等を直接入力できるようになっている。また、感情エンジンを組み合わせることで、顧客の感情に基づいて不要な商品を判断し、健康的な商品を推奨する機能を持つ。 This invention is a system that provides a dedicated input form for customers to enter their height, weight, and diet goals. The system is set up on a website or smartphone application, and allows customers to directly input their height, weight, diet goals, etc. In addition, by combining it with an emotion engine, it has the function of determining unnecessary products based on the customer's emotions and recommending healthy products.
サーバは、ウェブサイトやスマートフォンアプリケーション上に入力フォームを設置する。この入力フォームは、HTMLとCSSを用いて作成され、JavaScript(登録商標)を用いて入力データをリアルタイムで検証する。ユーザが入力フォームにデータを入力すると、サーバはそのデータを受信し、データベース(例えば、MySQLやPostgreSQL)に保存する。 The server places an input form on a website or smartphone application. This input form is created using HTML and CSS, and JavaScript (registered trademark) is used to validate the input data in real time. When a user enters data into the input form, the server receives the data and stores it in a database (e.g., MySQL or PostgreSQL).
次に、サーバは感情エンジン(例えば、Microsoft(登録商標) Azure(登録商標)のEmotion APIやGoogle CloudのNatural Language API)を使用して、ユーザの感情を分析する。感情エンジンは、ユーザの入力データや過去の行動データを基に、ユーザが現在感じている感情を認識する。例えば、ユーザがストレスを感じている場合、サーバはその情報を基に、甘いお菓子などの不健康な食品を不要な商品として判断する。一方、ユーザがリラックスしている場合、サーバは健康的な食品を推奨する。 Next, the server uses an emotion engine (for example, Microsoft® Azure®'s Emotion API or Google Cloud's Natural Language API) to analyze the user's emotions. The emotion engine recognizes the user's current emotions based on the user's input data and past behavioral data. For example, if the user is feeling stressed, the server will use that information to determine that unhealthy foods such as sweets are unnecessary. On the other hand, if the user is relaxed, the server will recommend healthy foods.
具体例として、ユーザがスマートフォンアプリケーションを使用して、身長170cm、体重70kg、ダイエット目標を「5kg減量」と入力したとする。このデータはサーバに送信され、データベースに保存される。その後、感情エンジンがユーザの感情を分析し、ユーザがストレスを感じていると判断した場合、サーバは「チョコレートやクッキーなどの甘いお菓子は避けましょう」といったメッセージを表示する。 As a concrete example, suppose a user uses a smartphone application to enter their height as 170cm, weight as 70kg, and diet goal as "lose 5kg." This data is sent to the server and stored in a database. The emotion engine then analyzes the user's emotions, and if it determines that the user is feeling stressed, the server displays a message such as "Avoid sweet snacks such as chocolate and cookies."
生成AIモデルへ入力するプロンプト文の例: Example of a prompt to input to a generative AI model:
ユーザが身長170cm、体重70kg、ダイエット目標を「5kg減量」と入力しました。感情エンジンがユーザの感情を分析した結果、ユーザがストレスを感じていると判断しました。この場合、どのような商品を不要と判断し、どのような商品を推奨しますか? A user enters their height as 170cm, weight as 70kg, and their diet goal as "lose 5kg." The emotion engine analyzes the user's emotions and determines that the user is feeling stressed. In this case, what products would be deemed unnecessary and what products would be recommended?
このプロンプト文を生成AIモデルに入力することで、具体的な商品推奨や不要商品の判断を得ることができる。このようにして、システムはユーザの入力データと感情データを基に、適切な商品推奨を行うことができる。 By inputting this prompt into a generative AI model, specific product recommendations and a determination of unnecessary products can be obtained. In this way, the system can make appropriate product recommendations based on the user's input data and emotional data.
実施例1における特定処理の流れについて図17を用いて説明する。 The flow of the identification process in Example 1 will be explained using Figure 17.
ステップ1: Step 1:
ユーザが入力フォームにアクセスする。 The user accesses the input form.
ユーザはウェブサイトまたはスマートフォンアプリケーションを開く。端末は、ブラウザやアプリケーションを通じてサーバにリクエストを送り、入力フォームを取得する。サーバは、HTMLとCSSを用いて入力フォームを生成し、端末に送信する。端末は、受信したHTMLとCSSをレンダリングし、ユーザに入力フォームを表示する。 A user opens a website or smartphone application. The device sends a request to the server through the browser or application to retrieve an input form. The server generates the input form using HTML and CSS and sends it to the device. The device renders the received HTML and CSS and displays the input form to the user.
入力:ユーザのアクセスリクエスト Input: User access request
出力:入力フォームの表示 Output: Display the input form
ステップ2: Step 2:
ユーザが身長、体重、ダイエット目標を入力する。 Users enter their height, weight, and diet goals.
ユーザは、表示された入力フォームに自身の身長、体重、ダイエット目標を入力する。端末は、JavaScriptを用いて入力データの形式をリアルタイムで検証し、エラーがないことを確認する。 The user enters their height, weight, and diet goals into the displayed input form. The device uses JavaScript to validate the format of the input data in real time to ensure there are no errors.
入力:ユーザの身長、体重、ダイエット目標 Input: User's height, weight, and diet goal
出力:検証済みの入力データ Output: Validated input data
ステップ3: Step 3:
サーバが入力データを受信し、データベースに保存する。 The server receives the input data and stores it in the database.
ユーザが送信ボタンを押すと、端末は入力データをJSON形式でサーバに送信する。サーバは、受信したデータを解析し、MySQLデータベースに保存する。具体的には、INSERT文を用いてデータベースにデータを追加する。 When the user presses the send button, the device sends the input data in JSON format to the server. The server parses the received data and saves it in a MySQL database. Specifically, it adds the data to the database using the INSERT statement.
入力:JSON形式の入力データ Input: JSON format input data
出力:データベースに保存されたデータ Output: Data stored in the database
ステップ4: Step 4:
サーバが感情エンジンを呼び出し、ユーザの感情を分析する。 The server calls the emotion engine and analyzes the user's emotions.
サーバは、保存されたデータを基に感情エンジン(例えば、Microsoft AzureのEmotion APIやGoogle CloudのNatural Language API)を呼び出す。APIにデータを送信し、ユーザの感情を分析する。APIは、ユーザがストレスを感じていると判断し、その結果をサーバに返す。 The server calls an emotion engine (for example, Microsoft Azure's Emotion API or Google Cloud's Natural Language API) based on the stored data. The data is sent to the API, which analyzes the user's emotions. The API determines that the user is feeling stressed and returns the result to the server.
入力:データベースに保存されたデータ Input: Data stored in the database
出力:感情エンジンからの感情分析結果 Output: Sentiment analysis results from the emotion engine
ステップ5: Step 5:
サーバが感情に基づいて不要な商品を判断し、推奨商品を決定する。 The server determines which products are unnecessary based on emotions and decides which products to recommend.
サーバは、感情エンジンから得られた感情データを基に、不要な商品と推奨商品を判断する。例えば、ユーザがストレスを感じている場合、サーバは「チョコレートやクッキーなどの甘いお菓子は避けましょう」と判断し、「フルーツやナッツなどの健康的な食品を推奨します」と決定する。 The server determines which products are unnecessary and which are recommended based on emotional data obtained from the emotion engine. For example, if the user is feeling stressed, the server will determine that "sweets such as chocolate and cookies should be avoided" and decide to "recommend healthy foods such as fruits and nuts."
入力:感情エンジンからの感情分析結果 Input: Sentiment analysis results from the emotion engine
出力:不要商品と推奨商品のリスト Output: List of unwanted and recommended products
ステップ6: Step 6:
サーバが結果をユーザに表示する。 The server displays the results to the user.
サーバは、判断結果をユーザに表示するためのHTMLを生成し、端末に送信する。端末は、受信したHTMLをレンダリングし、ユーザに不要な商品と推奨商品を表示する。ユーザは、表示された結果を確認し、次の行動を決定する。 The server generates HTML to display the results of the judgment to the user and sends it to the device. The device renders the received HTML and displays unwanted products and recommended products to the user. The user checks the displayed results and decides on their next course of action.
入力:不要商品と推奨商品のリスト Input: List of unwanted and recommended products
出力:ユーザに表示された結果 Output: The result displayed to the user
(応用例1) (Application Example 1)
次に、形態例1の応用例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Application Example 1 of Form Example 1. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
従来のフードデリバリーシステムでは、ユーザの健康状態や感情に基づいた食品の推薦が行われておらず、ユーザがストレスを感じているときに不健康な食品を選んでしまう可能性がある。また、ユーザが自身のダイエット目標に沿った食品を選ぶためのサポートが不足しているため、効果的なダイエットが難しいという問題がある Traditional food delivery systems don't recommend foods based on the user's health status or emotions, which can lead to users choosing unhealthy foods when they're stressed. Furthermore, there's a lack of support for users to choose foods that align with their diet goals, making it difficult to diet effectively.
応用例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を認識し、その感情に基づいて不要な商品を判断する手段と、を含む。これにより、ユーザの健康状態や感情に基づいた食品の推薦が可能となり、ユーザがストレスを感じているときに不健康な食品を避け、ダイエット目標に沿った食品を選ぶことができるようになる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 1 is realized by the following means. In this invention, the server includes a means for the customer to enter their current height and weight and goals, a means for the customer to submit a purchase receipt after shopping, a means for correcting items determined to be unnecessary in this purchase, a means for visualizing the money saved and weight lost if the unnecessary items are not purchased, and a means for recognizing the customer's emotions and determining unnecessary items based on those emotions. This makes it possible to recommend foods based on the user's health condition and emotions, allowing the user to avoid unhealthy foods when feeling stressed and to choose foods that are in line with their diet goals.
「顧客」とは、サービスや商品を利用する消費者を指す。 "Customer" refers to a consumer who uses a service or product.
「身長体重」とは、個人の身体の高さと体重を示す数値である。 "Height and weight" are numbers that indicate an individual's physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な目的や状態を指す。 "Goal" refers to the specific objective or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される取引の記録を示す紙または電子データである。 A "purchase receipt" is a paper or electronic record of a transaction issued when a customer purchases a product.
「不要な商品」とは、顧客の健康状態や目標に対して不適切と判断される商品を指す。 "Unnecessary products" refer to products that are deemed inappropriate for the customer's health condition or goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、顧客が不要な商品を避けることで達成できる体重の減少を示す数値である。 "Weight Loss" is a numerical value that represents the weight loss a customer can achieve by avoiding unnecessary products.
「感情を認識する手段」とは、顧客の感情状態を検出し、それに基づいて判断を行うための技術や装置を指す。 "Means for recognizing emotions" refers to technologies or devices that detect a customer's emotional state and make decisions based on that.
「可視化する手段」とは、節約できるお金や減る体重を視覚的に表示するための技術や装置を指す。 "Visualization means" refers to technology or devices that visually display the money saved or weight lost.
この発明を実施するためのシステムは、以下のように構成される。まず、ユーザが自身の身長、体重、ダイエット目標を入力するための専用フォームを提供する。このフォームは、ウェブサイトやスマートフォンアプリケーション上に設けられ、ユーザが簡単に入力できるようになっている。 A system for implementing this invention is configured as follows: First, a dedicated form is provided for users to enter their height, weight, and diet goals. This form is provided on a website or smartphone application, allowing users to easily enter information.
次に、感情エンジンを組み合わせたシステムが提供される。このシステムは、ユーザの感情をリアルタイムで認識し、その感情に基づいて不要な商品を判断する。具体的には、ユーザがストレスを感じているときには、甘いお菓子などの不健康な食品を不要な商品として検出し、リラックスしているときには、健康的な食品を推奨する。 Next, we present a system that combines an emotion engine. This system recognizes the user's emotions in real time and determines which products are unnecessary based on those emotions. Specifically, when the user is feeling stressed, it detects unhealthy foods such as sweets as unnecessary products, and when the user is relaxed, it recommends healthy foods.
このシステムの実現には、以下のハードウェアおよびソフトウェアが使用される。 The following hardware and software are used to implement this system:
ハードウェア: スマートフォン、タブレット、またはPC Hardware: Smartphone, tablet, or PC
ソフトウェア: Python、EmotionRecognizerライブラリ、FoodRecommenderライブラリ Software: Python, EmotionRecognizer library, FoodRecommender library
サーバは、ユーザが入力した身長、体重、ダイエット目標のデータを受け取り、EmotionRecognizerライブラリを使用してユーザの感情をリアルタイムで認識する。次に、FoodRecommenderライブラリを使用して、ユーザの入力データと認識された感情に基づいて適切な食品を推薦する。 The server receives the user's input data such as height, weight, and diet goal, and uses the EmotionRecognizer library to recognize the user's emotions in real time. It then uses the FoodRecommender library to recommend appropriate foods based on the user's input data and the recognized emotions.
例えば、ユーザが身長170cm、体重65kg、ダイエット目標が「体重を減らす」と入力し、感情エンジンがユーザがストレスを感じていると認識した場合、システムは不健康な食品(例えば、甘いお菓子)を避け、代わりに健康的な食品(例えば、サラダやフルーツ)を推薦する。 For example, if a user enters their height as 170cm, weight as 65kg, and diet goal as "lose weight," and the emotion engine recognizes that the user is feeling stressed, the system will avoid unhealthy foods (e.g., sweet snacks) and instead recommend healthy foods (e.g., salads and fruit).
プロンプト文の例としては、以下のようなものがある。 Examples of prompt statements include:
「ユーザが身長170cm、体重65kg、ダイエット目標が『体重を減らす』と入力し、感情エンジンがユーザがストレスを感じていると認識した場合、どのような食品を推薦しますか?」 "If a user is 170cm tall, weighs 65kg, and their diet goal is to lose weight, and the emotion engine determines that the user is feeling stressed, what foods would you recommend?"
このようにして、ユーザの健康状態や感情に基づいた食品の推薦が可能となり、ユーザがストレスを感じているときに不健康な食品を避け、ダイエット目標に沿った食品を選ぶことができるようになる。 In this way, food recommendations can be made based on the user's health status and emotions, helping users avoid unhealthy foods when they are stressed and choosing foods that align with their diet goals.
応用例1における特定処理の流れについて図18を用いて説明する。 The flow of the specific processing in Application Example 1 is explained using Figure 18.
ステップ1: Step 1:
ユーザが端末を使用して、身長、体重、ダイエット目標を入力する。入力されたデータは、サーバに送信される。入力データには、ユーザの身長(例:170cm)、体重(例:65kg)、ダイエット目標(例:「体重を減らす」)が含まれる。 The user uses the terminal to input their height, weight, and diet goal. The input data is sent to the server. The input data includes the user's height (e.g., 170 cm), weight (e.g., 65 kg), and diet goal (e.g., "lose weight").
ステップ2: Step 2:
サーバは、受信したユーザの入力データを保存し、EmotionRecognizerライブラリを使用してユーザの感情をリアルタイムで認識する。感情認識のために、ユーザの表情や音声データが入力として使用される。出力として、ユーザの感情状態(例:ストレス、リラックス)が得られる。 The server stores the received user input data and uses the EmotionRecognizer library to recognize the user's emotions in real time. For emotion recognition, the user's facial expressions and voice data are used as input. The output is the user's emotional state (e.g., stressed, relaxed).
ステップ3: Step 3:
サーバは、認識された感情状態とユーザの入力データを基に、FoodRecommenderライブラリを使用して適切な食品を推薦する。入力データには、ユーザの身長、体重、ダイエット目標、および感情状態が含まれる。出力として、推薦される食品のリスト(例:サラダ、フルーツ)が得られる。 The server uses the FoodRecommender library to recommend appropriate foods based on the recognized emotional state and user input data. Input data includes the user's height, weight, diet goals, and emotional state. The output is a list of recommended foods (e.g., salads, fruits).
ステップ4: Step 4:
サーバは、推薦された食品のリストをユーザの端末に送信する。ユーザは、端末上で推薦された食品のリストを確認することができる。具体的な動作として、ユーザがストレスを感じている場合には不健康な食品を避け、健康的な食品を推薦する。 The server sends a list of recommended foods to the user's device, where the user can check the list of recommended foods on their device. Specifically, if the user is feeling stressed, unhealthy foods will be avoided and healthy foods will be recommended.
ステップ5: Step 5:
ユーザが買い物を行い、購入レシートを端末を使用してサーバに提出する。サーバは、提出されたレシートデータを解析し、購入された商品のリストを生成する。入力データには、レシートの画像または電子データが含まれる。出力として、購入された商品のリストが得られる。 A user makes a purchase and submits the purchase receipt to the server using a terminal. The server analyzes the submitted receipt data and generates a list of the purchased items. Input data includes receipt images or electronic data. The output is a list of the purchased items.
ステップ6: Step 6:
サーバは、購入された商品のリストとユーザのダイエット目標および感情状態を比較し、不要な商品を判断する。具体的な動作として、ユーザの目標に対して不適切な商品(例:甘いお菓子)を検出する。入力データには、購入された商品のリスト、ユーザのダイエット目標、および感情状態が含まれる。出力として、不要な商品のリストが得られる。 The server compares the list of purchased items with the user's diet goals and emotional state to determine which items are unnecessary. Specific operations include detecting items that are inappropriate for the user's goals (e.g., sweet snacks). Input data includes the list of purchased items, the user's diet goals, and their emotional state. The output is a list of unnecessary items.
ステップ7: Step 7:
サーバは、不要な商品を購入しなかった場合に節約できるお金と減る体重を計算し、可視化する。具体的な動作として、節約できる金額と減少した体重をグラフィカルに表示する。入力データには、不要な商品のリストが含まれる。出力として、節約できる金額と減少した体重のグラフィカル表示が得られる。 The server calculates and visualizes the money saved and weight lost if unnecessary items are not purchased. Specific operations include graphically displaying the amount saved and weight lost. The input data includes a list of unnecessary items. The output is a graphical representation of the amount saved and weight lost.
ステップ8: Step 8:
サーバは、可視化されたデータをユーザの端末に送信する。ユーザは、端末上で節約できる金額と減少した体重を確認することができる。具体的な動作として、ユーザが不要な商品を避けることで得られるメリットを視覚的に理解することができる。 The server sends the visualized data to the user's device, where the user can check the amount of money saved and the weight lost on the device. Specifically, the user can visually understand the benefits they can gain by avoiding unnecessary products.
(実施例2) (Example 2)
次に、形態例2の実施例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
従来の健康管理システムでは、顧客が買い物後に購入証明書を提出する際に、物理的な証明書を直接提出する必要があり、手間がかかるという問題があった。また、顧客の感情状態を考慮した節約金額や体重減少量の可視化が行われておらず、顧客が自身の感情と健康管理、節約の関係を理解するのが難しいという課題があった。 With conventional health management systems, customers had to submit physical proof of purchase after shopping, which was time-consuming. Furthermore, the amount of savings and weight loss were not visualized taking into account the customer's emotional state, making it difficult for customers to understand the relationship between their emotions, health management, and savings.
実施例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身体情報と目標を記入する手段と、顧客が買い物後に購入証明書を提出する手段と、顧客が携帯端末の撮影機能を用いて購入証明書の画像を取得し、アプリケーションにアップロードする手段と、サーバが画像処理技術を用いて購入証明書の内容をテキストデータに変換する手段と、サーバが変換されたテキストデータを保存する手段と、顧客が感情データを入力する手段と、サーバが感情解析技術を用いて顧客の感情データを解析する手段と、サーバが解析結果に基づいて不要な商品を判断し、節約できる金額と減少した体重を計算する手段と、サーバが計算結果をグラフィカルに表示する手段を含む。これにより、顧客は物理的な証明書を直接提出することなく、購入情報をシステムに伝えることが可能となり、さらに自身の感情と健康管理、節約の関係を視覚的に理解することが可能となる。 In this invention, the server includes means for the customer to enter their current physical information and goals, means for the customer to submit a proof of purchase after shopping, means for the customer to capture an image of the proof of purchase using the camera function of their mobile device and upload it to the application, means for the server to convert the contents of the proof of purchase into text data using image processing technology, means for the server to save the converted text data, means for the customer to input emotional data, means for the server to analyze the customer's emotional data using emotion analysis technology, means for the server to determine unnecessary products based on the analysis results and calculate the amount of savings and weight loss, and means for the server to graphically display the calculation results. This allows customers to communicate their purchase information to the system without having to directly submit a physical proof of purchase, and further enables them to visually understand the relationship between their emotions, health management, and savings.
「顧客」とは、システムを利用して自身の健康管理や節約を行う個人を指す。 "Customer" refers to an individual who uses the system to manage their own health and save money.
「身体情報」とは、顧客の身長、体重、体脂肪率などの身体的なデータを指す。 "Physical information" refers to physical data such as the customer's height, weight, and body fat percentage.
「目標」とは、顧客が達成したい健康状態や節約目標を指す。 "Goals" refers to the health or savings goals the customer wants to achieve.
「購入証明書」とは、顧客が買い物後に受け取るレシートや領収書などの購入を証明する文書を指す。 "Proof of purchase" refers to a document that proves a purchase, such as a receipt or invoice that a customer receives after shopping.
「携帯端末」とは、スマートフォンやタブレットなどの携帯可能な電子機器を指す。 "Mobile device" refers to portable electronic devices such as smartphones and tablets.
「撮影機能」とは、携帯端末に搭載されたカメラ機能を指す。 "Photography function" refers to the camera function built into the mobile device.
「アプリケーション」とは、携帯端末上で動作するソフトウェアプログラムを指す。 "Application" refers to a software program that runs on a mobile device.
「画像処理技術」とは、画像データを解析し、必要な情報を抽出する技術を指す。 "Image processing technology" refers to the technology of analyzing image data and extracting necessary information.
「テキストデータ」とは、画像処理技術によって抽出された文字情報を指す。 "Text data" refers to text information extracted using image processing technology.
「感情データ」とは、顧客の感情状態を示すデータを指す。 "Emotional data" refers to data that indicates a customer's emotional state.
「感情解析技術」とは、感情データを解析し、顧客の感情状態を評価する技術を指す。 "Emotion analysis technology" refers to technology that analyzes emotional data and evaluates a customer's emotional state.
「不要な商品」とは、顧客の健康目標や節約目標に対して購入する必要がないと判断された商品を指す。 "Unnecessary products" refer to products that are determined not to be necessary for the customer's health or savings goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Amount saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減少した体重」とは、不要な商品を購入しなかった場合に減少する可能性のある体重を指す。 "Weight lost" refers to the weight you would lose if you had not purchased unnecessary items.
「グラフィカルに表示する」とは、計算結果を視覚的にわかりやすく表示することを指す。 "Displaying graphically" refers to displaying the calculation results in a visually easy-to-understand manner.
発明を実施するための形態 Form for implementing the invention
この発明は、顧客が買い物後に購入証明書を提出し、感情データを基に節約金額と体重減少量を可視化するシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system in which customers submit a purchase certificate after shopping and visualize the amount of savings and weight loss based on emotional data. A specific embodiment of this system is described below.
システムの構成 System Configuration
このシステムは、主に以下のハードウェアおよびソフトウェアを用いる: This system primarily uses the following hardware and software:
携帯端末(スマートフォンやタブレット) Mobile devices (smartphones and tablets)
カメラ機能 Camera function
アプリケーション application
サーバ Server
画像処理ソフトウェア(例:OpenCV、Tesseract) Image processing software (e.g., OpenCV, Tesseract)
感情解析技術 Emotion analysis technology
プログラムの処理 Program processing
ユーザは、買い物後に携帯端末のカメラ機能を使用して購入証明書の画像を撮影する。撮影した画像は、アプリケーションを通じてサーバにアップロードされる。サーバは、画像処理ソフトウェア(例えば、OpenCVやTesseract)を用いて画像内のテキストを抽出し、購入商品の名前、価格、数量などの情報をテキストデータに変換する。このテキストデータは、サーバによってデータベースに保存される。 After shopping, the user uses the camera function on their mobile device to take a picture of the purchase certificate. The image is then uploaded to the server via the application. The server then uses image processing software (e.g., OpenCV or Tesseract) to extract text from the image and convert information such as the name, price, and quantity of the purchased item into text data. The server then stores this text data in a database.
次に、ユーザはアプリケーションを通じて自身の感情データを入力する。感情データは、ユーザが手動で入力する場合もあれば、ウェアラブルデバイスから自動的に取得される場合もある。サーバは、感情解析技術を用いて感情データを解析し、ユーザがストレスを感じているかどうか、どの程度のストレスを感じているかを評価する。 Next, the user enters their emotional data through the application. The emotional data may be entered manually by the user or automatically obtained from the wearable device. The server then analyzes the emotional data using emotion analysis technology to assess whether the user is feeling stressed and to what extent.
サーバは、感情解析の結果を基に、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算する。例えば、ユーザがストレスを感じているときにチョコレートを買わなかった場合、その価格(200円)とカロリー(300kcal)を基に計算する。計算結果は、サーバによってグラフィカルに表示され、ユーザはアプリケーションを通じて確認することができる。 Based on the results of the emotion analysis, the server calculates the amount of money saved and the amount of weight lost if the user refrains from buying unnecessary items when feeling stressed. For example, if the user refrains from buying chocolate when feeling stressed, the calculation is based on the price (200 yen) and calories (300 kcal). The calculation results are displayed graphically by the server, and the user can check them through the application.
具体例 Specific examples
具体例として、ユーザがストレスを感じているときにチョコレートを買わなかった場合を考える。ユーザは、スマートフォンのカメラでレシートを撮影し、アプリケーションにアップロードする。サーバは、画像処理ソフトウェアを用いてレシートの内容をテキストデータに変換し、データベースに保存する。次に、ユーザが感情データをアプリケーションに入力し、サーバが感情解析技術を用いて解析する。解析結果を基に、サーバはチョコレートの価格(200円)とカロリー(300kcal)を基に節約金額と体重減少量を計算する。最後に、サーバは計算結果をグラフィカルに表示し、ユーザはアプリケーションを通じて確認することができる。 As a concrete example, consider the case where a user decides not to buy chocolate when they are feeling stressed. The user takes a photo of the receipt with their smartphone camera and uploads it to the application. The server uses image processing software to convert the contents of the receipt into text data and stores it in a database. Next, the user enters emotional data into the application, which the server analyzes using emotion analysis technology. Based on the analysis results, the server calculates the amount of savings and weight loss based on the price of the chocolate (200 yen) and calories (300 kcal). Finally, the server displays the calculation results graphically, and the user can check them through the application.
プロンプト文の例 Example prompt
生成AIモデルへ入力するプロンプト文の例: Example of a prompt to input to a generative AI model:
「ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算し、グラフィカルに表示するプログラムを生成してください。」 "Generate a program that calculates and graphically displays the amount of money saved and weight loss a user would achieve if they avoided buying unnecessary items when they were feeling stressed."
このようにして、ユーザは自身の感情と健康管理、節約の関係を視覚的に理解することができる。 In this way, users can visually understand the relationship between their emotions, health management, and saving money.
実施例2における特定処理の流れについて図19を用いて説明する。 The flow of the identification process in Example 2 will be explained using Figure 19.
ステップ1: Step 1:
ユーザがスマートフォンのカメラで購入証明書を撮影する。 The user takes a photo of the purchase certificate using their smartphone camera.
入力:購入証明書 Enter: Proof of purchase
出力:購入証明書の画像 Output: Image of proof of purchase
具体的な動作:ユーザは、スマートフォンのカメラを起動し、購入証明書をフレーム内に収めて撮影ボタンを押す。撮影された画像はスマートフォンのギャラリーに保存される。 Specific operation: The user activates the smartphone camera, frames the purchase certificate, and presses the capture button. The captured image is saved to the smartphone's gallery.
ステップ2: Step 2:
端末が撮影した購入証明書の画像をアプリケーションにアップロードする。 Upload the image of the purchase certificate taken by the device to the application.
入力:購入証明書の画像 Input: Image of proof of purchase
出力:サーバに送信された画像データ Output: Image data sent to the server
具体的な動作:ユーザは、アプリケーションを起動し、購入証明書の画像を選択してアップロードボタンを押す。端末は、選択された画像をサーバに送信する。 Specific operation: The user launches the application, selects an image of the purchase certificate, and presses the upload button. The device then sends the selected image to the server.
ステップ3: Step 3:
サーバが画像処理技術を用いて購入証明書の内容をテキストデータに変換する。 The server uses image processing technology to convert the contents of the purchase certificate into text data.
入力:購入証明書の画像データ Input: Image data of purchase certificate
出力:テキストデータ Output: Text data
具体的な動作:サーバは、受信した画像データを画像処理ソフトウェア(例:OpenCV、Tesseract)を用いて解析し、画像内の文字情報を抽出する。抽出された文字情報は、購入商品の名前、価格、数量などのテキストデータに変換される。 Specific operation: The server analyzes the received image data using image processing software (e.g., OpenCV, Tesseract) and extracts text information from the image. The extracted text information is converted into text data such as the name, price, and quantity of the purchased item.
ステップ4: Step 4:
サーバが変換されたテキストデータをデータベースに保存する。 The server stores the converted text data in a database.
入力:テキストデータ Input: Text data
出力:データベースに保存された購入情報 Output: Purchase information stored in the database
具体的な動作:サーバは、変換されたテキストデータをデータベースに保存する。保存されるデータには、購入日時、店舗名、商品情報などが含まれる。 Specific operation: The server saves the converted text data in a database. The saved data includes the purchase date and time, store name, product information, etc.
ステップ5: Step 5:
ユーザが感情データをアプリケーションに入力する。 The user inputs emotional data into the application.
入力:感情データ Input: Emotion data
出力:サーバに送信された感情データ Output: Emotion data sent to the server
具体的な動作:ユーザは、アプリケーションを通じて自身の感情状態を入力する。感情データは、ストレスレベルや気分などの情報を含む。また、ウェアラブルデバイスから自動的に取得される場合もある。 Specific operation: The user inputs their emotional state through the application. Emotional data includes information such as stress level and mood. It may also be obtained automatically from the wearable device.
ステップ6: Step 6:
サーバが感情解析技術を用いてユーザの感情データを解析する。 The server analyzes the user's emotional data using emotion analysis technology.
入力:感情データ Input: Emotion data
出力:解析結果 Output: Analysis results
具体的な動作:サーバは、感情解析技術を用いて感情データを解析し、ユーザがストレスを感じているかどうか、どの程度のストレスを感じているかを評価する。解析結果は、数値やグラフとして表現される。 Specific operation: The server uses emotion analysis technology to analyze emotional data and evaluate whether the user is feeling stressed and to what extent. The analysis results are displayed as numbers and graphs.
ステップ7: Step 7:
サーバが解析結果に基づいて不要な商品を判断し、節約できる金額と減少した体重を計算する。 The server determines which items are unnecessary based on the analysis results and calculates the amount of money saved and the weight lost.
入力:解析結果、テキストデータ Input: Analysis results, text data
出力:節約金額と減少した体重のデータ Output: Savings and weight loss data
具体的な動作:サーバは、感情解析の結果と購入情報を基に、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算する。例えば、チョコレートの価格(200円)とカロリー(300kcal)を基に計算する。 Specific operation: Based on the results of emotion analysis and purchase information, the server calculates the amount of money saved and the amount of weight lost if the user does not buy unnecessary items when feeling stressed. For example, the calculation is based on the price (200 yen) and calories (300 kcal) of chocolate.
ステップ8: Step 8:
サーバが計算結果をグラフィカルに表示する。 The server displays the calculation results graphically.
入力:節約金額と減少した体重のデータ Input: Savings and weight loss data
出力:グラフィカルな表示 Output: Graphical display
具体的な動作:サーバは、計算結果をグラフィカルに表示するためのデータを生成し、アプリケーションを通じてユーザに提供する。ユーザは、アプリケーションを通じて節約金額と体重減少量を視覚的に確認することができる。 Specific operation: The server generates data for graphically displaying the calculation results and provides it to the user through the application. The user can visually check the amount of savings and weight loss through the application.
(応用例2) (Application Example 2)
次に、形態例2の応用例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Application Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
従来の買い物支援システムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかるという問題があった。また、顧客の感情や健康状態を考慮した買い物支援が行われておらず、ストレスを感じているときに不要な商品を購入してしまうことが多かった。これにより、無駄な出費や健康への悪影響が生じることが課題であった。 Conventional shopping support systems required customers to physically submit receipts for purchased items, which was a time-consuming process. Furthermore, the shopping support did not take into account the customer's emotions or health status, leading to unnecessary purchases when they were feeling stressed. This led to wasteful spending and negative health effects, which was an issue.
応用例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートをスマートフォンのカメラを用いて撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を分析し、ストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量をグラフィカルに表示する手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、感情や健康状態を考慮した買い物支援が可能となる。 In this invention, the server includes: a means for the customer to enter their current height and weight and goals; a means for the customer to take a photo of their purchase receipt using their smartphone camera after shopping and upload it to the application; a means for correcting items that are determined to be unnecessary in this purchase; a means for visualizing the money saved and weight lost if the customer does not buy unnecessary items; and a means for analyzing the customer's emotions and graphically displaying the amount of money saved and weight lost if the customer does not buy unnecessary items when they are feeling stressed. This saves the customer the trouble of submitting physical receipts, and enables shopping support that takes their emotions and health state into consideration.
「顧客」とは、商品やサービスを購入する消費者である。 "Customer" refers to a consumer who purchases goods or services.
「身長体重」とは、顧客の身体の高さと体重の数値である。 "Height and Weight" refers to the customer's physical height and weight.
「目標」とは、顧客が達成したい具体的な数値や状態を指す。 "Goal" refers to the specific numerical value or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される購入証明書である。 A "purchase receipt" is a proof of purchase issued when a customer purchases a product.
「スマートフォンのカメラ」とは、スマートフォンに内蔵されている撮影装置である。 A "smartphone camera" is a photographic device built into a smartphone.
「アプリケーション」とは、スマートフォンや他のデバイスで動作するソフトウェアプログラムである。 An "application" is a software program that runs on a smartphone or other device.
「アップロード」とは、データをローカルデバイスからサーバやクラウドに転送する行為である。 "Uploading" is the act of transferring data from a local device to a server or cloud.
「添削」とは、内容を確認し、不要な部分を修正または削除する行為である。 "Correction" is the act of checking the content and correcting or deleting unnecessary parts.
「不要商品」とは、顧客が購入する必要がないと判断された商品である。 "Unnecessary items" are items that customers have determined they do not need to purchase.
「節約できるお金」とは、不要商品を購入しなかった場合に節約できる金額である。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要商品を購入しなかった結果として減少した体重である。 "Weight lost" refers to the weight lost as a result of not purchasing unnecessary items.
「可視化」とは、データや情報を視覚的に表示する行為である。 "Visualization" is the act of visually displaying data or information.
「感情を分析」とは、顧客の感情状態を評価し、理解するプロセスである。 "Analyzing emotions" is the process of assessing and understanding a customer's emotional state.
「ストレス」とは、精神的または肉体的な緊張や負担を指す。 "Stress" refers to mental or physical tension or strain.
「グラフィカルに表示」とは、情報をグラフや図表などの視覚的な形式で表示することである。 "Graphically displayed" means displaying information in a visual format such as a graph or chart.
この発明は、顧客が買い物後に購入レシートをスマートフォンのカメラを用いて撮影し、アプリケーションにアップロードするシステムを提供するものである。さらに、顧客の感情を分析し、ストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量をグラフィカルに表示する機能を含む。 This invention provides a system that allows customers to take a photo of their purchase receipt using their smartphone camera after shopping and upload it to an application. It also includes a function that analyzes the customer's emotions and graphically displays the amount of money saved and the amount of weight lost if they avoid buying unnecessary items when they are feeling stressed.
システムの構成 System Configuration
1. ハードウェア: 1. Hardware:
スマートフォン: カメラ機能を用いて購入レシートを撮影する。 Smartphone: Use the camera function to take a photo of your purchase receipt.
サーバ: アプリケーションのバックエンドとして機能し、データの保存と処理を行う。 Server: Serves as the backend for the application, storing and processing data.
2. ソフトウェア: 2. Software:
アプリケーション: スマートフォンにインストールされ、レシートの撮影、アップロード、感情分析、グラフィカル表示を行う。 Application: Installed on a smartphone, it takes photos of receipts, uploads them, performs sentiment analysis, and displays them graphically.
OpenCV: レシート画像の読み込みと前処理を行うライブラリ。 OpenCV: A library for loading and preprocessing receipt images.
Tesseract OCR: レシート画像からテキストを抽出するための光学文字認識ソフトウェア。 Tesseract OCR: Optical character recognition software for extracting text from receipt images.
EmotionRecognizer: 顧客の感情を分析するための感情認識ソフトウェア。 EmotionRecognizer: Emotion recognition software for analyzing customer emotions.
Matplotlib: 節約金額と体重減少量をグラフィカルに表示するためのライブラリ。 Matplotlib: A library for graphically displaying savings and weight loss.
システムの動作 System Operation
1. レシート撮影とアップロード: 1. Take a photo of your receipt and upload it:
ユーザはスマートフォンのカメラを使って購入レシートを撮影する。 Users take a photo of their purchase receipt using their smartphone camera.
撮影した画像はアプリケーションを通じてサーバにアップロードされる。 The captured images are uploaded to the server via the application.
2. テキスト抽出: 2. Text extraction:
サーバはOpenCVを用いて画像を前処理し、Tesseract OCRを使ってレシートからテキストを抽出する。 The server preprocesses the image using OpenCV and extracts text from the receipt using Tesseract OCR.
3. 感情分析: 3. Sentiment analysis:
サーバはEmotionRecognizerを用いてユーザの感情を分析する。 The server analyzes the user's emotions using EmotionRecognizer.
ストレスを感じている場合、不要な商品を買わなかった場合の節約金額と体重減少量を計算する。 When you're feeling stressed, calculate how much money you'll save and how much weight you'll lose if you don't buy unnecessary items.
4. グラフィカル表示: 4. Graphical display:
サーバはMatplotlibを用いて節約金額と体重減少量をグラフィカルに表示するデータを生成し、アプリケーションに送信する。 The server uses Matplotlib to generate data that graphically displays the savings and weight loss, and sends it to the application.
アプリケーションはこれをユーザに視覚的に表示する。 The application will display this visually to the user.
具体例 Specific examples
例えば、ユーザがストレスを感じているときに不要な商品を買わなかった場合、アプリケーションは1000円の節約と0.5kgの体重減少をグラフィカルに表示する。 For example, if a user avoids buying unnecessary items when feeling stressed, the application will graphically display a savings of 1,000 yen and a weight loss of 0.5 kg.
プロンプト文の例 Example prompt
ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算し、グラフィカルに表示するプログラムを作成してください。レシート画像をスマートフォンのカメラで撮影し、Tesseract OCRでテキストを抽出します。EmotionRecognizerを使ってユーザの感情を分析し、Matplotlibで結果を表示します。 Create a program that calculates and graphically displays the savings and weight loss that a user could achieve by not purchasing unnecessary items when they are feeling stressed. Take a photo of the receipt with a smartphone camera and extract the text using Tesseract OCR. Analyze the user's emotions using EmotionRecognizer and display the results using Matplotlib.
応用例2における特定処理の流れについて図20を用いて説明する。 The flow of the specific processing in Application Example 2 is explained using Figure 20.
ステップ1: Step 1:
ユーザはスマートフォンのカメラを使って購入レシートを撮影する。 Users take a photo of their purchase receipt using their smartphone camera.
入力: 購入レシートの物理的な画像 Input: Physical image of purchase receipt
出力: スマートフォンに保存されたレシート画像 Output: Receipt image saved on your smartphone
具体的な動作: ユーザはスマートフォンのカメラアプリを起動し、購入レシートを撮影する。撮影された画像はスマートフォンのストレージに保存される。 Specific operation: The user launches the smartphone's camera app and takes a photo of the purchase receipt. The captured image is saved to the smartphone's storage.
ステップ2: Step 2:
端末は撮影したレシート画像をアプリケーションにアップロードする。 The device will upload the captured receipt image to the application.
入力: スマートフォンに保存されたレシート画像 Input: Receipt image saved on your smartphone
出力: サーバにアップロードされたレシート画像 Output: Receipt image uploaded to the server
具体的な動作: ユーザはアプリケーションを起動し、撮影したレシート画像を選択してアップロードボタンを押す。画像はインターネットを通じてサーバに送信される。 Specific operation: The user launches the application, selects the captured receipt image, and presses the upload button. The image is sent to the server via the Internet.
ステップ3: Step 3:
サーバはOpenCVを用いてレシート画像を前処理し、Tesseract OCRでテキストを抽出する。 The server preprocesses the receipt image using OpenCV and extracts text using Tesseract OCR.
入力: サーバにアップロードされたレシート画像 Input: Receipt image uploaded to the server
出力: 抽出されたテキストデータ Output: Extracted text data
具体的な動作: サーバはOpenCVを使って画像のノイズを除去し、テキスト部分を強調する。次に、Tesseract OCRを用いて画像からテキストを抽出する。 Specific operation: The server uses OpenCV to remove noise from the image and highlight the text. Then, it uses Tesseract OCR to extract the text from the image.
ステップ4: Step 4:
サーバはEmotionRecognizerを用いてユーザの感情を分析する。 The server analyzes the user's emotions using EmotionRecognizer.
入力: ユーザの感情データ(例えば、ユーザがアプリケーションに入力した感情状態) Input: User emotional data (e.g., the emotional state the user enters into the application)
出力: 分析された感情状態 Output: Analyzed emotional state
具体的な動作: サーバはEmotionRecognizerを使ってユーザの感情データを解析し、ストレス状態かどうかを判断する。 Specific operation: The server uses EmotionRecognizer to analyze the user's emotional data and determine whether they are under stress.
ステップ5: Step 5:
サーバはストレスを感じている場合、不要な商品を買わなかった場合の節約金額と体重減少量を計算する。 When you feel stressed, the server calculates the amount of money you would save and the amount of weight you would lose if you didn't buy unnecessary items.
入力: 分析された感情状態、抽出されたテキストデータ Input: Analyzed emotional state, extracted text data
出力: 節約金額と体重減少量のデータ Output: Savings and weight loss data
具体的な動作: サーバは感情状態がストレスである場合、抽出されたテキストデータから不要な商品を特定し、それを買わなかった場合の節約金額と体重減少量を計算する。 Specific operation: If the emotional state is stressed, the server identifies unnecessary items from the extracted text data and calculates the amount of savings and weight loss that would result if the item were not purchased.
ステップ6: Step 6:
サーバはMatplotlibを用いて節約金額と体重減少量をグラフィカルに表示するデータを生成し、アプリケーションに送信する。 The server uses Matplotlib to generate data that graphically displays the savings and weight loss, and sends it to the application.
入力: 節約金額と体重減少量のデータ Input: Savings and weight loss data
出力: グラフィカルに表示するための画像データ Output: Image data for graphical display
具体的な動作: サーバはMatplotlibを使って節約金額と体重減少量を棒グラフなどの形式で視覚的に表示する画像を生成し、その画像データをアプリケーションに送信する。 Specific operation: The server uses Matplotlib to generate images that visually display the amount of savings and weight loss in the form of bar graphs, etc., and sends the image data to the application.
ステップ7: Step 7:
端末はサーバから受け取ったグラフィカルなデータをユーザに表示する。 The terminal displays the graphical data received from the server to the user.
入力: サーバから送信されたグラフィカルな画像データ Input: Graphical image data sent from the server
出力: スマートフォンの画面に表示されたグラフィカルな情報 Output: Graphical information displayed on a smartphone screen
具体的な動作: アプリケーションはサーバから受け取った画像データをスマートフォンの画面に表示し、ユーザが視覚的に節約金額と体重減少量を確認できるようにする。 Specific operation: The application displays the image data received from the server on the smartphone screen, allowing the user to visually check the amount of savings and weight loss.
(実施例3) (Example 3)
次に、形態例3の実施例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
現代の消費者は、健康管理と節約の両立を目指しているが、日常の買い物において不要な商品を購入してしまうことが多い。このような不要な商品は、健康目標に反するだけでなく、無駄な出費を引き起こす原因となる。しかし、消費者自身がこれらの不要な商品を特定し、購入を避けることは容易ではない。したがって、消費者が自身の健康目標に基づいて不要な商品を自動的に検出し、節約できる金額と健康への影響を可視化するシステムが求められている Today's consumers aim to balance health management with saving money, but they often end up buying unnecessary products in their daily shopping. These unnecessary products not only go against their health goals but also lead to wasteful spending. However, it is not easy for consumers to identify and avoid these unnecessary products. Therefore, there is a need for a system that automatically detects unnecessary products based on consumers' health goals and visualizes the savings and health impact.
実施例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を入力する手段と、顧客が買い物後に購入レシートの画像をアップロードする手段と、レシート画像を光学文字認識技術を用いてデジタルデータに変換する手段と、デジタルデータから商品情報を解析し、不要な商品を検出する手段と、不要商品の合計金額と推定体重減少量を計算する手段と、計算結果をグラフやチャートで可視化する手段を含む。これにより、消費者は自身の健康目標に基づいて不要な商品を自動的に検出し、節約できる金額と健康への影響を具体的に把握することが可能となる。 In this invention, the server includes means for customers to input their current height and weight and goals, means for customers to upload an image of their purchase receipt after shopping, means for converting the receipt image into digital data using optical character recognition technology, means for analyzing product information from the digital data and detecting unnecessary products, means for calculating the total price of unnecessary products and estimated weight loss, and means for visualizing the calculation results in graphs and charts. This allows consumers to automatically detect unnecessary products based on their own health goals and specifically understand the amount of money they can save and the impact on their health.
「顧客」とは、システムを利用して自身の健康管理と節約を目指す消費者である。 "Customers" are consumers who use the system to manage their own health and save money.
「身長体重」とは、顧客の身体的な基本データであり、健康目標を設定するための基礎情報である。 "Height and weight" refers to the customer's basic physical data and is fundamental information for setting health goals.
「目標」とは、顧客が達成したい健康状態や体重管理の目標であり、例えば糖質制限やカロリー制限などが含まれる。 "Goals" refer to the health and weight management goals that a customer wishes to achieve, such as carbohydrate restriction or calorie restriction.
「レシートの画像」とは、顧客が買い物後に取得する購入明細書の写真データである。 "Receipt image" refers to photo data of the purchase details that a customer obtains after shopping.
「光学文字認識技術」とは、画像内の文字情報をデジタルデータに変換する技術であり、OCR(Optical Character Recognition)とも呼ばれる。 "Optical character recognition technology" is a technology that converts text information in an image into digital data, and is also known as OCR (Optical Character Recognition).
「デジタルデータ」とは、光学文字認識技術を用いて変換されたテキスト情報である。 "Digital data" means text information converted using optical character recognition technology.
「商品情報」とは、レシートに記載された商品の名称や価格、栄養情報などのデータである。 "Product information" refers to data such as the product name, price, and nutritional information listed on the receipt.
「不要な商品」とは、顧客の健康目標に反する商品であり、購入を避けるべきものである。 "Unnecessary products" are products that are contrary to the customer's health goals and should be avoided.
「合計金額」とは、検出された不要な商品の総価格である。 "Total amount" is the total price of the unwanted items detected.
「推定体重減少量」とは、不要な商品を摂取しなかった場合に予測される体重の減少量である。 "Estimated weight loss" is the amount of weight loss predicted if the unnecessary product was not consumed.
「グラフやチャート」とは、計算結果を視覚的に表示するための図表である。 "Graphs and charts" are diagrams that visually display calculation results.
この発明は、消費者が自身の健康管理と節約を効率的に行うためのシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system that allows consumers to efficiently manage their own health and save money. Specific embodiments of this system are described below.
まず、ユーザは端末を使用してシステムのウェブページにアクセスする。ユーザは自身の身長、体重、および健康目標(例:糖質制限)を入力する。これらのデータは、サーバに送信され、データベースに保存される。 First, the user accesses the system's web page using a terminal. The user enters their height, weight, and health goals (e.g., carbohydrate restriction). This data is sent to the server and stored in a database.
次に、ユーザは買い物後に取得したレシートの画像を端末からシステムにアップロードする。アップロードされたレシート画像は、サーバに送信される。サーバは、Google Cloud Vision APIなどの光学文字認識技術を使用して、レシート画像をデジタルデータに変換する。このデジタルデータには、レシート上のテキスト情報が含まれている。 Next, the user uploads an image of the receipt obtained after shopping from their device to the system. The uploaded receipt image is sent to the server, which then uses optical character recognition technology such as Google Cloud Vision API to convert the receipt image into digital data. This digital data includes the text information on the receipt.
サーバは、変換されたデジタルデータを解析し、商品名とその栄養情報を抽出する。例えば、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が糖質制限の目標に反するため、不要な商品としてリストアップする。 The server analyzes the converted digital data and extracts product names and their nutritional information. For example, if the receipt includes "bread" or "sweets," these items are listed as unnecessary because they go against the goal of carbohydrate restriction.
次に、サーバは不要な商品の合計金額を計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、標準的なカロリー消費モデルを使用する。計算結果は、D3.jsなどのデータ可視化ライブラリを使用してグラフやチャートとして可視化される。 The server then calculates the total cost of the unnecessary items, as well as the estimated weight loss that would occur if these items were not consumed. A standard calorie expenditure model is used to calculate weight loss. The results are visualized as graphs and charts using a data visualization library such as D3.js.
ユーザは端末を使用して、サーバから送信されたグラフやチャートを確認する。これにより、ユーザは不要な商品を買わなかった場合の節約金額と体重減少量を視覚的に理解することができる。 The user uses their device to view the graphs and charts sent from the server, allowing them to visually understand how much money they could save and how much weight they could lose by not buying unnecessary items.
具体例として、ユーザがストレスを感じているときにチョコレートを購入した場合を考える。感情エンジンは、ユーザの感情状態を分析し、ストレスが高いと判断する。この場合、チョコレートを不要な商品として検出する。そして、チョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。これにより、ユーザはストレスを感じているときに不健康な食品を購入する傾向があることを認識し、その結果としての金銭的、健康的な影響を理解することができる。 As a concrete example, consider the case where a user purchases chocolate when feeling stressed. The emotion engine analyzes the user's emotional state and determines that stress is high. In this case, it detects chocolate as an unnecessary item and displays a graph of the amount of money saved and weight loss that would have been achieved if the user had not purchased the chocolate. This allows the user to recognize their tendency to purchase unhealthy foods when they are stressed and understand the resulting financial and health impacts.
プロンプト文の例: Example prompt:
ユーザがストレスを感じているときに購入した食品を検出し、その食品を買わなかった場合の節約金額と体重減少量を計算してグラフで表示してください。 Detect the foods the user purchases when they are stressed, calculate the amount of money saved and the weight loss they would have lost if they had not purchased those foods, and display the results in a graph.
このシステムにより、ユーザは自身の健康管理と節約の両方を具体的に把握することができる。実施例3における特定処理の流れについて図21を用いて説明する。 This system allows users to specifically understand both their own health management and savings. The flow of the identification process in Example 3 will be explained using Figure 21.
ステップ1: Step 1:
ユーザが身長、体重、目標を入力する。 Users enter their height, weight, and goals.
ユーザは端末を使用して、システムのウェブページにアクセスし、フォームに自身の身長(例:170cm)、体重(例:70kg)、および健康目標(例:糖質制限)を入力する。入力されたデータは、サーバに送信され、データベースに保存される。 Using a terminal, a user accesses the system's web page and enters their height (e.g., 170 cm), weight (e.g., 70 kg), and health goal (e.g., carbohydrate restriction) into the form. The entered data is sent to the server and stored in a database.
入力:身長、体重、健康目標 Input: height, weight, health goals
出力:データベースに保存されたユーザ情報 Output: User information stored in the database
ステップ2: Step 2:
ユーザがレシートの画像をアップロードする。 The user uploads an image of the receipt.
ユーザは端末を使用して、最近の買い物のレシート画像をシステムにアップロードする。アップロードされた画像は、サーバに送信される。 Users use their device to upload images of recent purchase receipts to the system. The uploaded images are then sent to the server.
入力:レシート画像 Input: Receipt image
出力:サーバに保存されたレシート画像 Output: Receipt image saved on the server
ステップ3: Step 3:
サーバがレシート画像をOCR処理する。 The server performs OCR processing on the receipt image.
サーバは、光学文字認識技術(OCR)を使用してレシート画像をデジタルデータに変換する。具体的には、Google Cloud Vision APIを呼び出してOCR処理を行う。 The server uses optical character recognition (OCR) technology to convert the receipt image into digital data. Specifically, it calls the Google Cloud Vision API to perform the OCR process.
入力:レシート画像 Input: Receipt image
出力:デジタルデータ(テキスト情報) Output: Digital data (text information)
ステップ4: Step 4:
サーバが商品情報を解析し、不要な商品を検出する。 The server analyzes product information and detects unnecessary products.
サーバは、OCR処理で得られたデジタルデータを解析し、商品名とその栄養情報を抽出する。例えば、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が糖質制限の目標に反するため、不要な商品としてリストアップする。 The server analyzes the digital data obtained through OCR processing and extracts product names and their nutritional information. For example, if a receipt includes "bread" or "sweets," these items are listed as unnecessary because they go against the goal of carbohydrate restriction.
入力:デジタルデータ(テキスト情報)、ユーザの健康目標 Input: Digital data (text information), user's health goals
出力:不要な商品のリスト Output: List of unwanted items
ステップ5: Step 5:
サーバが不要商品の合計金額と推定体重減少量を計算する。 The server calculates the total price of unwanted items and the estimated weight loss.
サーバは、検出された不要商品の合計金額を計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、標準的なカロリー消費モデルを使用する。 The server calculates the total value of the unwanted products detected, as well as the estimated weight loss that would occur if the user did not consume these products. A standard calorie expenditure model is used to calculate weight loss.
入力:不要な商品のリスト、商品価格、カロリー情報 Input: List of unwanted items, product price, calorie information
出力:合計金額、推定体重減少量 Output: Total amount, estimated weight loss
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化する。 The server visualizes the calculation results in graphs and charts.
サーバは、D3.jsなどのデータ可視化ライブラリを使用して、不要商品の合計金額と推定体重減少量をグラフやチャートとして生成する。 The server uses a data visualization library such as D3.js to generate graphs and charts showing the total price of unwanted items and estimated weight loss.
入力:合計金額、推定体重減少量 Input: Total amount, estimated weight loss
出力:グラフやチャート Output: Graphs and charts
ステップ7: Step 7:
ユーザが結果を確認する。 The user checks the results.
ユーザは端末を使用して、サーバから送信されたグラフやチャートを確認する。これにより、ユーザは不要な商品を買わなかった場合の節約金額と体重減少量を視覚的に理解することができる。 The user uses their device to view the graphs and charts sent from the server, allowing them to visually understand how much money they could save and how much weight they could lose by not buying unnecessary items.
入力:グラフやチャート Input: Graphs and charts
出力:ユーザの理解と認識 Output: User understanding and recognition
(応用例3) (Application Example 3)
次に、形態例3の応用例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマートデバイス14を「端末」と称する。 Next, we will explain Application Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart device 14 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を同時に行うことが求められているが、買い物の際にどの商品が不要であるかを判断するのは難しい。また、不要な商品を購入しなかった場合の具体的な節約金額や体重減少量を把握する手段が不足している。このため、消費者が健康的な選択をし、節約を実感できるシステムが求められている。 Today's consumers are expected to manage their health and save money at the same time, but it can be difficult to determine which products are unnecessary when shopping. Furthermore, there is a lack of ways to grasp the specific amount of savings or weight loss that can be achieved by not purchasing unnecessary items. For this reason, there is a need for a system that allows consumers to make healthy choices and realize the savings they are making.
応用例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、不要商品を検出し、節約金額と体重減少量を計算する手段と、検出結果をグラフで表示する手段と、を含む。これにより、消費者は買い物の際に不要な商品を簡単に特定し、健康管理と節約の両方を具体的に把握することが可能となる。 In this invention, the server includes means for customers to enter their current height and weight and goals, means for customers to submit purchase receipts after shopping, means for correcting items determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if unnecessary items are not purchased, means for detecting unnecessary items and calculating the amount saved and the amount of weight lost, and means for displaying the detection results in a graph. This allows consumers to easily identify unnecessary items when shopping and specifically understand both health management and savings.
「顧客」とは、システムを利用して買い物を行う消費者を指す。 "Customer" refers to a consumer who uses the system to make purchases.
「身長体重」とは、顧客の現在の身体の高さと体重を指す。 "Height and Weight" refers to the customer's current height and weight.
「目標」とは、顧客が達成したい健康やダイエットに関する具体的な目的を指す。 "Goals" refer to the specific health or diet objectives that the customer wants to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を示す紙または電子データを指す。 "Purchase receipt" refers to the paper or electronic data showing the purchase details of a product that a customer receives when making a purchase.
「不要な商品」とは、顧客の身長体重と目標に基づいて、買い物リストから除外すべきと判断される商品を指す。 "Unnecessary items" refer to items that should be removed from the shopping list based on the customer's height, weight, and goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss predicted if the unnecessary product is not consumed.
「可視化する手段」とは、節約できるお金と減る体重をグラフやチャートなどの視覚的な形式で表示する方法を指す。 "Visualization methods" refers to ways to display the money saved and weight lost in visual form, such as graphs or charts.
「検出する手段」とは、顧客の身長体重と目標に基づいて不要な商品を特定する方法を指す。 "Means of detection" refers to a method for identifying unwanted products based on the customer's height, weight, and goals.
「計算する手段」とは、不要な商品を買わなかった場合の節約金額と体重減少量を算出する方法を指す。 "Means of calculation" refers to a method for calculating the amount of money saved and weight loss that would be achieved by not purchasing unnecessary items.
「グラフで表示する手段」とは、検出結果を視覚的に理解しやすい形式で表示する方法を指す。 "Graphical display" refers to a method of displaying detection results in a visually easy-to-understand format.
この発明を実施するためのシステムは、顧客が現在の身長体重と目標を記入する手段、顧客が買い物後に購入レシートを提出する手段、今回の買い物で不要だと判断できる商品を添削する手段、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段、不要商品を検出し、節約金額と体重減少量を計算する手段、検出結果をグラフで表示する手段を含む。 A system for implementing this invention includes means for a customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if unnecessary items are not purchased, means for detecting unnecessary items and calculating the amount saved and weight lost, and means for displaying the detection results in a graph.
システムの構成 System Configuration
システムは、スマートフォンアプリケーションとして実装される。アプリケーションは、PythonとFlaskを使用して構築され、サーバ側でデータ処理を行う。スマートフォンは、ユーザが入力した身長体重と目標、及びレシートの情報をサーバに送信する。 The system is implemented as a smartphone application. The application is built using Python and Flask, and performs data processing on the server side. The smartphone sends the user's height, weight, and goals, as well as receipt information, to the server.
データ加工とデータ演算 Data processing and calculation
サーバは、ユーザから送信されたデータを受け取り、以下の処理を行う。 The server receives the data sent by the user and performs the following processing:
1. 不要商品の検出: 1. Detecting unwanted products:
サーバは、ユーザの身長体重と目標に基づいて、レシートに含まれる不要な商品を特定する。例えば、ユーザが「糖質制限」を目標にしている場合、レシートに含まれる「パン」や「お菓子」を不要商品として検出する。 The server identifies unnecessary items on the receipt based on the user's height, weight, and goals. For example, if the user's goal is to "limit carbohydrates," it will detect "bread" and "sweets" on the receipt as unnecessary items.
2. 節約金額と体重減少量の計算: 2. Calculate savings and weight loss:
サーバは、不要商品を購入しなかった場合の節約金額と体重減少量を計算する。例えば、不要商品の価格を合計し、その商品のカロリーを基に体重減少量を算出する。 The server calculates the amount of money saved and the amount of weight lost if the unnecessary items were not purchased. For example, it adds up the prices of the unnecessary items and calculates the amount of weight lost based on the calories in those items.
3. 結果の可視化: 3. Visualizing the results:
サーバは、計算結果をグラフやチャート形式で生成し、スマートフォンアプリケーションに送信する。ユーザは、アプリケーションを通じて結果を視覚的に確認できる。 The server generates the calculation results in the form of graphs and charts and sends them to a smartphone application. Users can visually check the results through the application.
使用するハードウェアとソフトウェア Hardware and software used
ハードウェア: スマートフォン Hardware: Smartphone
ソフトウェア: Python, Flask Software: Python, Flask
具体例 Specific examples
ユーザが「糖質制限」を目標にしており、レシートに「パン」と「お菓子」が含まれている場合、システムはこれらを不要商品として検出する。節約金額は350円(パン150円 + お菓子200円)、体重減少量は0.064kg(500kcal / 7700kcal)と計算される。これらの結果は、スマートフォンアプリケーション上でグラフとして表示される。 If a user's goal is to "limit carbohydrates" and the receipt includes "bread" and "sweets," the system will detect these as unnecessary items. The savings will be calculated as 350 yen (bread 150 yen + sweets 200 yen), and the weight loss will be 0.064 kg (500 kcal / 7700 kcal). These results are displayed as a graph on the smartphone application.
プロンプト文の例 Example prompt
ユーザが糖質制限を目標にしている場合、レシートに含まれる不要な商品を検出し、節約金額と体重減少量を計算してください。以下のデータを使用してください。 If a user is aiming to limit carbohydrates, detect unnecessary items in their receipts and calculate savings and weight loss. Use the following data:
身長: 170cm
体重: 70kg
目標: 糖質制限
レシートアイテム: ["パン", "お菓子", "野菜"]
Height: 170cm
Weight: 70kg
Goal: Low-carb Receipt items: ["bread", "sweets", "vegetables"]
応用例3における特定処理の流れについて図22を用いて説明する。 The flow of the specific processing in Application Example 3 is explained using Figure 22.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、現在の身長体重と目標を入力する。 The user launches the smartphone application and enters their current height, weight, and goal.
入力: 身長、体重、目標 Input: height, weight, goal
出力: 身長、体重、目標のデータ Output: Height, weight, and goal data
具体的な動作: ユーザはアプリケーションの入力フォームに身長、体重、目標を入力し、送信ボタンを押す。 Specific action: The user enters their height, weight, and goal into the application's input form and presses the submit button.
ステップ2: Step 2:
ユーザが買い物後に購入レシートをスマートフォンでスキャンし、アプリケーションにアップロードする。 After shopping, users scan their purchase receipt with their smartphone and upload it to the application.
入力: 購入レシートの画像 Input: Purchase receipt image
出力: レシートのテキストデータ Output: Receipt text data
具体的な動作: ユーザはスマートフォンのカメラを使用してレシートを撮影し、アプリケーションにアップロードする。アプリケーションはOCR技術を用いて画像からテキストデータを抽出する。 Specific operation: The user takes a photo of the receipt using their smartphone camera and uploads it to the application. The application uses OCR technology to extract text data from the image.
ステップ3: Step 3:
サーバがユーザから送信された身長、体重、目標、およびレシートのテキストデータを受け取る。 The server receives the height, weight, goal, and receipt text data sent by the user.
入力: 身長、体重、目標、レシートのテキストデータ Input: Height, weight, goal, and receipt text data
出力: 受信データの保存 Output: Save received data
具体的な動作: サーバはHTTPリクエストを受け取り、送信されたデータをデータベースに保存する。 Specific operation: The server receives the HTTP request and stores the submitted data in the database.
ステップ4: Step 4:
サーバがユーザの目標に基づいて、レシートに含まれる不要な商品を検出する。 The server detects unwanted items on the receipt based on the user's goals.
入力: 身長、体重、目標、レシートのテキストデータ Input: Height, weight, goal, and receipt text data
出力: 不要商品のリスト Output: List of unwanted items
具体的な動作: サーバは目標に関連する不要商品のリストを参照し、レシートのテキストデータと照合して不要商品を特定する。 Specific operation: The server references the list of unwanted items related to the goal and identifies the unwanted items by matching them with the text data on the receipt.
ステップ5: Step 5:
サーバが不要商品を購入しなかった場合の節約金額と体重減少量を計算する。 The server calculates the amount of savings and weight loss you would have achieved if you had not purchased unnecessary items.
入力: 不要商品のリスト Input: List of unwanted items
出力: 節約金額、体重減少量 Output: Savings, weight loss
具体的な動作: サーバは不要商品の価格を合計し、不要商品のカロリーを基に体重減少量を算出する。例えば、不要商品の合計価格が350円で、合計カロリーが500kcalの場合、体重減少量は0.064kg(500kcal / 7700kcal)と計算される。 Specific operation: The server adds up the prices of the unwanted items and calculates the amount of weight loss based on the calories of the unwanted items. For example, if the total price of the unwanted items is 350 yen and the total calories are 500 kcal, the amount of weight loss will be calculated as 0.064 kg (500 kcal / 7700 kcal).
ステップ6: Step 6:
サーバが計算結果をグラフやチャート形式で生成し、スマートフォンアプリケーションに送信する。 The server generates the calculation results in the form of graphs and charts and sends them to the smartphone application.
入力: 節約金額、体重減少量 Input: Amount saved, weight loss
出力: グラフやチャートの画像データ Output: Image data for graphs and charts
具体的な動作: サーバは計算結果を基にグラフやチャートを生成し、画像データとしてスマートフォンアプリケーションに送信する。 Specific operation: The server generates graphs and charts based on the calculation results and sends them as image data to the smartphone application.
ステップ7: Step 7:
ユーザがスマートフォンアプリケーションを通じて、節約金額と体重減少量の結果を視覚的に確認する。 Users can visually check the savings and weight loss results through a smartphone application.
入力: グラフやチャートの画像データ Input: Image data for graphs and charts
出力: 視覚的な結果表示 Output: Visual results
具体的な動作: ユーザはアプリケーションを開き、表示されたグラフやチャートを確認する。これにより、不要商品を購入しなかった場合の具体的な節約金額と体重減少量を理解することができる。 What it does: The user opens the app and looks at the graphs and charts that are displayed, allowing them to understand the specific savings and weight loss they could have achieved by not purchasing unnecessary items.
特定処理部290は、特定処理の結果をスマートデバイス14に送信する。スマートデバイス14では、制御部46Aが、出力装置40に対して特定処理の結果を出力させる。マイクロフォン38Bは、特定処理の結果に対するユーザ入力を示す音声を取得する。制御部46Aは、マイクロフォン38Bによって取得されたユーザ入力を示す音声データをデータ処理装置12に送信する。データ処理装置12では、特定処理部290が音声データを取得する。 The specific processing unit 290 transmits the results of the specific processing to the smart device 14. In the smart device 14, the control unit 46A causes the output device 40 to output the results of the specific processing. The microphone 38B acquires audio indicating the user input regarding the results of the specific processing. The control unit 46A transmits audio data indicating the user input acquired by the microphone 38B to the data processing device 12. In the data processing device 12, the specific processing unit 290 acquires the audio data.
データ生成モデル58は、いわゆる生成AI(Artificial Intelligence)である。データ生成モデル58の一例としては、ChatGPT(登録商標)(インターネット検索<URL: https://openai.com/blog/chatgpt>)等の生成AIが挙げられる。データ生成モデル58は、ニューラルネットワークに対して深層学習を行わせることによって得られる。データ生成モデル58には、指示を含むプロンプトが入力され、かつ、音声を示す音声データ、テキストを示すテキストデータ、及び画像を示す画像データ等の推論用データが入力される。データ生成モデル58は、入力された推論用データをプロンプトにより示される指示に従って推論し、推論結果を音声データ及びテキストデータ等のデータ形式で出力する。ここで、推論とは、例えば、分析、分類、予測、及び/又は要約等を指す。 Data generation model 58 is what is known as generative AI (artificial intelligence). An example of data generation model 58 is generative AI such as ChatGPT (registered trademark) (Internet search <URL: https://openai.com/blog/chatgpt>). Data generation model 58 is obtained by performing deep learning on a neural network. A prompt containing an instruction is input to data generation model 58, and inference data such as voice data indicating voice, text data indicating text, and image data indicating an image is also input. Data generation model 58 performs inference on the input inference data in accordance with the instructions indicated by the prompt, and outputs the inference results in the form of data such as voice data and text data. Here, inference refers to, for example, analysis, classification, prediction, and/or summarization.
生成AIの他の例としては、Gemini(登録商標)(インターネット検索<URL: https://gemini.google.com/?hl=ja>)が挙げられる。 Another example of generative AI is Gemini (registered trademark) (Internet search <URL: https://gemini.google.com/?hl=ja>).
上記実施形態では、データ処理装置12によって特定処理が行われる形態例を挙げたが、本開示の技術はこれに限定されず、スマートデバイス14によって特定処理が行われるようにしてもよい。 In the above embodiment, an example was given in which the specific processing was performed by the data processing device 12, but the technology disclosed herein is not limited to this, and the specific processing may also be performed by the smart device 14.
[第2実施形態] [Second embodiment]
図3には、第2実施形態に係るデータ処理システム210の構成の一例が示されている。 Figure 3 shows an example of the configuration of a data processing system 210 according to the second embodiment.
図3に示すように、データ処理システム210は、データ処理装置12及びスマート眼鏡214を備えている。データ処理装置12の一例としては、サーバが挙げられる。 As shown in FIG. 3, the data processing system 210 includes a data processing device 12 and smart glasses 214. An example of the data processing device 12 is a server.
データ処理装置12は、コンピュータ22、データベース24、及び通信I/F26を備えている。コンピュータ22は、本開示の技術に係る「コンピュータ」の一例である。コンピュータ22は、プロセッサ28、RAM30、及びストレージ32を備えている。プロセッサ28、RAM30、及びストレージ32は、バス34に接続されている。また、データベース24及び通信I/F26も、バス34に接続されている。通信I/F26は、ネットワーク54に接続されている。ネットワーク54の一例としては、WAN(Wide Area Network)及び/又はLAN(Local Area Network)等が挙げられる。 The data processing device 12 includes a computer 22, a database 24, and a communication I/F 26. The computer 22 is an example of a "computer" according to the technology of the present disclosure. The computer 22 includes a processor 28, RAM 30, and storage 32. The processor 28, RAM 30, and storage 32 are connected to a bus 34. The database 24 and communication I/F 26 are also connected to the bus 34. The communication I/F 26 is connected to a network 54. Examples of the network 54 include a WAN (Wide Area Network) and/or a LAN (Local Area Network).
スマート眼鏡214は、コンピュータ36、マイクロフォン238、スピーカ240、カメラ42、及び通信I/F44を備えている。コンピュータ36は、プロセッサ46、RAM48、及びストレージ50を備えている。プロセッサ46、RAM48、及びストレージ50は、バス52に接続されている。また、マイクロフォン238、スピーカ240、及びカメラ42も、バス52に接続されている。 The smart glasses 214 include a computer 36, a microphone 238, a speaker 240, a camera 42, and a communication I/F 44. The computer 36 includes a processor 46, RAM 48, and storage 50. The processor 46, RAM 48, and storage 50 are connected to a bus 52. The microphone 238, speaker 240, and camera 42 are also connected to the bus 52.
マイクロフォン238は、ユーザ20が発する音声を受け付けることで、ユーザ20から指示等を受け付ける。マイクロフォン238は、ユーザ20が発する音声を捕捉し、捕捉した音声を音声データに変換してプロセッサ46に出力する。スピーカ240は、プロセッサ46からの指示に従って音声を出力する。 The microphone 238 receives instructions and the like from the user 20 by receiving voice uttered by the user 20. The microphone 238 captures the voice uttered by the user 20, converts the captured voice into audio data, and outputs it to the processor 46. The speaker 240 outputs audio in accordance with instructions from the processor 46.
カメラ42は、レンズ、絞り、及びシャッタ等の光学系と、CMOS(Complementary Metal-Oxide-Semiconductor)イメージセンサ又はCCD(Charge Coupled Device)イメージセンサ等の撮像素子とが搭載された小型デジタルカメラであり、ユーザ20の周囲(例えば、一般的な健常者の視界の広さに相当する画角で規定された撮像範囲)を撮像する。 Camera 42 is a small digital camera equipped with an optical system including a lens, aperture, and shutter, and an imaging element such as a CMOS (Complementary Metal-Oxide-Semiconductor) image sensor or a CCD (Charge Coupled Device) image sensor, and captures images of the user 20's surroundings (e.g., an imaging range defined by an angle of view equivalent to the field of vision of a typical healthy person).
通信I/F44は、ネットワーク54に接続されている。通信I/F44及び26は、ネットワーク54を介してプロセッサ46とプロセッサ28との間の各種情報の授受を司る。通信I/F44及び26を用いたプロセッサ46とプロセッサ28との間の各種情報の授受はセキュアな状態で行われる。 The communication I/F 44 is connected to the network 54. The communication I/Fs 44 and 26 are responsible for the exchange of various information between the processor 46 and the processor 28 via the network 54. The exchange of various information between the processor 46 and the processor 28 using the communication I/Fs 44 and 26 is carried out in a secure manner.
図4には、データ処理装置12及びスマート眼鏡214の要部機能の一例が示されている。図4に示すように、データ処理装置12では、プロセッサ28によって特定処理が行われる。ストレージ32には、特定処理プログラム56が格納されている。 Figure 4 shows an example of the main functions of the data processing device 12 and smart glasses 214. As shown in Figure 4, in the data processing device 12, specific processing is performed by the processor 28. A specific processing program 56 is stored in the storage 32.
特定処理プログラム56は、本開示の技術に係る「プログラム」の一例である。プロセッサ28は、ストレージ32から特定処理プログラム56を読み出し、読み出した特定処理プログラム56をRAM30上で実行する。特定処理は、プロセッサ28がRAM30上で実行する特定処理プログラム56に従って、特定処理部290として動作することによって実現される。 The specific processing program 56 is an example of a "program" according to the technology of the present disclosure. The processor 28 reads the specific processing program 56 from the storage 32 and executes the read specific processing program 56 on the RAM 30. The specific processing is realized by the processor 28 operating as the specific processing unit 290 in accordance with the specific processing program 56 executed on the RAM 30.
ストレージ32には、データ生成モデル58及び感情特定モデル59が格納されている。データ生成モデル58及び感情特定モデル59は、特定処理部290によって用いられる。 Storage 32 stores a data generation model 58 and an emotion identification model 59. The data generation model 58 and the emotion identification model 59 are used by the identification processing unit 290.
スマート眼鏡214では、プロセッサ46によって受付出力処理が行われる。ストレージ50には、受付出力プログラム60が格納されている。プロセッサ46は、ストレージ50から受付出力プログラム60を読み出し、読み出した受付出力プログラム60をRAM48上で実行する。受付出力処理は、プロセッサ46がRAM48上で実行する受付出力プログラム60に従って、制御部46Aとして動作することによって実現される。 In the smart glasses 214, the reception output process is performed by the processor 46. A reception output program 60 is stored in the storage 50. The processor 46 reads the reception output program 60 from the storage 50 and executes the read reception output program 60 on the RAM 48. The reception output process is realized by the processor 46 operating as the control unit 46A in accordance with the reception output program 60 executed on the RAM 48.
次に、データ処理装置12の特定処理部290による特定処理について説明する。 Next, we will explain the identification process performed by the identification processing unit 290 of the data processing device 12.
「形態例1」 "Example 1"
本発明の形態は、消費者が自身の身長体重と目標を記入する手段として、専用の入力フォームを提供する。この入力フォームは、ウェブサイトやスマートフォンアプリケーション上に設けられ、消費者が自身の身長、体重、ダイエット目標等を直接入力できるようになっている。 This embodiment of the present invention provides a dedicated input form as a means for consumers to enter their height, weight, and diet goals. This input form is provided on a website or smartphone application, allowing consumers to directly input their height, weight, diet goals, etc.
「形態例2」 "Example 2"
次に、消費者が買い物後に購入レシートを提出する手段として、スマートフォンのカメラを用いてレシートの画像を撮影し、アプリケーションにアップロードする機能を提供する。この機能により、消費者は物理的なレシートを直接提出することなく、購入情報をシステムに伝えることができる。 Next, as a means for consumers to submit their purchase receipts after shopping, we provide a feature that allows them to take an image of the receipt using their smartphone camera and upload it to the application. This feature allows consumers to communicate purchase information to the system without having to directly submit a physical receipt.
「形態例3」 "Example 3"
そして、今回の買い物で不要だと判断できる商品を添削する手段として、システムは消費者が入力した身長体重と目標、及び提出されたレシートの情報を基に、不要な商品を自動的に検出する。例えば、ダイエット目標が「糖質制限」である場合、システムはレシート上の「パン」や「お菓子」等の糖質が多い商品を不要な商品として検出する。 Then, as a means of correcting items that are deemed unnecessary for this shopping trip, the system automatically detects unnecessary items based on the height, weight, and goal entered by the consumer, as well as the information on the submitted receipt. For example, if the diet goal is to "limit carbohydrates," the system will detect items on the receipt that are high in carbohydrates, such as "bread" and "sweets," as unnecessary.
「形態例4」 "Example 4"
最後に、不要商品を買わなかった場合の節約できるお金と減る体重を可視化する手段として、システムは検出した不要な商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算し、グラフやチャート等の形で消費者に表示する。これにより、消費者は自身の健康管理と節約の両方を具体的に把握することができる。 Finally, as a means of visualizing the money saved and weight loss that would result from not purchasing unnecessary products, the system calculates the total cost of the detected unnecessary products and the estimated amount of weight loss that would result from not consuming those products, and displays this information to consumers in the form of graphs, charts, etc. This allows consumers to concretely understand both their own health management and savings.
以下に、各形態例の処理の流れについて説明する。 The processing flow for each example form is explained below.
「形態例1」 "Example 1"
ステップ1:消費者は専用の入力フォームに自身の身長、体重、ダイエット目標等を入力する。例えば、身長170cm、体重65kg、ダイエット目標は「糖質制限」等を入力する。 Step 1: Consumers enter their height, weight, diet goals, etc. into a dedicated input form. For example, they might enter a height of 170 cm, a weight of 65 kg, and a diet goal of "restricting carbohydrates."
ステップ2:入力が完了したら、消費者は「送信」ボタンを押して情報をシステムに送信する。 Step 2: Once the information is complete, the consumer presses the "Submit" button to send the information to the system.
「形態例2」 "Example 2"
ステップ1:消費者は買い物を行い、購入した商品のレシートを取得する。 Step 1: The consumer makes a purchase and obtains a receipt for the items purchased.
ステップ2:消費者はスマートフォンのカメラを用いてレシートの画像を撮影する。 Step 2: The consumer takes a picture of the receipt using their smartphone camera.
ステップ3:撮影した画像はアプリケーションにアップロードされ、システムがレシートの情報を読み取る。 Step 3: The captured image is uploaded to the application and the system reads the receipt information.
「形態例3」 "Example 3"
ステップ1:システムは消費者が入力した身長体重と目標、及び提出されたレシートの情報を基に、不要な商品を自動的に検出する。 Step 1: The system automatically detects unwanted items based on the consumer's height, weight, and goals entered, as well as the submitted receipt information.
ステップ2:例えば、ダイエット目標が「糖質制限」である場合、システムはレシート上の「パン」や「お菓子」等の糖質が多い商品を不要な商品として検出する。 Step 2: For example, if the diet goal is to "limit carbohydrates," the system will detect items on the receipt that are high in carbohydrates, such as "bread" and "sweets," as unnecessary items.
「形態例4」 "Example 4"
ステップ1:システムは検出した不要な商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算する。 Step 1: The system calculates the total value of the detected unwanted products and the estimated weight loss that would occur if the product were not consumed.
ステップ2:計算結果はグラフやチャート等の形で消費者に表示される。これにより、消費者は自身の健康管理と節約の両方を具体的に把握することができる。 Step 2: The calculation results are displayed to consumers in the form of graphs, charts, etc. This allows consumers to concretely understand both their health management and savings.
(実施例1) (Example 1)
次に、形態例1の実施例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, Example 1 of Form Example 1 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
従来のダイエット支援システムでは、ユーザが自身の身長や体重、ダイエット目標を入力するだけでなく、買い物後に購入レシートを提出し、不要な商品を判断する手段が必要であった。しかし、これらのシステムはユーザにとって手間がかかり、継続的な利用が難しいという課題があった。また、ユーザが入力したデータを基に、個別に適切なダイエットプランを提案する機能が不足していたため、効果的なダイエット支援が行えないという問題もあった。 Traditional diet support systems required users to not only input their height, weight, and diet goals, but also submit purchase receipts after shopping to identify unnecessary items. However, these systems were time-consuming for users, making continued use difficult. Furthermore, they lacked the functionality to suggest an appropriate individual diet plan based on the data entered by the user, which meant they were unable to provide effective diet support.
実施例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客が入力したデータを受信し、保存する手段と、保存されたデータを基に生成AIモデルに対するプロンプト文を生成する手段と、生成AIモデルがダイエットプランを提案する手段と、を含む。これにより、ユーザが手間をかけずに継続的に利用でき、個別に適切なダイエットプランを提案することが可能となる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for receiving and saving the data entered by the customer, means for generating prompt sentences for the generative AI model based on the saved data, and means for the generative AI model to suggest a diet plan. This allows users to use the system continuously without any hassle, and makes it possible to suggest appropriate diet plans individually.
「顧客」とは、システムを利用するユーザを指す。 "Customer" refers to the user of the system.
「身長体重」とは、顧客の現在の身長と体重のデータを指す。 "Height and Weight" refers to the customer's current height and weight data.
「目標」とは、顧客が設定するダイエットや健康に関する目標を指す。 "Goals" refers to the diet and health goals set by the customer.
「入力フォーム」とは、顧客が身長、体重、目標などのデータを入力するためのインターフェースを指す。 "Input form" refers to the interface where customers enter data such as height, weight, and goals.
「購入レシート」とは、顧客が買い物後に受け取る購入品の明細書を指す。 "Purchase receipt" refers to the detailed list of purchases that a customer receives after making a purchase.
「添削する手段」とは、顧客の身長体重と目標に基づいて不要な商品を判断し、リストから削除する機能を指す。 "Means for correcting" refers to the function that determines unnecessary products based on the customer's height, weight, and goals, and removes them from the list.
「可視化する手段」とは、不要商品を買わなかった場合に節約できるお金や減る体重を視覚的に表示する機能を指す。 "Visualization means" refers to a function that visually displays the money you can save and the weight you will lose if you don't buy unnecessary products.
「データを受信し、保存する手段」とは、顧客が入力したデータをサーバが受け取り、データベースなどに保存する機能を指す。 "Means for receiving and storing data" refers to the function by which the server receives data entered by the customer and stores it in a database, etc.
「生成AIモデル」とは、入力されたデータを基に適切なダイエットプランを生成する人工知能モデルを指す。 "Generative AI model" refers to an artificial intelligence model that generates an appropriate diet plan based on input data.
「プロンプト文」とは、生成AIモデルに対して入力データを基に生成される指示文を指す。 "Prompt sentence" refers to an instruction sentence generated for a generative AI model based on input data.
「ダイエットプラン」とは、生成AIモデルが提案する、顧客の目標達成のための具体的な行動計画を指す。 "Diet Plan" refers to a specific action plan proposed by the generative AI model to help customers achieve their goals.
この発明は、顧客が自身の身長、体重、ダイエット目標を入力するための専用の入力フォームを提供するシステムである。システムは、ウェブサイトやスマートフォンアプリケーション上に設けられ、顧客が入力したデータを基に生成AIモデルが適切なダイエットプランを提案する。 This invention is a system that provides a dedicated input form for customers to enter their height, weight, and diet goals. The system is installed on a website or smartphone application, and a generative AI model proposes an appropriate diet plan based on the data entered by the customer.
使用するハードウェアおよびソフトウェア Hardware and software used
ハードウェア: サーバ(例: AWS(登録商標) EC2)、ユーザ端末(例: スマートフォン、PC) Hardware: Servers (e.g., AWS (registered trademark) EC2), user devices (e.g., smartphones, PCs)
ソフトウェア: ウェブサーバ(例: Apache、Nginx)、データベース(例: MySQL、PostgreSQL)、スマートフォンアプリケーション(例: iOSアプリ、Android(登録商標)アプリ) Software: Web servers (e.g., Apache, Nginx), databases (e.g., MySQL, PostgreSQL), smartphone applications (e.g., iOS apps, Android (registered trademark) apps)
システムの具体的な動作 Specific system operation
サーバ Server
サーバは、ウェブサイトやスマートフォンアプリケーション上に専用の入力フォームを提供する。この入力フォームは、顧客が自身の身長、体重、ダイエット目標などを入力するためのものである。サーバは、入力されたデータを受信し、データベースに保存する。保存されたデータは、生成AIモデルに対してプロンプト文として利用される。 The server provides a dedicated input form on a website or smartphone application. This input form allows customers to enter their height, weight, diet goals, etc. The server receives the input data and stores it in a database. The stored data is used as prompts for the generative AI model.
端末 Device
端末は、ユーザがアクセスするウェブサイトやスマートフォンアプリケーションを表示する。ユーザが入力フォームに身長、体重、ダイエット目標を入力すると、端末はそのデータをサーバに送信する。端末は、ユーザが入力したデータをリアルタイムで表示し、確認できるようにする。 The device displays the websites and smartphone applications that the user accesses. When the user enters their height, weight, and diet goals into an input form, the device sends the data to a server. The device then displays the data the user has entered in real time, allowing them to check it.
ユーザ User
ユーザは、ウェブサイトやスマートフォンアプリケーションにアクセスし、専用の入力フォームに自身の身長、体重、ダイエット目標を入力する。ユーザが入力を完了すると、そのデータはサーバに送信される。ユーザは、入力したデータを確認し、必要に応じて修正することができる。 Users access a website or smartphone application and enter their height, weight, and diet goals into a dedicated input form. Once the user has completed the input, the data is sent to the server. The user can then review the data they have entered and make any necessary corrections.
具体例 Specific examples
例1: ウェブサイトでの利用 Example 1: Website use
ユーザがウェブサイトにアクセスし、入力フォームに以下の情報を入力する: A user visits a website and enters the following information into a form:
身長: 170 cm
体重: 70 kg
ダイエット目標: 5 kg減量
Height: 170 cm
Weight: 70 kg
Diet goal: Lose 5 kg
入力が完了すると、端末はこのデータをサーバに送信する。サーバはデータを受信し、データベースに保存する。その後、生成AIモデルに対して以下のプロンプト文を生成する: Once the input is complete, the device sends this data to the server. The server receives the data and stores it in a database. It then generates the following prompt for the generative AI model:
プロンプト文の例: Example prompt:
「ユーザの身長は170 cm、体重は70 kg、ダイエット目標は5 kg減量です。この情報を基に、適切なダイエットプランを提案してください。」 "The user's height is 170 cm, weight is 70 kg, and their diet goal is to lose 5 kg. Based on this information, please suggest an appropriate diet plan."
例2: スマートフォンアプリケーションでの利用 Example 2: Use in a smartphone application
ユーザがスマートフォンアプリケーションを開き、入力フォームに以下の情報を入力する: A user opens a smartphone application and enters the following information into the input form:
身長: 160 cm
体重: 60 kg
ダイエット目標: 3 kg減量
Height: 160 cm
Weight: 60 kg
Diet goal: Lose 3 kg
入力が完了すると、端末はこのデータをサーバに送信する。サーバはデータを受信し、データベースに保存する。その後、生成AIモデルに対して以下のプロンプト文を生成する: Once the input is complete, the device sends this data to the server. The server receives the data and stores it in a database. It then generates the following prompt for the generative AI model:
プロンプト文の例: Example prompt:
「ユーザの身長は160 cm、体重は60 kg、ダイエット目標は3 kg減量です。この情報を基に、適切なダイエットプランを提案してください。」 "The user's height is 160 cm, weight is 60 kg, and their diet goal is to lose 3 kg. Based on this information, please suggest an appropriate diet plan."
このようにして、ユーザが入力したデータを基に、生成AIモデルが適切なダイエットプランを提案するシステムが構築される。 In this way, a system is created in which a generative AI model suggests an appropriate diet plan based on data entered by the user.
実施例1における特定処理の流れについて図11を用いて説明する。 The flow of the identification process in Example 1 will be explained using Figure 11.
ステップ1: Step 1:
ユーザが入力フォームにアクセスする。 The user accesses the input form.
ユーザは、ウェブサイトやスマートフォンアプリケーションを開き、入力フォームにアクセスする。入力フォームは、ユーザが自身の身長、体重、ダイエット目標を入力するためのインターフェースである。入力フォームが表示されると、ユーザは必要な情報を入力する準備が整う。 A user opens a website or smartphone application and accesses an input form. The input form is an interface where the user can enter their height, weight, and diet goals. Once the input form is displayed, the user is ready to enter the required information.
ステップ2: Step 2:
ユーザがデータを入力する。 The user enters the data.
ユーザは、入力フォームに自身の身長、体重、ダイエット目標を入力する。例えば、ユーザが「身長: 170 cm」、「体重: 70 kg」、「ダイエット目標: 5 kg減量」と入力する。入力が完了したら、ユーザは「送信」ボタンをタップする。入力データは、JSON形式で端末に保存される。 The user enters their height, weight, and diet goal into the input form. For example, the user might enter "Height: 170 cm", "Weight: 70 kg", and "Diet goal: Lose 5 kg". Once the input is complete, the user taps the "Submit" button. The input data is saved on the device in JSON format.
ステップ3: Step 3:
端末がデータをサーバに送信する。 The device sends the data to the server.
端末は、ユーザが入力したデータをサーバに送信する。具体的には、端末はHTTP POSTリクエストを使用して、入力データをサーバに送信する。このとき、データはJSON形式で送信される。入力データ(身長、体重、ダイエット目標)がサーバに送信される。 The device sends the data entered by the user to the server. Specifically, the device uses an HTTP POST request to send the input data to the server. At this time, the data is sent in JSON format. The input data (height, weight, diet goal) is sent to the server.
ステップ4: Step 4:
サーバがデータを受信し、保存する。 The server receives and stores the data.
サーバは、端末から送信されたデータを受信する。受信したデータは、データベースに保存される。例えば、サーバはMySQLデータベースに接続し、以下のようなSQLクエリを実行する: The server receives the data sent from the device. The received data is stored in a database. For example, the server connects to a MySQL database and executes the following SQL query:
sql sql
INSERT INTO user_data (height, weight, goal) VALUES (170, 70, '5 kg減量'); INSERT INTO user_data (height, weight, goal) VALUES (170, 70, '5 kg weight loss');
この処理により、ユーザの入力データがデータベースに保存される。 This process saves the user's input data in the database.
ステップ5: Step 5:
サーバが生成AIモデルにプロンプト文を生成する。 The server generates a prompt for the generative AI model.
サーバは、保存されたデータを基に生成AIモデルに対するプロンプト文を生成する。例えば、以下のようなプロンプト文を生成する: The server generates prompts for the generative AI model based on the stored data. For example, it generates prompts like the following:
ユーザの身長は170 cm、体重は70 kg、ダイエット目標は5 kg減量です。この情報を基に、適切なダイエットプランを提案してください。 The user's height is 170 cm, weight is 70 kg, and their diet goal is to lose 5 kg. Please suggest an appropriate diet plan based on this information.
このプロンプト文は、生成AIモデルに送信される。 This prompt is sent to the generative AI model.
ステップ6: Step 6:
生成AIモデルがダイエットプランを提案する。 Generative AI models suggest diet plans.
生成AIモデルは、受け取ったプロンプト文を基にダイエットプランを生成する。例えば、生成AIモデルが以下のようなダイエットプランを提案する: The generative AI model generates a diet plan based on the prompt it receives. For example, the generative AI model might suggest the following diet plan:
1. 毎日30分の有酸素運動を行う 1. Do 30 minutes of aerobic exercise every day.
2. 1日のカロリー摂取量を1500 kcalに制限する 2. Limit your daily calorie intake to 1,500 kcal
3. 週に3回筋力トレーニングを行う 3. Strength training three times a week
このダイエットプランは、サーバを経由してユーザの端末に送信され、ユーザに表示される。 This diet plan is sent to the user's device via the server and displayed to the user.
このようにして、ユーザが入力したデータを基に、生成AIモデルが適切なダイエットプランを提案するシステムが構築される。 In this way, a system is created in which a generative AI model suggests an appropriate diet plan based on data entered by the user.
(応用例1) (Application Example 1)
次に、形態例1の応用例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, we will explain Application Example 1 of Form Example 1. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
従来のフードデリバリーシステムでは、顧客の健康状態やダイエット目標に基づいた食事プランを提供することが難しく、個々のニーズに応じたサービスを提供することができなかった。また、顧客が不要な商品を購入してしまうことによる無駄な支出や、ダイエット目標達成の妨げとなる食事選択が問題となっていた Traditional food delivery systems struggled to provide meal plans based on customers' health status and diet goals, making it impossible to provide services tailored to individual needs. Furthermore, problems arose, such as customers buying unnecessary items and making meal choices that hindered the achievement of diet goals.
応用例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の身長体重と目標に基づいて適切な食事プランを生成する手段と、生成された食事プランを顧客に提示する手段と、を含む。これにより、顧客の健康状態やダイエット目標に応じた適切な食事プランを提供し、無駄な支出を抑えつつ、ダイエット目標の達成をサポートすることが可能となる。 In this invention, the server includes means for the customer to enter their current height, weight, and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for generating an appropriate meal plan based on the customer's height, weight, and goals, and means for presenting the generated meal plan to the customer. This makes it possible to provide an appropriate meal plan based on the customer's health condition and diet goals, and support the achievement of diet goals while reducing unnecessary spending.
「顧客」とは、サービスを利用する消費者を指す。 "Customer" refers to the consumer who uses the service.
「身長体重」とは、顧客の身体的な高さと体重を指す。 "Height and Weight" refers to the customer's physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な健康やダイエットに関する目的を指す。 "Goals" refer to the specific health or diet objectives that a customer wishes to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る購入品の明細書を指す。 "Purchase receipt" refers to the detailed list of purchases received by a customer when making a purchase.
「添削する手段」とは、顧客が購入した商品を評価し、不要な商品を特定するための方法やシステムを指す。 "Correction means" refers to a method or system for evaluating products purchased by customers and identifying unwanted products.
「可視化する手段」とは、節約できるお金や減る体重を視覚的に表示するための方法やシステムを指す。 "Visualization means" refers to a method or system that visually displays the money saved or weight lost.
「食事プラン」とは、顧客の健康状態やダイエット目標に基づいて提案される食事の内容やスケジュールを指す。 "Meal Plan" refers to the meal content and schedule suggested based on the client's health and diet goals.
「生成する手段」とは、顧客の入力データに基づいて食事プランを作成するための方法やシステムを指す。 "Means for generating" refers to a method or system for creating a meal plan based on customer input data.
「提示する手段」とは、生成された食事プランを顧客に見せるための方法やシステムを指す。 "Presentation means" refers to the method or system for showing the generated meal plan to the customer.
この発明を実施するための形態として、以下のシステム構成を提案する。 The following system configuration is proposed as an embodiment of this invention.
システム構成 System Configuration
システムは、顧客が使用するスマートフォンアプリケーション、サーバ、及び生成AIモデルを含む。スマートフォンアプリケーションは、顧客が自身の身長、体重、ダイエット目標を入力するためのインターフェースを提供する。サーバは、入力されたデータを受信し、生成AIモデルにプロンプト文を送信して適切な食事プランを生成する。生成された食事プランは、再びスマートフォンアプリケーションを通じて顧客に提示される。 The system includes a smartphone application used by customers, a server, and a generative AI model. The smartphone application provides an interface for customers to input their height, weight, and diet goals. The server receives the input data and sends prompts to the generative AI model to generate an appropriate meal plan. The generated meal plan is then presented to the customer again via the smartphone application.
使用するハードウェア及びソフトウェア Hardware and software used
ハードウェア: スマートフォン、サーバ Hardware: Smartphones, servers
ソフトウェア: スマートフォンアプリケーション、生成AIモデル(例: OpenAI GPT-3) Software: Smartphone applications, generative AI models (e.g., OpenAI GPT-3)
データ加工及びデータ演算 Data processing and calculation
1. データ入力: 顧客がスマートフォンアプリケーションを使用して、身長、体重、ダイエット目標を入力する。 1. Data entry: Customers use a smartphone application to enter their height, weight, and diet goals.
2. データ送信: スマートフォンアプリケーションが入力されたデータをサーバに送信する。 2. Data transmission: The smartphone application sends the entered data to the server.
3. プロンプト生成: サーバが受信したデータを基に、生成AIモデルに送信するプロンプト文を生成する。 3. Prompt generation: Based on the data received by the server, a prompt sentence is generated to be sent to the generative AI model.
4. 食事プラン生成: 生成AIモデルがプロンプト文を受け取り、適切な食事プランを生成する。 4. Meal plan generation: The generative AI model receives the prompt and generates an appropriate meal plan.
5. データ受信及び提示: サーバが生成された食事プランを受信し、スマートフォンアプリケーションを通じて顧客に提示する。 5. Data reception and presentation: The server receives the generated meal plan and presents it to the customer via the smartphone application.
具体例 Specific examples
例えば、顧客が身長170cm、体重70kg、ダイエット目標として「5kg減量」を入力した場合、サーバは以下のプロンプト文を生成AIモデルに送信する。 For example, if a customer enters their height as 170cm, weight as 70kg, and their diet goal as "lose 5kg," the server will send the following prompt text to the generative AI model:
プロンプト文の例 Example prompt
身長: 170 cm, 体重: 70 kg, 目標: 5kg減量に基づいて、適切な食事プランを提案してください。 Please suggest an appropriate meal plan based on the following: height: 170 cm, weight: 70 kg, goal: 5 kg weight loss.
生成AIモデルはこのプロンプト文を基に、バランスの取れた食事プランを生成する。例えば、「朝食 - オートミール、昼食 - サラダ、夕食 - 鶏胸肉と野菜」といった具体的な食事内容が提案される。この食事プランは、スマートフォンアプリケーションを通じて顧客に提示される。 Based on this prompt, the generative AI model generates a balanced meal plan. For example, it suggests specific meal options such as "Breakfast - oatmeal, Lunch - salad, Dinner - chicken breast and vegetables." This meal plan is presented to the customer via a smartphone application.
このようにして、顧客の健康状態やダイエット目標に応じた適切な食事プランを提供し、無駄な支出を抑えつつ、ダイエット目標の達成をサポートすることが可能となる。 In this way, we can provide customers with appropriate meal plans based on their health condition and diet goals, helping them achieve their diet goals while reducing unnecessary spending.
応用例1における特定処理の流れについて図12を用いて説明する。 The flow of the specific processing in Application Example 1 will be explained using Figure 12.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、身長、体重、ダイエット目標を入力する。入力されたデータは、スマートフォンアプリケーション内で一時的に保存される。入力データの例として、身長170cm、体重70kg、ダイエット目標「5kg減量」がある。 The user launches the smartphone application and enters their height, weight, and diet goal. The entered data is temporarily saved within the smartphone application. An example of input data is: height 170cm, weight 70kg, diet goal "lose 5kg."
ステップ2: Step 2:
スマートフォンアプリケーションが、入力されたデータをサーバに送信する。送信されるデータは、ユーザの身長、体重、ダイエット目標を含む。サーバは、受信したデータを解析し、次の処理ステップに進む。 The smartphone application sends the entered data to the server. The data sent includes the user's height, weight, and diet goals. The server analyzes the received data and proceeds to the next processing step.
ステップ3: Step 3:
サーバが、受信したデータを基にプロンプト文を生成する。具体的には、ユーザの身長、体重、ダイエット目標を組み合わせて、生成AIモデルに送信するためのプロンプト文を作成する。例えば、「身長: 170 cm, 体重: 70 kg, 目標: 5kg減量に基づいて、適切な食事プランを提案してください。」というプロンプト文が生成される。 The server generates a prompt based on the received data. Specifically, it combines the user's height, weight, and diet goal to create a prompt to send to the generative AI model. For example, a prompt might be generated that reads, "Based on height: 170 cm, weight: 70 kg, goal: to lose 5 kg, please suggest an appropriate meal plan."
ステップ4: Step 4:
サーバが、生成したプロンプト文を生成AIモデルに送信する。生成AIモデルは、受信したプロンプト文を基にデータ演算を行い、適切な食事プランを生成する。生成AIモデルは、例えばOpenAI GPT-3を使用する。 The server sends the generated prompt text to the generative AI model. The generative AI model performs data calculations based on the received prompt text and generates an appropriate meal plan. The generative AI model uses, for example, OpenAI GPT-3.
ステップ5: Step 5:
生成AIモデルが、プロンプト文に基づいて食事プランを生成し、その結果をサーバに返送する。生成された食事プランの例として、「朝食 - オートミール、昼食 - サラダ、夕食 - 鶏胸肉と野菜」がある。 The generative AI model generates a meal plan based on the prompt and sends the results back to the server. An example of a generated meal plan is "Breakfast - Oatmeal, Lunch - Salad, Dinner - Chicken Breast and Vegetables."
ステップ6: Step 6:
サーバが、生成AIモデルから受信した食事プランを解析し、スマートフォンアプリケーションに送信する。送信されるデータは、生成された食事プランを含む。 The server analyzes the meal plan received from the generative AI model and sends it to the smartphone application. The transmitted data includes the generated meal plan.
ステップ7: Step 7:
スマートフォンアプリケーションが、サーバから受信した食事プランをユーザに提示する。ユーザは、アプリケーションを通じて提案された食事プランを確認し、実行することができる。 The smartphone application presents the meal plan received from the server to the user. The user can review and implement the proposed meal plan through the application.
(実施例2) (Example 2)
次に、形態例2の実施例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, we will explain Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
従来のシステムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかる上に、レシートの紛失や破損のリスクがあった。また、購入した商品の中で不要なものを判断し、節約できる金額や減る体重を可視化する手段が不十分であった。これにより、顧客が目標に向かって効果的に買い物を管理することが難しかった Under the previous system, customers had to physically submit receipts for their purchases, which was time-consuming and risked loss or damage. Furthermore, there were insufficient ways to identify unnecessary purchases and visualize savings and weight loss. This made it difficult for customers to effectively manage their shopping to achieve their goals.
実施例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出するために画像を撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できる金額および減る体重を可視化する手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、購入情報を簡単にシステムに伝えることが可能となる。また、不要な商品を判断し、節約できる金額や減る体重を可視化することで、顧客が目標に向かって効果的に買い物を管理することができる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to take an image of their purchase receipt after shopping and upload it to the application so that they can submit it, means for correcting items that are determined to be unnecessary for this purchase, and means for visualizing the amount of money saved and weight loss that would be achieved if the unnecessary items were not purchased. This saves the customer the trouble of submitting a physical receipt and allows them to easily communicate their purchase information to the system. Furthermore, by identifying unnecessary items and visualizing the amount of money saved and weight loss that would be achieved, customers can effectively manage their shopping toward their goals.
「顧客」とは、システムを利用して買い物を行い、購入情報を管理する個人を指す。 "Customer" refers to an individual who uses the system to shop and manages their purchase information.
「身長体重」とは、顧客の現在の身体的な高さと体重を指す。 "Height and Weight" refers to the customer's current physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な身体的または経済的な目標を指す。 "Goal" refers to a specific physical or financial goal that the client wishes to achieve.
「購入レシート」とは、顧客が買い物を行った際に発行される、購入した商品の詳細が記載された紙または電子の記録を指す。 "Purchase receipt" means a paper or electronic record issued to a customer when they make a purchase that contains details of the items purchased.
「画像を撮影する」とは、スマートフォンやカメラなどのデバイスを使用して、物理的なレシートの写真を撮る行為を指す。 "Taking an image" refers to the act of taking a photo of a physical receipt using a device such as a smartphone or camera.
「アプリケーション」とは、スマートフォンやタブレットなどのデバイス上で動作するソフトウェアプログラムを指す。 "Application" refers to a software program that runs on a device such as a smartphone or tablet.
「アップロードする」とは、撮影した画像をインターネットを通じてサーバに送信する行為を指す。 "Uploading" refers to the act of sending captured images to a server via the Internet.
「サーバ」とは、ネットワークを介してデータを受信、処理、保存するためのコンピュータシステムを指す。 "Server" refers to a computer system that receives, processes, and stores data over a network.
「画像を解析する」とは、画像認識技術を使用して、撮影されたレシートの内容をデジタルデータとして抽出する行為を指す。 "Analyzing an image" refers to the act of using image recognition technology to extract the contents of a photographed receipt as digital data.
「不要な商品」とは、顧客の目標に対して購入する必要がないと判断された商品を指す。 "Unnecessary products" refer to products that are determined not to be necessary for the customer to achieve their goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金銭的な額を指す。 "Savings" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を購入しなかった場合に期待される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss you would expect if you had not purchased unnecessary items.
「可視化する」とは、データを視覚的に表示することで、顧客が容易に理解できるようにする行為を指す。 "Visualizing" refers to the act of displaying data visually so that customers can easily understand it.
「グラフィカルに表示する」とは、データをグラフやチャートなどの視覚的な形式で表示する行為を指す。 "Displaying graphically" refers to the act of displaying data in a visual format such as a graph or chart.
この発明は、顧客が買い物後に購入レシートを提出するために画像を撮影し、アプリケーションにアップロードするシステムを提供するものである。以下に、このシステムの具体的な実施形態を説明する。 This invention provides a system that allows customers to take an image of their purchase receipt after shopping and upload it to an application in order to submit it. A specific embodiment of this system is described below.
ユーザは、スマートフォンのカメラを使用して購入レシートの画像を撮影する。撮影した画像は、専用のアプリケーション(例えば、「ReceiptUploader」)を使用してアップロードされる。アプリケーションは、ユーザが撮影した画像をサーバに送信する機能を持つ。 The user takes a picture of the purchase receipt using the smartphone camera. The image is then uploaded using a dedicated application (e.g., "ReceiptUploader"). The application has the function of sending the image taken by the user to the server.
サーバは、端末から送信されたレシートの画像を受信する。受信後、サーバはGoogle Cloud Vision APIなどの画像認識ソフトウェアを使用して、レシートの内容を解析する。解析には、文字認識(OCR)技術が使用され、レシートに記載された商品名、価格、購入日時などの情報が抽出される。 The server receives the image of the receipt sent from the device. After receiving it, the server uses image recognition software such as Google Cloud Vision API to analyze the contents of the receipt. Optical character recognition (OCR) technology is used for the analysis, and information such as the product name, price, and purchase date and time written on the receipt is extracted.
解析されたデータは、サーバによってデータベースに保存される。保存されたデータには、商品名、価格、購入日時、店舗名などが含まれる。これにより、ユーザの購入履歴がデータベースに蓄積される。 The analyzed data is stored in a database by the server. The stored data includes the product name, price, purchase date and time, store name, etc. This allows the user's purchase history to be accumulated in the database.
ユーザは、アプリケーションを使用して購入履歴を確認することができる。アプリケーション内の「購入履歴」セクションを開くと、サーバから取得されたデータが表示される。ユーザは、過去の購入情報を一覧で確認することができる。 Users can check their purchase history using the application. By opening the "Purchase History" section within the application, data retrieved from the server is displayed. Users can view a list of past purchases.
具体例として、ユーザがスーパーで買い物をした後のシナリオを考える。ユーザはスマートフォンのカメラを使ってレシートの画像を撮影し、「ReceiptUploader」アプリケーションを開く。アプリケーション内で「アップロード」ボタンをタップし、撮影したレシートの画像を選択してアップロードする。アプリケーションは画像をサーバに送信し、サーバはGoogle Cloud Vision APIを使用してレシートの内容を解析する。解析されたデータはデータベースに保存され、ユーザはアプリケーション内で「購入履歴」セクションを開いて、最近の購入情報を確認することができる。 As a concrete example, consider a scenario after a user has shopped at a supermarket. The user takes a picture of the receipt using their smartphone camera and opens the "ReceiptUploader" application. Within the application, the user taps the "Upload" button, selects the image of the receipt, and uploads it. The application sends the image to a server, which uses the Google Cloud Vision API to analyze the contents of the receipt. The analyzed data is stored in a database, and the user can open the "Purchase History" section within the application to view information about recent purchases.
生成AIモデルへ入力するプロンプト文の例としては、以下のようなものが考えられる。 Examples of prompts to input into a generative AI model include:
「ユーザがスマートフォンのカメラを使用してレシートの画像を撮影し、アプリケーションにアップロードする機能を説明してください。具体的なハードウェアやソフトウェアの名前も含めてください。」 "Please describe the functionality that allows users to take a picture of a receipt using their smartphone camera and upload it to the application. Please include the names of any specific hardware or software."
このプロンプト文を使用することで、生成AIモデルはシステムの処理を詳細に説明する文章を生成することができる。 Using this prompt, the generative AI model can generate sentences that explain in detail how the system will operate.
実施例2における特定処理の流れについて図13を用いて説明する。 The flow of the identification process in Example 2 will be explained using Figure 13.
ステップ1: Step 1:
ユーザがレシートの画像を撮影する。 The user takes a picture of the receipt.
ユーザはスマートフォンのカメラを使用して、購入した商品のレシートの画像を撮影する。撮影時には、レシート全体が鮮明に写るように注意する。入力は物理的なレシートであり、出力はデジタル画像である。 The user uses their smartphone camera to take an image of the receipt for the item they purchased. When taking the photo, they are careful to capture the entire receipt clearly. The input is the physical receipt, and the output is a digital image.
ステップ2: Step 2:
端末が画像をアプリケーションにアップロードする。 The device uploads the image to the application.
端末(スマートフォン)は、撮影したレシートの画像を「ReceiptUploader」アプリケーションにアップロードする。ユーザはアプリケーションを開き、「アップロード」ボタンをタップして、撮影した画像を選択する。入力はデジタル画像であり、出力はサーバへの画像データの送信である。 The device (smartphone) uploads the captured image of the receipt to the "ReceiptUploader" application. The user opens the application, taps the "Upload" button, and selects the captured image. The input is a digital image, and the output is the transmission of image data to the server.
ステップ3: Step 3:
サーバが画像を受信し、解析する。 The server receives and analyzes the image.
サーバは、端末から送信されたレシートの画像を受信する。受信後、サーバはGoogle Cloud Vision APIなどの画像認識ソフトウェアを使用して、レシートの内容を解析する。解析には、文字認識(OCR)技術が使用され、レシートに記載された商品名、価格、購入日時などの情報が抽出される。入力は画像データであり、出力は解析されたテキストデータである。 The server receives the image of the receipt sent from the device. After receiving it, the server uses image recognition software such as Google Cloud Vision API to analyze the contents of the receipt. Optical character recognition (OCR) technology is used for the analysis, and information such as the product name, price, and purchase date and time written on the receipt is extracted. The input is image data, and the output is analyzed text data.
ステップ4: Step 4:
サーバが解析結果をデータベースに保存する。 The server stores the analysis results in a database.
サーバは、解析されたデータをデータベースに保存する。保存されるデータには、商品名、価格、購入日時、店舗名などが含まれる。これにより、ユーザの購入履歴がデータベースに蓄積される。入力は解析されたテキストデータであり、出力はデータベースへの保存である。 The server saves the analyzed data in a database. The saved data includes the product name, price, purchase date and time, store name, etc. This allows the user's purchase history to be accumulated in the database. The input is the analyzed text data, and the output is saved in the database.
ステップ5: Step 5:
ユーザが購入履歴を確認する。 The user checks their purchase history.
ユーザは「ReceiptUploader」アプリケーションを使用して、購入履歴を確認することができる。アプリケーション内の「購入履歴」セクションを開くと、サーバから取得されたデータが表示される。ユーザは、過去の購入情報を一覧で確認することができる。入力はデータベースから取得されたデータであり、出力はアプリケーション上の表示である。 Users can use the "ReceiptUploader" application to check their purchase history. When they open the "Purchase History" section in the application, data retrieved from the server is displayed. Users can view a list of past purchases. The input is data retrieved from the database, and the output is displayed in the application.
(応用例2) (Application Example 2)
次に、形態例2の応用例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, we will explain Application Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
従来の買い物システムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかる上に、購入情報の管理が煩雑であった。また、購入情報を基にしたポイント還元や節約効果の可視化が十分に行われていなかった。さらに、顧客の健康目標に基づいて不要な商品を判断し、節約効果や健康効果を可視化するシステムが不足していた Traditional shopping systems required customers to physically submit receipts for their purchases, which was time-consuming and made managing purchase information cumbersome. Furthermore, there was a lack of systems that could identify unnecessary products based on customers' health goals and visualize their savings and health benefits.
応用例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、購入レシートの内容を解析し、購入情報を自動的に抽出する手段と、抽出された購入情報に基づいて、顧客にポイントを還元する手段と、還元されたポイントを次回の購入時に使用できる手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、購入情報の管理が容易になり、ポイント還元や節約効果の可視化が可能となる。また、顧客の健康目標に基づいて不要な商品を判断し、節約効果や健康効果を可視化することができる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 2 is realized by the following means. In this invention, the server includes: a means for the customer to enter their current height and weight and goals; a means for the customer to take a photo of their purchase receipt with their smartphone camera after shopping and upload it to the application; a means for correcting items determined to be unnecessary for the current purchase; a means for visualizing the money saved and weight lost if the unnecessary items were not purchased; a means for analyzing the contents of the purchase receipt and automatically extracting purchase information; a means for rewarding points to the customer based on the extracted purchase information; and a means for allowing the rewarded points to be used for the next purchase. This saves the customer the trouble of submitting a physical receipt, simplifies management of purchase information, and enables visualization of point rewards and savings. It also identifies unnecessary items based on the customer's health goals and visualizes savings and health benefits.
「顧客」とは、商品やサービスを購入する消費者のことである。 "Customer" refers to a consumer who purchases goods or services.
「身長体重」とは、顧客の身体の高さと体重を指す基本的な身体情報である。 "Height and weight" refers to basic physical information that refers to the customer's physical height and weight.
「目標」とは、顧客が達成したい具体的な数値や状態を指すものである。 A "goal" refers to a specific numerical value or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される取引の詳細を記載した紙または電子の記録である。 A "purchase receipt" is a paper or electronic record detailing a transaction issued to a customer when they purchase goods.
「スマートフォン」とは、インターネット接続やアプリケーションの利用が可能な携帯電話の一種である。 A "smartphone" is a type of mobile phone that can connect to the Internet and use applications.
「カメラ」とは、画像や動画を撮影するための装置である。 A "camera" is a device used to take images and videos.
「アプリケーション」とは、スマートフォンやコンピュータ上で動作するソフトウェアプログラムである。 An "application" is a software program that runs on a smartphone or computer.
「アップロード」とは、データをローカルデバイスからサーバやクラウドに転送する行為である。 "Uploading" is the act of transferring data from a local device to a server or cloud.
「不要な商品」とは、顧客の目標達成に対して必要でないと判断される商品である。 "Unnecessary products" are products that are deemed not necessary for achieving the customer's goals.
「添削」とは、内容を確認し、修正や改善を行う行為である。 "Correction" is the act of checking the content and making corrections or improvements.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額である。 "Money saved" is the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を購入しなかった結果として減少した体重である。 "Weight lost" refers to the weight lost as a result of not purchasing unnecessary items.
「可視化」とは、データや情報を視覚的に表示することを指す。 "Visualization" refers to the visual display of data or information.
「解析」とは、データや情報を詳細に調べて、その構造や意味を明らかにする行為である。 "Analysis" is the act of examining data or information in detail to clarify its structure and meaning.
「購入情報」とは、顧客が購入した商品の詳細情報である。 "Purchase information" refers to detailed information about the products purchased by the customer.
「自動的に抽出」とは、システムが人の手を介さずにデータを取り出すことを指す。 "Automatic extraction" means that the system extracts data without human intervention.
「ポイント還元」とは、購入金額に応じて顧客にポイントを付与する行為である。 "Point redemption" is the act of awarding points to customers based on the purchase amount.
「次回の購入時に使用できる」とは、顧客が次に商品を購入する際にポイントを利用できることを指す。 "Can be used on next purchase" means that the customer can use the points the next time they purchase a product.
この発明を実施するための形態について、以下に詳細に説明する。 The following describes in detail the mode for implementing this invention.
まず、顧客が現在の身長体重と目標を記入する手段として、スマートフォンアプリケーションを用いる。顧客はアプリケーションを起動し、身長体重および目標を入力する。これにより、顧客の健康目標がシステムに登録される。 First, a smartphone application is used by the customer to enter their current height, weight, and goals. The customer launches the application and enters their height, weight, and goals. This registers the customer's health goals in the system.
次に、顧客が買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする手段を提供する。顧客はレシートを撮影し、アプリケーション内のアップロード機能を使用して画像をサーバに送信する。 Next, we provide a way for customers to take a photo of their purchase receipt with their smartphone camera after shopping and upload it to the application. Customers take a photo of their receipt and use the upload function within the application to send the image to the server.
サーバは、アップロードされたレシート画像を受信し、OpenCVを用いて画像を前処理する。具体的には、画像をグレースケールに変換し、二値化処理を行う。次に、pytesseractを用いて前処理された画像からテキストを抽出する。抽出されたテキストから購入情報(商品名、金額など)を解析し、自動的に抽出する。 The server receives the uploaded receipt image and preprocesses it using OpenCV. Specifically, it converts the image to grayscale and performs binarization. Next, it uses pytesseract to extract text from the preprocessed image. It then analyzes and automatically extracts purchase information (product name, price, etc.) from the extracted text.
解析された購入情報に基づいて、顧客にポイントを還元する手段を提供する。サーバは、購入金額に応じてポイントを計算し、顧客のアカウントにポイントを付与する。還元されたポイントは、次回の購入時に使用できるようにアプリケーション内で管理される。 Based on the analyzed purchase information, the application provides a means for rewarding customers with points. The server calculates points based on the purchase amount and adds them to the customer's account. Rewarded points are managed within the application so they can be used for the next purchase.
さらに、今回の買い物で不要だと判断できる商品を添削する手段として、顧客の身長体重と目標に基づいて不要な商品を判断するアルゴリズムを実装する。サーバは、購入情報と顧客の健康目標を照らし合わせ、不要な商品を特定する。 Furthermore, as a means of filtering out items that may be deemed unnecessary for this shopping trip, an algorithm is implemented to determine unnecessary items based on the customer's height, weight, and goals. The server compares purchase information with the customer's health goals to identify unnecessary items.
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段として、サーバは節約できる金額と減少した体重を計算し、グラフィカルに表示する。これにより、顧客は節約効果と健康効果を視覚的に確認できる。 To visualize the money saved and weight lost by not buying unnecessary products, the server calculates the amount saved and weight lost and displays them graphically. This allows customers to visually see the savings and health benefits.
具体例として、ユーザーがコンビニで飲み物を購入し、レシートを撮影してアプリにアップロードする場合を考える。アプリがレシートから「飲み物」と「150円」を抽出し、15ポイントを還元する。また、ユーザーの健康目標に基づいて、飲み物が不要な商品と判断される場合、節約できる金額と減少した体重が表示される。 As a concrete example, consider the case where a user purchases a drink at a convenience store, takes a photo of the receipt, and uploads it to the app. The app extracts "drink" and "150 yen" from the receipt and rewards 15 points. Furthermore, if the drink is deemed an unnecessary item based on the user's health goals, the amount of money saved and the weight lost will be displayed.
生成AIモデルへのプロンプト文の例は以下の通りである: Examples of prompts for a generative AI model are as follows:
「ユーザーがスマートフォンのカメラで撮影したレシート画像をアップロードしました。この画像から購入情報を抽出し、ポイントを還元するプログラムを作成してください。購入金額の10%をポイントとして還元します。」 "A user has uploaded a receipt image taken with their smartphone camera. Please create a program that extracts purchase information from this image and rewards points. 10% of the purchase amount will be rewarded as points."
応用例2における特定処理の流れについて図14を用いて説明する。 The flow of the specific processing in Application Example 2 will be explained using Figure 14.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、現在の身長体重と目標を入力する。入力されたデータはアプリケーション内で一時的に保存され、サーバに送信される。入力データは、ユーザの健康目標を設定するための基礎情報として使用される。 The user launches the smartphone application and enters their current height, weight, and goals. The entered data is temporarily saved within the application and sent to the server. The entered data is used as the basis for setting the user's health goals.
ステップ2: Step 2:
ユーザが買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする。撮影されたレシート画像は、アプリケーション内で一時的に保存され、サーバに送信される。入力データは、レシート画像である。 After shopping, the user takes a photo of the purchase receipt with their smartphone camera and uploads it to the application. The captured receipt image is temporarily saved within the application and then sent to the server. The input data is the receipt image.
ステップ3: Step 3:
サーバがアップロードされたレシート画像を受信し、OpenCVを用いて画像を前処理する。具体的には、画像をグレースケールに変換し、二値化処理を行う。入力データはレシート画像であり、出力データは前処理された画像である。 The server receives the uploaded receipt image and preprocesses it using OpenCV. Specifically, it converts the image to grayscale and performs binarization. The input data is the receipt image, and the output data is the preprocessed image.
ステップ4: Step 4:
サーバが前処理された画像からpytesseractを用いてテキストを抽出する。入力データは前処理された画像であり、出力データは抽出されたテキストである。具体的な動作として、OCR(光学文字認識)技術を使用して画像内の文字情報を読み取る。 The server extracts text from the preprocessed image using pytesseract. The input data is the preprocessed image, and the output data is the extracted text. Specifically, it uses OCR (optical character recognition) technology to read the text information in the image.
ステップ5: Step 5:
サーバが抽出されたテキストから購入情報(商品名、金額など)を解析し、自動的に抽出する。入力データは抽出されたテキストであり、出力データは解析された購入情報である。具体的な動作として、テキスト解析アルゴリズムを使用して必要な情報を抽出する。 The server analyzes and automatically extracts purchase information (product name, price, etc.) from the extracted text. The input data is the extracted text, and the output data is the analyzed purchase information. Specifically, it uses a text analysis algorithm to extract the required information.
ステップ6: Step 6:
サーバが解析された購入情報に基づいて、顧客にポイントを還元する。入力データは解析された購入情報であり、出力データは還元されたポイントである。具体的な動作として、購入金額に応じてポイントを計算し、顧客のアカウントにポイントを付与する。 The server rewards the customer with points based on the analyzed purchase information. The input data is the analyzed purchase information, and the output data is the rewarded points. Specifically, it calculates points based on the purchase amount and adds them to the customer's account.
ステップ7: Step 7:
サーバが顧客の身長体重と目標に基づいて不要な商品を判断する。入力データは顧客の健康目標と購入情報であり、出力データは不要な商品のリストである。具体的な動作として、健康目標と購入情報を照らし合わせ、不要な商品を特定するアルゴリズムを実行する。 The server determines unnecessary products based on the customer's height, weight, and goals. The input data is the customer's health goals and purchase information, and the output data is a list of unnecessary products. Specifically, it runs an algorithm that compares the health goals with the purchase information and identifies unnecessary products.
ステップ8: Step 8:
サーバが不要商品を買わなかったら節約できるお金&減る体重を計算し、グラフィカルに表示する。入力データは不要な商品のリストと購入情報であり、出力データは節約できる金額と減少した体重である。具体的な動作として、節約効果と健康効果を計算し、ユーザに視覚的に表示する。 The server calculates the amount of money saved and weight lost if unnecessary items are not purchased, and displays this graphically. The input data is a list of unnecessary items and purchase information, and the output data is the amount saved and weight lost. Specifically, it calculates the savings and health benefits and displays them visually to the user.
ステップ9: Step 9:
ユーザが次回の購入時に還元されたポイントを使用する。入力データは還元されたポイントであり、出力データはポイントを使用した後の残高である。具体的な動作として、ポイントを使用して購入金額を割引し、残高を更新する。 The user uses the points they have earned on their next purchase. The input data is the points earned, and the output data is the balance after the points have been used. Specific operations include using the points to discount the purchase amount and updating the balance.
(実施例3) (Example 3)
次に、形態例3の実施例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, we will explain Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を両立させることが難しいと感じている。特に、ダイエットや健康目標を持つ消費者は、買い物の際にどの商品が不要であるかを判断するのが困難である。また、不要な商品を購入しなかった場合の節約金額や健康効果を具体的に把握する手段が不足している。このため、消費者が健康管理と節約を効果的に行うためのシステムが求められている Today's consumers find it difficult to balance health management and saving money. Consumers with diet or health goals in particular have difficulty determining which products are unnecessary when shopping. Furthermore, there are few ways to specifically assess the savings and health benefits of not purchasing unnecessary products. For this reason, a system that helps consumers effectively manage their health and save money is needed.
実施例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、提出されたレシート情報を光学文字認識技術でテキストデータに変換する手段と、顧客の身長体重と目標に基づいて不要な商品を判断する手段と、不要商品を買わなかった場合に節約できる金額と減少する体重を計算する手段と、計算結果をグラフィカルに表示する手段を含む。これにより、消費者は買い物の際に不要な商品を簡単に特定し、節約金額と健康効果を具体的に把握することが可能となる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Example 3 is realized by the following means. In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for converting the submitted receipt information into text data using optical character recognition technology, means for determining unnecessary products based on the customer's height, weight, and goals, means for calculating the amount of money saved and the weight lost if the unnecessary products are not purchased, and means for graphically displaying the calculation results. This allows consumers to easily identify unnecessary products when shopping and specifically understand the amount of money saved and the health benefits.
「顧客」とは、システムを利用して自身の健康管理と節約を行おうとする消費者である。 "Customers" are consumers who use the system to manage their own health and save money.
「身長体重」とは、顧客の現在の身体的な測定値であり、健康管理の基礎データとして使用されるものである。 "Height and Weight" refers to the customer's current physical measurements and is used as basic data for health management.
「目標」とは、顧客が設定する健康やダイエットに関する具体的な目的であり、例えば「糖質制限」や「カロリー制限」などが含まれる。 "Goals" are specific health and diet objectives set by customers, and include, for example, "carbohydrate restriction" or "calorie restriction."
「レシート」とは、顧客が買い物後に受け取る購入商品の明細書であり、商品名と価格が記載されているものである。 A "receipt" is a detailed list of purchased items that a customer receives after shopping, listing the product names and prices.
「光学文字認識技術」とは、画像データから文字情報を抽出する技術であり、レシート画像をテキストデータに変換するために使用されるものである。 "Optical character recognition technology" is a technology that extracts character information from image data and is used to convert receipt images into text data.
「テキストデータ」とは、光学文字認識技術によって変換された文字情報であり、商品名や価格などの情報が含まれるものである。 "Text data" refers to text information converted using optical character recognition technology, and includes information such as product names and prices.
「不要な商品」とは、顧客の身長体重と目標に基づいて、健康管理やダイエットの観点から購入する必要がないと判断される商品である。 "Unnecessary products" are products that are determined not to be necessary to purchase from the perspective of health management or dieting, based on the customer's height, weight, and goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金銭の総額である。 "Amount saved" is the total amount of money you can save by not purchasing unnecessary items.
「減少する体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量である。 "Weight loss" is the amount of weight loss predicted if the unnecessary product is not consumed.
「グラフィカルに表示する」とは、計算結果を視覚的にわかりやすくするために、グラフやチャートなどの形式で表示することである。 "Displaying graphically" means displaying the calculation results in the form of graphs, charts, etc. to make them easier to understand visually.
発明を実施するための形態 Form for implementing the invention
この発明は、消費者が健康管理と節約を効果的に行うためのシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system that enables consumers to effectively manage their health and save money. Specific embodiments of this system are described below.
システムの構成 System Configuration
このシステムは、以下の主要なコンポーネントから構成される。 The system consists of the following main components:
1. ユーザが身長、体重、目標を入力するための端末 1. A device for users to enter their height, weight, and goals.
2. ユーザが買い物後にレシートを提出するための端末 2. A terminal where users can submit receipts after shopping.
3. サーバがデータを受信し、処理を行うためのハードウェアおよびソフトウェア 3. Hardware and software for the server to receive and process data
使用するハードウェアおよびソフトウェア Hardware and software used
端末: スマートフォンやタブレットなどのモバイルデバイス Device: Mobile devices such as smartphones and tablets
サーバ: 高性能なデータ処理サーバ Server: High-performance data processing server
OCR技術: Google Cloud Vision APIなどの光学文字認識技術 OCR technology: Optical character recognition technology such as Google Cloud Vision API
データベース: MySQLやPostgreSQLなどのリレーショナルデータベース Database: Relational database such as MySQL or PostgreSQL
データビジュアライゼーションライブラリ: D3.jsやChart.jsなど Data visualization libraries: D3.js, Chart.js, etc.
プログラムの処理 Program processing
サーバは、ユーザが入力した身長、体重、目標、および提出されたレシートの情報を受信する。サーバは、これらのデータを用いて不要な商品を検出するためのデータ加工とデータ演算を行う。具体的には、以下の手順で処理を行う。 The server receives the height, weight, and goal information entered by the user, as well as the submitted receipt. Using this data, the server processes and calculates the data to detect unwanted products. Specifically, the process is carried out as follows:
1. データ受信と解析: 1. Data reception and analysis:
サーバは、ユーザが入力した身長、体重、目標(例:糖質制限)を受信する。 The server receives the user's input height, weight, and goal (e.g., carbohydrate restriction).
サーバは、提出されたレシートの情報をOCR技術を用いてテキストデータに変換する。 The server converts the information on the submitted receipt into text data using OCR technology.
2. 不要商品の検出: 2. Detecting unwanted products:
サーバは、目標に基づいて不要な商品を検出する。例えば、目標が「糖質制限」である場合、サーバはレシート上の「パン」や「お菓子」などの糖質が多い商品を不要な商品としてリストアップする。 The server detects unnecessary products based on the goal. For example, if the goal is to "limit carbohydrates," the server will list high-carbohydrate products on the receipt, such as "bread" and "sweets," as unnecessary products.
3. 節約金額と体重減少量の計算: 3. Calculate savings and weight loss:
サーバは、検出した不要な商品の合計金額を計算する。 The server calculates the total price of the unwanted items detected.
サーバは、不要な商品を摂取しなかった場合の推定体重減少量を計算する。 The server calculates the estimated weight loss that would occur if the unnecessary products were not consumed.
4. 結果の可視化: 4. Visualizing the results:
サーバは、計算結果をグラフやチャートなどの形で消費者に表示する。 The server displays the calculation results to the consumer in the form of graphs, charts, etc.
具体例 Specific examples
ユーザが身長170cm、体重70kg、目標を「糖質制限」と設定し、レシートを提出したとする。レシートには「パン(300円)」、「お菓子(200円)」、「野菜(100円)」が含まれている。システムは「パン」と「お菓子」を不要な商品として検出し、合計金額500円を節約できると計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を0.5kgと計算し、グラフで表示する。 Let's say a user is 170cm tall, weighs 70kg, sets their goal to "restrict carbohydrates," and submits a receipt. The receipt includes "bread (300 yen)," "sweets (200 yen)," and "vegetables (100 yen)." The system detects "bread" and "sweets" as unnecessary items and calculates that a total of 500 yen can be saved. The system also calculates that the estimated weight loss would be 0.5kg if these items were not consumed, and displays this in a graph.
プロンプト文の例 Example prompt
「身長170cm、体重70kg、目標は糖質制限です。以下のレシート情報を基に不要な商品を検出し、節約金額と体重減少量を計算してください。レシート情報:パン(300円)、お菓子(200円)、野菜(100円)」実施例3における特定処理の流れについて図15を用いて説明する。 "Height 170cm, weight 70kg, goal is carbohydrate restriction. Detect unnecessary items based on the following receipt information and calculate the amount saved and weight loss. Receipt information: bread (300 yen), sweets (200 yen), vegetables (100 yen)." The flow of the identification process in Example 3 will be explained using Figure 15.
ステップ1: Step 1:
ユーザが身長、体重、目標を入力し、レシートを提出する。 Users enter their height, weight, and goal, then submit a receipt.
入力: ユーザはスマートフォンのアプリを開き、身長170cm、体重70kg、目標「糖質制限」を入力する。また、買い物後のレシートをスマートフォンのカメラで撮影し、アプリを通じてサーバにアップロードする。 Input: The user opens the app on their smartphone and enters their height (170cm), weight (70kg), and goal of "restricting carbohydrates." After shopping, they also take a photo of the receipt with their smartphone camera and upload it to the server via the app.
出力: ユーザの入力データとレシート画像がサーバに送信される。 Output: User input data and receipt image are sent to the server.
ステップ2: Step 2:
サーバが入力データとレシート情報を受信する。 The server receives the input data and receipt information.
入力: ユーザから送信された身長、体重、目標、およびレシート画像。 Input: Height, weight, goal, and receipt image submitted by the user.
出力: サーバ内のデータベースに保存されたユーザの入力データとレシート画像。 Output: User input data and receipt image stored in a database on the server.
ステップ3: Step 3:
サーバがレシート情報をOCR技術でテキストデータに変換する。 The server converts the receipt information into text data using OCR technology.
入力: サーバに保存されたレシート画像。 Input: Receipt image stored on the server.
データ加工: サーバはGoogle Cloud Vision APIを呼び出し、レシート画像を解析して商品名と価格を抽出する。 Data processing: The server calls the Google Cloud Vision API, analyzes the receipt image, and extracts the product name and price.
出力: 変換されたテキストデータ(例:「パン(300円)」、「お菓子(200円)」、「野菜(100円)」)。 Output: Converted text data (e.g., "Bread (300 yen)", "Sweets (200 yen)", "Vegetables (100 yen)").
ステップ4: Step 4:
サーバが目標に基づいて不要な商品を検出する。 The server detects unwanted items based on your goals.
入力: ユーザの目標(例:「糖質制限」)と変換されたテキストデータ。 Input: User's goal (e.g., "Limit carbohydrates") and converted text data.
データ演算: サーバは事前に定義された食品カテゴリと目標に基づくルールベースのフィルタリングを行い、不要な商品をリストアップする。 Data calculation: The server performs rule-based filtering based on predefined food categories and goals to list unwanted products.
出力: 不要な商品のリスト(例:「パン」、「お菓子」)。 Output: List of unwanted products (e.g., "bread", "sweets").
ステップ5: Step 5:
サーバが不要商品の合計金額と推定体重減少量を計算する。 The server calculates the total price of unwanted items and the estimated weight loss.
入力: 不要な商品のリストとそれぞれの価格。 Input: List of unwanted items and their respective prices.
データ演算: サーバは不要な商品の合計金額を計算し、さらに不要な商品を摂取しなかった場合の推定体重減少量を計算する。ここで使用するモデルは、消費カロリーと体重減少の関係を基にしたシミュレーションモデルである。 Data calculation: The server calculates the total price of the unnecessary products and also calculates the estimated weight loss if the unnecessary products were not consumed. The model used here is a simulation model based on the relationship between calories consumed and weight loss.
出力: 節約金額(例:500円)と推定体重減少量(例:0.5kg)。 Output: Amount saved (e.g., 500 yen) and estimated weight loss (e.g., 0.5 kg).
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化し、ユーザに表示する。 The server visualizes the calculation results in graphs and charts and displays them to the user.
入力: 節約金額と推定体重減少量。 Enter: Amount saved and estimated weight loss.
データ加工: サーバはD3.jsやChart.jsなどのデータビジュアライゼーションライブラリを用いて、計算結果をグラフやチャートで可視化する。 Data processing: The server uses data visualization libraries such as D3.js and Chart.js to visualize the calculation results in graphs and charts.
出力: ユーザの端末に表示されるグラフやチャート。 Output: Graphs and charts displayed on the user's device.
(応用例3) (Application Example 3)
次に、形態例3の応用例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, we will explain Application Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を同時に達成することが難しいと感じている。特に、ダイエット目標を持つ消費者は、購入した商品の中から不要な商品を見つけ出し、それを避けることで健康と経済的な利益を得ることが求められている。しかし、これを手動で行うのは手間がかかり、正確性にも欠ける。したがって、消費者が簡単に不要な商品を特定し、節約と健康管理を効率的に行うためのシステムが必要である Today's consumers find it difficult to simultaneously manage their health and save money. In particular, consumers with dietary goals need to identify and avoid unnecessary products from their purchases in order to achieve health and financial benefits. However, doing this manually is time-consuming and inaccurate. Therefore, a system is needed that allows consumers to easily identify unnecessary products and efficiently manage their savings and health.
応用例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、レシートの情報を解析し、ダイエット目標に基づいて不要な商品を自動的に検出する手段と、不要商品を買わなかった場合の節約できる金額と推定体重減少量を計算し、グラフやチャートで表示する手段と、スマートフォンにインストールされるアプリケーションを含む。これにより、消費者は簡単に不要な商品を特定し、節約と健康管理を効率的に行うことが可能となる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for analyzing receipt information and automatically detecting unnecessary items based on diet goals, means for calculating the amount of money saved and estimated weight loss if the unnecessary items are not purchased and displaying them in graphs and charts, and an application installed on a smartphone. This allows consumers to easily identify unnecessary items and efficiently save money and manage their health.
「顧客」とは、システムを利用する消費者を指す。 "Customer" refers to consumers who use the system.
「身長体重」とは、顧客の身体的な高さと体重を示すデータである。 "Height and Weight" is data indicating the customer's physical height and weight.
「目標」とは、顧客が達成したい健康やダイエットに関する具体的な目的を指す。 "Goals" refer to the specific health or diet objectives that the customer wants to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を示す紙または電子データである。 A "purchase receipt" is paper or electronic data showing the purchase details of a product that a customer receives when making a purchase.
「不要な商品」とは、顧客の目標に対して不適切または不要と判断される商品を指す。 "Unwanted products" refer to products that are deemed inappropriate or unnecessary for the customer's goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss predicted if the unnecessary product is not consumed.
「レシートの情報」とは、購入レシートに記載されている商品の名称、価格、数量などのデータを指す。 "Receipt information" refers to data such as the product name, price, and quantity listed on the purchase receipt.
「ダイエット目標」とは、顧客が設定した体重減少や特定の栄養制限などの健康に関する目標を指す。 "Diet Goals" refers to health goals set by a customer, such as weight loss or specific nutritional restrictions.
「自動的に検出する」とは、システムがプログラムに基づいて人の介入なしに不要な商品を特定することを指す。 "Automatically detect" means that the system identifies unwanted products programmatically without human intervention.
「グラフやチャート」とは、データを視覚的に表示するための図表を指す。 "Graphs and charts" refer to diagrams used to visually display data.
「スマートフォンにインストールされるアプリケーション」とは、スマートフォン上で動作するソフトウェアプログラムを指す。 "Applications installed on smartphones" refers to software programs that run on smartphones.
この発明は、消費者が健康管理と節約を効率的に行うためのシステムである。以下に、このシステムを実施するための具体的な形態を説明する。 This invention is a system that allows consumers to efficiently manage their health and save money. Specific embodiments for implementing this system are described below.
システムの構成 System Configuration
システムは、以下の主要なコンポーネントから構成される: The system consists of the following main components:
1. ユーザー端末:スマートフォンなどの携帯端末。 1. User device: A mobile device such as a smartphone.
2. サーバ:データ処理と解析を行う中央サーバ。 2. Server: A central server that processes and analyzes data.
3. アプリケーション:スマートフォンにインストールされる専用アプリケーション。 3. Application: A dedicated application installed on a smartphone.
プログラムの処理 Program processing
ユーザー端末 User device
ユーザー端末は、以下の機能を持つ: The user device has the following functions:
ユーザー情報入力:ユーザーはアプリケーションを通じて、自身の身長、体重、ダイエット目標を入力する。 User information input: Users enter their height, weight, and diet goals through the application.
レシートスキャン:ユーザーが購入した商品のレシートをスマートフォンのカメラでスキャンし、画像データとして取得する。 Receipt scanning: The user scans the receipt for the item they purchased with their smartphone camera and obtains the image data.
サーバ Server
サーバは、以下の処理を行う: The server performs the following process:
レシート情報の解析:取得したレシート画像をOCR(光学文字認識)技術を用いてテキストデータに変換する。この処理には、pytesseractライブラリを使用する。 Analyzing receipt information: The acquired receipt image is converted into text data using OCR (optical character recognition) technology. This process uses the pytesseract library.
不要商品の検出:ユーザーのダイエット目標に基づいて、レシートのテキストデータから不要な商品を自動的に検出する。例えば、糖質制限を目標とするユーザーの場合、「パン」や「お菓子」などの高糖質商品を検出する。 Detection of unnecessary products: Automatically detect unnecessary products from receipt text data based on the user's diet goals. For example, for a user aiming to limit carbohydrate intake, high-carbohydrate products such as "bread" and "sweets" will be detected.
節約金額と体重減少量の計算:検出された不要商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、1kgの体重減少に必要なカロリー(約7700kcal)を基準とする。 Calculation of savings and weight loss: Calculates the total cost of the detected unnecessary products and the estimated weight loss if you did not consume those products. Weight loss is calculated based on the calories required to lose 1 kg of weight (approximately 7700 kcal).
アプリケーション application
アプリケーションは、以下の機能を持つ: The application has the following features:
結果の可視化:計算された節約金額と推定体重減少量をグラフやチャートで表示する。これにより、ユーザーは自身の健康管理と節約の効果を視覚的に確認できる。 Visualization of results: Calculated savings and estimated weight loss are displayed in graphs and charts, allowing users to visually see the effects of their health management and savings.
具体例 Specific examples
例えば、ユーザーが「糖質制限」を目標として設定し、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が不要商品として検出される。検出された不要商品の合計金額が500円で、推定体重減少量が0.2kgであるとする。 For example, if a user sets a goal of "restricting carbohydrates" and the receipt includes "bread" and "sweets," these items will be detected as unnecessary products. Suppose the total amount of the detected unnecessary products is 500 yen, and the estimated weight loss is 0.2 kg.
プロンプト文の例 Example prompt
ユーザー情報を入力してください: Please enter your user information:
身長:170 cm Height: 170 cm
体重:70 kg Weight: 70 kg
ダイエット目標:糖質制限 Diet goal: Carbohydrate restriction
レシートをスキャンしてください: Scan your receipt:
(レシート画像をアップロード) (Upload receipt image)
不要商品を検出しています... Unwanted items detected...
検出された不要商品: Unwanted items detected:
パン:200円
お菓子:300円
節約金額:500円
Bread: 200 yen Sweets: 300 yen Savings: 500 yen
推定体重減少量:0.2kg Estimated weight loss: 0.2kg
結果をグラフで表示します。 The results are displayed in a graph.
このようにして、ユーザーは簡単に不要な商品を特定し、節約と健康管理を効率的に行うことができる。 In this way, users can easily identify unnecessary products and efficiently save money and manage their health.
応用例3における特定処理の流れについて図16を用いて説明する。 The flow of the specific processing in Application Example 3 will be explained using Figure 16.
ステップ1: Step 1:
ユーザがスマートフォンのアプリケーションを起動し、自身の身長、体重、ダイエット目標を入力する。 The user launches the smartphone application and enters their height, weight, and diet goals.
入力:ユーザの身長、体重、ダイエット目標 Input: User's height, weight, and diet goal
出力:ユーザ情報データ Output: User information data
具体的な動作:ユーザはアプリケーションの入力フォームに身長、体重、ダイエット目標(例:糖質制限)を入力し、送信ボタンを押す。これにより、ユーザ情報データが生成され、サーバに送信される。 Specific operation: The user enters their height, weight, and diet goal (e.g., carbohydrate restriction) into the application's input form and presses the submit button. This generates user information data and sends it to the server.
ステップ2: Step 2:
ユーザが買い物後に購入した商品のレシートをスマートフォンのカメラでスキャンする。 After shopping, the user scans the receipt for the purchased items using their smartphone camera.
入力:レシート画像 Input: Receipt image
出力:レシート画像データ Output: Receipt image data
具体的な動作:ユーザはアプリケーション内のカメラ機能を使用して、購入レシートを撮影する。撮影されたレシート画像はアプリケーション内に保存され、サーバに送信される。 Specific operation: The user uses the application's camera function to take a photo of the purchase receipt. The captured receipt image is saved within the application and sent to the server.
ステップ3: Step 3:
サーバがレシート画像を受信し、OCR技術を用いてテキストデータに変換する。 The server receives the receipt image and converts it into text data using OCR technology.
入力:レシート画像データ Input: Receipt image data
出力:レシートテキストデータ Output: Receipt text data
具体的な動作:サーバはpytesseractライブラリを使用して、受信したレシート画像データからテキストを抽出する。抽出されたテキストデータはレシートテキストデータとして保存される。 Specific operation: The server uses the pytesseract library to extract text from the received receipt image data. The extracted text data is saved as receipt text data.
ステップ4: Step 4:
サーバがユーザのダイエット目標に基づいて、レシートテキストデータから不要な商品を自動的に検出する。 The server automatically detects unnecessary items from receipt text data based on the user's diet goals.
入力:ユーザ情報データ、レシートテキストデータ Input: User information data, receipt text data
出力:不要商品リスト Output: List of unwanted items
具体的な動作:サーバはユーザのダイエット目標(例:糖質制限)に基づいて、レシートテキストデータを解析する。特定のキーワード(例:「パン」、「お菓子」)を含む商品を不要商品としてリストアップする。 Specific operation: The server analyzes receipt text data based on the user's diet goal (e.g., carbohydrate restriction). Products containing specific keywords (e.g., "bread," "sweets") are listed as unwanted items.
ステップ5: Step 5:
サーバが不要商品を買わなかった場合の節約できる金額と推定体重減少量を計算する。 The server calculates the amount of money you could save and the estimated weight loss if you didn't buy unnecessary items.
入力:不要商品リスト Input: List of unwanted items
出力:節約金額、推定体重減少量 Output: Money saved, estimated weight loss
具体的な動作:サーバは不要商品リストに基づいて、各商品の価格を合計し、節約金額を計算する。また、各商品のカロリー情報を基に、推定体重減少量を計算する。体重減少量の計算には、1kgの体重減少に必要なカロリー(約7700kcal)を基準とする。 Specific operation: The server calculates the savings amount by adding up the prices of each item based on the list of unwanted items. It also calculates the estimated weight loss amount based on the calorie information of each item. The weight loss amount is calculated based on the calories required to lose 1 kg (approximately 7700 kcal).
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化し、ユーザのスマートフォンに表示する。 The server visualizes the calculation results in graphs and charts and displays them on the user's smartphone.
入力:節約金額、推定体重減少量 Input: Amount saved, estimated weight loss
出力:グラフやチャートの画像データ Output: Image data for graphs and charts
具体的な動作:サーバは計算結果を基に、節約金額と推定体重減少量をグラフやチャートとして生成する。生成されたグラフやチャートの画像データはユーザのスマートフォンに送信され、アプリケーション内で表示される。 Specific operation: Based on the calculation results, the server generates graphs and charts showing the amount of savings and estimated weight loss. Image data of the generated graphs and charts is sent to the user's smartphone and displayed within the application.
このようにして、ユーザは簡単に不要な商品を特定し、節約と健康管理を効率的に行うことができる。 In this way, users can easily identify unnecessary products and efficiently save money and manage their health.
なお、更に、ユーザの感情を推定する感情エンジンを組み合わせてもよい。すなわち、特定処理部290は、感情特定モデル59を用いてユーザの感情を推定し、ユーザの感情を用いた特定処理を行うようにしてもよい。 It is also possible to further combine an emotion engine that estimates the user's emotion. That is, the identification processing unit 290 may estimate the user's emotion using the emotion identification model 59 and perform identification processing using the user's emotion.
「形態例1」 "Example 1"
本発明の一実施形態として、感情エンジンを組み合わせたシステムが提供される。このシステムは、ユーザの感情を認識し、その感情に基づいて不要な商品を判断する。具体的には、ユーザがストレスを感じているときには、甘いお菓子などの不健康な食品を不要な商品として検出する。また、ユーザがリラックスしているときには、健康的な食品を推奨する。 One embodiment of the present invention provides a system that incorporates an emotion engine. This system recognizes the user's emotions and determines which products are unnecessary based on those emotions. Specifically, when the user is feeling stressed, it detects unhealthy foods such as sweets as unnecessary products. When the user is relaxed, it recommends healthy foods.
「形態例2」 "Example 2"
さらに、感情エンジンは、ユーザの感情に基づいて節約できるお金と減る体重をグラフィカルに表示する。具体的には、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を表示する。これにより、ユーザは自身の感情と健康管理、節約の関係を視覚的に理解することができる。 Furthermore, the emotion engine graphically displays the money saved and weight lost based on the user's emotions. Specifically, it displays the amount of money saved and the amount of weight lost if the user refrains from purchasing unnecessary products when feeling stressed. This allows users to visually understand the relationship between their emotions, health management, and saving money.
「形態例3」 "Example 3"
具体例として、ユーザがストレスを感じているときにチョコレートを購入した場合、感情エンジンはチョコレートを不要な商品として検出する。そして、チョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。これにより、ユーザはストレスを感じているときに不健康な食品を購入する傾向があることを認識し、その結果としての金銭的、健康的な影響を理解することができる。 For example, if a user buys chocolate when feeling stressed, the emotion engine will detect the chocolate as an unnecessary item and display a graph of the amount of money saved and weight loss they would have experienced if they had not bought the chocolate. This helps users recognize their tendency to buy unhealthy foods when they are stressed and understand the resulting financial and health impacts.
以下に、各形態例の処理の流れについて説明する。 The processing flow for each example form is explained below.
「形態例1」 "Example 1"
ステップ1:ユーザがシステムに自身の現在の身長と体重、目標を入力する。 Step 1: The user enters their current height, weight, and goal into the system.
ステップ2:ユーザがショッピングを行い、レシートをシステムに提出する。 Step 2: The user makes a purchase and submits the receipt to the system.
ステップ3:感情エンジンがユーザの感情を認識する。 Step 3: The emotion engine recognizes the user's emotions.
ステップ4:感情エンジンがユーザの感情に基づいて不要な商品を判断し、その結果をユーザに通知する。 Step 4: The emotion engine determines which products are unnecessary based on the user's emotions and notifies the user of the results.
「形態例2」 "Example 2"
ステップ1:ユーザがシステムに自身の現在の身長と体重、目標を入力する。 Step 1: The user enters their current height, weight, and goal into the system.
ステップ2:ユーザがショッピングを行い、レシートをシステムに提出する。 Step 2: The user makes a purchase and submits the receipt to the system.
ステップ3:感情エンジンがユーザの感情を認識する。 Step 3: The emotion engine recognizes the user's emotions.
ステップ4:感情エンジンがユーザの感情に基づいて節約できるお金と減る体重をグラフィカルに表示する。 Step 4: The emotion engine graphically displays the money saved and weight lost based on the user's emotions.
「形態例3」 "Example 3"
ステップ1:ユーザがストレスを感じているときにチョコレートを購入する。 Step 1: Buy chocolate when the user is feeling stressed.
ステップ2:感情エンジンがユーザの感情を認識し、チョコレートを不要な商品として検出する。 Step 2: The emotion engine recognizes the user's emotions and detects chocolate as an unwanted item.
ステップ3:感情エンジンがチョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。 Step 3: The emotion engine displays a graph of the amount of money saved and weight loss you would have experienced if you had not bought the chocolate.
(実施例1) (Example 1)
次に、形態例1の実施例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, Example 1 of Form Example 1 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
従来のシステムでは、顧客が自身の身長体重と目標を記入する手段や、買い物後に購入レシートを提出する手段は提供されていたが、顧客の感情に基づいて不要な商品を判断し、健康的な商品を推奨する機能が欠けていた。そのため、顧客がストレスを感じている場合やリラックスしている場合に適切な商品を選択することが難しかった。また、不要商品を買わなかった場合の節約できるお金や減る体重を可視化する手段も不十分であった。これにより、顧客の健康管理や節約意識を高めることが困難であった The previous system allowed customers to enter their height, weight, and goals, and to submit receipts after shopping, but it lacked the ability to identify unnecessary products based on the customer's emotions and recommend healthy products. This made it difficult for customers to select appropriate products when they were stressed or relaxed. It also lacked a way to visualize the money saved and weight lost by not purchasing unnecessary items. This made it difficult to raise customers' awareness of health management and saving money.
実施例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を認識し、その感情に基づいて不要な商品を判断する手段と、顧客の感情に基づいて健康的な商品を推奨する手段と、を含む。これにより、顧客の感情状態に応じた適切な商品選択が可能となり、健康管理や節約意識を高めることができる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for recognizing the customer's emotions and determining unnecessary items based on those emotions, and means for recommending healthy products based on the customer's emotions. This enables the customer to select appropriate products according to their emotional state, thereby increasing their awareness of health management and saving money.
「顧客」とは、システムを利用して自身の身長体重やダイエット目標を入力し、買い物後に購入レシートを提出する個人を指す。 "Customer" refers to an individual who uses the system to enter their height, weight, and diet goals, and then submits a purchase receipt after shopping.
「身長体重」とは、顧客の現在の身体の高さと体重を指す。 "Height and Weight" refers to the customer's current height and weight.
「目標」とは、顧客が達成したいと考えるダイエットや健康に関する具体的な数値や状態を指す。 "Goals" refer to specific numerical values or conditions related to dieting or health that a customer wishes to achieve.
「入力手段」とは、顧客が自身の身長体重や目標をシステムに入力するためのインターフェースを指す。 "Input means" refers to the interface that allows customers to input their height, weight, and goals into the system.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を記載した紙または電子データを指す。 "Purchase receipt" refers to the paper or electronic data containing the purchase details of a product that a customer receives when making a purchase.
「提出手段」とは、顧客が購入レシートをシステムに送信するためのインターフェースを指す。 "Submission means" refers to the interface through which customers submit purchase receipts to the system.
「添削手段」とは、システムが顧客の入力データや感情データに基づいて不要な商品を判断し、顧客に通知する機能を指す。 "Correction method" refers to the function by which the system determines unnecessary products based on customer input data and emotional data and notifies the customer.
「可視化手段」とは、システムが不要商品を買わなかった場合の節約できるお金や減る体重をグラフィカルに表示する機能を指す。 "Visualization means" refers to the system's ability to graphically display the money saved and weight lost if unnecessary items are not purchased.
「感情認識手段」とは、システムが顧客の感情を分析し、その感情に基づいて不要な商品を判断する機能を指す。 "Emotion recognition means" refers to the system's ability to analyze customer emotions and determine which products are unnecessary based on those emotions.
「健康的な商品推奨手段」とは、システムが顧客の感情に基づいて健康的な商品を推奨する機能を指す。 "Healthy product recommendation means" refers to the system's ability to recommend healthy products based on customer sentiment.
この発明は、顧客が自身の身長体重と目標を記入するための専用の入力フォームを提供するシステムである。このシステムは、ウェブサイトやスマートフォンアプリケーション上に設けられ、顧客が自身の身長、体重、ダイエット目標等を直接入力できるようになっている。また、感情エンジンを組み合わせることで、顧客の感情に基づいて不要な商品を判断し、健康的な商品を推奨する機能を持つ。 This invention is a system that provides a dedicated input form for customers to enter their height, weight, and diet goals. The system is set up on a website or smartphone application, and allows customers to directly input their height, weight, diet goals, etc. In addition, by combining it with an emotion engine, it has the function of determining unnecessary products based on the customer's emotions and recommending healthy products.
サーバは、ウェブサイトやスマートフォンアプリケーション上に入力フォームを設置する。この入力フォームは、HTMLとCSSを用いて作成され、JavaScriptを用いて入力データをリアルタイムで検証する。ユーザが入力フォームにデータを入力すると、サーバはそのデータを受信し、データベース(例えば、MySQLやPostgreSQL)に保存する。 The server places an input form on a website or smartphone application. This input form is created using HTML and CSS, and JavaScript is used to validate the input data in real time. When a user enters data into the input form, the server receives the data and stores it in a database (for example, MySQL or PostgreSQL).
次に、サーバは感情エンジン(例えば、Microsoft AzureのEmotion APIやGoogle CloudのNatural Language API)を使用して、ユーザの感情を分析する。感情エンジンは、ユーザの入力データや過去の行動データを基に、ユーザが現在感じている感情を認識する。例えば、ユーザがストレスを感じている場合、サーバはその情報を基に、甘いお菓子などの不健康な食品を不要な商品として判断する。一方、ユーザがリラックスしている場合、サーバは健康的な食品を推奨する。 Next, the server uses an emotion engine (for example, Microsoft Azure's Emotion API or Google Cloud's Natural Language API) to analyze the user's emotions. The emotion engine recognizes the user's current emotions based on the user's input data and past behavioral data. For example, if the user is feeling stressed, the server will use that information to determine that unhealthy foods such as sweets are unnecessary. On the other hand, if the user is relaxed, the server will recommend healthy foods.
具体例として、ユーザがスマートフォンアプリケーションを使用して、身長170cm、体重70kg、ダイエット目標を「5kg減量」と入力したとする。このデータはサーバに送信され、データベースに保存される。その後、感情エンジンがユーザの感情を分析し、ユーザがストレスを感じていると判断した場合、サーバは「チョコレートやクッキーなどの甘いお菓子は避けましょう」といったメッセージを表示する。 As a concrete example, suppose a user uses a smartphone application to enter their height as 170cm, weight as 70kg, and diet goal as "lose 5kg." This data is sent to the server and stored in a database. The emotion engine then analyzes the user's emotions, and if it determines that the user is feeling stressed, the server displays a message such as "Avoid sweet snacks such as chocolate and cookies."
生成AIモデルへ入力するプロンプト文の例: Example of a prompt to input to a generative AI model:
ユーザが身長170cm、体重70kg、ダイエット目標を「5kg減量」と入力しました。感情エンジンがユーザの感情を分析した結果、ユーザがストレスを感じていると判断しました。この場合、どのような商品を不要と判断し、どのような商品を推奨しますか? A user enters their height as 170cm, weight as 70kg, and their diet goal as "lose 5kg." The emotion engine analyzes the user's emotions and determines that the user is feeling stressed. In this case, what products would be deemed unnecessary and what products would be recommended?
このプロンプト文を生成AIモデルに入力することで、具体的な商品推奨や不要商品の判断を得ることができる。このようにして、システムはユーザの入力データと感情データを基に、適切な商品推奨を行うことができる。 By inputting this prompt into a generative AI model, specific product recommendations and a determination of unnecessary products can be obtained. In this way, the system can make appropriate product recommendations based on the user's input data and emotional data.
実施例1における特定処理の流れについて図17を用いて説明する。 The flow of the identification process in Example 1 will be explained using Figure 17.
ステップ1: Step 1:
ユーザが入力フォームにアクセスする。 The user accesses the input form.
ユーザはウェブサイトまたはスマートフォンアプリケーションを開く。端末は、ブラウザやアプリケーションを通じてサーバにリクエストを送り、入力フォームを取得する。サーバは、HTMLとCSSを用いて入力フォームを生成し、端末に送信する。端末は、受信したHTMLとCSSをレンダリングし、ユーザに入力フォームを表示する。 A user opens a website or smartphone application. The device sends a request to the server through the browser or application to retrieve an input form. The server generates the input form using HTML and CSS and sends it to the device. The device renders the received HTML and CSS and displays the input form to the user.
入力:ユーザのアクセスリクエスト Input: User access request
出力:入力フォームの表示 Output: Display the input form
ステップ2: Step 2:
ユーザが身長、体重、ダイエット目標を入力する。 Users enter their height, weight, and diet goals.
ユーザは、表示された入力フォームに自身の身長、体重、ダイエット目標を入力する。端末は、JavaScriptを用いて入力データの形式をリアルタイムで検証し、エラーがないことを確認する。 The user enters their height, weight, and diet goals into the displayed input form. The device uses JavaScript to validate the format of the input data in real time to ensure there are no errors.
入力:ユーザの身長、体重、ダイエット目標 Input: User's height, weight, and diet goal
出力:検証済みの入力データ Output: Validated input data
ステップ3: Step 3:
サーバが入力データを受信し、データベースに保存する。 The server receives the input data and stores it in the database.
ユーザが送信ボタンを押すと、端末は入力データをJSON形式でサーバに送信する。サーバは、受信したデータを解析し、MySQLデータベースに保存する。具体的には、INSERT文を用いてデータベースにデータを追加する。 When the user presses the send button, the device sends the input data in JSON format to the server. The server parses the received data and saves it in a MySQL database. Specifically, it adds the data to the database using the INSERT statement.
入力:JSON形式の入力データ Input: JSON format input data
出力:データベースに保存されたデータ Output: Data stored in the database
ステップ4: Step 4:
サーバが感情エンジンを呼び出し、ユーザの感情を分析する。 The server calls the emotion engine and analyzes the user's emotions.
サーバは、保存されたデータを基に感情エンジン(例えば、Microsoft AzureのEmotion APIやGoogle CloudのNatural Language API)を呼び出す。APIにデータを送信し、ユーザの感情を分析する。APIは、ユーザがストレスを感じていると判断し、その結果をサーバに返す。 The server calls an emotion engine (for example, Microsoft Azure's Emotion API or Google Cloud's Natural Language API) based on the stored data. The data is sent to the API, which analyzes the user's emotions. The API determines that the user is feeling stressed and returns the result to the server.
入力:データベースに保存されたデータ Input: Data stored in the database
出力:感情エンジンからの感情分析結果 Output: Sentiment analysis results from the emotion engine
ステップ5: Step 5:
サーバが感情に基づいて不要な商品を判断し、推奨商品を決定する。 The server determines which products are unnecessary based on emotions and decides which products to recommend.
サーバは、感情エンジンから得られた感情データを基に、不要な商品と推奨商品を判断する。例えば、ユーザがストレスを感じている場合、サーバは「チョコレートやクッキーなどの甘いお菓子は避けましょう」と判断し、「フルーツやナッツなどの健康的な食品を推奨します」と決定する。 The server determines which products are unnecessary and which are recommended based on emotional data obtained from the emotion engine. For example, if the user is feeling stressed, the server will determine that "sweets such as chocolate and cookies should be avoided" and decide to "recommend healthy foods such as fruits and nuts."
入力:感情エンジンからの感情分析結果 Input: Sentiment analysis results from the emotion engine
出力:不要商品と推奨商品のリスト Output: List of unwanted and recommended products
ステップ6: Step 6:
サーバが結果をユーザに表示する。 The server displays the results to the user.
サーバは、判断結果をユーザに表示するためのHTMLを生成し、端末に送信する。端末は、受信したHTMLをレンダリングし、ユーザに不要な商品と推奨商品を表示する。ユーザは、表示された結果を確認し、次の行動を決定する。 The server generates HTML to display the results of the judgment to the user and sends it to the device. The device renders the received HTML and displays unwanted products and recommended products to the user. The user checks the displayed results and decides on their next course of action.
入力:不要商品と推奨商品のリスト Input: List of unwanted and recommended products
出力:ユーザに表示された結果 Output: The result displayed to the user
(応用例1) (Application Example 1)
次に、形態例1の応用例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, we will explain Application Example 1 of Form Example 1. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
従来のフードデリバリーシステムでは、ユーザの健康状態や感情に基づいた食品の推薦が行われておらず、ユーザがストレスを感じているときに不健康な食品を選んでしまう可能性がある。また、ユーザが自身のダイエット目標に沿った食品を選ぶためのサポートが不足しているため、効果的なダイエットが難しいという問題がある Traditional food delivery systems don't recommend foods based on the user's health status or emotions, which can lead to users choosing unhealthy foods when they're stressed. Furthermore, there's a lack of support for users to choose foods that align with their diet goals, making it difficult to diet effectively.
応用例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を認識し、その感情に基づいて不要な商品を判断する手段と、を含む。これにより、ユーザの健康状態や感情に基づいた食品の推薦が可能となり、ユーザがストレスを感じているときに不健康な食品を避け、ダイエット目標に沿った食品を選ぶことができるようになる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 1 is realized by the following means. In this invention, the server includes a means for the customer to enter their current height and weight and goals, a means for the customer to submit a purchase receipt after shopping, a means for correcting items determined to be unnecessary in this purchase, a means for visualizing the money saved and weight lost if the unnecessary items are not purchased, and a means for recognizing the customer's emotions and determining unnecessary items based on those emotions. This makes it possible to recommend foods based on the user's health condition and emotions, allowing the user to avoid unhealthy foods when feeling stressed and to choose foods that are in line with their diet goals.
「顧客」とは、サービスや商品を利用する消費者を指す。 "Customer" refers to a consumer who uses a service or product.
「身長体重」とは、個人の身体の高さと体重を示す数値である。 "Height and weight" are numbers that indicate an individual's physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な目的や状態を指す。 "Goal" refers to the specific objective or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される取引の記録を示す紙または電子データである。 A "purchase receipt" is a paper or electronic record of a transaction issued when a customer purchases a product.
「不要な商品」とは、顧客の健康状態や目標に対して不適切と判断される商品を指す。 "Unnecessary products" refer to products that are deemed inappropriate for the customer's health condition or goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、顧客が不要な商品を避けることで達成できる体重の減少を示す数値である。 "Weight Loss" is a numerical value that represents the weight loss a customer can achieve by avoiding unnecessary products.
「感情を認識する手段」とは、顧客の感情状態を検出し、それに基づいて判断を行うための技術や装置を指す。 "Means for recognizing emotions" refers to technologies or devices that detect a customer's emotional state and make decisions based on that.
「可視化する手段」とは、節約できるお金や減る体重を視覚的に表示するための技術や装置を指す。 "Visualization means" refers to technology or devices that visually display the money saved or weight lost.
この発明を実施するためのシステムは、以下のように構成される。まず、ユーザが自身の身長、体重、ダイエット目標を入力するための専用フォームを提供する。このフォームは、ウェブサイトやスマートフォンアプリケーション上に設けられ、ユーザが簡単に入力できるようになっている。 A system for implementing this invention is configured as follows: First, a dedicated form is provided for users to enter their height, weight, and diet goals. This form is provided on a website or smartphone application, allowing users to easily enter information.
次に、感情エンジンを組み合わせたシステムが提供される。このシステムは、ユーザの感情をリアルタイムで認識し、その感情に基づいて不要な商品を判断する。具体的には、ユーザがストレスを感じているときには、甘いお菓子などの不健康な食品を不要な商品として検出し、リラックスしているときには、健康的な食品を推奨する。 Next, we present a system that combines an emotion engine. This system recognizes the user's emotions in real time and determines which products are unnecessary based on those emotions. Specifically, when the user is feeling stressed, it detects unhealthy foods such as sweets as unnecessary products, and when the user is relaxed, it recommends healthy foods.
このシステムの実現には、以下のハードウェアおよびソフトウェアが使用される。 The following hardware and software are used to implement this system:
ハードウェア: スマートフォン、タブレット、またはPC Hardware: Smartphone, tablet, or PC
ソフトウェア: Python、EmotionRecognizerライブラリ、FoodRecommenderライブラリ Software: Python, EmotionRecognizer library, FoodRecommender library
サーバは、ユーザが入力した身長、体重、ダイエット目標のデータを受け取り、EmotionRecognizerライブラリを使用してユーザの感情をリアルタイムで認識する。次に、FoodRecommenderライブラリを使用して、ユーザの入力データと認識された感情に基づいて適切な食品を推薦する。 The server receives the user's input data such as height, weight, and diet goal, and uses the EmotionRecognizer library to recognize the user's emotions in real time. It then uses the FoodRecommender library to recommend appropriate foods based on the user's input data and the recognized emotions.
例えば、ユーザが身長170cm、体重65kg、ダイエット目標が「体重を減らす」と入力し、感情エンジンがユーザがストレスを感じていると認識した場合、システムは不健康な食品(例えば、甘いお菓子)を避け、代わりに健康的な食品(例えば、サラダやフルーツ)を推薦する。 For example, if a user enters their height as 170cm, weight as 65kg, and diet goal as "lose weight," and the emotion engine recognizes that the user is feeling stressed, the system will avoid unhealthy foods (e.g., sweet snacks) and instead recommend healthy foods (e.g., salads and fruit).
プロンプト文の例としては、以下のようなものがある。 Examples of prompt statements include:
「ユーザが身長170cm、体重65kg、ダイエット目標が『体重を減らす』と入力し、感情エンジンがユーザがストレスを感じていると認識した場合、どのような食品を推薦しますか?」 "If a user is 170cm tall, weighs 65kg, and their diet goal is to lose weight, and the emotion engine determines that the user is feeling stressed, what foods would you recommend?"
このようにして、ユーザの健康状態や感情に基づいた食品の推薦が可能となり、ユーザがストレスを感じているときに不健康な食品を避け、ダイエット目標に沿った食品を選ぶことができるようになる。 In this way, food recommendations can be made based on the user's health status and emotions, helping users avoid unhealthy foods when they are stressed and choosing foods that align with their diet goals.
応用例1における特定処理の流れについて図18を用いて説明する。 The flow of the specific processing in Application Example 1 is explained using Figure 18.
ステップ1: Step 1:
ユーザが端末を使用して、身長、体重、ダイエット目標を入力する。入力されたデータは、サーバに送信される。入力データには、ユーザの身長(例:170cm)、体重(例:65kg)、ダイエット目標(例:「体重を減らす」)が含まれる。 The user uses the terminal to input their height, weight, and diet goal. The input data is sent to the server. The input data includes the user's height (e.g., 170 cm), weight (e.g., 65 kg), and diet goal (e.g., "lose weight").
ステップ2: Step 2:
サーバは、受信したユーザの入力データを保存し、EmotionRecognizerライブラリを使用してユーザの感情をリアルタイムで認識する。感情認識のために、ユーザの表情や音声データが入力として使用される。出力として、ユーザの感情状態(例:ストレス、リラックス)が得られる。 The server stores the received user input data and uses the EmotionRecognizer library to recognize the user's emotions in real time. For emotion recognition, the user's facial expressions and voice data are used as input. The output is the user's emotional state (e.g., stressed, relaxed).
ステップ3: Step 3:
サーバは、認識された感情状態とユーザの入力データを基に、FoodRecommenderライブラリを使用して適切な食品を推薦する。入力データには、ユーザの身長、体重、ダイエット目標、および感情状態が含まれる。出力として、推薦される食品のリスト(例:サラダ、フルーツ)が得られる。 The server uses the FoodRecommender library to recommend appropriate foods based on the recognized emotional state and user input data. Input data includes the user's height, weight, diet goals, and emotional state. The output is a list of recommended foods (e.g., salads, fruits).
ステップ4: Step 4:
サーバは、推薦された食品のリストをユーザの端末に送信する。ユーザは、端末上で推薦された食品のリストを確認することができる。具体的な動作として、ユーザがストレスを感じている場合には不健康な食品を避け、健康的な食品を推薦する。 The server sends a list of recommended foods to the user's device, where the user can check the list of recommended foods on their device. Specifically, if the user is feeling stressed, unhealthy foods will be avoided and healthy foods will be recommended.
ステップ5: Step 5:
ユーザが買い物を行い、購入レシートを端末を使用してサーバに提出する。サーバは、提出されたレシートデータを解析し、購入された商品のリストを生成する。入力データには、レシートの画像または電子データが含まれる。出力として、購入された商品のリストが得られる。 A user makes a purchase and submits the purchase receipt to the server using a terminal. The server analyzes the submitted receipt data and generates a list of the purchased items. Input data includes receipt images or electronic data. The output is a list of the purchased items.
ステップ6: Step 6:
サーバは、購入された商品のリストとユーザのダイエット目標および感情状態を比較し、不要な商品を判断する。具体的な動作として、ユーザの目標に対して不適切な商品(例:甘いお菓子)を検出する。入力データには、購入された商品のリスト、ユーザのダイエット目標、および感情状態が含まれる。出力として、不要な商品のリストが得られる。 The server compares the list of purchased items with the user's diet goals and emotional state to determine which items are unnecessary. Specific operations include detecting items that are inappropriate for the user's goals (e.g., sweet snacks). Input data includes the list of purchased items, the user's diet goals, and their emotional state. The output is a list of unnecessary items.
ステップ7: Step 7:
サーバは、不要な商品を購入しなかった場合に節約できるお金と減る体重を計算し、可視化する。具体的な動作として、節約できる金額と減少した体重をグラフィカルに表示する。入力データには、不要な商品のリストが含まれる。出力として、節約できる金額と減少した体重のグラフィカル表示が得られる。 The server calculates and visualizes the money saved and weight lost if unnecessary items are not purchased. Specific operations include graphically displaying the amount saved and weight lost. The input data includes a list of unnecessary items. The output is a graphical representation of the amount saved and weight lost.
ステップ8: Step 8:
サーバは、可視化されたデータをユーザの端末に送信する。ユーザは、端末上で節約できる金額と減少した体重を確認することができる。具体的な動作として、ユーザが不要な商品を避けることで得られるメリットを視覚的に理解することができる。 The server sends the visualized data to the user's device, where the user can check the amount of money saved and the weight lost on the device. Specifically, the user can visually understand the benefits they can gain by avoiding unnecessary products.
(実施例2) (Example 2)
次に、形態例2の実施例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, we will explain Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
従来の健康管理システムでは、顧客が買い物後に購入証明書を提出する際に、物理的な証明書を直接提出する必要があり、手間がかかるという問題があった。また、顧客の感情状態を考慮した節約金額や体重減少量の可視化が行われておらず、顧客が自身の感情と健康管理、節約の関係を理解するのが難しいという課題があった。 With conventional health management systems, customers had to submit physical proof of purchase after shopping, which was time-consuming. Furthermore, the amount of savings and weight loss were not visualized taking into account the customer's emotional state, making it difficult for customers to understand the relationship between their emotions, health management, and savings.
実施例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身体情報と目標を記入する手段と、顧客が買い物後に購入証明書を提出する手段と、顧客が携帯端末の撮影機能を用いて購入証明書の画像を取得し、アプリケーションにアップロードする手段と、サーバが画像処理技術を用いて購入証明書の内容をテキストデータに変換する手段と、サーバが変換されたテキストデータを保存する手段と、顧客が感情データを入力する手段と、サーバが感情解析技術を用いて顧客の感情データを解析する手段と、サーバが解析結果に基づいて不要な商品を判断し、節約できる金額と減少した体重を計算する手段と、サーバが計算結果をグラフィカルに表示する手段を含む。これにより、顧客は物理的な証明書を直接提出することなく、購入情報をシステムに伝えることが可能となり、さらに自身の感情と健康管理、節約の関係を視覚的に理解することが可能となる。 In this invention, the server includes means for the customer to enter their current physical information and goals, means for the customer to submit a proof of purchase after shopping, means for the customer to capture an image of the proof of purchase using the camera function of their mobile device and upload it to the application, means for the server to convert the contents of the proof of purchase into text data using image processing technology, means for the server to save the converted text data, means for the customer to input emotional data, means for the server to analyze the customer's emotional data using emotion analysis technology, means for the server to determine unnecessary products based on the analysis results and calculate the amount of savings and weight loss, and means for the server to graphically display the calculation results. This allows customers to communicate their purchase information to the system without having to directly submit a physical proof of purchase, and further enables them to visually understand the relationship between their emotions, health management, and savings.
「顧客」とは、システムを利用して自身の健康管理や節約を行う個人を指す。 "Customer" refers to an individual who uses the system to manage their own health and save money.
「身体情報」とは、顧客の身長、体重、体脂肪率などの身体的なデータを指す。 "Physical information" refers to physical data such as the customer's height, weight, and body fat percentage.
「目標」とは、顧客が達成したい健康状態や節約目標を指す。 "Goals" refers to the health or savings goals the customer wants to achieve.
「購入証明書」とは、顧客が買い物後に受け取るレシートや領収書などの購入を証明する文書を指す。 "Proof of purchase" refers to a document that proves a purchase, such as a receipt or invoice that a customer receives after shopping.
「携帯端末」とは、スマートフォンやタブレットなどの携帯可能な電子機器を指す。 "Mobile device" refers to portable electronic devices such as smartphones and tablets.
「撮影機能」とは、携帯端末に搭載されたカメラ機能を指す。 "Photography function" refers to the camera function built into the mobile device.
「アプリケーション」とは、携帯端末上で動作するソフトウェアプログラムを指す。 "Application" refers to a software program that runs on a mobile device.
「画像処理技術」とは、画像データを解析し、必要な情報を抽出する技術を指す。 "Image processing technology" refers to the technology of analyzing image data and extracting necessary information.
「テキストデータ」とは、画像処理技術によって抽出された文字情報を指す。 "Text data" refers to text information extracted using image processing technology.
「感情データ」とは、顧客の感情状態を示すデータを指す。 "Emotional data" refers to data that indicates a customer's emotional state.
「感情解析技術」とは、感情データを解析し、顧客の感情状態を評価する技術を指す。 "Emotion analysis technology" refers to technology that analyzes emotional data and evaluates a customer's emotional state.
「不要な商品」とは、顧客の健康目標や節約目標に対して購入する必要がないと判断された商品を指す。 "Unnecessary products" refer to products that are determined not to be necessary for the customer's health or savings goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Amount saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減少した体重」とは、不要な商品を購入しなかった場合に減少する可能性のある体重を指す。 "Weight lost" refers to the weight you would lose if you had not purchased unnecessary items.
「グラフィカルに表示する」とは、計算結果を視覚的にわかりやすく表示することを指す。 "Displaying graphically" refers to displaying the calculation results in a visually easy-to-understand manner.
発明を実施するための形態 Form for implementing the invention
この発明は、顧客が買い物後に購入証明書を提出し、感情データを基に節約金額と体重減少量を可視化するシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system in which customers submit a purchase certificate after shopping and visualize the amount of savings and weight loss based on emotional data. A specific embodiment of this system is described below.
システムの構成 System Configuration
このシステムは、主に以下のハードウェアおよびソフトウェアを用いる: This system primarily uses the following hardware and software:
携帯端末(スマートフォンやタブレット) Mobile devices (smartphones and tablets)
カメラ機能 Camera function
アプリケーション application
サーバ Server
画像処理ソフトウェア(例:OpenCV、Tesseract) Image processing software (e.g., OpenCV, Tesseract)
感情解析技術 Emotion analysis technology
プログラムの処理 Program processing
ユーザは、買い物後に携帯端末のカメラ機能を使用して購入証明書の画像を撮影する。撮影した画像は、アプリケーションを通じてサーバにアップロードされる。サーバは、画像処理ソフトウェア(例えば、OpenCVやTesseract)を用いて画像内のテキストを抽出し、購入商品の名前、価格、数量などの情報をテキストデータに変換する。このテキストデータは、サーバによってデータベースに保存される。 After shopping, the user uses the camera function on their mobile device to take a picture of the purchase certificate. The image is then uploaded to the server via the application. The server then uses image processing software (e.g., OpenCV or Tesseract) to extract text from the image and convert information such as the name, price, and quantity of the purchased item into text data. The server then stores this text data in a database.
次に、ユーザはアプリケーションを通じて自身の感情データを入力する。感情データは、ユーザが手動で入力する場合もあれば、ウェアラブルデバイスから自動的に取得される場合もある。サーバは、感情解析技術を用いて感情データを解析し、ユーザがストレスを感じているかどうか、どの程度のストレスを感じているかを評価する。 Next, the user enters their emotional data through the application. The emotional data may be entered manually by the user or automatically obtained from the wearable device. The server then analyzes the emotional data using emotion analysis technology to assess whether the user is feeling stressed and to what extent.
サーバは、感情解析の結果を基に、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算する。例えば、ユーザがストレスを感じているときにチョコレートを買わなかった場合、その価格(200円)とカロリー(300kcal)を基に計算する。計算結果は、サーバによってグラフィカルに表示され、ユーザはアプリケーションを通じて確認することができる。 Based on the results of the emotion analysis, the server calculates the amount of money saved and the amount of weight lost if the user refrains from buying unnecessary items when feeling stressed. For example, if the user refrains from buying chocolate when feeling stressed, the calculation is based on the price (200 yen) and calories (300 kcal). The calculation results are displayed graphically by the server, and the user can check them through the application.
具体例 Specific examples
具体例として、ユーザがストレスを感じているときにチョコレートを買わなかった場合を考える。ユーザは、スマートフォンのカメラでレシートを撮影し、アプリケーションにアップロードする。サーバは、画像処理ソフトウェアを用いてレシートの内容をテキストデータに変換し、データベースに保存する。次に、ユーザが感情データをアプリケーションに入力し、サーバが感情解析技術を用いて解析する。解析結果を基に、サーバはチョコレートの価格(200円)とカロリー(300kcal)を基に節約金額と体重減少量を計算する。最後に、サーバは計算結果をグラフィカルに表示し、ユーザはアプリケーションを通じて確認することができる。 As a concrete example, consider the case where a user decides not to buy chocolate when they are feeling stressed. The user takes a photo of the receipt with their smartphone camera and uploads it to the application. The server uses image processing software to convert the contents of the receipt into text data and stores it in a database. Next, the user enters emotional data into the application, which the server analyzes using emotion analysis technology. Based on the analysis results, the server calculates the amount of savings and weight loss based on the price of the chocolate (200 yen) and calories (300 kcal). Finally, the server displays the calculation results graphically, and the user can check them through the application.
プロンプト文の例 Example prompt
生成AIモデルへ入力するプロンプト文の例: Example of a prompt to input to a generative AI model:
「ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算し、グラフィカルに表示するプログラムを生成してください。」 "Generate a program that calculates and graphically displays the amount of money saved and weight loss a user would achieve if they avoided buying unnecessary items when they were feeling stressed."
このようにして、ユーザは自身の感情と健康管理、節約の関係を視覚的に理解することができる。 In this way, users can visually understand the relationship between their emotions, health management, and saving money.
実施例2における特定処理の流れについて図19を用いて説明する。 The flow of the identification process in Example 2 will be explained using Figure 19.
ステップ1: Step 1:
ユーザがスマートフォンのカメラで購入証明書を撮影する。 The user takes a photo of the purchase certificate using their smartphone camera.
入力:購入証明書 Enter: Proof of purchase
出力:購入証明書の画像 Output: Image of proof of purchase
具体的な動作:ユーザは、スマートフォンのカメラを起動し、購入証明書をフレーム内に収めて撮影ボタンを押す。撮影された画像はスマートフォンのギャラリーに保存される。 Specific operation: The user activates the smartphone camera, frames the purchase certificate, and presses the capture button. The captured image is saved to the smartphone's gallery.
ステップ2: Step 2:
端末が撮影した購入証明書の画像をアプリケーションにアップロードする。 Upload the image of the purchase certificate taken by the device to the application.
入力:購入証明書の画像 Input: Image of proof of purchase
出力:サーバに送信された画像データ Output: Image data sent to the server
具体的な動作:ユーザは、アプリケーションを起動し、購入証明書の画像を選択してアップロードボタンを押す。端末は、選択された画像をサーバに送信する。 Specific operation: The user launches the application, selects an image of the purchase certificate, and presses the upload button. The device then sends the selected image to the server.
ステップ3: Step 3:
サーバが画像処理技術を用いて購入証明書の内容をテキストデータに変換する。 The server uses image processing technology to convert the contents of the purchase certificate into text data.
入力:購入証明書の画像データ Input: Image data of purchase certificate
出力:テキストデータ Output: Text data
具体的な動作:サーバは、受信した画像データを画像処理ソフトウェア(例:OpenCV、Tesseract)を用いて解析し、画像内の文字情報を抽出する。抽出された文字情報は、購入商品の名前、価格、数量などのテキストデータに変換される。 Specific operation: The server analyzes the received image data using image processing software (e.g., OpenCV, Tesseract) and extracts text information from the image. The extracted text information is converted into text data such as the name, price, and quantity of the purchased item.
ステップ4: Step 4:
サーバが変換されたテキストデータをデータベースに保存する。 The server stores the converted text data in a database.
入力:テキストデータ Input: Text data
出力:データベースに保存された購入情報 Output: Purchase information stored in the database
具体的な動作:サーバは、変換されたテキストデータをデータベースに保存する。保存されるデータには、購入日時、店舗名、商品情報などが含まれる。 Specific operation: The server saves the converted text data in a database. The saved data includes the purchase date and time, store name, product information, etc.
ステップ5: Step 5:
ユーザが感情データをアプリケーションに入力する。 The user inputs emotional data into the application.
入力:感情データ Input: Emotion data
出力:サーバに送信された感情データ Output: Emotion data sent to the server
具体的な動作:ユーザは、アプリケーションを通じて自身の感情状態を入力する。感情データは、ストレスレベルや気分などの情報を含む。また、ウェアラブルデバイスから自動的に取得される場合もある。 Specific operation: The user inputs their emotional state through the application. Emotional data includes information such as stress level and mood. It may also be obtained automatically from the wearable device.
ステップ6: Step 6:
サーバが感情解析技術を用いてユーザの感情データを解析する。 The server analyzes the user's emotional data using emotion analysis technology.
入力:感情データ Input: Emotion data
出力:解析結果 Output: Analysis results
具体的な動作:サーバは、感情解析技術を用いて感情データを解析し、ユーザがストレスを感じているかどうか、どの程度のストレスを感じているかを評価する。解析結果は、数値やグラフとして表現される。 Specific operation: The server uses emotion analysis technology to analyze emotional data and evaluate whether the user is feeling stressed and to what extent. The analysis results are displayed as numbers and graphs.
ステップ7: Step 7:
サーバが解析結果に基づいて不要な商品を判断し、節約できる金額と減少した体重を計算する。 The server determines which items are unnecessary based on the analysis results and calculates the amount of money saved and the weight lost.
入力:解析結果、テキストデータ Input: Analysis results, text data
出力:節約金額と減少した体重のデータ Output: Savings and weight loss data
具体的な動作:サーバは、感情解析の結果と購入情報を基に、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算する。例えば、チョコレートの価格(200円)とカロリー(300kcal)を基に計算する。 Specific operation: Based on the results of emotion analysis and purchase information, the server calculates the amount of money saved and the amount of weight lost if the user does not buy unnecessary items when feeling stressed. For example, the calculation is based on the price (200 yen) and calories (300 kcal) of chocolate.
ステップ8: Step 8:
サーバが計算結果をグラフィカルに表示する。 The server displays the calculation results graphically.
入力:節約金額と減少した体重のデータ Input: Savings and weight loss data
出力:グラフィカルな表示 Output: Graphical display
具体的な動作:サーバは、計算結果をグラフィカルに表示するためのデータを生成し、アプリケーションを通じてユーザに提供する。ユーザは、アプリケーションを通じて節約金額と体重減少量を視覚的に確認することができる。 Specific operation: The server generates data for graphically displaying the calculation results and provides it to the user through the application. The user can visually check the amount of savings and weight loss through the application.
(応用例2) (Application Example 2)
次に、形態例2の応用例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, we will explain Application Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
従来の買い物支援システムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかるという問題があった。また、顧客の感情や健康状態を考慮した買い物支援が行われておらず、ストレスを感じているときに不要な商品を購入してしまうことが多かった。これにより、無駄な出費や健康への悪影響が生じることが課題であった。 Conventional shopping support systems required customers to physically submit receipts for purchased items, which was a time-consuming process. Furthermore, the shopping support did not take into account the customer's emotions or health status, leading to unnecessary purchases when they were feeling stressed. This led to wasteful spending and negative health effects, which was an issue.
応用例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートをスマートフォンのカメラを用いて撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を分析し、ストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量をグラフィカルに表示する手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、感情や健康状態を考慮した買い物支援が可能となる。 In this invention, the server includes: a means for the customer to enter their current height and weight and goals; a means for the customer to take a photo of their purchase receipt using their smartphone camera after shopping and upload it to the application; a means for correcting items that are determined to be unnecessary in this purchase; a means for visualizing the money saved and weight lost if the customer does not buy unnecessary items; and a means for analyzing the customer's emotions and graphically displaying the amount of money saved and weight lost if the customer does not buy unnecessary items when they are feeling stressed. This saves the customer the trouble of submitting physical receipts, and enables shopping support that takes their emotions and health state into consideration.
「顧客」とは、商品やサービスを購入する消費者である。 "Customer" refers to a consumer who purchases goods or services.
「身長体重」とは、顧客の身体の高さと体重の数値である。 "Height and Weight" refers to the customer's physical height and weight.
「目標」とは、顧客が達成したい具体的な数値や状態を指す。 "Goal" refers to the specific numerical value or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される購入証明書である。 A "purchase receipt" is a proof of purchase issued when a customer purchases a product.
「スマートフォンのカメラ」とは、スマートフォンに内蔵されている撮影装置である。 A "smartphone camera" is a photographic device built into a smartphone.
「アプリケーション」とは、スマートフォンや他のデバイスで動作するソフトウェアプログラムである。 An "application" is a software program that runs on a smartphone or other device.
「アップロード」とは、データをローカルデバイスからサーバやクラウドに転送する行為である。 "Uploading" is the act of transferring data from a local device to a server or cloud.
「添削」とは、内容を確認し、不要な部分を修正または削除する行為である。 "Correction" is the act of checking the content and correcting or deleting unnecessary parts.
「不要商品」とは、顧客が購入する必要がないと判断された商品である。 "Unnecessary items" are items that customers have determined they do not need to purchase.
「節約できるお金」とは、不要商品を購入しなかった場合に節約できる金額である。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要商品を購入しなかった結果として減少した体重である。 "Weight lost" refers to the weight lost as a result of not purchasing unnecessary items.
「可視化」とは、データや情報を視覚的に表示する行為である。 "Visualization" is the act of visually displaying data or information.
「感情を分析」とは、顧客の感情状態を評価し、理解するプロセスである。 "Analyzing emotions" is the process of assessing and understanding a customer's emotional state.
「ストレス」とは、精神的または肉体的な緊張や負担を指す。 "Stress" refers to mental or physical tension or strain.
「グラフィカルに表示」とは、情報をグラフや図表などの視覚的な形式で表示することである。 "Graphically displayed" means displaying information in a visual format such as a graph or chart.
この発明は、顧客が買い物後に購入レシートをスマートフォンのカメラを用いて撮影し、アプリケーションにアップロードするシステムを提供するものである。さらに、顧客の感情を分析し、ストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量をグラフィカルに表示する機能を含む。 This invention provides a system that allows customers to take a photo of their purchase receipt using their smartphone camera after shopping and upload it to an application. It also includes a function that analyzes the customer's emotions and graphically displays the amount of money saved and the amount of weight lost if they avoid buying unnecessary items when they are feeling stressed.
システムの構成 System Configuration
1. ハードウェア: 1. Hardware:
スマートフォン: カメラ機能を用いて購入レシートを撮影する。 Smartphone: Use the camera function to take a photo of your purchase receipt.
サーバ: アプリケーションのバックエンドとして機能し、データの保存と処理を行う。 Server: Serves as the backend for the application, storing and processing data.
2. ソフトウェア: 2. Software:
アプリケーション: スマートフォンにインストールされ、レシートの撮影、アップロード、感情分析、グラフィカル表示を行う。 Application: Installed on a smartphone, it takes photos of receipts, uploads them, performs sentiment analysis, and displays them graphically.
OpenCV: レシート画像の読み込みと前処理を行うライブラリ。 OpenCV: A library for loading and preprocessing receipt images.
Tesseract OCR: レシート画像からテキストを抽出するための光学文字認識ソフトウェア。 Tesseract OCR: Optical character recognition software for extracting text from receipt images.
EmotionRecognizer: 顧客の感情を分析するための感情認識ソフトウェア。 EmotionRecognizer: Emotion recognition software for analyzing customer emotions.
Matplotlib: 節約金額と体重減少量をグラフィカルに表示するためのライブラリ。 Matplotlib: A library for graphically displaying savings and weight loss.
システムの動作 System Operation
1. レシート撮影とアップロード: 1. Take a photo of your receipt and upload it:
ユーザはスマートフォンのカメラを使って購入レシートを撮影する。 Users take a photo of their purchase receipt using their smartphone camera.
撮影した画像はアプリケーションを通じてサーバにアップロードされる。 The captured images are uploaded to the server via the application.
2. テキスト抽出: 2. Text extraction:
サーバはOpenCVを用いて画像を前処理し、Tesseract OCRを使ってレシートからテキストを抽出する。 The server preprocesses the image using OpenCV and extracts text from the receipt using Tesseract OCR.
3. 感情分析: 3. Sentiment analysis:
サーバはEmotionRecognizerを用いてユーザの感情を分析する。 The server analyzes the user's emotions using EmotionRecognizer.
ストレスを感じている場合、不要な商品を買わなかった場合の節約金額と体重減少量を計算する。 When you're feeling stressed, calculate how much money you'll save and how much weight you'll lose if you don't buy unnecessary items.
4. グラフィカル表示: 4. Graphical display:
サーバはMatplotlibを用いて節約金額と体重減少量をグラフィカルに表示するデータを生成し、アプリケーションに送信する。 The server uses Matplotlib to generate data that graphically displays the savings and weight loss, and sends it to the application.
アプリケーションはこれをユーザに視覚的に表示する。 The application will display this visually to the user.
具体例 Specific examples
例えば、ユーザがストレスを感じているときに不要な商品を買わなかった場合、アプリケーションは1000円の節約と0.5kgの体重減少をグラフィカルに表示する。 For example, if a user avoids buying unnecessary items when feeling stressed, the application will graphically display a savings of 1,000 yen and a weight loss of 0.5 kg.
プロンプト文の例 Example prompt
ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算し、グラフィカルに表示するプログラムを作成してください。レシート画像をスマートフォンのカメラで撮影し、Tesseract OCRでテキストを抽出します。EmotionRecognizerを使ってユーザの感情を分析し、Matplotlibで結果を表示します。 Create a program that calculates and graphically displays the savings and weight loss that a user could achieve by not purchasing unnecessary items when they are feeling stressed. Take a photo of the receipt with a smartphone camera and extract the text using Tesseract OCR. Analyze the user's emotions using EmotionRecognizer and display the results using Matplotlib.
応用例2における特定処理の流れについて図20を用いて説明する。 The flow of the specific processing in Application Example 2 is explained using Figure 20.
ステップ1: Step 1:
ユーザはスマートフォンのカメラを使って購入レシートを撮影する。 Users take a photo of their purchase receipt using their smartphone camera.
入力: 購入レシートの物理的な画像 Input: Physical image of purchase receipt
出力: スマートフォンに保存されたレシート画像 Output: Receipt image saved on your smartphone
具体的な動作: ユーザはスマートフォンのカメラアプリを起動し、購入レシートを撮影する。撮影された画像はスマートフォンのストレージに保存される。 Specific operation: The user launches the smartphone's camera app and takes a photo of the purchase receipt. The captured image is saved to the smartphone's storage.
ステップ2: Step 2:
端末は撮影したレシート画像をアプリケーションにアップロードする。 The device will upload the captured receipt image to the application.
入力: スマートフォンに保存されたレシート画像 Input: Receipt image saved on your smartphone
出力: サーバにアップロードされたレシート画像 Output: Receipt image uploaded to the server
具体的な動作: ユーザはアプリケーションを起動し、撮影したレシート画像を選択してアップロードボタンを押す。画像はインターネットを通じてサーバに送信される。 Specific operation: The user launches the application, selects the captured receipt image, and presses the upload button. The image is sent to the server via the Internet.
ステップ3: Step 3:
サーバはOpenCVを用いてレシート画像を前処理し、Tesseract OCRでテキストを抽出する。 The server preprocesses the receipt image using OpenCV and extracts text using Tesseract OCR.
入力: サーバにアップロードされたレシート画像 Input: Receipt image uploaded to the server
出力: 抽出されたテキストデータ Output: Extracted text data
具体的な動作: サーバはOpenCVを使って画像のノイズを除去し、テキスト部分を強調する。次に、Tesseract OCRを用いて画像からテキストを抽出する。 Specific operation: The server uses OpenCV to remove noise from the image and highlight the text. Then, it uses Tesseract OCR to extract the text from the image.
ステップ4: Step 4:
サーバはEmotionRecognizerを用いてユーザの感情を分析する。 The server analyzes the user's emotions using EmotionRecognizer.
入力: ユーザの感情データ(例えば、ユーザがアプリケーションに入力した感情状態) Input: User emotional data (e.g., the emotional state the user enters into the application)
出力: 分析された感情状態 Output: Analyzed emotional state
具体的な動作: サーバはEmotionRecognizerを使ってユーザの感情データを解析し、ストレス状態かどうかを判断する。 Specific operation: The server uses EmotionRecognizer to analyze the user's emotional data and determine whether they are under stress.
ステップ5: Step 5:
サーバはストレスを感じている場合、不要な商品を買わなかった場合の節約金額と体重減少量を計算する。 When you feel stressed, the server calculates the amount of money you would save and the amount of weight you would lose if you didn't buy unnecessary items.
入力: 分析された感情状態、抽出されたテキストデータ Input: Analyzed emotional state, extracted text data
出力: 節約金額と体重減少量のデータ Output: Savings and weight loss data
具体的な動作: サーバは感情状態がストレスである場合、抽出されたテキストデータから不要な商品を特定し、それを買わなかった場合の節約金額と体重減少量を計算する。 Specific operation: If the emotional state is stressed, the server identifies unnecessary items from the extracted text data and calculates the amount of savings and weight loss that would result if the item were not purchased.
ステップ6: Step 6:
サーバはMatplotlibを用いて節約金額と体重減少量をグラフィカルに表示するデータを生成し、アプリケーションに送信する。 The server uses Matplotlib to generate data that graphically displays the savings and weight loss, and sends it to the application.
入力: 節約金額と体重減少量のデータ Input: Savings and weight loss data
出力: グラフィカルに表示するための画像データ Output: Image data for graphical display
具体的な動作: サーバはMatplotlibを使って節約金額と体重減少量を棒グラフなどの形式で視覚的に表示する画像を生成し、その画像データをアプリケーションに送信する。 Specific operation: The server uses Matplotlib to generate images that visually display the amount of savings and weight loss in the form of bar graphs, etc., and sends the image data to the application.
ステップ7: Step 7:
端末はサーバから受け取ったグラフィカルなデータをユーザに表示する。 The terminal displays the graphical data received from the server to the user.
入力: サーバから送信されたグラフィカルな画像データ Input: Graphical image data sent from the server
出力: スマートフォンの画面に表示されたグラフィカルな情報 Output: Graphical information displayed on a smartphone screen
具体的な動作: アプリケーションはサーバから受け取った画像データをスマートフォンの画面に表示し、ユーザが視覚的に節約金額と体重減少量を確認できるようにする。 Specific operation: The application displays the image data received from the server on the smartphone screen, allowing the user to visually check the amount of savings and weight loss.
(実施例3) (Example 3)
次に、形態例3の実施例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, we will explain Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
現代の消費者は、健康管理と節約の両立を目指しているが、日常の買い物において不要な商品を購入してしまうことが多い。このような不要な商品は、健康目標に反するだけでなく、無駄な出費を引き起こす原因となる。しかし、消費者自身がこれらの不要な商品を特定し、購入を避けることは容易ではない。したがって、消費者が自身の健康目標に基づいて不要な商品を自動的に検出し、節約できる金額と健康への影響を可視化するシステムが求められている Today's consumers aim to balance health management with saving money, but they often end up buying unnecessary products in their daily shopping. These unnecessary products not only go against their health goals but also lead to wasteful spending. However, it is not easy for consumers to identify and avoid these unnecessary products. Therefore, there is a need for a system that automatically detects unnecessary products based on consumers' health goals and visualizes the savings and health impact.
実施例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を入力する手段と、顧客が買い物後に購入レシートの画像をアップロードする手段と、レシート画像を光学文字認識技術を用いてデジタルデータに変換する手段と、デジタルデータから商品情報を解析し、不要な商品を検出する手段と、不要商品の合計金額と推定体重減少量を計算する手段と、計算結果をグラフやチャートで可視化する手段を含む。これにより、消費者は自身の健康目標に基づいて不要な商品を自動的に検出し、節約できる金額と健康への影響を具体的に把握することが可能となる。 In this invention, the server includes means for customers to input their current height and weight and goals, means for customers to upload an image of their purchase receipt after shopping, means for converting the receipt image into digital data using optical character recognition technology, means for analyzing product information from the digital data and detecting unnecessary products, means for calculating the total price of unnecessary products and estimated weight loss, and means for visualizing the calculation results in graphs and charts. This allows consumers to automatically detect unnecessary products based on their own health goals and specifically understand the amount of money they can save and the impact on their health.
「顧客」とは、システムを利用して自身の健康管理と節約を目指す消費者である。 "Customers" are consumers who use the system to manage their own health and save money.
「身長体重」とは、顧客の身体的な基本データであり、健康目標を設定するための基礎情報である。 "Height and weight" refers to the customer's basic physical data and is fundamental information for setting health goals.
「目標」とは、顧客が達成したい健康状態や体重管理の目標であり、例えば糖質制限やカロリー制限などが含まれる。 "Goals" refer to the health and weight management goals that a customer wishes to achieve, such as carbohydrate restriction or calorie restriction.
「レシートの画像」とは、顧客が買い物後に取得する購入明細書の写真データである。 "Receipt image" refers to photo data of the purchase details that a customer obtains after shopping.
「光学文字認識技術」とは、画像内の文字情報をデジタルデータに変換する技術であり、OCR(Optical Character Recognition)とも呼ばれる。 "Optical character recognition technology" is a technology that converts text information in an image into digital data, and is also known as OCR (Optical Character Recognition).
「デジタルデータ」とは、光学文字認識技術を用いて変換されたテキスト情報である。 "Digital data" means text information converted using optical character recognition technology.
「商品情報」とは、レシートに記載された商品の名称や価格、栄養情報などのデータである。 "Product information" refers to data such as the product name, price, and nutritional information listed on the receipt.
「不要な商品」とは、顧客の健康目標に反する商品であり、購入を避けるべきものである。 "Unnecessary products" are products that are contrary to the customer's health goals and should be avoided.
「合計金額」とは、検出された不要な商品の総価格である。 "Total amount" is the total price of the unwanted items detected.
「推定体重減少量」とは、不要な商品を摂取しなかった場合に予測される体重の減少量である。 "Estimated weight loss" is the amount of weight loss predicted if the unnecessary product was not consumed.
「グラフやチャート」とは、計算結果を視覚的に表示するための図表である。 "Graphs and charts" are diagrams that visually display calculation results.
この発明は、消費者が自身の健康管理と節約を効率的に行うためのシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system that allows consumers to efficiently manage their own health and save money. Specific embodiments of this system are described below.
まず、ユーザは端末を使用してシステムのウェブページにアクセスする。ユーザは自身の身長、体重、および健康目標(例:糖質制限)を入力する。これらのデータは、サーバに送信され、データベースに保存される。 First, the user accesses the system's web page using a terminal. The user enters their height, weight, and health goals (e.g., carbohydrate restriction). This data is sent to the server and stored in a database.
次に、ユーザは買い物後に取得したレシートの画像を端末からシステムにアップロードする。アップロードされたレシート画像は、サーバに送信される。サーバは、Google Cloud Vision APIなどの光学文字認識技術を使用して、レシート画像をデジタルデータに変換する。このデジタルデータには、レシート上のテキスト情報が含まれている。 Next, the user uploads an image of the receipt obtained after shopping from their device to the system. The uploaded receipt image is sent to the server, which then uses optical character recognition technology such as Google Cloud Vision API to convert the receipt image into digital data. This digital data includes the text information on the receipt.
サーバは、変換されたデジタルデータを解析し、商品名とその栄養情報を抽出する。例えば、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が糖質制限の目標に反するため、不要な商品としてリストアップする。 The server analyzes the converted digital data and extracts product names and their nutritional information. For example, if a receipt includes "bread" or "sweets," these items are listed as unnecessary because they go against the goal of carbohydrate restriction.
次に、サーバは不要な商品の合計金額を計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、標準的なカロリー消費モデルを使用する。計算結果は、D3.jsなどのデータ可視化ライブラリを使用してグラフやチャートとして可視化される。 The server then calculates the total cost of the unnecessary items, as well as the estimated weight loss that would occur if these items were not consumed. A standard calorie expenditure model is used to calculate weight loss. The results are visualized as graphs and charts using a data visualization library such as D3.js.
ユーザは端末を使用して、サーバから送信されたグラフやチャートを確認する。これにより、ユーザは不要な商品を買わなかった場合の節約金額と体重減少量を視覚的に理解することができる。 The user uses their device to view the graphs and charts sent from the server, allowing them to visually understand how much money they could save and how much weight they could lose by not buying unnecessary products.
具体例として、ユーザがストレスを感じているときにチョコレートを購入した場合を考える。感情エンジンは、ユーザの感情状態を分析し、ストレスが高いと判断する。この場合、チョコレートを不要な商品として検出する。そして、チョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。これにより、ユーザはストレスを感じているときに不健康な食品を購入する傾向があることを認識し、その結果としての金銭的、健康的な影響を理解することができる。 As a concrete example, consider the case where a user purchases chocolate when feeling stressed. The emotion engine analyzes the user's emotional state and determines that stress is high. In this case, it detects chocolate as an unnecessary item and displays a graph of the amount of money saved and weight loss that would have been achieved if the user had not purchased the chocolate. This allows the user to recognize their tendency to purchase unhealthy foods when they are stressed and understand the resulting financial and health impacts.
プロンプト文の例: Example prompt:
ユーザがストレスを感じているときに購入した食品を検出し、その食品を買わなかった場合の節約金額と体重減少量を計算してグラフで表示してください。 Detect the foods the user purchases when they are stressed, calculate the amount of money saved and the weight loss they would have lost if they had not purchased those foods, and display the results in a graph.
このシステムにより、ユーザは自身の健康管理と節約の両方を具体的に把握することができる。実施例3における特定処理の流れについて図21を用いて説明する。 This system allows users to specifically understand both their own health management and savings. The flow of the identification process in Example 3 will be explained using Figure 21.
ステップ1: Step 1:
ユーザが身長、体重、目標を入力する。 Users enter their height, weight, and goals.
ユーザは端末を使用して、システムのウェブページにアクセスし、フォームに自身の身長(例:170cm)、体重(例:70kg)、および健康目標(例:糖質制限)を入力する。入力されたデータは、サーバに送信され、データベースに保存される。 Using a terminal, a user accesses the system's web page and enters their height (e.g., 170 cm), weight (e.g., 70 kg), and health goal (e.g., carbohydrate restriction) into the form. The entered data is sent to the server and stored in a database.
入力:身長、体重、健康目標 Input: height, weight, health goals
出力:データベースに保存されたユーザ情報 Output: User information stored in the database
ステップ2: Step 2:
ユーザがレシートの画像をアップロードする。 The user uploads an image of the receipt.
ユーザは端末を使用して、最近の買い物のレシート画像をシステムにアップロードする。アップロードされた画像は、サーバに送信される。 Users use their device to upload images of recent purchase receipts to the system. The uploaded images are then sent to the server.
入力:レシート画像 Input: Receipt image
出力:サーバに保存されたレシート画像 Output: Receipt image saved on the server
ステップ3: Step 3:
サーバがレシート画像をOCR処理する。 The server performs OCR processing on the receipt image.
サーバは、光学文字認識技術(OCR)を使用してレシート画像をデジタルデータに変換する。具体的には、Google Cloud Vision APIを呼び出してOCR処理を行う。 The server uses optical character recognition (OCR) technology to convert the receipt image into digital data. Specifically, it calls the Google Cloud Vision API to perform the OCR process.
入力:レシート画像 Input: Receipt image
出力:デジタルデータ(テキスト情報) Output: Digital data (text information)
ステップ4: Step 4:
サーバが商品情報を解析し、不要な商品を検出する。 The server analyzes product information and detects unnecessary products.
サーバは、OCR処理で得られたデジタルデータを解析し、商品名とその栄養情報を抽出する。例えば、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が糖質制限の目標に反するため、不要な商品としてリストアップする。 The server analyzes the digital data obtained through OCR processing and extracts product names and their nutritional information. For example, if a receipt includes "bread" or "sweets," these items are listed as unnecessary because they go against the goal of carbohydrate restriction.
入力:デジタルデータ(テキスト情報)、ユーザの健康目標 Input: Digital data (text information), user's health goals
出力:不要な商品のリスト Output: List of unwanted items
ステップ5: Step 5:
サーバが不要商品の合計金額と推定体重減少量を計算する。 The server calculates the total price of unwanted items and the estimated weight loss.
サーバは、検出された不要商品の合計金額を計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、標準的なカロリー消費モデルを使用する。 The server calculates the total value of the unwanted products detected, as well as the estimated weight loss that would occur if the user did not consume these products. A standard calorie expenditure model is used to calculate weight loss.
入力:不要な商品のリスト、商品価格、カロリー情報 Input: List of unwanted items, product price, calorie information
出力:合計金額、推定体重減少量 Output: Total amount, estimated weight loss
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化する。 The server visualizes the calculation results in graphs and charts.
サーバは、D3.jsなどのデータ可視化ライブラリを使用して、不要商品の合計金額と推定体重減少量をグラフやチャートとして生成する。 The server uses a data visualization library such as D3.js to generate graphs and charts showing the total price of unwanted items and estimated weight loss.
入力:合計金額、推定体重減少量 Input: Total amount, estimated weight loss
出力:グラフやチャート Output: Graphs and charts
ステップ7: Step 7:
ユーザが結果を確認する。 The user checks the results.
ユーザは端末を使用して、サーバから送信されたグラフやチャートを確認する。これにより、ユーザは不要な商品を買わなかった場合の節約金額と体重減少量を視覚的に理解することができる。 The user uses their device to view the graphs and charts sent from the server, allowing them to visually understand how much money they could save and how much weight they could lose by not buying unnecessary items.
入力:グラフやチャート Input: Graphs and charts
出力:ユーザの理解と認識 Output: User understanding and recognition
(応用例3) (Application Example 3)
次に、形態例3の応用例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、スマート眼鏡214を「端末」と称する。 Next, we will explain Application Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the smart glasses 214 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を同時に行うことが求められているが、買い物の際にどの商品が不要であるかを判断するのは難しい。また、不要な商品を購入しなかった場合の具体的な節約金額や体重減少量を把握する手段が不足している。このため、消費者が健康的な選択をし、節約を実感できるシステムが求められている。 Today's consumers are expected to manage their health and save money at the same time, but it can be difficult to determine which products are unnecessary when shopping. Furthermore, there is a lack of ways to grasp the specific amount of savings or weight loss that can be achieved by not purchasing unnecessary items. For this reason, there is a need for a system that allows consumers to make healthy choices and realize the savings they are making.
応用例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、不要商品を検出し、節約金額と体重減少量を計算する手段と、検出結果をグラフで表示する手段と、を含む。これにより、消費者は買い物の際に不要な商品を簡単に特定し、健康管理と節約の両方を具体的に把握することが可能となる。 In this invention, the server includes means for customers to enter their current height and weight and goals, means for customers to submit purchase receipts after shopping, means for correcting items determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if unnecessary items are not purchased, means for detecting unnecessary items and calculating the amount saved and the amount of weight lost, and means for displaying the detection results in a graph. This allows consumers to easily identify unnecessary items when shopping and specifically understand both health management and savings.
「顧客」とは、システムを利用して買い物を行う消費者を指す。 "Customer" refers to a consumer who uses the system to make purchases.
「身長体重」とは、顧客の現在の身体の高さと体重を指す。 "Height and Weight" refers to the customer's current height and weight.
「目標」とは、顧客が達成したい健康やダイエットに関する具体的な目的を指す。 "Goals" refer to the specific health or diet objectives that the customer wants to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を示す紙または電子データを指す。 "Purchase receipt" refers to the paper or electronic data showing the purchase details of a product that a customer receives when making a purchase.
「不要な商品」とは、顧客の身長体重と目標に基づいて、買い物リストから除外すべきと判断される商品を指す。 "Unnecessary items" refer to items that should be removed from the shopping list based on the customer's height, weight, and goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss predicted if the unnecessary product is not consumed.
「可視化する手段」とは、節約できるお金と減る体重をグラフやチャートなどの視覚的な形式で表示する方法を指す。 "Visualization methods" refers to ways to display the money saved and weight lost in visual form, such as graphs or charts.
「検出する手段」とは、顧客の身長体重と目標に基づいて不要な商品を特定する方法を指す。 "Means of detection" refers to a method for identifying unwanted products based on the customer's height, weight, and goals.
「計算する手段」とは、不要な商品を買わなかった場合の節約金額と体重減少量を算出する方法を指す。 "Means of calculation" refers to a method for calculating the amount of money saved and weight loss that would be achieved by not purchasing unnecessary items.
「グラフで表示する手段」とは、検出結果を視覚的に理解しやすい形式で表示する方法を指す。 "Means of displaying in a graph" refers to a method of displaying detection results in a visually easy-to-understand format.
この発明を実施するためのシステムは、顧客が現在の身長体重と目標を記入する手段、顧客が買い物後に購入レシートを提出する手段、今回の買い物で不要だと判断できる商品を添削する手段、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段、不要商品を検出し、節約金額と体重減少量を計算する手段、検出結果をグラフで表示する手段を含む。 A system for implementing this invention includes means for a customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if unnecessary items are not purchased, means for detecting unnecessary items and calculating the amount saved and weight lost, and means for displaying the detection results in a graph.
システムの構成 System Configuration
システムは、スマートフォンアプリケーションとして実装される。アプリケーションは、PythonとFlaskを使用して構築され、サーバ側でデータ処理を行う。スマートフォンは、ユーザが入力した身長体重と目標、及びレシートの情報をサーバに送信する。 The system is implemented as a smartphone application. The application is built using Python and Flask, and performs data processing on the server side. The smartphone sends the user's height, weight, and goals, as well as receipt information, to the server.
データ加工とデータ演算 Data processing and calculation
サーバは、ユーザから送信されたデータを受け取り、以下の処理を行う。 The server receives the data sent by the user and performs the following processing:
1. 不要商品の検出: 1. Detecting unwanted products:
サーバは、ユーザの身長体重と目標に基づいて、レシートに含まれる不要な商品を特定する。例えば、ユーザが「糖質制限」を目標にしている場合、レシートに含まれる「パン」や「お菓子」を不要商品として検出する。 The server identifies unnecessary items on the receipt based on the user's height, weight, and goals. For example, if the user's goal is to "limit carbohydrates," it will detect "bread" and "sweets" on the receipt as unnecessary items.
2. 節約金額と体重減少量の計算: 2. Calculate savings and weight loss:
サーバは、不要商品を購入しなかった場合の節約金額と体重減少量を計算する。例えば、不要商品の価格を合計し、その商品のカロリーを基に体重減少量を算出する。 The server calculates the amount of money saved and the amount of weight lost if the unnecessary items were not purchased. For example, it adds up the prices of the unnecessary items and calculates the amount of weight lost based on the calories in those items.
3. 結果の可視化: 3. Visualizing the results:
サーバは、計算結果をグラフやチャート形式で生成し、スマートフォンアプリケーションに送信する。ユーザは、アプリケーションを通じて結果を視覚的に確認できる。 The server generates the calculation results in the form of graphs and charts and sends them to a smartphone application. Users can visually check the results through the application.
使用するハードウェアとソフトウェア Hardware and software used
ハードウェア: スマートフォン Hardware: Smartphone
ソフトウェア: Python, Flask Software: Python, Flask
具体例 Specific examples
ユーザが「糖質制限」を目標にしており、レシートに「パン」と「お菓子」が含まれている場合、システムはこれらを不要商品として検出する。節約金額は350円(パン150円 + お菓子200円)、体重減少量は0.064kg(500kcal / 7700kcal)と計算される。これらの結果は、スマートフォンアプリケーション上でグラフとして表示される。 If a user's goal is to "limit carbohydrates" and the receipt includes "bread" and "sweets," the system will detect these as unnecessary items. The savings will be calculated as 350 yen (bread 150 yen + sweets 200 yen), and the weight loss will be 0.064 kg (500 kcal / 7700 kcal). These results are displayed as a graph on the smartphone application.
プロンプト文の例 Example prompt
ユーザが糖質制限を目標にしている場合、レシートに含まれる不要な商品を検出し、節約金額と体重減少量を計算してください。以下のデータを使用してください。 If a user is aiming to limit carbohydrates, detect unnecessary items in their receipts and calculate savings and weight loss. Use the following data:
身長: 170cm Height: 170cm
体重: 70kg Weight: 70kg
目標: 糖質制限 Goal: Carbohydrate restriction
レシートアイテム: ["パン", "お菓子", "野菜"] Receipt items: ["Bread", "Sweets", "Vegetables"]
応用例3における特定処理の流れについて図22を用いて説明する。 The flow of the specific processing in Application Example 3 will be explained using Figure 22.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、現在の身長体重と目標を入力する。 The user launches the smartphone application and enters their current height, weight, and goal.
入力: 身長、体重、目標 Input: height, weight, goal
出力: 身長、体重、目標のデータ Output: Height, weight, and goal data
具体的な動作: ユーザはアプリケーションの入力フォームに身長、体重、目標を入力し、送信ボタンを押す。 Specific action: The user enters their height, weight, and goal into the application's input form and presses the submit button.
ステップ2: Step 2:
ユーザが買い物後に購入レシートをスマートフォンでスキャンし、アプリケーションにアップロードする。 After shopping, users scan their purchase receipt with their smartphone and upload it to the application.
入力: 購入レシートの画像 Input: Purchase receipt image
出力: レシートのテキストデータ Output: Receipt text data
具体的な動作: ユーザはスマートフォンのカメラを使用してレシートを撮影し、アプリケーションにアップロードする。アプリケーションはOCR技術を用いて画像からテキストデータを抽出する。 Specific operation: The user takes a photo of the receipt using their smartphone camera and uploads it to the application. The application uses OCR technology to extract text data from the image.
ステップ3: Step 3:
サーバがユーザから送信された身長、体重、目標、およびレシートのテキストデータを受け取る。 The server receives the height, weight, goal, and receipt text data sent by the user.
入力: 身長、体重、目標、レシートのテキストデータ Input: Height, weight, goal, and receipt text data
出力: 受信データの保存 Output: Save received data
具体的な動作: サーバはHTTPリクエストを受け取り、送信されたデータをデータベースに保存する。 Specific operation: The server receives the HTTP request and stores the submitted data in the database.
ステップ4: Step 4:
サーバがユーザの目標に基づいて、レシートに含まれる不要な商品を検出する。 The server detects unwanted items on the receipt based on the user's goals.
入力: 身長、体重、目標、レシートのテキストデータ Input: Height, weight, goal, and receipt text data
出力: 不要商品のリスト Output: List of unwanted items
具体的な動作: サーバは目標に関連する不要商品のリストを参照し、レシートのテキストデータと照合して不要商品を特定する。 Specific operation: The server references the list of unwanted items related to the goal and identifies the unwanted items by matching them with the text data on the receipt.
ステップ5: Step 5:
サーバが不要商品を購入しなかった場合の節約金額と体重減少量を計算する。 The server calculates the amount of savings and weight loss you would have achieved if you had not purchased unnecessary items.
入力: 不要商品のリスト Input: List of unwanted items
出力: 節約金額、体重減少量 Output: Savings, weight loss
具体的な動作: サーバは不要商品の価格を合計し、不要商品のカロリーを基に体重減少量を算出する。例えば、不要商品の合計価格が350円で、合計カロリーが500kcalの場合、体重減少量は0.064kg(500kcal / 7700kcal)と計算される。 Specific operation: The server adds up the prices of the unwanted items and calculates the amount of weight loss based on the calories of the unwanted items. For example, if the total price of the unwanted items is 350 yen and the total calories are 500 kcal, the amount of weight loss will be calculated as 0.064 kg (500 kcal / 7700 kcal).
ステップ6: Step 6:
サーバが計算結果をグラフやチャート形式で生成し、スマートフォンアプリケーションに送信する。 The server generates the calculation results in the form of graphs and charts and sends them to the smartphone application.
入力: 節約金額、体重減少量 Input: Amount saved, weight loss
出力: グラフやチャートの画像データ Output: Image data for graphs and charts
具体的な動作: サーバは計算結果を基にグラフやチャートを生成し、画像データとしてスマートフォンアプリケーションに送信する。 Specific operation: The server generates graphs and charts based on the calculation results and sends them as image data to the smartphone application.
ステップ7: Step 7:
ユーザがスマートフォンアプリケーションを通じて、節約金額と体重減少量の結果を視覚的に確認する。 Users can visually check the savings and weight loss results through a smartphone application.
入力: グラフやチャートの画像データ Input: Image data for graphs and charts
出力: 視覚的な結果表示 Output: Visual results
具体的な動作: ユーザはアプリケーションを開き、表示されたグラフやチャートを確認する。これにより、不要商品を購入しなかった場合の具体的な節約金額と体重減少量を理解することができる。 What it does: The user opens the app and looks at the graphs and charts that are displayed, allowing them to understand the specific savings and weight loss they could have achieved by not purchasing unnecessary items.
特定処理部290は、特定処理の結果をスマート眼鏡214に送信する。スマート眼鏡214では、制御部46Aが、スピーカ240に対して特定処理の結果を出力させる。マイクロフォン238は、特定処理の結果に対するユーザ入力を示す音声を取得する。制御部46Aは、マイクロフォン238によって取得されたユーザ入力を示す音声データをデータ処理装置12に送信する。データ処理装置12では、特定処理部290が音声データを取得する。 The specific processing unit 290 transmits the results of the specific processing to the smart glasses 214. In the smart glasses 214, the control unit 46A causes the speaker 240 to output the results of the specific processing. The microphone 238 acquires audio indicating the user input regarding the results of the specific processing. The control unit 46A transmits audio data indicating the user input acquired by the microphone 238 to the data processing device 12. In the data processing device 12, the specific processing unit 290 acquires the audio data.
データ生成モデル58は、いわゆる生成AI(Artificial Intelligence)である。データ生成モデル58の一例としては、ChatGPT(インターネット検索<URL: https://openai.com/blog/chatgpt>)等の生成AIが挙げられる。データ生成モデル58は、ニューラルネットワークに対して深層学習を行わせることによって得られる。データ生成モデル58には、指示を含むプロンプトが入力され、かつ、音声を示す音声データ、テキストを示すテキストデータ、及び画像を示す画像データ等の推論用データが入力される。データ生成モデル58は、入力された推論用データをプロンプトにより示される指示に従って推論し、推論結果を音声データ及びテキストデータ等のデータ形式で出力する。ここで、推論とは、例えば、分析、分類、予測、及び/又は要約等を指す。 Data generation model 58 is what is known as generative AI (artificial intelligence). An example of data generation model 58 is generative AI such as ChatGPT (Internet search <URL: https://openai.com/blog/chatgpt>). Data generation model 58 is obtained by performing deep learning on a neural network. A prompt containing an instruction is input to data generation model 58, and inference data such as voice data indicating voice, text data indicating text, and image data indicating an image is also input. Data generation model 58 performs inference on the input inference data in accordance with the instructions indicated by the prompt, and outputs the inference results in the form of data such as voice data and text data. Here, inference refers to, for example, analysis, classification, prediction, and/or summarization.
生成AIの他の例としては、Gemini(インターネット検索<URL: https://gemini.google.com/?hl=ja>)が挙げられる。 Another example of generative AI is Gemini (Internet search <URL: https://gemini.google.com/?hl=ja>).
上記実施形態では、データ処理装置12によって特定処理が行われる形態例を挙げたが、本開示の技術はこれに限定されず、スマート眼鏡214によって特定処理が行われるようにしてもよい。 In the above embodiment, an example was given in which the specific processing was performed by the data processing device 12, but the technology disclosed herein is not limited to this, and the specific processing may also be performed by the smart glasses 214.
[第3実施形態] [Third embodiment]
図5には、第3実施形態に係るデータ処理システム310の構成の一例が示されている。 Figure 5 shows an example of the configuration of a data processing system 310 according to the third embodiment.
図5に示すように、データ処理システム310は、データ処理装置12及びヘッドセット型端末314を備えている。データ処理装置12の一例としては、サーバが挙げられる。 As shown in FIG. 5, the data processing system 310 includes a data processing device 12 and a headset terminal 314. An example of the data processing device 12 is a server.
データ処理装置12は、コンピュータ22、データベース24、及び通信I/F26を備えている。コンピュータ22は、本開示の技術に係る「コンピュータ」の一例である。コンピュータ22は、プロセッサ28、RAM30、及びストレージ32を備えている。プロセッサ28、RAM30、及びストレージ32は、バス34に接続されている。また、データベース24及び通信I/F26も、バス34に接続されている。通信I/F26は、ネットワーク54に接続されている。ネットワーク54の一例としては、WAN(Wide Area Network)及び/又はLAN(Local Area Network)等が挙げられる。 The data processing device 12 includes a computer 22, a database 24, and a communication I/F 26. The computer 22 is an example of a "computer" according to the technology of the present disclosure. The computer 22 includes a processor 28, RAM 30, and storage 32. The processor 28, RAM 30, and storage 32 are connected to a bus 34. The database 24 and communication I/F 26 are also connected to the bus 34. The communication I/F 26 is connected to a network 54. Examples of the network 54 include a WAN (Wide Area Network) and/or a LAN (Local Area Network).
ヘッドセット型端末314は、コンピュータ36、マイクロフォン238、スピーカ240、カメラ42、通信I/F44、及びディスプレイ343を備えている。コンピュータ36は、プロセッサ46、RAM48、及びストレージ50を備えている。プロセッサ46、RAM48、及びストレージ50は、バス52に接続されている。また、マイクロフォン238、スピーカ240、カメラ42、及びディスプレイ343も、バス52に接続されている。 The headset terminal 314 includes a computer 36, a microphone 238, a speaker 240, a camera 42, a communication I/F 44, and a display 343. The computer 36 includes a processor 46, RAM 48, and storage 50. The processor 46, RAM 48, and storage 50 are connected to a bus 52. The microphone 238, the speaker 240, the camera 42, and the display 343 are also connected to the bus 52.
マイクロフォン238は、ユーザ20が発する音声を受け付けることで、ユーザ20か The microphone 238 receives the voice of the user 20, and
ら指示等を受け付ける。マイクロフォン238は、ユーザ20が発する音声を捕捉し、捕捉した音声を音声データに変換してプロセッサ46に出力する。スピーカ240は、プロセッサ46からの指示に従って音声を出力する。 and accepts instructions, etc. from the processor 46. The microphone 238 captures the voice uttered by the user 20, converts the captured voice into audio data, and outputs it to the processor 46. The speaker 240 outputs audio according to instructions from the processor 46.
カメラ42は、レンズ、絞り、及びシャッタ等の光学系と、CMOS(Complementary Metal-Oxide-Semiconductor)イメージセンサ又はCCD(Charge Coupled Device)イメージセンサ等の撮像素子とが搭載された小型デジタルカメラであり、ユーザ20の周囲(例えば、一般的な健常者の視界の広さに相当する画角で規定された撮像範囲)を撮像する。 Camera 42 is a small digital camera equipped with an optical system including a lens, aperture, and shutter, and an imaging element such as a CMOS (Complementary Metal-Oxide-Semiconductor) image sensor or a CCD (Charge Coupled Device) image sensor, and captures images of the user 20's surroundings (e.g., an imaging range defined by an angle of view equivalent to the field of vision of a typical healthy person).
通信I/F44は、ネットワーク54に接続されている。通信I/F44及び26は、ネットワーク54を介してプロセッサ46とプロセッサ28との間の各種情報の授受を司る。通信I/F44及び26を用いたプロセッサ46とプロセッサ28との間の各種情報の授受はセキュアな状態で行われる。 The communication I/F 44 is connected to the network 54. The communication I/Fs 44 and 26 are responsible for the exchange of various information between the processor 46 and the processor 28 via the network 54. The exchange of various information between the processor 46 and the processor 28 using the communication I/Fs 44 and 26 is carried out in a secure manner.
図6には、データ処理装置12及びヘッドセット型端末314の要部機能の一例が示されている。図6に示すように、データ処理装置12では、プロセッサ28によって特定処理が行われる。ストレージ32には、特定処理プログラム56が格納されている。 Figure 6 shows an example of the main functions of the data processing device 12 and headset terminal 314. As shown in Figure 6, in the data processing device 12, specific processing is performed by the processor 28. A specific processing program 56 is stored in the storage 32.
特定処理プログラム56は、本開示の技術に係る「プログラム」の一例である。プロセッサ28は、ストレージ32から特定処理プログラム56を読み出し、読み出した特定処理プログラム56をRAM30上で実行する。特定処理は、プロセッサ28がRAM30上で実行する特定処理プログラム56に従って、特定処理部290として動作することによって実現される。 The specific processing program 56 is an example of a "program" according to the technology of the present disclosure. The processor 28 reads the specific processing program 56 from the storage 32 and executes the read specific processing program 56 on the RAM 30. The specific processing is realized by the processor 28 operating as the specific processing unit 290 in accordance with the specific processing program 56 executed on the RAM 30.
ストレージ32には、データ生成モデル58及び感情特定モデル59が格納されている。データ生成モデル58及び感情特定モデル59は、特定処理部290によって用いられる。 Storage 32 stores a data generation model 58 and an emotion identification model 59. The data generation model 58 and the emotion identification model 59 are used by the identification processing unit 290.
ヘッドセット型端末314では、プロセッサ46によって受付出力処理が行われる。ストレージ50には、受付出力プログラム60が格納されている。プロセッサ46は、ストレージ50から受付出力プログラム60を読み出し、読み出した受付出力プログラム60をRAM48上で実行する。受付出力処理は、プロセッサ46がRAM48上で実行する受付出力プログラム60に従って、制御部46Aとして動作することによって実現される。 In the headset terminal 314, the reception output process is performed by the processor 46. A reception output program 60 is stored in the storage 50. The processor 46 reads the reception output program 60 from the storage 50 and executes the read reception output program 60 on the RAM 48. The reception output process is realized by the processor 46 operating as the control unit 46A in accordance with the reception output program 60 executed on the RAM 48.
次に、データ処理装置12の特定処理部290による特定処理について説明する。 Next, we will explain the identification process performed by the identification processing unit 290 of the data processing device 12.
「形態例1」 "Example 1"
本発明の形態は、消費者が自身の身長体重と目標を記入する手段として、専用の入力フォームを提供する。この入力フォームは、ウェブサイトやスマートフォンアプリケーション上に設けられ、消費者が自身の身長、体重、ダイエット目標等を直接入力できるようになっている。 This embodiment of the present invention provides a dedicated input form as a means for consumers to enter their height, weight, and diet goals. This input form is provided on a website or smartphone application, and allows consumers to directly input their height, weight, diet goals, etc.
「形態例2」 "Example 2"
次に、消費者が買い物後に購入レシートを提出する手段として、スマートフォンのカメラを用いてレシートの画像を撮影し、アプリケーションにアップロードする機能を提供する。この機能により、消費者は物理的なレシートを直接提出することなく、購入情報をシステムに伝えることができる。 Next, as a means for consumers to submit their purchase receipts after shopping, we provide a feature that allows them to take an image of the receipt using their smartphone camera and upload it to the application. This feature allows consumers to communicate purchase information to the system without having to directly submit a physical receipt.
「形態例3」 "Example 3"
そして、今回の買い物で不要だと判断できる商品を添削する手段として、システムは消費 And as a way to correct items that you may not need in this shopping trip, the system uses consumer
者が入力した身長体重と目標、及び提出されたレシートの情報を基に、不要な商品を自動的に検出する。例えば、ダイエット目標が「糖質制限」である場合、システムはレシート上の「パン」や「お菓子」等の糖質が多い商品を不要な商品として検出する。 Unnecessary items are automatically detected based on the height, weight, and goal entered by the user, as well as the information on the submitted receipt. For example, if the diet goal is to "limit carbohydrates," the system will detect items on the receipt that are high in carbohydrates, such as "bread" and "sweets," as unnecessary items.
「形態例4」 "Example 4"
最後に、不要商品を買わなかった場合の節約できるお金と減る体重を可視化する手段として、システムは検出した不要な商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算し、グラフやチャート等の形で消費者に表示する。これにより、消費者は自身の健康管理と節約の両方を具体的に把握することができる。 Finally, as a means of visualizing the money saved and weight loss that would result from not purchasing unnecessary products, the system calculates the total cost of the detected unnecessary products and the estimated amount of weight loss that would result from not consuming those products, and displays this information to consumers in the form of graphs, charts, etc. This allows consumers to concretely understand both their own health management and savings.
以下に、各形態例の処理の流れについて説明する。 The processing flow for each example form is explained below.
「形態例1」 "Example 1"
ステップ1:消費者は専用の入力フォームに自身の身長、体重、ダイエット目標等を入力する。例えば、身長170cm、体重65kg、ダイエット目標は「糖質制限」等を入力する。 Step 1: Consumers enter their height, weight, diet goals, etc. into a dedicated input form. For example, they might enter a height of 170 cm, a weight of 65 kg, and a diet goal of "restricting carbohydrates."
ステップ2:入力が完了したら、消費者は「送信」ボタンを押して情報をシステムに送信する。 Step 2: Once the information is complete, the consumer presses the "Submit" button to send the information to the system.
「形態例2」 "Example 2"
ステップ1:消費者は買い物を行い、購入した商品のレシートを取得する。 Step 1: The consumer makes a purchase and obtains a receipt for the items purchased.
ステップ2:消費者はスマートフォンのカメラを用いてレシートの画像を撮影する。 Step 2: The consumer takes a picture of the receipt using their smartphone camera.
ステップ3:撮影した画像はアプリケーションにアップロードされ、システムがレシートの情報を読み取る。 Step 3: The captured image is uploaded to the application and the system reads the receipt information.
「形態例3」 "Example 3"
ステップ1:システムは消費者が入力した身長体重と目標、及び提出されたレシートの情報を基に、不要な商品を自動的に検出する。 Step 1: The system automatically detects unwanted items based on the consumer's height, weight, and goals entered, as well as the submitted receipt information.
ステップ2:例えば、ダイエット目標が「糖質制限」である場合、システムはレシート上の「パン」や「お菓子」等の糖質が多い商品を不要な商品として検出する。 Step 2: For example, if the diet goal is to "limit carbohydrates," the system will detect items on the receipt that are high in carbohydrates, such as "bread" and "sweets," as unnecessary items.
「形態例4」 "Example 4"
ステップ1:システムは検出した不要な商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算する。 Step 1: The system calculates the total value of the detected unwanted products and the estimated weight loss that would occur if the product were not consumed.
ステップ2:計算結果はグラフやチャート等の形で消費者に表示される。これにより、消費者は自身の健康管理と節約の両方を具体的に把握することができる。 Step 2: The calculation results are displayed to consumers in the form of graphs, charts, etc. This allows consumers to concretely understand both their health management and savings.
(実施例1) (Example 1)
次に、形態例1の実施例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, Example 1 of Form Example 1 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
従来のダイエット支援システムでは、ユーザが自身の身長や体重、ダイエット目標を入力するだけでなく、買い物後に購入レシートを提出し、不要な商品を判断する手段が必要であった。しかし、これらのシステムはユーザにとって手間がかかり、継続的な利用が難しいという課題があった。また、ユーザが入力したデータを基に、個別に適切なダイエットプランを提案する機能が不足していたため、効果的なダイエット支援が行えないという問題もあった Traditional diet support systems required users to input their height, weight, and diet goals, as well as submit purchase receipts after shopping and identify unwanted items. However, these systems were time-consuming for users, making them difficult to use on an ongoing basis. Furthermore, they lacked the ability to individually suggest appropriate diet plans based on the data entered by the user, making them unable to provide effective diet support.
実施例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客が入力したデータを受信し、保存する手段と、保存されたデータを基に生成AIモデルに対するプロンプト文を生成する手段と、生成AIモデルがダイエットプランを提案する手段と、を含む。これにより、ユーザが手間をかけずに継続的に利用でき、個別に適切なダイエットプランを提案することが可能となる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for receiving and saving the data entered by the customer, means for generating prompt sentences for the generative AI model based on the saved data, and means for the generative AI model to suggest a diet plan. This allows users to use the system continuously without any hassle, and makes it possible to suggest appropriate diet plans individually.
「顧客」とは、システムを利用するユーザを指す。 "Customer" refers to the user of the system.
「身長体重」とは、顧客の現在の身長と体重のデータを指す。 "Height and Weight" refers to the customer's current height and weight data.
「目標」とは、顧客が設定するダイエットや健康に関する目標を指す。 "Goals" refers to the diet and health goals set by the customer.
「入力フォーム」とは、顧客が身長、体重、目標などのデータを入力するためのインターフェースを指す。 "Input form" refers to the interface where customers enter data such as height, weight, and goals.
「購入レシート」とは、顧客が買い物後に受け取る購入品の明細書を指す。 "Purchase receipt" refers to the detailed list of purchases that a customer receives after making a purchase.
「添削する手段」とは、顧客の身長体重と目標に基づいて不要な商品を判断し、リストから削除する機能を指す。 "Means for correcting" refers to the function that determines unnecessary products based on the customer's height, weight, and goals, and removes them from the list.
「可視化する手段」とは、不要商品を買わなかった場合に節約できるお金や減る体重を視覚的に表示する機能を指す。 "Visualization means" refers to a function that visually displays the money you can save and the weight you will lose if you don't buy unnecessary products.
「データを受信し、保存する手段」とは、顧客が入力したデータをサーバが受け取り、データベースなどに保存する機能を指す。 "Means for receiving and storing data" refers to the function by which the server receives data entered by the customer and stores it in a database, etc.
「生成AIモデル」とは、入力されたデータを基に適切なダイエットプランを生成する人工知能モデルを指す。 "Generative AI model" refers to an artificial intelligence model that generates an appropriate diet plan based on input data.
「プロンプト文」とは、生成AIモデルに対して入力データを基に生成される指示文を指す。 "Prompt sentence" refers to an instruction sentence generated for a generative AI model based on input data.
「ダイエットプラン」とは、生成AIモデルが提案する、顧客の目標達成のための具体的な行動計画を指す。 "Diet Plan" refers to a specific action plan proposed by the generative AI model to help customers achieve their goals.
この発明は、顧客が自身の身長、体重、ダイエット目標を入力するための専用の入力フォームを提供するシステムである。システムは、ウェブサイトやスマートフォンアプリケーション上に設けられ、顧客が入力したデータを基に生成AIモデルが適切なダイエットプランを提案する。 This invention is a system that provides a dedicated input form for customers to enter their height, weight, and diet goals. The system is installed on a website or smartphone application, and a generative AI model proposes an appropriate diet plan based on the data entered by the customer.
使用するハードウェアおよびソフトウェア Hardware and software used
ハードウェア: サーバ(例: AWS EC2)、ユーザ端末(例: スマートフォン、PC) Hardware: Servers (e.g., AWS EC2), user devices (e.g., smartphones, PCs)
ソフトウェア: ウェブサーバ(例: Apache、Nginx)、データベース(例: MySQL、PostgreSQL)、スマートフォンアプリケーション(例: iOSアプリ、Androidアプリ) Software: Web servers (e.g., Apache, Nginx), databases (e.g., MySQL, PostgreSQL), smartphone applications (e.g., iOS apps, Android apps)
システムの具体的な動作 Specific system operation
サーバ Server
サーバは、ウェブサイトやスマートフォンアプリケーション上に専用の入力フォームを提供する。この入力フォームは、顧客が自身の身長、体重、ダイエット目標などを入力するためのものである。サーバは、入力されたデータを受信し、データベースに保存する。保存されたデータは、生成AIモデルに対してプロンプト文として利用される。 The server provides a dedicated input form on a website or smartphone application. This input form allows customers to enter their height, weight, diet goals, etc. The server receives the input data and stores it in a database. The stored data is used as prompts for the generative AI model.
端末 Device
端末は、ユーザがアクセスするウェブサイトやスマートフォンアプリケーションを表示する。ユーザが入力フォームに身長、体重、ダイエット目標を入力すると、端末はそのデータをサーバに送信する。端末は、ユーザが入力したデータをリアルタイムで表示し、確認できるようにする。 The device displays the websites and smartphone applications that the user accesses. When the user enters their height, weight, and diet goals into an input form, the device sends the data to a server. The device then displays the data the user has entered in real time, allowing them to check it.
ユーザ User
ユーザは、ウェブサイトやスマートフォンアプリケーションにアクセスし、専用の入力フォームに自身の身長、体重、ダイエット目標を入力する。ユーザが入力を完了すると、そのデータはサーバに送信される。ユーザは、入力したデータを確認し、必要に応じて修正することができる。 Users access a website or smartphone application and enter their height, weight, and diet goals into a dedicated input form. Once the user has completed the input, the data is sent to the server. The user can then review the data they have entered and make any necessary corrections.
具体例 Specific examples
例1: ウェブサイトでの利用 Example 1: Website use
ユーザがウェブサイトにアクセスし、入力フォームに以下の情報を入力する: A user visits a website and enters the following information into a form:
身長: 170 cm Height: 170 cm
体重: 70 kg Weight: 70 kg
ダイエット目標: 5 kg減量 Diet goal: Lose 5 kg
入力が完了すると、端末はこのデータをサーバに送信する。サーバはデータを受信し、データベースに保存する。その後、生成AIモデルに対して以下のプロンプト文を生成する: Once the input is complete, the device sends this data to the server. The server receives the data and stores it in a database. It then generates the following prompt for the generative AI model:
プロンプト文の例: Example prompt:
ユーザの身長は170 cm、体重は70 kg、ダイエット目標は5 kg減量です。この情報を基に、適切なダイエットプランを提案してください。 The user's height is 170 cm, weight is 70 kg, and their diet goal is to lose 5 kg. Please suggest an appropriate diet plan based on this information.
例2: スマートフォンアプリケーションでの利用 Example 2: Use in a smartphone application
ユーザがスマートフォンアプリケーションを開き、入力フォームに以下の情報を入力する: A user opens a smartphone application and enters the following information into the input form:
身長: 160 cm Height: 160 cm
体重: 60 kg Weight: 60 kg
ダイエット目標: 3 kg減量 Diet goal: Lose 3 kg
入力が完了すると、端末はこのデータをサーバに送信する。サーバはデータを受信し、データベースに保存する。その後、生成AIモデルに対して以下のプロンプト文を生成する: Once the input is complete, the device sends this data to the server. The server receives the data and stores it in a database. It then generates the following prompt for the generative AI model:
プロンプト文の例: Example prompt:
ユーザの身長は160 cm、体重は60 kg、ダイエット目標は3 kg減量です。この情報を基に、適切なダイエットプランを提案してください。 The user's height is 160 cm, weight is 60 kg, and their diet goal is to lose 3 kg. Please suggest an appropriate diet plan based on this information.
このようにして、ユーザが入力したデータを基に、生成AIモデルが適切なダイエットプランを提案するシステムが構築される。 In this way, a system is created in which a generative AI model suggests an appropriate diet plan based on data entered by the user.
実施例1における特定処理の流れについて図11を用いて説明する。 The flow of the identification process in Example 1 will be explained using Figure 11.
ステップ1: Step 1:
ユーザが入力フォームにアクセスする。 The user accesses the input form.
ユーザは、ウェブサイトやスマートフォンアプリケーションを開き、入力フォームにアクセスする。入力フォームは、ユーザが自身の身長、体重、ダイエット目標を入力するためのインターフェースである。入力フォームが表示されると、ユーザは必要な情報を入力する準備が整う。 A user opens a website or smartphone application and accesses an input form. The input form is an interface where the user can enter their height, weight, and diet goals. Once the input form is displayed, the user is ready to enter the required information.
ステップ2: Step 2:
ユーザがデータを入力する。 The user enters the data.
ユーザは、入力フォームに自身の身長、体重、ダイエット目標を入力する。例えば、ユーザが「身長: 170 cm」、「体重: 70 kg」、「ダイエット目標: 5 kg減量」と入力する。入力が完了したら、ユーザは「送信」ボタンをタップする。入力データは、JSON形式で端末に保存される。 The user enters their height, weight, and diet goal into the input form. For example, the user might enter "Height: 170 cm", "Weight: 70 kg", and "Diet goal: Lose 5 kg". Once the input is complete, the user taps the "Submit" button. The input data is saved on the device in JSON format.
ステップ3: Step 3:
端末がデータをサーバに送信する。 The device sends the data to the server.
端末は、ユーザが入力したデータをサーバに送信する。具体的には、端末はHTTP POSTリクエストを使用して、入力データをサーバに送信する。このとき、データはJSON形式で送信される。入力データ(身長、体重、ダイエット目標)がサーバに送信される。 The device sends the data entered by the user to the server. Specifically, the device uses an HTTP POST request to send the input data to the server. At this time, the data is sent in JSON format. The input data (height, weight, diet goal) is sent to the server.
ステップ4: Step 4:
サーバがデータを受信し、保存する。 The server receives and stores the data.
サーバは、端末から送信されたデータを受信する。受信したデータは、データベースに保存される。例えば、サーバはMySQLデータベースに接続し、以下のようなSQLクエリを実行する: The server receives the data sent from the device. The received data is stored in a database. For example, the server connects to a MySQL database and executes the following SQL query:
sql sql
INSERT INTO user_data (height, weight, goal) VALUES (170, 70, '5 kg減量'); INSERT INTO user_data (height, weight, goal) VALUES (170, 70, '5 kg weight loss');
この処理により、ユーザの入力データがデータベースに保存される。 This process saves the user's input data in the database.
ステップ5: Step 5:
サーバが生成AIモデルにプロンプト文を生成する。 The server generates a prompt for the generative AI model.
サーバは、保存されたデータを基に生成AIモデルに対するプロンプト文を生成する。例えば、以下のようなプロンプト文を生成する: The server generates prompts for the generative AI model based on the stored data. For example, it generates prompts like the following:
ユーザの身長は170 cm、体重は70 kg、ダイエット目標は5 kg減量です。この情報を基に、適切なダイエットプランを提案してください。 The user's height is 170 cm, weight is 70 kg, and their diet goal is to lose 5 kg. Please suggest an appropriate diet plan based on this information.
このプロンプト文は、生成AIモデルに送信される。 This prompt is sent to the generative AI model.
ステップ6: Step 6:
生成AIモデルがダイエットプランを提案する。 Generative AI models suggest diet plans.
生成AIモデルは、受け取ったプロンプト文を基にダイエットプランを生成する。例えば、生成AIモデルが以下のようなダイエットプランを提案する: The generative AI model generates a diet plan based on the prompt it receives. For example, the generative AI model might suggest the following diet plan:
1. 毎日30分の有酸素運動を行う 1. Do 30 minutes of aerobic exercise every day.
2. 1日のカロリー摂取量を1500 kcalに制限する 2. Limit your daily calorie intake to 1,500 kcal
3. 週に3回筋力トレーニングを行う 3. Strength training three times a week
このダイエットプランは、サーバを経由してユーザの端末に送信され、ユーザに表示される。 This diet plan is sent to the user's device via the server and displayed to the user.
このようにして、ユーザが入力したデータを基に、生成AIモデルが適切なダイエットプランを提案するシステムが構築される。 In this way, a system is created in which a generative AI model suggests an appropriate diet plan based on data entered by the user.
(応用例1) (Application Example 1)
次に、形態例1の応用例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, we will explain Application Example 1 of Form Example 1. In the following explanation, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
従来のフードデリバリーシステムでは、顧客の健康状態やダイエット目標に基づいた食事プランを提供することが難しく、個々のニーズに応じたサービスを提供することができなかった。また、顧客が不要な商品を購入してしまうことによる無駄な支出や、ダイエット目標達成の妨げとなる食事選択が問題となっていた Traditional food delivery systems struggled to provide meal plans based on customers' health status and diet goals, making it impossible to provide services tailored to individual needs. Furthermore, problems arose, such as customers buying unnecessary items and making meal choices that hindered the achievement of diet goals.
応用例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の身長体重と目標に基づいて適切な食事プランを生成する手段と、生成された食事プランを顧客に提示する手段と、を含む。これにより、顧客の健康状態やダイエット目標に応じた適切な食事プランを提供し、無駄な支出を抑えつつ、ダイエット目標の達成をサポートすることが可能となる。 In this invention, the server includes means for the customer to enter their current height, weight, and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for generating an appropriate meal plan based on the customer's height, weight, and goals, and means for presenting the generated meal plan to the customer. This makes it possible to provide an appropriate meal plan based on the customer's health condition and diet goals, and support the achievement of diet goals while reducing unnecessary spending.
「顧客」とは、サービスを利用する消費者を指す。 "Customer" refers to the consumer who uses the service.
「身長体重」とは、顧客の身体的な高さと体重を指す。 "Height and Weight" refers to the customer's physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な健康やダイエットに関する目的を指す。 "Goals" refer to the specific health or diet objectives that a customer wishes to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る購入品の明細書を指す。 "Purchase receipt" refers to the detailed list of purchases received by a customer when making a purchase.
「添削する手段」とは、顧客が購入した商品を評価し、不要な商品を特定するための方法やシステムを指す。 "Correction means" refers to a method or system for evaluating products purchased by customers and identifying unwanted products.
「可視化する手段」とは、節約できるお金や減る体重を視覚的に表示するための方法やシステムを指す。 "Visualization means" refers to a method or system that visually displays the money saved or weight lost.
「食事プラン」とは、顧客の健康状態やダイエット目標に基づいて提案される食事の内容やスケジュールを指す。 "Meal Plan" refers to the meal content and schedule suggested based on the client's health and diet goals.
「生成する手段」とは、顧客の入力データに基づいて食事プランを作成するための方法やシステムを指す。 "Means for generating" refers to a method or system for creating a meal plan based on customer input data.
「提示する手段」とは、生成された食事プランを顧客に見せるための方法やシステムを指す。 "Presentation means" refers to the method or system for showing the generated meal plan to the customer.
この発明を実施するための形態として、以下のシステム構成を提案する。 The following system configuration is proposed as an embodiment of this invention.
システム構成 System Configuration
システムは、顧客が使用するスマートフォンアプリケーション、サーバ、及び生成AIモデルを含む。スマートフォンアプリケーションは、顧客が自身の身長、体重、ダイエット目標を入力するためのインターフェースを提供する。サーバは、入力されたデータを受信し、生成AIモデルにプロンプト文を送信して適切な食事プランを生成する。生成された食事プランは、再びスマートフォンアプリケーションを通じて顧客に提示される。 The system includes a smartphone application used by customers, a server, and a generative AI model. The smartphone application provides an interface for customers to input their height, weight, and diet goals. The server receives the input data and sends prompts to the generative AI model to generate an appropriate meal plan. The generated meal plan is then presented to the customer again via the smartphone application.
使用するハードウェア及びソフトウェア Hardware and software used
ハードウェア: スマートフォン、サーバ Hardware: Smartphones, servers
ソフトウェア: スマートフォンアプリケーション、生成AIモデル(例: OpenAI GPT-3) Software: Smartphone applications, generative AI models (e.g., OpenAI GPT-3)
データ加工及びデータ演算 Data processing and calculation
1. データ入力: 顧客がスマートフォンアプリケーションを使用して、身長、体重、ダイエット目標を入力する。 1. Data entry: Customers use a smartphone application to enter their height, weight, and diet goals.
2. データ送信: スマートフォンアプリケーションが入力されたデータをサーバに送信する。 2. Data transmission: The smartphone application sends the entered data to the server.
3. プロンプト生成: サーバが受信したデータを基に、生成AIモデルに送信するプロンプト文を生成する。 3. Prompt generation: Based on the data received by the server, a prompt sentence is generated to be sent to the generative AI model.
4. 食事プラン生成: 生成AIモデルがプロンプト文を受け取り、適切な食事プランを生成する。 4. Meal plan generation: The generative AI model receives the prompt and generates an appropriate meal plan.
5. データ受信及び提示: サーバが生成された食事プランを受信し、スマートフォンアプリケーションを通じて顧客に提示する。 5. Data reception and presentation: The server receives the generated meal plan and presents it to the customer via the smartphone application.
具体例 Specific examples
例えば、顧客が身長170cm、体重70kg、ダイエット目標として「5kg減量」を入力した場合、サーバは以下のプロンプト文を生成AIモデルに送信する。 For example, if a customer enters their height as 170cm, weight as 70kg, and their diet goal as "lose 5kg," the server will send the following prompt text to the generative AI model:
プロンプト文の例 Example prompt
身長: 170 cm, 体重: 70 kg, 目標: 5kg減量に基づいて、適切な食事プランを提案してください。 Please suggest an appropriate meal plan based on the following: height: 170 cm, weight: 70 kg, goal: 5 kg weight loss.
生成AIモデルはこのプロンプト文を基に、バランスの取れた食事プランを生成する。例えば、「朝食 - オートミール、昼食 - サラダ、夕食 - 鶏胸肉と野菜」といった具体的な食事内容が提案される。この食事プランは、スマートフォンアプリケーションを通じて顧客に提示される。 Based on this prompt, the generative AI model generates a balanced meal plan. For example, it suggests specific meal options such as "Breakfast - oatmeal, Lunch - salad, Dinner - chicken breast and vegetables." This meal plan is presented to the customer via a smartphone application.
このようにして、顧客の健康状態やダイエット目標に応じた適切な食事プランを提供し、無駄な支出を抑えつつ、ダイエット目標の達成をサポートすることが可能となる。 In this way, we can provide customers with appropriate meal plans based on their health condition and diet goals, helping them achieve their diet goals while reducing unnecessary spending.
応用例1における特定処理の流れについて図12を用いて説明する。 The flow of the specific processing in Application Example 1 will be explained using Figure 12.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、身長、体重、ダイエット目標を入力する。入力されたデータは、スマートフォンアプリケーション内で一時的に保存される。入力データの例として、身長170cm、体重70kg、ダイエット目標「5kg減量」がある。 The user launches the smartphone application and enters their height, weight, and diet goal. The entered data is temporarily saved within the smartphone application. An example of input data is: height 170cm, weight 70kg, diet goal "lose 5kg."
ステップ2: Step 2:
スマートフォンアプリケーションが、入力されたデータをサーバに送信する。送信されるデータは、ユーザの身長、体重、ダイエット目標を含む。サーバは、受信したデータを解析し、次の処理ステップに進む。 The smartphone application sends the entered data to the server. The data sent includes the user's height, weight, and diet goals. The server analyzes the received data and proceeds to the next processing step.
ステップ3: Step 3:
サーバが、受信したデータを基にプロンプト文を生成する。具体的には、ユーザの身長、体重、ダイエット目標を組み合わせて、生成AIモデルに送信するためのプロンプト文を作成する。例えば、「身長: 170 cm, 体重: 70 kg, 目標: 5kg減量に基づいて、適切な食事プランを提案してください。」というプロンプト文が生成される。 The server generates a prompt based on the received data. Specifically, it combines the user's height, weight, and diet goal to create a prompt to send to the generative AI model. For example, a prompt might be generated that reads, "Based on height: 170 cm, weight: 70 kg, goal: to lose 5 kg, please suggest an appropriate meal plan."
ステップ4: Step 4:
サーバが、生成したプロンプト文を生成AIモデルに送信する。生成AIモデルは、受信したプロンプト文を基にデータ演算を行い、適切な食事プランを生成する。生成AIモデルは、例えばOpenAI GPT-3を使用する。 The server sends the generated prompt text to the generative AI model. The generative AI model performs data calculations based on the received prompt text and generates an appropriate meal plan. The generative AI model uses, for example, OpenAI GPT-3.
ステップ5: Step 5:
生成AIモデルが、プロンプト文に基づいて食事プランを生成し、その結果をサーバに返送する。生成された食事プランの例として、「朝食 - オートミール、昼食 - サラダ、夕食 - 鶏胸肉と野菜」がある。 The generative AI model generates a meal plan based on the prompt and sends the results back to the server. An example of a generated meal plan is "Breakfast - Oatmeal, Lunch - Salad, Dinner - Chicken Breast and Vegetables."
ステップ6: Step 6:
サーバが、生成AIモデルから受信した食事プランを解析し、スマートフォンアプリケーションに送信する。送信されるデータは、生成された食事プランを含む。 The server analyzes the meal plan received from the generative AI model and sends it to the smartphone application. The transmitted data includes the generated meal plan.
ステップ7: Step 7:
スマートフォンアプリケーションが、サーバから受信した食事プランをユーザに提示する。ユーザは、アプリケーションを通じて提案された食事プランを確認し、実行することができる。 The smartphone application presents the meal plan received from the server to the user. The user can review and implement the proposed meal plan through the application.
(実施例2) (Example 2)
次に、形態例2の実施例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, Example 2 of Form Example 2 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
従来のシステムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかる上に、レシートの紛失や破損のリスクがあった。また、購入した商品の中で不要なものを判断し、節約できる金額や減る体重を可視化する手段が不十分であった。これにより、顧客が目標に向かって効果的に買い物を管理することが難しかった Under the previous system, customers had to physically submit receipts for their purchases, which was time-consuming and risked loss or damage. Furthermore, there were insufficient ways to identify unnecessary purchases and visualize savings and weight loss. This made it difficult for customers to effectively manage their shopping to achieve their goals.
実施例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出するために画像を撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できる金額および減る体重を可視化する手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、購入情報を簡単にシステムに伝えることが可能となる。また、不要な商品を判断し、節約できる金額や減る体重を可視化することで、顧客が目標に向かって効果的に買い物を管理することができる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to take an image of their purchase receipt after shopping and upload it to the application so that they can submit it, means for correcting items that are determined to be unnecessary for this purchase, and means for visualizing the amount of money saved and weight loss that would be achieved if the unnecessary items were not purchased. This saves the customer the trouble of submitting a physical receipt and allows them to easily communicate their purchase information to the system. Furthermore, by identifying unnecessary items and visualizing the amount of money saved and weight loss that would be achieved, customers can effectively manage their shopping toward their goals.
「顧客」とは、システムを利用して買い物を行い、購入情報を管理する個人を指す。 "Customer" refers to an individual who uses the system to shop and manages their purchase information.
「身長体重」とは、顧客の現在の身体的な高さと体重を指す。 "Height and Weight" refers to the customer's current physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な身体的または経済的な目標を指す。 "Goal" refers to a specific physical or financial goal that the client wishes to achieve.
「購入レシート」とは、顧客が買い物を行った際に発行される、購入した商品の詳細が記載された紙または電子の記録を指す。 "Purchase receipt" means a paper or electronic record issued to a customer when they make a purchase that contains details of the items purchased.
「画像を撮影する」とは、スマートフォンやカメラなどのデバイスを使用して、物理的なレシートの写真を撮る行為を指す。 "Taking an image" refers to the act of taking a photo of a physical receipt using a device such as a smartphone or camera.
「アプリケーション」とは、スマートフォンやタブレットなどのデバイス上で動作するソフトウェアプログラムを指す。 "Application" refers to a software program that runs on a device such as a smartphone or tablet.
「アップロードする」とは、撮影した画像をインターネットを通じてサーバに送信する行為を指す。 "Uploading" refers to the act of sending captured images to a server via the Internet.
「サーバ」とは、ネットワークを介してデータを受信、処理、保存するためのコンピュータシステムを指す。 "Server" refers to a computer system that receives, processes, and stores data over a network.
「画像を解析する」とは、画像認識技術を使用して、撮影されたレシートの内容をデジタルデータとして抽出する行為を指す。 "Analyzing an image" refers to the act of using image recognition technology to extract the contents of a photographed receipt as digital data.
「不要な商品」とは、顧客の目標に対して購入する必要がないと判断された商品を指す。 "Unnecessary products" refer to products that are determined not to be necessary for the customer to achieve their goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金銭的な額を指す。 "Savings" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を購入しなかった場合に期待される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss you would expect if you had not purchased unnecessary items.
「可視化する」とは、データを視覚的に表示することで、顧客が容易に理解できるようにする行為を指す。 "Visualizing" refers to the act of displaying data visually so that customers can easily understand it.
「グラフィカルに表示する」とは、データをグラフやチャートなどの視覚的な形式で表示する行為を指す。 "Displaying graphically" refers to the act of displaying data in a visual format such as a graph or chart.
この発明は、顧客が買い物後に購入レシートを提出するために画像を撮影し、アプリケーションにアップロードするシステムを提供するものである。以下に、このシステムの具体的な実施形態を説明する。 This invention provides a system that allows customers to take an image of their purchase receipt after shopping and upload it to an application in order to submit it. A specific embodiment of this system is described below.
ユーザは、スマートフォンのカメラを使用して購入レシートの画像を撮影する。撮影した画像は、専用のアプリケーション(例えば、「ReceiptUploader」)を使用してアップロードされる。アプリケーションは、ユーザが撮影した画像をサーバに送信する機能を持つ。 The user takes a picture of the purchase receipt using the smartphone camera. The image is then uploaded using a dedicated application (e.g., "ReceiptUploader"). The application has the function of sending the image taken by the user to the server.
サーバは、端末から送信されたレシートの画像を受信する。受信後、サーバはGoogle Cloud Vision APIなどの画像認識ソフトウェアを使用して、レシートの内容を解析する。解析には、文字認識(OCR)技術が使用され、レシートに記載された商品名、価格、購入日時などの情報が抽出される。 The server receives the image of the receipt sent from the device. After receiving it, the server uses image recognition software such as Google Cloud Vision API to analyze the contents of the receipt. Optical character recognition (OCR) technology is used for the analysis, and information such as the product name, price, and purchase date and time written on the receipt is extracted.
解析されたデータは、サーバによってデータベースに保存される。保存されたデータには、商品名、価格、購入日時、店舗名などが含まれる。これにより、ユーザの購入履歴がデータベースに蓄積される。 The analyzed data is stored in a database by the server. The stored data includes the product name, price, purchase date and time, store name, etc. This allows the user's purchase history to be accumulated in the database.
ユーザは、アプリケーションを使用して購入履歴を確認することができる。アプリケーション内の「購入履歴」セクションを開くと、サーバから取得されたデータが表示される。ユーザは、過去の購入情報を一覧で確認することができる。 Users can check their purchase history using the application. By opening the "Purchase History" section within the application, data retrieved from the server is displayed. Users can view a list of past purchases.
具体例として、ユーザがスーパーで買い物をした後のシナリオを考える。ユーザはスマートフォンのカメラを使ってレシートの画像を撮影し、「ReceiptUploader」アプリケーションを開く。アプリケーション内で「アップロード」ボタンをタップし、撮影したレシートの画像を選択してアップロードする。アプリケーションは画像をサーバに送信し、サーバはGoogle Cloud Vision APIを使用してレシートの内容を解析する。解析されたデータはデータベースに保存され、ユーザはアプリケーション内で「購入履歴」セクションを開いて、最近の購入情報を確認することができる。 As a concrete example, consider a scenario after a user has shopped at a supermarket. The user takes a picture of the receipt using their smartphone camera and opens the "ReceiptUploader" application. Within the application, the user taps the "Upload" button, selects the image of the receipt, and uploads it. The application sends the image to a server, which uses the Google Cloud Vision API to analyze the contents of the receipt. The analyzed data is stored in a database, and the user can open the "Purchase History" section within the application to view information about recent purchases.
生成AIモデルへ入力するプロンプト文の例としては、以下のようなものが考えられる。 Examples of prompts to input into a generative AI model include:
「ユーザがスマートフォンのカメラを使用してレシートの画像を撮影し、アプリケーションにアップロードする機能を説明してください。具体的なハードウェアやソフトウェアの名前も含めてください。」 "Please describe the functionality that allows users to take a picture of a receipt using their smartphone camera and upload it to the application. Please include the names of any specific hardware or software."
このプロンプト文を使用することで、生成AIモデルはシステムの処理を詳細に説明する文章を生成することができる。 Using this prompt, the generative AI model can generate sentences that explain in detail how the system will operate.
実施例2における特定処理の流れについて図13を用いて説明する。 The flow of the identification process in Example 2 will be explained using Figure 13.
ステップ1: Step 1:
ユーザがレシートの画像を撮影する。 The user takes a picture of the receipt.
ユーザはスマートフォンのカメラを使用して、購入した商品のレシートの画像を撮影する。撮影時には、レシート全体が鮮明に写るように注意する。入力は物理的なレシートであり、出力はデジタル画像である。 The user uses their smartphone camera to take an image of the receipt for the item they purchased. When taking the photo, they are careful to capture the entire receipt clearly. The input is the physical receipt, and the output is a digital image.
ステップ2: Step 2:
端末が画像をアプリケーションにアップロードする。 The device uploads the image to the application.
端末(スマートフォン)は、撮影したレシートの画像を「ReceiptUploader」アプリケーションにアップロードする。ユーザはアプリケーションを開き、「アップロード」ボタンをタップして、撮影した画像を選択する。入力はデジタル画像であり、出力はサーバへの画像データの送信である。 The device (smartphone) uploads the captured image of the receipt to the "ReceiptUploader" application. The user opens the application, taps the "Upload" button, and selects the captured image. The input is a digital image, and the output is the transmission of image data to the server.
ステップ3: Step 3:
サーバが画像を受信し、解析する。 The server receives and analyzes the image.
サーバは、端末から送信されたレシートの画像を受信する。受信後、サーバはGoogle Cloud Vision APIなどの画像認識ソフトウェアを使用して、レシートの内容を解析する。解析には、文字認識(OCR)技術が使用され、レシートに記載された商品名、価格、購入日時などの情報が抽出される。入力は画像データであり、出力は解析されたテキストデータである。 The server receives the image of the receipt sent from the device. After receiving it, the server uses image recognition software such as Google Cloud Vision API to analyze the contents of the receipt. Optical character recognition (OCR) technology is used for the analysis, and information such as the product name, price, and purchase date and time written on the receipt is extracted. The input is image data, and the output is analyzed text data.
ステップ4: Step 4:
サーバが解析結果をデータベースに保存する。 The server stores the analysis results in a database.
サーバは、解析されたデータをデータベースに保存する。保存されるデータには、商品名、価格、購入日時、店舗名などが含まれる。これにより、ユーザの購入履歴がデータベースに蓄積される。入力は解析されたテキストデータであり、出力はデータベースへの保存である。 The server saves the analyzed data in a database. The saved data includes the product name, price, purchase date and time, store name, etc. This allows the user's purchase history to be accumulated in the database. The input is the analyzed text data, and the output is saved in the database.
ステップ5: Step 5:
ユーザが購入履歴を確認する。 The user checks their purchase history.
ユーザは「ReceiptUploader」アプリケーションを使用して、購入履歴を確認することができる。アプリケーション内の「購入履歴」セクションを開くと、サーバから取得されたデータが表示される。ユーザは、過去の購入情報を一覧で確認することができる。入力はデータベースから取得されたデータであり、出力はアプリケーション上の表示である。 Users can use the "ReceiptUploader" application to check their purchase history. When they open the "Purchase History" section in the application, data retrieved from the server is displayed. Users can view a list of past purchases. The input is data retrieved from the database, and the output is displayed in the application.
(応用例2) (Application Example 2)
次に、形態例2の応用例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, we will explain Application Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
従来の買い物システムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかる上に、購入情報の管理が煩雑であった。また、購入情報を基にしたポイント還元や節約効果の可視化が十分に行われていなかった。さらに、顧客の健康目標に基づいて不要な商品を判断し、節約効果や健康効果を可視化するシステムが不足していた Traditional shopping systems required customers to physically submit receipts for their purchases, which was time-consuming and made managing purchase information cumbersome. Furthermore, there was a lack of systems that could identify unnecessary products based on customers' health goals and visualize their savings and health benefits.
応用例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、購入レシートの内容を解析し、購入情報を自動的に抽出する手段と、抽出された購入情報に基づいて、顧客にポイントを還元する手段と、還元されたポイントを次回の購入時に使用できる手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、購入情報の管理が容易になり、ポイント還元や節約効果の可視化が可能となる。また、顧客の健康目標に基づいて不要な商品を判断し、節約効果や健康効果を可視化することができる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 2 is realized by the following means. In this invention, the server includes: a means for the customer to enter their current height and weight and goals; a means for the customer to take a photo of their purchase receipt with their smartphone camera after shopping and upload it to the application; a means for correcting items determined to be unnecessary for the current purchase; a means for visualizing the money saved and weight lost if the unnecessary items were not purchased; a means for analyzing the contents of the purchase receipt and automatically extracting purchase information; a means for rewarding points to the customer based on the extracted purchase information; and a means for allowing the rewarded points to be used for the next purchase. This saves the customer the trouble of submitting a physical receipt, simplifies management of purchase information, and enables visualization of point rewards and savings. It also identifies unnecessary items based on the customer's health goals and visualizes savings and health benefits.
「顧客」とは、商品やサービスを購入する消費者のことである。 "Customer" refers to a consumer who purchases goods or services.
「身長体重」とは、顧客の身体の高さと体重を指す基本的な身体情報である。 "Height and weight" refers to basic physical information that refers to the customer's physical height and weight.
「目標」とは、顧客が達成したい具体的な数値や状態を指すものである。 A "goal" refers to a specific numerical value or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される取引の詳細を記載した紙または電子の記録である。 A "purchase receipt" is a paper or electronic record detailing a transaction issued to a customer when they purchase goods.
「スマートフォン」とは、インターネット接続やアプリケーションの利用が可能な携帯電話の一種である。 A "smartphone" is a type of mobile phone that can connect to the Internet and use applications.
「カメラ」とは、画像や動画を撮影するための装置である。 A "camera" is a device used to take images and videos.
「アプリケーション」とは、スマートフォンやコンピュータ上で動作するソフトウェアプログラムである。 An "application" is a software program that runs on a smartphone or computer.
「アップロード」とは、データをローカルデバイスからサーバやクラウドに転送する行為である。 "Uploading" is the act of transferring data from a local device to a server or cloud.
「不要な商品」とは、顧客の目標達成に対して必要でないと判断される商品である。 "Unnecessary products" are products that are deemed not necessary for achieving the customer's goals.
「添削」とは、内容を確認し、修正や改善を行う行為である。 "Correction" is the act of checking the content and making corrections or improvements.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額である。 "Money saved" is the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を購入しなかった結果として減少した体重である。 "Weight lost" refers to the weight lost as a result of not purchasing unnecessary items.
「可視化」とは、データや情報を視覚的に表示することを指す。 "Visualization" refers to the visual display of data or information.
「解析」とは、データや情報を詳細に調べて、その構造や意味を明らかにする行為である。 "Analysis" is the act of examining data or information in detail to clarify its structure and meaning.
「購入情報」とは、顧客が購入した商品の詳細情報である。 "Purchase information" refers to detailed information about the products purchased by the customer.
「自動的に抽出」とは、システムが人の手を介さずにデータを取り出すことを指す。 "Automatic extraction" means that the system extracts data without human intervention.
「ポイント還元」とは、購入金額に応じて顧客にポイントを付与する行為である。 "Point redemption" is the act of awarding points to customers based on the purchase amount.
「次回の購入時に使用できる」とは、顧客が次に商品を購入する際にポイントを利用できることを指す。 "Can be used on next purchase" means that the customer can use the points the next time they purchase a product.
この発明を実施するための形態について、以下に詳細に説明する。 The following describes in detail the mode for implementing this invention.
まず、顧客が現在の身長体重と目標を記入する手段として、スマートフォンアプリケーションを用いる。顧客はアプリケーションを起動し、身長体重および目標を入力する。これにより、顧客の健康目標がシステムに登録される。 First, a smartphone application is used by the customer to enter their current height, weight, and goals. The customer launches the application and enters their height, weight, and goals. This registers the customer's health goals in the system.
次に、顧客が買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする手段を提供する。顧客はレシートを撮影し、アプリケーション内のアップロード機能を使用して画像をサーバに送信する。 Next, we provide a way for customers to take a photo of their purchase receipt with their smartphone camera after shopping and upload it to the application. Customers take a photo of their receipt and use the upload function within the application to send the image to the server.
サーバは、アップロードされたレシート画像を受信し、OpenCVを用いて画像を前処理する。具体的には、画像をグレースケールに変換し、二値化処理を行う。次に、pytesseractを用いて前処理された画像からテキストを抽出する。抽出されたテキストから購入情報(商品名、金額など)を解析し、自動的に抽出する。 The server receives the uploaded receipt image and preprocesses it using OpenCV. Specifically, it converts the image to grayscale and performs binarization. Next, it uses pytesseract to extract text from the preprocessed image. It then analyzes and automatically extracts purchase information (product name, price, etc.) from the extracted text.
解析された購入情報に基づいて、顧客にポイントを還元する手段を提供する。サーバは、購入金額に応じてポイントを計算し、顧客のアカウントにポイントを付与する。還元されたポイントは、次回の購入時に使用できるようにアプリケーション内で管理される。 Based on the analyzed purchase information, the application provides a means for rewarding customers with points. The server calculates points based on the purchase amount and adds them to the customer's account. Rewarded points are managed within the application so they can be used for the next purchase.
さらに、今回の買い物で不要だと判断できる商品を添削する手段として、顧客の身長体重と目標に基づいて不要な商品を判断するアルゴリズムを実装する。サーバは、購入情報と顧客の健康目標を照らし合わせ、不要な商品を特定する。 Furthermore, as a means of filtering out items that may be deemed unnecessary for this shopping trip, an algorithm is implemented to determine unnecessary items based on the customer's height, weight, and goals. The server compares purchase information with the customer's health goals to identify unnecessary items.
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段として、サーバは節約できる金額と減少した体重を計算し、グラフィカルに表示する。これにより、顧客は節約効果と健康効果を視覚的に確認できる。 To visualize the money saved and weight lost by not buying unnecessary products, the server calculates the amount saved and weight lost and displays them graphically. This allows customers to visually see the savings and health benefits.
具体例として、ユーザーがコンビニで飲み物を購入し、レシートを撮影してアプリにアップロードする場合を考える。アプリがレシートから「飲み物」と「150円」を抽出し、15ポイントを還元する。また、ユーザーの健康目標に基づいて、飲み物が不要な商品と判断される場合、節約できる金額と減少した体重が表示される。 As a concrete example, consider the case where a user purchases a drink at a convenience store, takes a photo of the receipt, and uploads it to the app. The app extracts "drink" and "150 yen" from the receipt and rewards 15 points. Furthermore, if the drink is deemed an unnecessary item based on the user's health goals, the amount of money saved and the weight lost will be displayed.
生成AIモデルへのプロンプト文の例は以下の通りである: Examples of prompts for a generative AI model are as follows:
「ユーザーがスマートフォンのカメラで撮影したレシート画像をアップロードしました。この画像から購入情報を抽出し、ポイントを還元するプログラムを作成してください。購入金額の10%をポイントとして還元します。」 "A user has uploaded a receipt image taken with their smartphone camera. Please create a program that extracts purchase information from this image and rewards points. 10% of the purchase amount will be rewarded as points."
応用例2における特定処理の流れについて図14を用いて説明する。 The flow of the specific processing in Application Example 2 will be explained using Figure 14.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、現在の身長体重と目標を入力する。入力されたデータはアプリケーション内で一時的に保存され、サーバに送信される。入力データは、ユーザの健康目標を設定するための基礎情報として使用される。 The user launches the smartphone application and enters their current height, weight, and goals. The entered data is temporarily saved within the application and sent to the server. The entered data is used as the basis for setting the user's health goals.
ステップ2: Step 2:
ユーザが買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする。撮影されたレシート画像は、アプリケーション内で一時的に保存され、サーバに送信される。入力データは、レシート画像である。 After shopping, the user takes a photo of the purchase receipt with their smartphone camera and uploads it to the application. The captured receipt image is temporarily saved within the application and then sent to the server. The input data is the receipt image.
ステップ3: Step 3:
サーバがアップロードされたレシート画像を受信し、OpenCVを用いて画像を前処理する。具体的には、画像をグレースケールに変換し、二値化処理を行う。入力データはレシート画像であり、出力データは前処理された画像である。 The server receives the uploaded receipt image and preprocesses it using OpenCV. Specifically, it converts the image to grayscale and performs binarization. The input data is the receipt image, and the output data is the preprocessed image.
ステップ4: Step 4:
サーバが前処理された画像からpytesseractを用いてテキストを抽出する。入力データは前処理された画像であり、出力データは抽出されたテキストである。具体的な動作として、OCR(光学文字認識)技術を使用して画像内の文字情報を読み取る。 The server extracts text from the preprocessed image using pytesseract. The input data is the preprocessed image, and the output data is the extracted text. Specifically, it uses OCR (optical character recognition) technology to read the text information in the image.
ステップ5: Step 5:
サーバが抽出されたテキストから購入情報(商品名、金額など)を解析し、自動的に抽出する。入力データは抽出されたテキストであり、出力データは解析された購入情報である。具体的な動作として、テキスト解析アルゴリズムを使用して必要な情報を抽出する。 The server analyzes and automatically extracts purchase information (product name, price, etc.) from the extracted text. The input data is the extracted text, and the output data is the analyzed purchase information. Specifically, it uses a text analysis algorithm to extract the required information.
ステップ6: Step 6:
サーバが解析された購入情報に基づいて、顧客にポイントを還元する。入力データは解析された購入情報であり、出力データは還元されたポイントである。具体的な動作として、購入金額に応じてポイントを計算し、顧客のアカウントにポイントを付与する。 The server rewards the customer with points based on the analyzed purchase information. The input data is the analyzed purchase information, and the output data is the rewarded points. Specifically, it calculates points based on the purchase amount and adds them to the customer's account.
ステップ7: Step 7:
サーバが顧客の身長体重と目標に基づいて不要な商品を判断する。入力データは顧客の健康目標と購入情報であり、出力データは不要な商品のリストである。具体的な動作として、健康目標と購入情報を照らし合わせ、不要な商品を特定するアルゴリズムを実行する。 The server determines unnecessary products based on the customer's height, weight, and goals. The input data is the customer's health goals and purchase information, and the output data is a list of unnecessary products. Specifically, it runs an algorithm that compares the health goals with the purchase information and identifies unnecessary products.
ステップ8: Step 8:
サーバが不要商品を買わなかったら節約できるお金&減る体重を計算し、グラフィカルに表示する。入力データは不要な商品のリストと購入情報であり、出力データは節約できる金額と減少した体重である。具体的な動作として、節約効果と健康効果を計算し、ユーザに視覚的に表示する。 The server calculates the amount of money saved and weight lost if unnecessary items are not purchased, and displays this graphically. The input data is a list of unnecessary items and purchase information, and the output data is the amount saved and weight lost. Specifically, it calculates the savings and health benefits and displays them visually to the user.
ステップ9: Step 9:
ユーザが次回の購入時に還元されたポイントを使用する。入力データは還元されたポイントであり、出力データはポイントを使用した後の残高である。具体的な動作として、ポイントを使用して購入金額を割引し、残高を更新する。 The user uses the points they have earned on their next purchase. The input data is the points earned, and the output data is the balance after the points have been used. Specific operations include using the points to discount the purchase amount and updating the balance.
(実施例3) (Example 3)
次に、形態例3の実施例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, we will explain Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を両立させることが難しいと感じている。特に、ダイエットや健康目標を持つ消費者は、買い物の際にどの商品が不要であるかを判断するのが困難である。また、不要な商品を購入しなかった場合の節約金額や健康効果を具体的に把握する手段が不足している。このため、消費者が健康管理と節約を効果的に行うためのシステムが求められている Today's consumers find it difficult to balance health management and saving money. Consumers with diet or health goals in particular have difficulty determining which products are unnecessary when shopping. Furthermore, there are few ways to specifically assess the savings and health benefits of not purchasing unnecessary products. For this reason, a system that helps consumers effectively manage their health and save money is needed.
実施例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、提出されたレシート情報を光学文字認識技術でテキストデータに変換する手段と、顧客の身長体重と目標に基づいて不要な商品を判断する手段と、不要商品を買わなかった場合に節約できる金額と減少する体重を計算する手段と、計算結果をグラフィカルに表示する手段を含む。これにより、消費者は買い物の際に不要な商品を簡単に特定し、節約金額と健康効果を具体的に把握することが可能となる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Example 3 is realized by the following means. In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for converting the submitted receipt information into text data using optical character recognition technology, means for determining unnecessary products based on the customer's height, weight, and goals, means for calculating the amount of money saved and the weight lost if the unnecessary products are not purchased, and means for graphically displaying the calculation results. This allows consumers to easily identify unnecessary products when shopping and specifically understand the amount of money saved and the health benefits.
「顧客」とは、システムを利用して自身の健康管理と節約を行おうとする消費者である。 "Customers" are consumers who use the system to manage their own health and save money.
「身長体重」とは、顧客の現在の身体的な測定値であり、健康管理の基礎データとして使用されるものである。 "Height and Weight" refers to the customer's current physical measurements and is used as basic data for health management.
「目標」とは、顧客が設定する健康やダイエットに関する具体的な目的であり、例えば「糖質制限」や「カロリー制限」などが含まれる。 "Goals" are specific health and diet objectives set by customers, and include, for example, "carbohydrate restriction" or "calorie restriction."
「レシート」とは、顧客が買い物後に受け取る購入商品の明細書であり、商品名と価格が記載されているものである。 A "receipt" is a detailed list of purchased items that a customer receives after shopping, listing the product names and prices.
「光学文字認識技術」とは、画像データから文字情報を抽出する技術であり、レシート画像をテキストデータに変換するために使用されるものである。 "Optical character recognition technology" is a technology that extracts character information from image data and is used to convert receipt images into text data.
「テキストデータ」とは、光学文字認識技術によって変換された文字情報であり、商品名や価格などの情報が含まれるものである。 "Text data" refers to text information converted using optical character recognition technology, and includes information such as product names and prices.
「不要な商品」とは、顧客の身長体重と目標に基づいて、健康管理やダイエットの観点から購入する必要がないと判断される商品である。 "Unnecessary products" are products that are determined not to be necessary to purchase from the perspective of health management or dieting, based on the customer's height, weight, and goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金銭の総額である。 "Amount saved" is the total amount of money you can save by not purchasing unnecessary items.
「減少する体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量である。 "Weight loss" is the amount of weight loss predicted if the unnecessary product is not consumed.
「グラフィカルに表示する」とは、計算結果を視覚的にわかりやすくするために、グラフやチャートなどの形式で表示することである。 "Displaying graphically" means displaying the calculation results in the form of graphs, charts, etc. to make them easier to understand visually.
発明を実施するための形態 Form for implementing the invention
この発明は、消費者が健康管理と節約を効果的に行うためのシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system that enables consumers to effectively manage their health and save money. Specific embodiments of this system are described below.
システムの構成 System Configuration
このシステムは、以下の主要なコンポーネントから構成される。 The system consists of the following main components:
1. ユーザが身長、体重、目標を入力するための端末 1. A device for users to enter their height, weight, and goals.
2. ユーザが買い物後にレシートを提出するための端末 2. A terminal where users can submit receipts after shopping.
3. サーバがデータを受信し、処理を行うためのハードウェアおよびソフトウェア 3. Hardware and software for the server to receive and process data
使用するハードウェアおよびソフトウェア Hardware and software used
端末: スマートフォンやタブレットなどのモバイルデバイス Device: Mobile devices such as smartphones and tablets
サーバ: 高性能なデータ処理サーバ Server: High-performance data processing server
OCR技術: Google Cloud Vision APIなどの光学文字認識技術 OCR technology: Optical character recognition technology such as Google Cloud Vision API
データベース: MySQLやPostgreSQLなどのリレーショナルデータベース Database: Relational database such as MySQL or PostgreSQL
データビジュアライゼーションライブラリ: D3.jsやChart.jsなど Data visualization libraries: D3.js, Chart.js, etc.
プログラムの処理 Program processing
サーバは、ユーザが入力した身長、体重、目標、および提出されたレシートの情報を受信する。サーバは、これらのデータを用いて不要な商品を検出するためのデータ加工とデータ演算を行う。具体的には、以下の手順で処理を行う。 The server receives the height, weight, and goal information entered by the user, as well as the submitted receipt. Using this data, the server processes and calculates the data to detect unwanted products. Specifically, the process is carried out as follows:
1. データ受信と解析: 1. Data reception and analysis:
サーバは、ユーザが入力した身長、体重、目標(例:糖質制限)を受信する。 The server receives the user's input height, weight, and goal (e.g., carbohydrate restriction).
サーバは、提出されたレシートの情報をOCR技術を用いてテキストデータに変換する。 The server converts the information on the submitted receipt into text data using OCR technology.
2. 不要商品の検出: 2. Detecting unwanted products:
サーバは、目標に基づいて不要な商品を検出する。例えば、目標が「糖質制限」である場合、サーバはレシート上の「パン」や「お菓子」などの糖質が多い商品を不要な商品としてリストアップする。 The server detects unnecessary products based on the goal. For example, if the goal is to "limit carbohydrates," the server will list high-carbohydrate products on the receipt, such as "bread" and "sweets," as unnecessary products.
3. 節約金額と体重減少量の計算: 3. Calculate savings and weight loss:
サーバは、検出した不要な商品の合計金額を計算する。 The server calculates the total price of the unwanted items detected.
サーバは、不要な商品を摂取しなかった場合の推定体重減少量を計算する。 The server calculates the estimated weight loss that would occur if the unnecessary products were not consumed.
4. 結果の可視化: 4. Visualizing the results:
サーバは、計算結果をグラフやチャートなどの形で消費者に表示する。 The server displays the calculation results to the consumer in the form of graphs, charts, etc.
具体例 Specific examples
ユーザが身長170cm、体重70kg、目標を「糖質制限」と設定し、レシートを提出したとする。レシートには「パン(300円)」、「お菓子(200円)」、「野菜(100円)」が含まれている。システムは「パン」と「お菓子」を不要な商品として検出し、合計金額500円を節約できると計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を0.5kgと計算し、グラフで表示する。 Let's say a user is 170cm tall, weighs 70kg, sets their goal to "restrict carbohydrates," and submits a receipt. The receipt includes "bread (300 yen)," "sweets (200 yen)," and "vegetables (100 yen)." The system detects "bread" and "sweets" as unnecessary items and calculates that a total of 500 yen can be saved. The system also calculates that the estimated weight loss would be 0.5kg if these items were not consumed, and displays this in a graph.
プロンプト文の例 Example prompt
「身長170cm、体重70kg、目標は糖質制限です。以下のレシート情報を基に不要な商品を検出し、節約金額と体重減少量を計算してください。レシート情報:パン(300円)、お菓子(200円)、野菜(100円)」実施例3における特定処理の流れについて図15を用いて説明する。 "Height 170cm, weight 70kg, goal is carbohydrate restriction. Detect unnecessary items based on the following receipt information and calculate the amount saved and weight loss. Receipt information: bread (300 yen), sweets (200 yen), vegetables (100 yen)." The flow of the identification process in Example 3 will be explained using Figure 15.
ステップ1: Step 1:
ユーザが身長、体重、目標を入力し、レシートを提出する。 Users enter their height, weight, and goal, then submit a receipt.
入力: ユーザはスマートフォンのアプリを開き、身長170cm、体重70kg、目標「糖質制限」を入力する。また、買い物後のレシートをスマートフォンのカメラで撮影し、アプリを通じてサーバにアップロードする。 Input: The user opens the app on their smartphone and enters their height (170cm), weight (70kg), and goal of "restricting carbohydrates." After shopping, they also take a photo of the receipt with their smartphone camera and upload it to the server via the app.
出力: ユーザの入力データとレシート画像がサーバに送信される。 Output: User input data and receipt image are sent to the server.
ステップ2: Step 2:
サーバが入力データとレシート情報を受信する。 The server receives the input data and receipt information.
入力: ユーザから送信された身長、体重、目標、およびレシート画像。 Input: Height, weight, goal, and receipt image submitted by the user.
出力: サーバ内のデータベースに保存されたユーザの入力データとレシート画像。 Output: User input data and receipt image stored in a database on the server.
ステップ3: Step 3:
サーバがレシート情報をOCR技術でテキストデータに変換する。 The server converts the receipt information into text data using OCR technology.
入力: サーバに保存されたレシート画像。 Input: Receipt image stored on the server.
データ加工: サーバはGoogle Cloud Vision APIを呼び出し、レシート画像を解析して商品名と価格を抽出する。 Data processing: The server calls the Google Cloud Vision API, analyzes the receipt image, and extracts the product name and price.
出力: 変換されたテキストデータ(例:「パン(300円)」、「お菓子(200円)」、「野菜(100円)」)。 Output: Converted text data (e.g., "Bread (300 yen)", "Sweets (200 yen)", "Vegetables (100 yen)").
ステップ4: Step 4:
サーバが目標に基づいて不要な商品を検出する。 The server detects unwanted items based on your goals.
入力: ユーザの目標(例:「糖質制限」)と変換されたテキストデータ。 Input: User's goal (e.g., "Limit carbohydrates") and converted text data.
データ演算: サーバは事前に定義された食品カテゴリと目標に基づくルールベースのフィルタリングを行い、不要な商品をリストアップする。 Data calculation: The server performs rule-based filtering based on predefined food categories and goals to list unwanted products.
出力: 不要な商品のリスト(例:「パン」、「お菓子」)。 Output: List of unwanted products (e.g., "bread", "sweets").
ステップ5: Step 5:
サーバが不要商品の合計金額と推定体重減少量を計算する。 The server calculates the total price of unwanted items and the estimated weight loss.
入力: 不要な商品のリストとそれぞれの価格。 Input: List of unwanted items and their respective prices.
データ演算: サーバは不要な商品の合計金額を計算し、さらに不要な商品を摂取しなかった場合の推定体重減少量を計算する。ここで使用するモデルは、消費カロリーと体重減少の関係を基にしたシミュレーションモデルである。 Data calculation: The server calculates the total price of the unnecessary products and also calculates the estimated weight loss if the unnecessary products were not consumed. The model used here is a simulation model based on the relationship between calories consumed and weight loss.
出力: 節約金額(例:500円)と推定体重減少量(例:0.5kg)。 Output: Amount saved (e.g., 500 yen) and estimated weight loss (e.g., 0.5 kg).
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化し、ユーザに表示する。 The server visualizes the calculation results in graphs and charts and displays them to the user.
入力: 節約金額と推定体重減少量。 Enter: Amount saved and estimated weight loss.
データ加工: サーバはD3.jsやChart.jsなどのデータビジュアライゼーションライブラリを用いて、計算結果をグラフやチャートで可視化する。 Data processing: The server uses data visualization libraries such as D3.js and Chart.js to visualize the calculation results in graphs and charts.
出力: ユーザの端末に表示されるグラフやチャート。 Output: Graphs and charts displayed on the user's device.
(応用例3) (Application Example 3)
次に、形態例3の応用例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, we will explain Application Example 3 of Configuration Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を同時に達成することが難しいと感じている。特に、ダイエット目標を持つ消費者は、購入した商品の中から不要な商品を見つけ出し、それを避けることで健康と経済的な利益を得ることが求められている。しかし、これを手動で行うのは手間がかかり、正確性にも欠ける。したがって、消費者が簡単に不要な商品を特定し、節約と健康管理を効率的に行うためのシステムが必要である Today's consumers find it difficult to simultaneously manage their health and save money. In particular, consumers with dietary goals need to identify and avoid unnecessary products from their purchases in order to achieve health and financial benefits. However, doing this manually is time-consuming and inaccurate. Therefore, a system is needed that allows consumers to easily identify unnecessary products and efficiently manage their savings and health.
応用例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、レシートの情報を解析し、ダイエット目標に基づいて不要な商品を自動的に検出する手段と、不要商品を買わなかった場合の節約できる金額と推定体重減少量を計算し、グラフやチャートで表示する手段と、スマートフォンにインストールされるアプリケーションを含む。これにより、消費者は簡単に不要な商品を特定し、節約と健康管理を効率的に行うことが可能となる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for analyzing receipt information and automatically detecting unnecessary items based on diet goals, means for calculating the amount of money saved and estimated weight loss if the unnecessary items are not purchased and displaying them in graphs and charts, and an application installed on a smartphone. This allows consumers to easily identify unnecessary items and efficiently save money and manage their health.
「顧客」とは、システムを利用する消費者を指す。 "Customer" refers to consumers who use the system.
「身長体重」とは、顧客の身体的な高さと体重を示すデータである。 "Height and Weight" is data indicating the customer's physical height and weight.
「目標」とは、顧客が達成したい健康やダイエットに関する具体的な目的を指す。 "Goals" refer to the specific health or diet objectives that the customer wants to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を示す紙または電子データである。 A "purchase receipt" is paper or electronic data showing the purchase details of a product that a customer receives when making a purchase.
「不要な商品」とは、顧客の目標に対して不適切または不要と判断される商品を指す。 "Unwanted products" refer to products that are deemed inappropriate or unnecessary for the customer's goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss predicted if the unnecessary product is not consumed.
「レシートの情報」とは、購入レシートに記載されている商品の名称、価格、数量などのデータを指す。 "Receipt information" refers to data such as the product name, price, and quantity listed on the purchase receipt.
「ダイエット目標」とは、顧客が設定した体重減少や特定の栄養制限などの健康に関する目標を指す。 "Diet Goals" refers to health goals set by a customer, such as weight loss or specific nutritional restrictions.
「自動的に検出する」とは、システムがプログラムに基づいて人の介入なしに不要な商品を特定することを指す。 "Automatically detect" means that the system identifies unwanted products programmatically without human intervention.
「グラフやチャート」とは、データを視覚的に表示するための図表を指す。 "Graphs and charts" refer to diagrams used to visually display data.
「スマートフォンにインストールされるアプリケーション」とは、スマートフォン上で動作するソフトウェアプログラムを指す。 "Applications installed on smartphones" refers to software programs that run on smartphones.
この発明は、消費者が健康管理と節約を効率的に行うためのシステムである。以下に、このシステムを実施するための具体的な形態を説明する。 This invention is a system that allows consumers to efficiently manage their health and save money. Specific embodiments for implementing this system are described below.
システムの構成 System Configuration
システムは、以下の主要なコンポーネントから構成される: The system consists of the following main components:
1. ユーザー端末:スマートフォンなどの携帯端末。 1. User device: A mobile device such as a smartphone.
2. サーバ:データ処理と解析を行う中央サーバ。 2. Server: A central server that processes and analyzes data.
3. アプリケーション:スマートフォンにインストールされる専用アプリケーション。 3. Application: A dedicated application installed on a smartphone.
プログラムの処理 Program processing
ユーザー端末 User device
ユーザー端末は、以下の機能を持つ: The user device has the following functions:
ユーザー情報入力:ユーザーはアプリケーションを通じて、自身の身長、体重、ダイエット目標を入力する。 User information input: Users enter their height, weight, and diet goals through the application.
レシートスキャン:ユーザーが購入した商品のレシートをスマートフォンのカメラでスキャンし、画像データとして取得する。 Receipt scanning: The user scans the receipt for the item they purchased with their smartphone camera and obtains the image data.
サーバ Server
サーバは、以下の処理を行う: The server performs the following process:
レシート情報の解析:取得したレシート画像をOCR(光学文字認識)技術を用いてテキストデータに変換する。この処理には、pytesseractライブラリを使用する。 Analyzing receipt information: The acquired receipt image is converted into text data using OCR (optical character recognition) technology. This process uses the pytesseract library.
不要商品の検出:ユーザーのダイエット目標に基づいて、レシートのテキストデータから不要な商品を自動的に検出する。例えば、糖質制限を目標とするユーザーの場合、「パン」や「お菓子」などの高糖質商品を検出する。 Detection of unnecessary products: Automatically detect unnecessary products from receipt text data based on the user's diet goals. For example, for a user aiming to limit carbohydrate intake, high-carbohydrate products such as "bread" and "sweets" will be detected.
節約金額と体重減少量の計算:検出された不要商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、1kgの体重減少に必要なカロリー(約7700kcal)を基準とする。 Calculation of savings and weight loss: Calculates the total cost of the detected unnecessary products and the estimated weight loss if you did not consume those products. Weight loss is calculated based on the calories required to lose 1 kg of weight (approximately 7700 kcal).
アプリケーション application
アプリケーションは、以下の機能を持つ: The application has the following features:
結果の可視化:計算された節約金額と推定体重減少量をグラフやチャートで表示する。これにより、ユーザーは自身の健康管理と節約の効果を視覚的に確認できる。 Visualization of results: Calculated savings and estimated weight loss are displayed in graphs and charts, allowing users to visually see the effects of their health management and savings.
具体例 Specific examples
例えば、ユーザーが「糖質制限」を目標として設定し、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が不要商品として検出される。検出された不要商品の合計金額が500円で、推定体重減少量が0.2kgであるとする。 For example, if a user sets a goal of "restricting carbohydrates" and the receipt includes "bread" and "sweets," these items will be detected as unnecessary products. Suppose the total amount of the detected unnecessary products is 500 yen, and the estimated weight loss is 0.2 kg.
プロンプト文の例 Example prompt
ユーザー情報を入力してください: Please enter your user information:
身長:170 cm Height: 170 cm
体重:70 kg Weight: 70 kg
ダイエット目標:糖質制限 Diet goal: Carbohydrate restriction
レシートをスキャンしてください: Scan your receipt:
(レシート画像をアップロード) (Upload receipt image)
不要商品を検出しています... Unwanted items detected...
検出された不要商品: Unwanted items detected:
パン:200円 Bread: 200 yen
お菓子:300円 Sweets: 300 yen
節約金額:500円 Savings: ¥500
推定体重減少量:0.2kg Estimated weight loss: 0.2kg
結果をグラフで表示します。 The results are displayed in a graph.
このようにして、ユーザーは簡単に不要な商品を特定し、節約と健康管理を効率的に行うことができる。 In this way, users can easily identify unnecessary products and efficiently save money and manage their health.
応用例3における特定処理の流れについて図16を用いて説明する。 The flow of the specific processing in Application Example 3 will be explained using Figure 16.
ステップ1: Step 1:
ユーザがスマートフォンのアプリケーションを起動し、自身の身長、体重、ダイエット目標を入力する。 The user launches the smartphone application and enters their height, weight, and diet goals.
入力:ユーザの身長、体重、ダイエット目標 Input: User's height, weight, and diet goal
出力:ユーザ情報データ Output: User information data
具体的な動作:ユーザはアプリケーションの入力フォームに身長、体重、ダイエット目標(例:糖質制限)を入力し、送信ボタンを押す。これにより、ユーザ情報データが生成され、サーバに送信される。 Specific operation: The user enters their height, weight, and diet goal (e.g., carbohydrate restriction) into the application's input form and presses the submit button. This generates user information data and sends it to the server.
ステップ2: Step 2:
ユーザが買い物後に購入した商品のレシートをスマートフォンのカメラでスキャンする。 After shopping, the user scans the receipt for the purchased items using their smartphone camera.
入力:レシート画像 Input: Receipt image
出力:レシート画像データ Output: Receipt image data
具体的な動作:ユーザはアプリケーション内のカメラ機能を使用して、購入レシートを撮影する。撮影されたレシート画像はアプリケーション内に保存され、サーバに送信される。 Specific operation: The user uses the application's camera function to take a photo of the purchase receipt. The captured receipt image is saved within the application and sent to the server.
ステップ3: Step 3:
サーバがレシート画像を受信し、OCR技術を用いてテキストデータに変換する。 The server receives the receipt image and converts it into text data using OCR technology.
入力:レシート画像データ Input: Receipt image data
出力:レシートテキストデータ Output: Receipt text data
具体的な動作:サーバはpytesseractライブラリを使用して、受信したレシート画像データからテキストを抽出する。抽出されたテキストデータはレシートテキストデータとして保存される。 Specific operation: The server uses the pytesseract library to extract text from the received receipt image data. The extracted text data is saved as receipt text data.
ステップ4: Step 4:
サーバがユーザのダイエット目標に基づいて、レシートテキストデータから不要な商品を自動的に検出する。 The server automatically detects unnecessary items from receipt text data based on the user's diet goals.
入力:ユーザ情報データ、レシートテキストデータ Input: User information data, receipt text data
出力:不要商品リスト Output: List of unwanted items
具体的な動作:サーバはユーザのダイエット目標(例:糖質制限)に基づいて、レシートテキストデータを解析する。特定のキーワード(例:「パン」、「お菓子」)を含む商品を不要商品としてリストアップする。 Specific operation: The server analyzes receipt text data based on the user's diet goal (e.g., carbohydrate restriction). Products containing specific keywords (e.g., "bread," "sweets") are listed as unwanted items.
ステップ5: Step 5:
サーバが不要商品を買わなかった場合の節約できる金額と推定体重減少量を計算する。 The server calculates the amount of money you could save and the estimated weight loss if you didn't buy unnecessary items.
入力:不要商品リスト Input: List of unwanted items
出力:節約金額、推定体重減少量 Output: Money saved, estimated weight loss
具体的な動作:サーバは不要商品リストに基づいて、各商品の価格を合計し、節約金額を計算する。また、各商品のカロリー情報を基に、推定体重減少量を計算する。体重減少量の計算には、1kgの体重減少に必要なカロリー(約7700kcal)を基準とする。 Specific operation: The server calculates the savings amount by adding up the prices of each item based on the list of unwanted items. It also calculates the estimated weight loss amount based on the calorie information of each item. The weight loss amount is calculated based on the calories required to lose 1 kg (approximately 7700 kcal).
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化し、ユーザのスマートフォンに表示する。 The server visualizes the calculation results in graphs and charts and displays them on the user's smartphone.
入力:節約金額、推定体重減少量 Input: Amount saved, estimated weight loss
出力:グラフやチャートの画像データ Output: Image data for graphs and charts
具体的な動作:サーバは計算結果を基に、節約金額と推定体重減少量をグラフやチャートとして生成する。生成されたグラフやチャートの画像データはユーザのスマートフォンに送信され、アプリケーション内で表示される。 Specific operation: Based on the calculation results, the server generates graphs and charts showing the amount of savings and estimated weight loss. Image data of the generated graphs and charts is sent to the user's smartphone and displayed within the application.
このようにして、ユーザは簡単に不要な商品を特定し、節約と健康管理を効率的に行うことができる。 In this way, users can easily identify unnecessary products and efficiently save money and manage their health.
なお、更に、ユーザの感情を推定する感情エンジンを組み合わせてもよい。すなわち、特定処理部290は、感情特定モデル59を用いてユーザの感情を推定し、ユーザの感情を用いた特定処理を行うようにしてもよい。 It is also possible to further combine an emotion engine that estimates the user's emotion. That is, the identification processing unit 290 may estimate the user's emotion using the emotion identification model 59 and perform identification processing using the user's emotion.
「形態例1」 "Example 1"
本発明の一実施形態として、感情エンジンを組み合わせたシステムが提供される。このシステムは、ユーザの感情を認識し、その感情に基づいて不要な商品を判断する。具体的には、ユーザがストレスを感じているときには、甘いお菓子などの不健康な食品を不要な商品として検出する。また、ユーザがリラックスしているときには、健康的な食品を推奨する。 One embodiment of the present invention provides a system that incorporates an emotion engine. This system recognizes the user's emotions and determines which products are unnecessary based on those emotions. Specifically, when the user is feeling stressed, it detects unhealthy foods such as sweets as unnecessary products. When the user is relaxed, it recommends healthy foods.
「形態例2」 "Example 2"
さらに、感情エンジンは、ユーザの感情に基づいて節約できるお金と減る体重をグラフィカルに表示する。具体的には、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を表示する。これにより、ユーザは自身の感情と健康管理、節約の関係を視覚的に理解することができる。 Furthermore, the emotion engine graphically displays the money saved and weight lost based on the user's emotions. Specifically, it displays the amount of money saved and the amount of weight lost if the user refrains from purchasing unnecessary products when feeling stressed. This allows users to visually understand the relationship between their emotions, health management, and saving money.
「形態例3」 "Example 3"
具体例として、ユーザがストレスを感じているときにチョコレートを購入した場合、感情 For example, if a user buys chocolate while feeling stressed, their emotions
エンジンはチョコレートを不要な商品として検出する。そして、チョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。これにより、ユーザはストレスを感じているときに不健康な食品を購入する傾向があることを認識し、その結果としての金銭的、健康的な影響を理解することができる。 The engine detects chocolate as an unnecessary item and displays a graph of the savings and weight loss that would occur if the chocolate were not purchased. This helps users recognize their tendency to purchase unhealthy foods when they are stressed and understand the resulting financial and health impacts.
以下に、各形態例の処理の流れについて説明する。 The processing flow for each example form is explained below.
「形態例1」 "Example 1"
ステップ1:ユーザがシステムに自身の現在の身長と体重、目標を入力する。 Step 1: The user enters their current height, weight, and goal into the system.
ステップ2:ユーザがショッピングを行い、レシートをシステムに提出する。 Step 2: The user makes a purchase and submits the receipt to the system.
ステップ3:感情エンジンがユーザの感情を認識する。 Step 3: The emotion engine recognizes the user's emotions.
ステップ4:感情エンジンがユーザの感情に基づいて不要な商品を判断し、その結果をユーザに通知する。 Step 4: The emotion engine determines which products are unnecessary based on the user's emotions and notifies the user of the results.
「形態例2」 "Example 2"
ステップ1:ユーザがシステムに自身の現在の身長と体重、目標を入力する。 Step 1: The user enters their current height, weight, and goal into the system.
ステップ2:ユーザがショッピングを行い、レシートをシステムに提出する。 Step 2: The user makes a purchase and submits the receipt to the system.
ステップ3:感情エンジンがユーザの感情を認識する。 Step 3: The emotion engine recognizes the user's emotions.
ステップ4:感情エンジンがユーザの感情に基づいて節約できるお金と減る体重をグラフィカルに表示する。 Step 4: The emotion engine graphically displays the money saved and weight lost based on the user's emotions.
「形態例3」 "Example 3"
ステップ1:ユーザがストレスを感じているときにチョコレートを購入する。 Step 1: Buy chocolate when the user is feeling stressed.
ステップ2:感情エンジンがユーザの感情を認識し、チョコレートを不要な商品として検出する。 Step 2: The emotion engine recognizes the user's emotions and detects chocolate as an unwanted item.
ステップ3:感情エンジンがチョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。 Step 3: The emotion engine displays a graph of the amount of money saved and weight loss you would have experienced if you had not bought the chocolate.
(実施例1) (Example 1)
次に、形態例1の実施例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, Example 1 of Form Example 1 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
従来のシステムでは、顧客が自身の身長体重と目標を記入する手段や、買い物後に購入レシートを提出する手段は提供されていたが、顧客の感情に基づいて不要な商品を判断し、健康的な商品を推奨する機能が欠けていた。そのため、顧客がストレスを感じている場合やリラックスしている場合に適切な商品を選択することが難しかった。また、不要商品を買わなかった場合の節約できるお金や減る体重を可視化する手段も不十分であった。これにより、顧客の健康管理や節約意識を高めることが困難であった The previous system allowed customers to enter their height, weight, and goals, and to submit receipts after shopping, but it lacked the ability to identify unnecessary products based on the customer's emotions and recommend healthy products. This made it difficult for customers to select appropriate products when they were stressed or relaxed. It also lacked a way to visualize the money saved and weight lost by not purchasing unnecessary items. This made it difficult to raise customers' awareness of health management and saving money.
実施例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を認識し、その感情に基づいて不要な商品を判断する手段と、顧客の感情に基づいて健康的な商品を推奨する手段と、を含む。これにより、顧客の感情状態に応じた適切な商品選択が可能となり、健康管理や節約意識を高めることができる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for recognizing the customer's emotions and determining unnecessary items based on those emotions, and means for recommending healthy products based on the customer's emotions. This enables the customer to select appropriate products according to their emotional state, thereby increasing their awareness of health management and saving money.
「顧客」とは、システムを利用して自身の身長体重やダイエット目標を入力し、買い物後に購入レシートを提出する個人を指す。 "Customer" refers to an individual who uses the system to enter their height, weight, and diet goals, and then submits a purchase receipt after shopping.
「身長体重」とは、顧客の現在の身体の高さと体重を指す。 "Height and Weight" refers to the customer's current height and weight.
「目標」とは、顧客が達成したいと考えるダイエットや健康に関する具体的な数値や状態を指す。 "Goals" refer to specific numerical values or conditions related to dieting or health that a customer wishes to achieve.
「入力手段」とは、顧客が自身の身長体重や目標をシステムに入力するためのインターフェースを指す。 "Input means" refers to the interface that allows customers to input their height, weight, and goals into the system.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を記載した紙または電子データを指す。 "Purchase receipt" refers to the paper or electronic data containing the purchase details of a product that a customer receives when making a purchase.
「提出手段」とは、顧客が購入レシートをシステムに送信するためのインターフェースを指す。 "Submission means" refers to the interface through which customers submit purchase receipts to the system.
「添削手段」とは、システムが顧客の入力データや感情データに基づいて不要な商品を判断し、顧客に通知する機能を指す。 "Correction method" refers to the function by which the system determines unnecessary products based on customer input data and emotional data and notifies the customer.
「可視化手段」とは、システムが不要商品を買わなかった場合の節約できるお金や減る体重をグラフィカルに表示する機能を指す。 "Visualization means" refers to the system's ability to graphically display the money saved and weight lost if unnecessary items are not purchased.
「感情認識手段」とは、システムが顧客の感情を分析し、その感情に基づいて不要な商品を判断する機能を指す。 "Emotion recognition means" refers to the system's ability to analyze customer emotions and determine which products are unnecessary based on those emotions.
「健康的な商品推奨手段」とは、システムが顧客の感情に基づいて健康的な商品を推奨する機能を指す。 "Healthy product recommendation means" refers to the system's ability to recommend healthy products based on customer sentiment.
この発明は、顧客が自身の身長体重と目標を記入するための専用の入力フォームを提供するシステムである。このシステムは、ウェブサイトやスマートフォンアプリケーション上に設けられ、顧客が自身の身長、体重、ダイエット目標等を直接入力できるようになっている。また、感情エンジンを組み合わせることで、顧客の感情に基づいて不要な商品を判断し、健康的な商品を推奨する機能を持つ。 This invention is a system that provides a dedicated input form for customers to enter their height, weight, and diet goals. The system is set up on a website or smartphone application, and allows customers to directly input their height, weight, diet goals, etc. In addition, by combining it with an emotion engine, it has the function of determining unnecessary products based on the customer's emotions and recommending healthy products.
サーバは、ウェブサイトやスマートフォンアプリケーション上に入力フォームを設置する。この入力フォームは、HTMLとCSSを用いて作成され、JavaScriptを用いて入力データをリアルタイムで検証する。ユーザが入力フォームにデータを入力すると、サーバはそのデータを受信し、データベース(例えば、MySQLやPostgreSQL)に保存する。 The server places an input form on a website or smartphone application. This input form is created using HTML and CSS, and JavaScript is used to validate the input data in real time. When a user enters data into the input form, the server receives the data and stores it in a database (for example, MySQL or PostgreSQL).
次に、サーバは感情エンジン(例えば、Microsoft AzureのEmotion APIやGoogle CloudのNatural Language API)を使用して、ユーザの感情を分析する。感情エンジンは、ユーザの入力データや過去の行動データを基に、ユーザが現在感じている感情を認識する。例えば、ユーザがストレスを感じている場合、サーバはその情報を基に、甘いお菓子などの不健康な食品を不要な商品として判断する。一方、ユーザがリラックスしている場合、サーバは健康的な食品を推奨する。 Next, the server uses an emotion engine (for example, Microsoft Azure's Emotion API or Google Cloud's Natural Language API) to analyze the user's emotions. The emotion engine recognizes the user's current emotions based on the user's input data and past behavioral data. For example, if the user is feeling stressed, the server will use that information to determine that unhealthy foods such as sweets are unnecessary. On the other hand, if the user is relaxed, the server will recommend healthy foods.
具体例として、ユーザがスマートフォンアプリケーションを使用して、身長170cm、体重70kg、ダイエット目標を「5kg減量」と入力したとする。このデータはサーバに送信され、データベースに保存される。その後、感情エンジンがユーザの感情を分析し、ユーザがストレスを感じていると判断した場合、サーバは「チョコレートやクッキーなどの甘いお菓子は避けましょう」といったメッセージを表示する。 As a concrete example, suppose a user uses a smartphone application to enter their height as 170cm, weight as 70kg, and diet goal as "lose 5kg." This data is sent to the server and stored in a database. The emotion engine then analyzes the user's emotions, and if it determines that the user is feeling stressed, the server displays a message such as "Avoid sweet snacks such as chocolate and cookies."
生成AIモデルへ入力するプロンプト文の例: Example of a prompt to input to a generative AI model:
ユーザが身長170cm、体重70kg、ダイエット目標を「5kg減量」と入力しました。感情エンジンがユーザの感情を分析した結果、ユーザがストレスを感じていると判断しました。この場合、どのような商品を不要と判断し、どのような商品を推奨しますか? A user enters their height as 170cm, weight as 70kg, and their diet goal as "lose 5kg." The emotion engine analyzes the user's emotions and determines that the user is feeling stressed. In this case, what products would be deemed unnecessary and what products would be recommended?
このプロンプト文を生成AIモデルに入力することで、具体的な商品推奨や不要商品の判断を得ることができる。このようにして、システムはユーザの入力データと感情データを基に、適切な商品推奨を行うことができる。 By inputting this prompt into a generative AI model, specific product recommendations and a determination of unnecessary products can be obtained. In this way, the system can make appropriate product recommendations based on the user's input data and emotional data.
実施例1における特定処理の流れについて図17を用いて説明する。 The flow of the identification process in Example 1 will be explained using Figure 17.
ステップ1: Step 1:
ユーザが入力フォームにアクセスする。 The user accesses the input form.
ユーザはウェブサイトまたはスマートフォンアプリケーションを開く。端末は、ブラウザやアプリケーションを通じてサーバにリクエストを送り、入力フォームを取得する。サーバは、HTMLとCSSを用いて入力フォームを生成し、端末に送信する。端末は、受信したHTMLとCSSをレンダリングし、ユーザに入力フォームを表示する。 A user opens a website or smartphone application. The device sends a request to the server through the browser or application to retrieve an input form. The server generates the input form using HTML and CSS and sends it to the device. The device renders the received HTML and CSS and displays the input form to the user.
入力:ユーザのアクセスリクエスト Input: User access request
出力:入力フォームの表示 Output: Display the input form
ステップ2: Step 2:
ユーザが身長、体重、ダイエット目標を入力する。 Users enter their height, weight, and diet goals.
ユーザは、表示された入力フォームに自身の身長、体重、ダイエット目標を入力する。端末は、JavaScriptを用いて入力データの形式をリアルタイムで検証し、エラーがないことを確認する。 The user enters their height, weight, and diet goals into the displayed input form. The device uses JavaScript to validate the format of the input data in real time to ensure there are no errors.
入力:ユーザの身長、体重、ダイエット目標 Input: User's height, weight, and diet goal
出力:検証済みの入力データ Output: Validated input data
ステップ3: Step 3:
サーバが入力データを受信し、データベースに保存する。 The server receives the input data and stores it in the database.
ユーザが送信ボタンを押すと、端末は入力データをJSON形式でサーバに送信する。サーバは、受信したデータを解析し、MySQLデータベースに保存する。具体的には、INSERT文を用いてデータベースにデータを追加する。 When the user presses the send button, the device sends the input data in JSON format to the server. The server parses the received data and saves it in a MySQL database. Specifically, it adds the data to the database using the INSERT statement.
入力:JSON形式の入力データ Input: JSON format input data
出力:データベースに保存されたデータ Output: Data stored in the database
ステップ4: Step 4:
サーバが感情エンジンを呼び出し、ユーザの感情を分析する。 The server calls the emotion engine and analyzes the user's emotions.
サーバは、保存されたデータを基に感情エンジン(例えば、Microsoft AzureのEmotion APIやGoogle CloudのNatural Language API)を呼び出す。APIにデータを送信し、ユーザの感情を分析する。APIは、ユーザがストレスを感じていると判断し、その結果をサーバに返す。 The server calls an emotion engine (for example, Microsoft Azure's Emotion API or Google Cloud's Natural Language API) based on the stored data. The data is sent to the API, which analyzes the user's emotions. The API determines that the user is feeling stressed and returns the result to the server.
入力:データベースに保存されたデータ Input: Data stored in the database
出力:感情エンジンからの感情分析結果 Output: Sentiment analysis results from the emotion engine
ステップ5: Step 5:
サーバが感情に基づいて不要な商品を判断し、推奨商品を決定する。 The server determines which products are unnecessary based on emotions and decides which products to recommend.
サーバは、感情エンジンから得られた感情データを基に、不要な商品と推奨商品を判断する。例えば、ユーザがストレスを感じている場合、サーバは「チョコレートやクッキーなどの甘いお菓子は避けましょう」と判断し、「フルーツやナッツなどの健康的な食品を推奨します」と決定する。 The server determines which products are unnecessary and which are recommended based on emotional data obtained from the emotion engine. For example, if the user is feeling stressed, the server will determine that "sweets such as chocolate and cookies should be avoided" and decide to "recommend healthy foods such as fruits and nuts."
入力:感情エンジンからの感情分析結果 Input: Sentiment analysis results from the emotion engine
出力:不要商品と推奨商品のリスト Output: List of unwanted and recommended products
ステップ6: Step 6:
サーバが結果をユーザに表示する。 The server displays the results to the user.
サーバは、判断結果をユーザに表示するためのHTMLを生成し、端末に送信する。端末は、受信したHTMLをレンダリングし、ユーザに不要な商品と推奨商品を表示する。ユーザは、表示された結果を確認し、次の行動を決定する。 The server generates HTML to display the results of the judgment to the user and sends it to the device. The device renders the received HTML and displays unwanted products and recommended products to the user. The user checks the displayed results and decides on their next course of action.
入力:不要商品と推奨商品のリスト Input: List of unwanted and recommended products
出力:ユーザに表示された結果 Output: The result displayed to the user
(応用例1) (Application Example 1)
次に、形態例1の応用例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, we will explain Application Example 1 of Form Example 1. In the following explanation, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
従来のフードデリバリーシステムでは、ユーザの健康状態や感情に基づいた食品の推薦が行われておらず、ユーザがストレスを感じているときに不健康な食品を選んでしまう可能性がある。また、ユーザが自身のダイエット目標に沿った食品を選ぶためのサポートが不足しているため、効果的なダイエットが難しいという問題がある Traditional food delivery systems don't recommend foods based on the user's health status or emotions, which can lead to users choosing unhealthy foods when they're stressed. Furthermore, there's a lack of support for users to choose foods that align with their diet goals, making it difficult to diet effectively.
応用例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を認識し、その感情に基づいて不要な商品を判断する手段と、を含む。これにより、ユーザの健康状態や感情に基づいた食品の推薦が可能となり、ユーザがストレスを感じているときに不健康な食品を避け、ダイエット目標に沿った食品を選ぶことができるようになる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 1 is realized by the following means. In this invention, the server includes a means for the customer to enter their current height and weight and goals, a means for the customer to submit a purchase receipt after shopping, a means for correcting items determined to be unnecessary in this purchase, a means for visualizing the money saved and weight lost if the unnecessary items are not purchased, and a means for recognizing the customer's emotions and determining unnecessary items based on those emotions. This makes it possible to recommend foods based on the user's health condition and emotions, allowing the user to avoid unhealthy foods when feeling stressed and to choose foods that are in line with their diet goals.
「顧客」とは、サービスや商品を利用する消費者を指す。 "Customer" refers to a consumer who uses a service or product.
「身長体重」とは、個人の身体の高さと体重を示す数値である。 "Height and weight" are numbers that indicate an individual's physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な目的や状態を指す。 "Goal" refers to the specific objective or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される取引の記録を示す紙または電子データである。 A "purchase receipt" is a paper or electronic record of a transaction issued when a customer purchases a product.
「不要な商品」とは、顧客の健康状態や目標に対して不適切と判断される商品を指す。 "Unnecessary products" refer to products that are deemed inappropriate for the customer's health condition or goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、顧客が不要な商品を避けることで達成できる体重の減少を示す数値である。 "Weight Loss" is a numerical value that represents the weight loss a customer can achieve by avoiding unnecessary products.
「感情を認識する手段」とは、顧客の感情状態を検出し、それに基づいて判断を行うための技術や装置を指す。 "Means for recognizing emotions" refers to technologies or devices that detect a customer's emotional state and make decisions based on that.
「可視化する手段」とは、節約できるお金や減る体重を視覚的に表示するための技術や装置を指す。 "Visualization means" refers to technology or devices that visually display the money saved or weight lost.
この発明を実施するためのシステムは、以下のように構成される。まず、ユーザが自身の身長、体重、ダイエット目標を入力するための専用フォームを提供する。このフォームは、ウェブサイトやスマートフォンアプリケーション上に設けられ、ユーザが簡単に入力できるようになっている。 A system for implementing this invention is configured as follows: First, a dedicated form is provided for users to enter their height, weight, and diet goals. This form is provided on a website or smartphone application, allowing users to easily enter information.
次に、感情エンジンを組み合わせたシステムが提供される。このシステムは、ユーザの感情をリアルタイムで認識し、その感情に基づいて不要な商品を判断する。具体的には、ユーザがストレスを感じているときには、甘いお菓子などの不健康な食品を不要な商品として検出し、リラックスしているときには、健康的な食品を推奨する。 Next, we present a system that combines an emotion engine. This system recognizes the user's emotions in real time and determines which products are unnecessary based on those emotions. Specifically, when the user is feeling stressed, it detects unhealthy foods such as sweets as unnecessary products, and when the user is relaxed, it recommends healthy foods.
このシステムの実現には、以下のハードウェアおよびソフトウェアが使用される。 The following hardware and software are used to implement this system:
ハードウェア: スマートフォン、タブレット、またはPC Hardware: Smartphone, tablet, or PC
ソフトウェア: Python、EmotionRecognizerライブラリ、FoodRecommenderライブラリ Software: Python, EmotionRecognizer library, FoodRecommender library
サーバは、ユーザが入力した身長、体重、ダイエット目標のデータを受け取り、EmotionRecognizerライブラリを使用してユーザの感情をリアルタイムで認識する。次に、FoodRecommenderライブラリを使用して、ユーザの入力データと認識された感情に基づいて適切な食品を推薦する。 The server receives the user's input data such as height, weight, and diet goal, and uses the EmotionRecognizer library to recognize the user's emotions in real time. It then uses the FoodRecommender library to recommend appropriate foods based on the user's input data and the recognized emotions.
例えば、ユーザが身長170cm、体重65kg、ダイエット目標が「体重を減らす」と入力し、感情エンジンがユーザがストレスを感じていると認識した場合、システムは不健康な食品(例えば、甘いお菓子)を避け、代わりに健康的な食品(例えば、サラダやフルーツ)を推薦する。 For example, if a user enters their height as 170cm, weight as 65kg, and diet goal as "lose weight," and the emotion engine recognizes that the user is feeling stressed, the system will avoid unhealthy foods (e.g., sweet snacks) and instead recommend healthy foods (e.g., salads and fruit).
プロンプト文の例としては、以下のようなものがある。 Examples of prompt statements include:
「ユーザが身長170cm、体重65kg、ダイエット目標が『体重を減らす』と入力し、感情エンジンがユーザがストレスを感じていると認識した場合、どのような食品を推薦しますか?」 "If a user is 170cm tall, weighs 65kg, and their diet goal is to lose weight, and the emotion engine determines that the user is feeling stressed, what foods would you recommend?"
このようにして、ユーザの健康状態や感情に基づいた食品の推薦が可能となり、ユーザがストレスを感じているときに不健康な食品を避け、ダイエット目標に沿った食品を選ぶことができるようになる。 In this way, food recommendations can be made based on the user's health status and emotions, helping users avoid unhealthy foods when they are stressed and choosing foods that align with their diet goals.
応用例1における特定処理の流れについて図18を用いて説明する。 The flow of the specific processing in Application Example 1 is explained using Figure 18.
ステップ1: Step 1:
ユーザが端末を使用して、身長、体重、ダイエット目標を入力する。入力されたデータは、サーバに送信される。入力データには、ユーザの身長(例:170cm)、体重(例:65kg)、ダイエット目標(例:「体重を減らす」)が含まれる。 The user uses the terminal to input their height, weight, and diet goal. The input data is sent to the server. The input data includes the user's height (e.g., 170 cm), weight (e.g., 65 kg), and diet goal (e.g., "lose weight").
ステップ2: Step 2:
サーバは、受信したユーザの入力データを保存し、EmotionRecognizerライブラリを使用してユーザの感情をリアルタイムで認識する。感情認識のために、ユーザの表情や音声データが入力として使用される。出力として、ユーザの感情状態(例:ストレス、リラックス)が得られる。 The server stores the received user input data and uses the EmotionRecognizer library to recognize the user's emotions in real time. For emotion recognition, the user's facial expressions and voice data are used as input. The output is the user's emotional state (e.g., stressed, relaxed).
ステップ3: Step 3:
サーバは、認識された感情状態とユーザの入力データを基に、FoodRecommenderライブラリを使用して適切な食品を推薦する。入力データには、ユーザの身長、体重、ダイエット目標、および感情状態が含まれる。出力として、推薦される食品のリスト(例:サラダ、フルーツ)が得られる。 The server uses the FoodRecommender library to recommend appropriate foods based on the recognized emotional state and user input data. Input data includes the user's height, weight, diet goals, and emotional state. The output is a list of recommended foods (e.g., salads, fruits).
ステップ4: Step 4:
サーバは、推薦された食品のリストをユーザの端末に送信する。ユーザは、端末上で推薦された食品のリストを確認することができる。具体的な動作として、ユーザがストレスを感じている場合には不健康な食品を避け、健康的な食品を推薦する。 The server sends a list of recommended foods to the user's device, where the user can check the list of recommended foods on their device. Specifically, if the user is feeling stressed, unhealthy foods will be avoided and healthy foods will be recommended.
ステップ5: Step 5:
ユーザが買い物を行い、購入レシートを端末を使用してサーバに提出する。サーバは、提出されたレシートデータを解析し、購入された商品のリストを生成する。入力データには、レシートの画像または電子データが含まれる。出力として、購入された商品のリストが得られる。 A user makes a purchase and submits the purchase receipt to the server using a terminal. The server analyzes the submitted receipt data and generates a list of the purchased items. Input data includes receipt images or electronic data. The output is a list of the purchased items.
ステップ6: Step 6:
サーバは、購入された商品のリストとユーザのダイエット目標および感情状態を比較し、不要な商品を判断する。具体的な動作として、ユーザの目標に対して不適切な商品(例:甘いお菓子)を検出する。入力データには、購入された商品のリスト、ユーザのダイエット目標、および感情状態が含まれる。出力として、不要な商品のリストが得られる。 The server compares the list of purchased items with the user's diet goals and emotional state to determine which items are unnecessary. Specific operations include detecting items that are inappropriate for the user's goals (e.g., sweet snacks). Input data includes the list of purchased items, the user's diet goals, and their emotional state. The output is a list of unnecessary items.
ステップ7: Step 7:
サーバは、不要な商品を購入しなかった場合に節約できるお金と減る体重を計算し、可視化する。具体的な動作として、節約できる金額と減少した体重をグラフィカルに表示する。入力データには、不要な商品のリストが含まれる。出力として、節約できる金額と減少した体重のグラフィカル表示が得られる。 The server calculates and visualizes the money saved and weight lost if unnecessary items are not purchased. Specific operations include graphically displaying the amount saved and weight lost. The input data includes a list of unnecessary items. The output is a graphical representation of the amount saved and weight lost.
ステップ8: Step 8:
サーバは、可視化されたデータをユーザの端末に送信する。ユーザは、端末上で節約できる金額と減少した体重を確認することができる。具体的な動作として、ユーザが不要な商品を避けることで得られるメリットを視覚的に理解することができる。 The server sends the visualized data to the user's device, where the user can check the amount of money saved and the weight lost on the device. Specifically, the user can visually understand the benefits they can gain by avoiding unnecessary products.
(実施例2) (Example 2)
次に、形態例2の実施例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, Example 2 of Form Example 2 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
従来の健康管理システムでは、顧客が買い物後に購入証明書を提出する際に、物理的な証明書を直接提出する必要があり、手間がかかるという問題があった。また、顧客の感情状態を考慮した節約金額や体重減少量の可視化が行われておらず、顧客が自身の感情と健康管理、節約の関係を理解するのが難しいという課題があった。 With conventional health management systems, customers had to submit physical proof of purchase after shopping, which was time-consuming. Furthermore, the amount of savings and weight loss were not visualized taking into account the customer's emotional state, making it difficult for customers to understand the relationship between their emotions, health management, and savings.
実施例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身体情報と目標を記入する手段と、顧客が買い物後に購入証明書を提出する手段と、顧客が携帯端末の撮影機能を用いて購入証明書の画像を取得し、アプリケーションにアップロードする手段と、サーバが画像処理技術を用いて購入証明書の内容をテキストデータに変換する手段と、サーバが変換されたテキストデータを保存する手段と、顧客が感情データを入力する手段と、サーバが感情解析技術を用いて顧客の感情データを解析する手段と、サーバが解析結果に基づいて不要な商品を判断し、節約できる金額と減少した体重を計算する手段と、サーバが計算結果をグラフィカルに表示する手段を含む。これにより、顧客は物理的な証明書を直接提出することなく、購入情報をシステムに伝えることが可能となり、さらに自身の感情と健康管理、節約の関係を視覚的に理解することが可能となる。 In this invention, the server includes means for the customer to enter their current physical information and goals, means for the customer to submit a proof of purchase after shopping, means for the customer to capture an image of the proof of purchase using the camera function of their mobile device and upload it to the application, means for the server to convert the contents of the proof of purchase into text data using image processing technology, means for the server to save the converted text data, means for the customer to input emotional data, means for the server to analyze the customer's emotional data using emotion analysis technology, means for the server to determine unnecessary products based on the analysis results and calculate the amount of savings and weight loss, and means for the server to graphically display the calculation results. This allows customers to communicate their purchase information to the system without having to directly submit a physical proof of purchase, and further enables them to visually understand the relationship between their emotions, health management, and savings.
「顧客」とは、システムを利用して自身の健康管理や節約を行う個人を指す。 "Customer" refers to an individual who uses the system to manage their own health and save money.
「身体情報」とは、顧客の身長、体重、体脂肪率などの身体的なデータを指す。 "Physical information" refers to physical data such as the customer's height, weight, and body fat percentage.
「目標」とは、顧客が達成したい健康状態や節約目標を指す。 "Goals" refers to the health or savings goals the customer wants to achieve.
「購入証明書」とは、顧客が買い物後に受け取るレシートや領収書などの購入を証明する文書を指す。 "Proof of purchase" refers to a document that proves a purchase, such as a receipt or invoice that a customer receives after shopping.
「携帯端末」とは、スマートフォンやタブレットなどの携帯可能な電子機器を指す。 "Mobile device" refers to portable electronic devices such as smartphones and tablets.
「撮影機能」とは、携帯端末に搭載されたカメラ機能を指す。 "Photography function" refers to the camera function built into the mobile device.
「アプリケーション」とは、携帯端末上で動作するソフトウェアプログラムを指す。 "Application" refers to a software program that runs on a mobile device.
「画像処理技術」とは、画像データを解析し、必要な情報を抽出する技術を指す。 "Image processing technology" refers to the technology of analyzing image data and extracting necessary information.
「テキストデータ」とは、画像処理技術によって抽出された文字情報を指す。 "Text data" refers to text information extracted using image processing technology.
「感情データ」とは、顧客の感情状態を示すデータを指す。 "Emotional data" refers to data that indicates a customer's emotional state.
「感情解析技術」とは、感情データを解析し、顧客の感情状態を評価する技術を指す。 "Emotion analysis technology" refers to technology that analyzes emotional data and evaluates a customer's emotional state.
「不要な商品」とは、顧客の健康目標や節約目標に対して購入する必要がないと判断された商品を指す。 "Unnecessary products" refer to products that are determined not to be necessary for the customer's health or savings goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Amount saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減少した体重」とは、不要な商品を購入しなかった場合に減少する可能性のある体重を指す。 "Weight lost" refers to the weight you would lose if you had not purchased unnecessary items.
「グラフィカルに表示する」とは、計算結果を視覚的にわかりやすく表示することを指す。 "Displaying graphically" refers to displaying the calculation results in a visually easy-to-understand manner.
発明を実施するための形態 Form for implementing the invention
この発明は、顧客が買い物後に購入証明書を提出し、感情データを基に節約金額と体重減少量を可視化するシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system in which customers submit a purchase certificate after shopping and visualize the amount of savings and weight loss based on emotional data. A specific embodiment of this system is described below.
システムの構成 System Configuration
このシステムは、主に以下のハードウェアおよびソフトウェアを用いる: This system primarily uses the following hardware and software:
携帯端末(スマートフォンやタブレット) Mobile devices (smartphones and tablets)
カメラ機能 Camera function
アプリケーション application
サーバ Server
画像処理ソフトウェア(例:OpenCV、Tesseract) Image processing software (e.g., OpenCV, Tesseract)
感情解析技術 Emotion analysis technology
プログラムの処理 Program processing
ユーザは、買い物後に携帯端末のカメラ機能を使用して購入証明書の画像を撮影する。撮影した画像は、アプリケーションを通じてサーバにアップロードされる。サーバは、画像処理ソフトウェア(例えば、OpenCVやTesseract)を用いて画像内のテキストを抽出し、購入商品の名前、価格、数量などの情報をテキストデータに変換する。このテキストデータは、サーバによってデータベースに保存される。 After shopping, the user uses the camera function on their mobile device to take a picture of the purchase certificate. The image is then uploaded to the server via the application. The server then uses image processing software (e.g., OpenCV or Tesseract) to extract text from the image and convert information such as the name, price, and quantity of the purchased item into text data. The server then stores this text data in a database.
次に、ユーザはアプリケーションを通じて自身の感情データを入力する。感情データは、ユーザが手動で入力する場合もあれば、ウェアラブルデバイスから自動的に取得される場合もある。サーバは、感情解析技術を用いて感情データを解析し、ユーザがストレスを感じているかどうか、どの程度のストレスを感じているかを評価する。 Next, the user enters their emotional data through the application. The emotional data may be entered manually by the user or automatically obtained from the wearable device. The server then analyzes the emotional data using emotion analysis technology to assess whether the user is feeling stressed and to what extent.
サーバは、感情解析の結果を基に、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算する。例えば、ユーザがストレスを感じているときにチョコレートを買わなかった場合、その価格(200円)とカロリー(300kcal)を基に計算する。計算結果は、サーバによってグラフィカルに表示され、ユーザはアプリケーションを通じて確認することができる。 Based on the results of the emotion analysis, the server calculates the amount of money saved and the amount of weight lost if the user refrains from buying unnecessary items when feeling stressed. For example, if the user refrains from buying chocolate when feeling stressed, the calculation is based on the price (200 yen) and calories (300 kcal). The calculation results are displayed graphically by the server, and the user can check them through the application.
具体例 Specific examples
具体例として、ユーザがストレスを感じているときにチョコレートを買わなかった場合を考える。ユーザは、スマートフォンのカメラでレシートを撮影し、アプリケーションにアップロードする。サーバは、画像処理ソフトウェアを用いてレシートの内容をテキストデータに変換し、データベースに保存する。次に、ユーザが感情データをアプリケーションに入力し、サーバが感情解析技術を用いて解析する。解析結果を基に、サーバはチョコレートの価格(200円)とカロリー(300kcal)を基に節約金額と体重減少量を計算する。最後に、サーバは計算結果をグラフィカルに表示し、ユーザはアプリケーションを通じて確認することができる。 As a concrete example, consider the case where a user decides not to buy chocolate when they are feeling stressed. The user takes a photo of the receipt with their smartphone camera and uploads it to the application. The server uses image processing software to convert the contents of the receipt into text data and stores it in a database. Next, the user enters emotional data into the application, which the server analyzes using emotion analysis technology. Based on the analysis results, the server calculates the amount of savings and weight loss based on the price of the chocolate (200 yen) and calories (300 kcal). Finally, the server displays the calculation results graphically, and the user can check them through the application.
プロンプト文の例 Example prompt
生成AIモデルへ入力するプロンプト文の例: Example of a prompt to input to a generative AI model:
「ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算し、グラフィカルに表示するプログラムを生成してください。」 "Generate a program that calculates and graphically displays the amount of money saved and weight loss a user would achieve if they avoided buying unnecessary items when they were feeling stressed."
このようにして、ユーザは自身の感情と健康管理、節約の関係を視覚的に理解することができる。 In this way, users can visually understand the relationship between their emotions, health management, and saving money.
実施例2における特定処理の流れについて図19を用いて説明する。 The flow of the identification process in Example 2 will be explained using Figure 19.
ステップ1: Step 1:
ユーザがスマートフォンのカメラで購入証明書を撮影する。 The user takes a photo of the purchase certificate using their smartphone camera.
入力:購入証明書 Enter: Proof of purchase
出力:購入証明書の画像 Output: Image of proof of purchase
具体的な動作:ユーザは、スマートフォンのカメラを起動し、購入証明書をフレーム内に収めて撮影ボタンを押す。撮影された画像はスマートフォンのギャラリーに保存される。 Specific operation: The user activates the smartphone camera, frames the purchase certificate, and presses the capture button. The captured image is saved to the smartphone's gallery.
ステップ2: Step 2:
端末が撮影した購入証明書の画像をアプリケーションにアップロードする。 Upload the image of the purchase certificate taken by the device to the application.
入力:購入証明書の画像 Input: Image of proof of purchase
出力:サーバに送信された画像データ Output: Image data sent to the server
具体的な動作:ユーザは、アプリケーションを起動し、購入証明書の画像を選択してアップロードボタンを押す。端末は、選択された画像をサーバに送信する。 Specific operation: The user launches the application, selects an image of the purchase certificate, and presses the upload button. The device then sends the selected image to the server.
ステップ3: Step 3:
サーバが画像処理技術を用いて購入証明書の内容をテキストデータに変換する。 The server uses image processing technology to convert the contents of the purchase certificate into text data.
入力:購入証明書の画像データ Input: Image data of purchase certificate
出力:テキストデータ Output: Text data
具体的な動作:サーバは、受信した画像データを画像処理ソフトウェア(例:OpenCV、Tesseract)を用いて解析し、画像内の文字情報を抽出する。抽出された文字情報は、購入商品の名前、価格、数量などのテキストデータに変換される。 Specific operation: The server analyzes the received image data using image processing software (e.g., OpenCV, Tesseract) and extracts text information from the image. The extracted text information is converted into text data such as the name, price, and quantity of the purchased item.
ステップ4: Step 4:
サーバが変換されたテキストデータをデータベースに保存する。 The server stores the converted text data in a database.
入力:テキストデータ Input: Text data
出力:データベースに保存された購入情報 Output: Purchase information stored in the database
具体的な動作:サーバは、変換されたテキストデータをデータベースに保存する。保存されるデータには、購入日時、店舗名、商品情報などが含まれる。 Specific operation: The server saves the converted text data in a database. The saved data includes the purchase date and time, store name, product information, etc.
ステップ5: Step 5:
ユーザが感情データをアプリケーションに入力する。 The user inputs emotional data into the application.
入力:感情データ Input: Emotion data
出力:サーバに送信された感情データ Output: Emotion data sent to the server
具体的な動作:ユーザは、アプリケーションを通じて自身の感情状態を入力する。感情データは、ストレスレベルや気分などの情報を含む。また、ウェアラブルデバイスから自動的に取得される場合もある。 Specific operation: The user inputs their emotional state through the application. Emotional data includes information such as stress level and mood. It may also be obtained automatically from the wearable device.
ステップ6: Step 6:
サーバが感情解析技術を用いてユーザの感情データを解析する。 The server analyzes the user's emotional data using emotion analysis technology.
入力:感情データ Input: Emotion data
出力:解析結果 Output: Analysis results
具体的な動作:サーバは、感情解析技術を用いて感情データを解析し、ユーザがストレスを感じているかどうか、どの程度のストレスを感じているかを評価する。解析結果は、数値やグラフとして表現される。 Specific operation: The server uses emotion analysis technology to analyze emotional data and evaluate whether the user is feeling stressed and to what extent. The analysis results are displayed as numbers and graphs.
ステップ7: Step 7:
サーバが解析結果に基づいて不要な商品を判断し、節約できる金額と減少した体重を計算する。 The server determines which items are unnecessary based on the analysis results and calculates the amount of money saved and the weight lost.
入力:解析結果、テキストデータ Input: Analysis results, text data
出力:節約金額と減少した体重のデータ Output: Savings and weight loss data
具体的な動作:サーバは、感情解析の結果と購入情報を基に、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算する。例えば、チョコレートの価格(200円)とカロリー(300kcal)を基に計算する。 Specific operation: Based on the results of emotion analysis and purchase information, the server calculates the amount of money saved and the amount of weight lost if the user does not buy unnecessary items when feeling stressed. For example, the calculation is based on the price (200 yen) and calories (300 kcal) of chocolate.
ステップ8: Step 8:
サーバが計算結果をグラフィカルに表示する。 The server displays the calculation results graphically.
入力:節約金額と減少した体重のデータ Input: Savings and weight loss data
出力:グラフィカルな表示 Output: Graphical display
具体的な動作:サーバは、計算結果をグラフィカルに表示するためのデータを生成し、アプリケーションを通じてユーザに提供する。ユーザは、アプリケーションを通じて節約金額と体重減少量を視覚的に確認することができる。 Specific operation: The server generates data for graphically displaying the calculation results and provides it to the user through the application. The user can visually check the amount of savings and weight loss through the application.
(応用例2) (Application Example 2)
次に、形態例2の応用例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, we will explain Application Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
従来の買い物支援システムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかるという問題があった。また、顧客の感情や健康状態を考慮した買い物支援が行われておらず、ストレスを感じているときに不要な商品を購入してしまうことが多かった。これにより、無駄な出費や健康への悪影響が生じることが課題であった。 Conventional shopping support systems required customers to physically submit receipts for purchased items, which was a time-consuming process. Furthermore, the shopping support did not take into account the customer's emotions or health status, leading to unnecessary purchases when they were feeling stressed. This led to wasteful spending and negative health effects, which was an issue.
応用例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートをスマートフォンのカメラを用いて撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を分析し、ストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量をグラフィカルに表示する手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、感情や健康状態を考慮した買い物支援が可能となる。 In this invention, the server includes: a means for the customer to enter their current height and weight and goals; a means for the customer to take a photo of their purchase receipt using their smartphone camera after shopping and upload it to the application; a means for correcting items that are determined to be unnecessary in this purchase; a means for visualizing the money saved and weight lost if the customer does not buy unnecessary items; and a means for analyzing the customer's emotions and graphically displaying the amount of money saved and weight lost if the customer does not buy unnecessary items when they are feeling stressed. This saves the customer the trouble of submitting physical receipts, and enables shopping support that takes their emotions and health state into consideration.
「顧客」とは、商品やサービスを購入する消費者である。 "Customer" refers to a consumer who purchases goods or services.
「身長体重」とは、顧客の身体の高さと体重の数値である。 "Height and Weight" refers to the customer's physical height and weight.
「目標」とは、顧客が達成したい具体的な数値や状態を指す。 "Goal" refers to the specific numerical value or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される購入証明書である。 A "purchase receipt" is a proof of purchase issued when a customer purchases a product.
「スマートフォンのカメラ」とは、スマートフォンに内蔵されている撮影装置である。 A "smartphone camera" is a photographic device built into a smartphone.
「アプリケーション」とは、スマートフォンや他のデバイスで動作するソフトウェアプログラムである。 An "application" is a software program that runs on a smartphone or other device.
「アップロード」とは、データをローカルデバイスからサーバやクラウドに転送する行為である。 "Uploading" is the act of transferring data from a local device to a server or cloud.
「添削」とは、内容を確認し、不要な部分を修正または削除する行為である。 "Correction" is the act of checking the content and correcting or deleting unnecessary parts.
「不要商品」とは、顧客が購入する必要がないと判断された商品である。 "Unnecessary items" are items that customers have determined they do not need to purchase.
「節約できるお金」とは、不要商品を購入しなかった場合に節約できる金額である。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要商品を購入しなかった結果として減少した体重である。 "Weight lost" refers to the weight lost as a result of not purchasing unnecessary items.
「可視化」とは、データや情報を視覚的に表示する行為である。 "Visualization" is the act of visually displaying data or information.
「感情を分析」とは、顧客の感情状態を評価し、理解するプロセスである。 "Analyzing emotions" is the process of assessing and understanding a customer's emotional state.
「ストレス」とは、精神的または肉体的な緊張や負担を指す。 "Stress" refers to mental or physical tension or strain.
「グラフィカルに表示」とは、情報をグラフや図表などの視覚的な形式で表示することである。 "Graphically displayed" means displaying information in a visual format such as a graph or chart.
この発明は、顧客が買い物後に購入レシートをスマートフォンのカメラを用いて撮影し、アプリケーションにアップロードするシステムを提供するものである。さらに、顧客の感情を分析し、ストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量をグラフィカルに表示する機能を含む。 This invention provides a system that allows customers to take a photo of their purchase receipt using their smartphone camera after shopping and upload it to an application. It also includes a function that analyzes the customer's emotions and graphically displays the amount of money saved and the amount of weight lost if they avoid buying unnecessary items when they are feeling stressed.
システムの構成 System Configuration
1. ハードウェア: 1. Hardware:
スマートフォン: カメラ機能を用いて購入レシートを撮影する。 Smartphone: Use the camera function to take a photo of your purchase receipt.
サーバ: アプリケーションのバックエンドとして機能し、データの保存と処理を行う。 Server: Serves as the backend for the application, storing and processing data.
2. ソフトウェア: 2. Software:
アプリケーション: スマートフォンにインストールされ、レシートの撮影、アップロード、感情分析、グラフィカル表示を行う。 Application: Installed on a smartphone, it takes photos of receipts, uploads them, performs sentiment analysis, and displays them graphically.
OpenCV: レシート画像の読み込みと前処理を行うライブラリ。 OpenCV: A library for loading and preprocessing receipt images.
Tesseract OCR: レシート画像からテキストを抽出するための光学文字認識ソフトウェア。 Tesseract OCR: Optical character recognition software for extracting text from receipt images.
EmotionRecognizer: 顧客の感情を分析するための感情認識ソフトウェア。 EmotionRecognizer: Emotion recognition software for analyzing customer emotions.
Matplotlib: 節約金額と体重減少量をグラフィカルに表示するためのライブラリ。 Matplotlib: A library for graphically displaying savings and weight loss.
システムの動作 System Operation
1. レシート撮影とアップロード: 1. Take a photo of your receipt and upload it:
ユーザはスマートフォンのカメラを使って購入レシートを撮影する。 Users take a photo of their purchase receipt using their smartphone camera.
撮影した画像はアプリケーションを通じてサーバにアップロードされる。 The captured images are uploaded to the server via the application.
2. テキスト抽出: 2. Text extraction:
サーバはOpenCVを用いて画像を前処理し、Tesseract OCRを使ってレシートからテキストを抽出する。 The server preprocesses the image using OpenCV and extracts text from the receipt using Tesseract OCR.
3. 感情分析: 3. Sentiment analysis:
サーバはEmotionRecognizerを用いてユーザの感情を分析する。 The server analyzes the user's emotions using EmotionRecognizer.
ストレスを感じている場合、不要な商品を買わなかった場合の節約金額と体重減少量を計算する。 When you're feeling stressed, calculate how much money you'll save and how much weight you'll lose if you don't buy unnecessary items.
4. グラフィカル表示: 4. Graphical display:
サーバはMatplotlibを用いて節約金額と体重減少量をグラフィカルに表示するデータを生成し、アプリケーションに送信する。 The server uses Matplotlib to generate data that graphically displays the savings and weight loss, and sends it to the application.
アプリケーションはこれをユーザに視覚的に表示する。 The application will display this visually to the user.
具体例 Specific examples
例えば、ユーザがストレスを感じているときに不要な商品を買わなかった場合、アプリケーションは1000円の節約と0.5kgの体重減少をグラフィカルに表示する。 For example, if a user avoids buying unnecessary items when feeling stressed, the application will graphically display a savings of 1,000 yen and a weight loss of 0.5 kg.
プロンプト文の例 Example prompt
ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算し、グラフィカルに表示するプログラムを作成してください。レシート画像をスマートフォンのカメラで撮影し、Tesseract OCRでテキストを抽出します。EmotionRecognizerを使ってユーザの感情を分析し、Matplotlibで結果を表示します。 Create a program that calculates and graphically displays the savings and weight loss that a user could achieve by not purchasing unnecessary items when they are feeling stressed. Take a photo of the receipt with a smartphone camera and extract the text using Tesseract OCR. Analyze the user's emotions using EmotionRecognizer and display the results using Matplotlib.
応用例2における特定処理の流れについて図20を用いて説明する。 The flow of the specific processing in Application Example 2 is explained using Figure 20.
ステップ1: Step 1:
ユーザはスマートフォンのカメラを使って購入レシートを撮影する。 Users take a photo of their purchase receipt using their smartphone camera.
入力: 購入レシートの物理的な画像 Input: Physical image of purchase receipt
出力: スマートフォンに保存されたレシート画像 Output: Receipt image saved on your smartphone
具体的な動作: ユーザはスマートフォンのカメラアプリを起動し、購入レシートを撮影する。撮影された画像はスマートフォンのストレージに保存される。 Specific operation: The user launches the smartphone's camera app and takes a photo of the purchase receipt. The captured image is saved to the smartphone's storage.
ステップ2: Step 2:
端末は撮影したレシート画像をアプリケーションにアップロードする。 The device will upload the captured receipt image to the application.
入力: スマートフォンに保存されたレシート画像 Input: Receipt image saved on your smartphone
出力: サーバにアップロードされたレシート画像 Output: Receipt image uploaded to the server
具体的な動作: ユーザはアプリケーションを起動し、撮影したレシート画像を選択してアップロードボタンを押す。画像はインターネットを通じてサーバに送信される。 Specific operation: The user launches the application, selects the captured receipt image, and presses the upload button. The image is sent to the server via the Internet.
ステップ3: Step 3:
サーバはOpenCVを用いてレシート画像を前処理し、Tesseract OCRでテキストを抽出する。 The server preprocesses the receipt image using OpenCV and extracts text using Tesseract OCR.
入力: サーバにアップロードされたレシート画像 Input: Receipt image uploaded to the server
出力: 抽出されたテキストデータ Output: Extracted text data
具体的な動作: サーバはOpenCVを使って画像のノイズを除去し、テキスト部分を強調する。次に、Tesseract OCRを用いて画像からテキストを抽出する。 Specific operation: The server uses OpenCV to remove noise from the image and highlight the text. Then, it uses Tesseract OCR to extract the text from the image.
ステップ4: Step 4:
サーバはEmotionRecognizerを用いてユーザの感情を分析する。 The server analyzes the user's emotions using EmotionRecognizer.
入力: ユーザの感情データ(例えば、ユーザがアプリケーションに入力した感情状態) Input: User emotional data (e.g., the emotional state the user enters into the application)
出力: 分析された感情状態 Output: Analyzed emotional state
具体的な動作: サーバはEmotionRecognizerを使ってユーザの感情データを解析し、ストレス状態かどうかを判断する。 Specific operation: The server uses EmotionRecognizer to analyze the user's emotional data and determine whether they are under stress.
ステップ5: Step 5:
サーバはストレスを感じている場合、不要な商品を買わなかった場合の節約金額と体重減少量を計算する。 When you feel stressed, the server calculates the amount of money you would save and the amount of weight you would lose if you didn't buy unnecessary items.
入力: 分析された感情状態、抽出されたテキストデータ Input: Analyzed emotional state, extracted text data
出力: 節約金額と体重減少量のデータ Output: Savings and weight loss data
具体的な動作: サーバは感情状態がストレスである場合、抽出されたテキストデータから不要な商品を特定し、それを買わなかった場合の節約金額と体重減少量を計算する。 Specific operation: If the emotional state is stressed, the server identifies unnecessary items from the extracted text data and calculates the amount of savings and weight loss that would result if the item were not purchased.
ステップ6: Step 6:
サーバはMatplotlibを用いて節約金額と体重減少量をグラフィカルに表示するデータを生成し、アプリケーションに送信する。 The server uses Matplotlib to generate data that graphically displays the savings and weight loss, and sends it to the application.
入力: 節約金額と体重減少量のデータ Input: Savings and weight loss data
出力: グラフィカルに表示するための画像データ Output: Image data for graphical display
具体的な動作: サーバはMatplotlibを使って節約金額と体重減少量を棒グラフなどの形式で視覚的に表示する画像を生成し、その画像データをアプリケーションに送信する。 Specific operation: The server uses Matplotlib to generate images that visually display the amount of savings and weight loss in the form of bar graphs, etc., and sends the image data to the application.
ステップ7: Step 7:
端末はサーバから受け取ったグラフィカルなデータをユーザに表示する。 The terminal displays the graphical data received from the server to the user.
入力: サーバから送信されたグラフィカルな画像データ Input: Graphical image data sent from the server
出力: スマートフォンの画面に表示されたグラフィカルな情報 Output: Graphical information displayed on a smartphone screen
具体的な動作: アプリケーションはサーバから受け取った画像データをスマートフォンの画面に表示し、ユーザが視覚的に節約金額と体重減少量を確認できるようにする。 Specific operation: The application displays the image data received from the server on the smartphone screen, allowing the user to visually check the amount of savings and weight loss.
(実施例3) (Example 3)
次に、形態例3の実施例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, we will explain Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
現代の消費者は、健康管理と節約の両立を目指しているが、日常の買い物において不要な商品を購入してしまうことが多い。このような不要な商品は、健康目標に反するだけでなく、無駄な出費を引き起こす原因となる。しかし、消費者自身がこれらの不要な商品を特定し、購入を避けることは容易ではない。したがって、消費者が自身の健康目標に基づいて不要な商品を自動的に検出し、節約できる金額と健康への影響を可視化するシステムが求められている Today's consumers aim to balance health management with saving money, but they often end up buying unnecessary products in their daily shopping. These unnecessary products not only go against their health goals but also lead to wasteful spending. However, it is not easy for consumers to identify and avoid these unnecessary products. Therefore, there is a need for a system that automatically detects unnecessary products based on consumers' health goals and visualizes the savings and health impact.
実施例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を入力する手段と、顧客が買い物後に購入レシートの画像をアップロードする手段と、レシート画像を光学文字認識技術を用いてデジタルデータに変換する手段と、デジタルデータから商品情報を解析し、不要な商品を検出する手段と、不要商品の合計金額と推定体重減少量を計算する手段と、計算結果をグラフやチャートで可視化する手段を含む。これにより、消費者は自身の健康目標に基づいて不要な商品を自動的に検出し、節約できる金額と健康への影響を具体的に把握することが可能となる。 In this invention, the server includes means for customers to input their current height and weight and goals, means for customers to upload an image of their purchase receipt after shopping, means for converting the receipt image into digital data using optical character recognition technology, means for analyzing product information from the digital data and detecting unnecessary products, means for calculating the total price of unnecessary products and estimated weight loss, and means for visualizing the calculation results in graphs and charts. This allows consumers to automatically detect unnecessary products based on their own health goals and specifically understand the amount of money they can save and the impact on their health.
「顧客」とは、システムを利用して自身の健康管理と節約を目指す消費者である。 "Customers" are consumers who use the system to manage their own health and save money.
「身長体重」とは、顧客の身体的な基本データであり、健康目標を設定するための基礎情報である。 "Height and weight" refers to the customer's basic physical data and is fundamental information for setting health goals.
「目標」とは、顧客が達成したい健康状態や体重管理の目標であり、例えば糖質制限やカロリー制限などが含まれる。 "Goals" refer to the health and weight management goals that a customer wishes to achieve, such as carbohydrate restriction or calorie restriction.
「レシートの画像」とは、顧客が買い物後に取得する購入明細書の写真データである。 "Receipt image" refers to photo data of the purchase details that a customer obtains after shopping.
「光学文字認識技術」とは、画像内の文字情報をデジタルデータに変換する技術であり、OCR(Optical Character Recognition)とも呼ばれる。 "Optical character recognition technology" is a technology that converts text information in an image into digital data, and is also known as OCR (Optical Character Recognition).
「デジタルデータ」とは、光学文字認識技術を用いて変換されたテキスト情報である。 "Digital data" means text information converted using optical character recognition technology.
「商品情報」とは、レシートに記載された商品の名称や価格、栄養情報などのデータである。 "Product information" refers to data such as the product name, price, and nutritional information listed on the receipt.
「不要な商品」とは、顧客の健康目標に反する商品であり、購入を避けるべきものである。 "Unnecessary products" are products that are contrary to the customer's health goals and should be avoided.
「合計金額」とは、検出された不要な商品の総価格である。 "Total amount" is the total price of the unwanted items detected.
「推定体重減少量」とは、不要な商品を摂取しなかった場合に予測される体重の減少量である。 "Estimated weight loss" is the amount of weight loss predicted if the unnecessary product was not consumed.
「グラフやチャート」とは、計算結果を視覚的に表示するための図表である。 "Graphs and charts" are diagrams that visually display calculation results.
この発明は、消費者が自身の健康管理と節約を効率的に行うためのシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system that allows consumers to efficiently manage their own health and save money. Specific embodiments of this system are described below.
まず、ユーザは端末を使用してシステムのウェブページにアクセスする。ユーザは自身の身長、体重、および健康目標(例:糖質制限)を入力する。これらのデータは、サーバに送信され、データベースに保存される。 First, the user accesses the system's web page using a terminal. The user enters their height, weight, and health goals (e.g., carbohydrate restriction). This data is sent to the server and stored in a database.
次に、ユーザは買い物後に取得したレシートの画像を端末からシステムにアップロードする。アップロードされたレシート画像は、サーバに送信される。サーバは、Google Cloud Vision APIなどの光学文字認識技術を使用して、レシート画像をデジタルデータに変換する。このデジタルデータには、レシート上のテキスト情報が含まれている。 Next, the user uploads an image of the receipt obtained after shopping from their device to the system. The uploaded receipt image is sent to the server, which then uses optical character recognition technology such as Google Cloud Vision API to convert the receipt image into digital data. This digital data includes the text information on the receipt.
サーバは、変換されたデジタルデータを解析し、商品名とその栄養情報を抽出する。例えば、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が糖質制限の目標に反するため、不要な商品としてリストアップする。 The server analyzes the converted digital data and extracts product names and their nutritional information. For example, if the receipt includes "bread" or "sweets," these items are listed as unnecessary because they go against the goal of carbohydrate restriction.
次に、サーバは不要な商品の合計金額を計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、標準的なカロリー消費モデルを使用する。計算結果は、D3.jsなどのデータ可視化ライブラリを使用してグラフやチャートとして可視化される。 The server then calculates the total cost of the unnecessary items, as well as the estimated weight loss that would occur if these items were not consumed. A standard calorie expenditure model is used to calculate weight loss. The results are visualized as graphs and charts using a data visualization library such as D3.js.
ユーザは端末を使用して、サーバから送信されたグラフやチャートを確認する。これにより、ユーザは不要な商品を買わなかった場合の節約金額と体重減少量を視覚的に理解することができる。 The user uses their device to view the graphs and charts sent from the server, allowing them to visually understand how much money they could save and how much weight they could lose by not buying unnecessary items.
具体例として、ユーザがストレスを感じているときにチョコレートを購入した場合を考える。感情エンジンは、ユーザの感情状態を分析し、ストレスが高いと判断する。この場合、チョコレートを不要な商品として検出する。そして、チョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。これにより、ユーザはストレスを感じているときに不健康な食品を購入する傾向があることを認識し、その結果としての金銭的、健康的な影響を理解することができる。 As a concrete example, consider the case where a user purchases chocolate when feeling stressed. The emotion engine analyzes the user's emotional state and determines that stress is high. In this case, it detects chocolate as an unnecessary item and displays a graph of the amount of money saved and weight loss that would have been achieved if the user had not purchased the chocolate. This allows the user to recognize their tendency to purchase unhealthy foods when they are stressed and understand the resulting financial and health impacts.
プロンプト文の例: Example prompt:
ユーザがストレスを感じているときに購入した食品を検出し、その食品を買わなかった場合の節約金額と体重減少量を計算してグラフで表示してください。 Detect the foods the user purchases when they are stressed, calculate the amount of money saved and the weight loss they would have lost if they had not purchased those foods, and display the results in a graph.
このシステムにより、ユーザは自身の健康管理と節約の両方を具体的に把握することができる。実施例3における特定処理の流れについて図21を用いて説明する。 This system allows users to specifically understand both their own health management and savings. The flow of the identification process in Example 3 will be explained using Figure 21.
ステップ1: Step 1:
ユーザが身長、体重、目標を入力する。 Users enter their height, weight, and goals.
ユーザは端末を使用して、システムのウェブページにアクセスし、フォームに自身の身長(例:170cm)、体重(例:70kg)、および健康目標(例:糖質制限)を入力する。入力されたデータは、サーバに送信され、データベースに保存される。 Using a terminal, a user accesses the system's web page and enters their height (e.g., 170 cm), weight (e.g., 70 kg), and health goal (e.g., carbohydrate restriction) into the form. The entered data is sent to the server and stored in a database.
入力:身長、体重、健康目標 Input: height, weight, health goals
出力:データベースに保存されたユーザ情報 Output: User information stored in the database
ステップ2: Step 2:
ユーザがレシートの画像をアップロードする。 The user uploads an image of the receipt.
ユーザは端末を使用して、最近の買い物のレシート画像をシステムにアップロードする。アップロードされた画像は、サーバに送信される。 Users use their device to upload images of recent purchase receipts to the system. The uploaded images are then sent to the server.
入力:レシート画像 Input: Receipt image
出力:サーバに保存されたレシート画像 Output: Receipt image saved on the server
ステップ3: Step 3:
サーバがレシート画像をOCR処理する。 The server performs OCR processing on the receipt image.
サーバは、光学文字認識技術(OCR)を使用してレシート画像をデジタルデータに変換する。具体的には、Google Cloud Vision APIを呼び出してOCR処理を行う。 The server uses optical character recognition (OCR) technology to convert the receipt image into digital data. Specifically, it calls the Google Cloud Vision API to perform the OCR process.
入力:レシート画像 Input: Receipt image
出力:デジタルデータ(テキスト情報) Output: Digital data (text information)
ステップ4: Step 4:
サーバが商品情報を解析し、不要な商品を検出する。 The server analyzes product information and detects unnecessary products.
サーバは、OCR処理で得られたデジタルデータを解析し、商品名とその栄養情報を抽出する。例えば、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が糖質制限の目標に反するため、不要な商品としてリストアップする。 The server analyzes the digital data obtained through OCR processing and extracts product names and their nutritional information. For example, if a receipt includes "bread" or "sweets," these items are listed as unnecessary because they go against the goal of carbohydrate restriction.
入力:デジタルデータ(テキスト情報)、ユーザの健康目標 Input: Digital data (text information), user's health goals
出力:不要な商品のリスト Output: List of unwanted items
ステップ5: Step 5:
サーバが不要商品の合計金額と推定体重減少量を計算する。 The server calculates the total price of unwanted items and the estimated weight loss.
サーバは、検出された不要商品の合計金額を計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、標準的なカロリー消費モデルを使用する。 The server calculates the total value of the unwanted products detected, as well as the estimated weight loss that would occur if the user did not consume these products. A standard calorie expenditure model is used to calculate weight loss.
入力:不要な商品のリスト、商品価格、カロリー情報 Input: List of unwanted items, product price, calorie information
出力:合計金額、推定体重減少量 Output: Total amount, estimated weight loss
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化する。 The server visualizes the calculation results in graphs and charts.
サーバは、D3.jsなどのデータ可視化ライブラリを使用して、不要商品の合計金額と推定体重減少量をグラフやチャートとして生成する。 The server uses a data visualization library such as D3.js to generate graphs and charts showing the total price of unwanted items and estimated weight loss.
入力:合計金額、推定体重減少量 Input: Total amount, estimated weight loss
出力:グラフやチャート Output: Graphs and charts
ステップ7: Step 7:
ユーザが結果を確認する。 The user checks the results.
ユーザは端末を使用して、サーバから送信されたグラフやチャートを確認する。これにより、ユーザは不要な商品を買わなかった場合の節約金額と体重減少量を視覚的に理解することができる。 The user uses their device to view the graphs and charts sent from the server, allowing them to visually understand how much money they could save and how much weight they could lose by not buying unnecessary items.
入力:グラフやチャート Input: Graphs and charts
出力:ユーザの理解と認識 Output: User understanding and recognition
(応用例3) (Application Example 3)
次に、形態例3の応用例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ヘッドセット型端末314を「端末」と称する。 Next, we will explain Application Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the headset-type terminal 314 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を同時に行うことが求められているが、買い物の際にどの商品が不要であるかを判断するのは難しい。また、不要な商品を購入しなかった場合の具体的な節約金額や体重減少量を把握する手段が不足している。このため、消費者が健康的な選択をし、節約を実感できるシステムが求められている。 Today's consumers are expected to manage their health and save money at the same time, but it can be difficult to determine which products are unnecessary when shopping. Furthermore, there is a lack of ways to grasp the specific amount of savings or weight loss that can be achieved by not purchasing unnecessary items. For this reason, there is a need for a system that allows consumers to make healthy choices and realize the savings they are making.
応用例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、不要商品を検出し、節約金額と体重減少量を計算する手段と、検出結果をグラフで表示する手段と、を含む。これにより、消費者は買い物の際に不要な商品を簡単に特定し、健康管理と節約の両方を具体的に把握することが可能となる。 In this invention, the server includes means for customers to enter their current height and weight and goals, means for customers to submit purchase receipts after shopping, means for correcting items determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if unnecessary items are not purchased, means for detecting unnecessary items and calculating the amount saved and the amount of weight lost, and means for displaying the detection results in a graph. This allows consumers to easily identify unnecessary items when shopping and specifically understand both health management and savings.
「顧客」とは、システムを利用して買い物を行う消費者を指す。 "Customer" refers to a consumer who uses the system to make purchases.
「身長体重」とは、顧客の現在の身体の高さと体重を指す。 "Height and Weight" refers to the customer's current height and weight.
「目標」とは、顧客が達成したい健康やダイエットに関する具体的な目的を指す。 "Goals" refer to the specific health or diet objectives that the customer wants to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を示す紙または電子データを指す。 "Purchase receipt" refers to the paper or electronic data showing the purchase details of a product that a customer receives when making a purchase.
「不要な商品」とは、顧客の身長体重と目標に基づいて、買い物リストから除外すべきと判断される商品を指す。 "Unnecessary items" refer to items that should be removed from the shopping list based on the customer's height, weight, and goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss predicted if the unnecessary product is not consumed.
「可視化する手段」とは、節約できるお金と減る体重をグラフやチャートなどの視覚的な形式で表示する方法を指す。 "Visualization methods" refers to ways to display the money saved and weight lost in visual form, such as graphs or charts.
「検出する手段」とは、顧客の身長体重と目標に基づいて不要な商品を特定する方法を指す。 "Means of detection" refers to a method for identifying unwanted products based on the customer's height, weight, and goals.
「計算する手段」とは、不要な商品を買わなかった場合の節約金額と体重減少量を算出する方法を指す。 "Means of calculation" refers to a method for calculating the amount of money saved and weight loss that would be achieved by not purchasing unnecessary items.
「グラフで表示する手段」とは、検出結果を視覚的に理解しやすい形式で表示する方法を指す。 "Means of displaying in a graph" refers to a method of displaying detection results in a visually easy-to-understand format.
この発明を実施するためのシステムは、顧客が現在の身長体重と目標を記入する手段、顧客が買い物後に購入レシートを提出する手段、今回の買い物で不要だと判断できる商品を添削する手段、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段、不要商品を検出し、節約金額と体重減少量を計算する手段、検出結果をグラフで表示する手段を含む。 A system for implementing this invention includes means for a customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if unnecessary items are not purchased, means for detecting unnecessary items and calculating the amount saved and weight lost, and means for displaying the detection results in a graph.
システムの構成 System Configuration
システムは、スマートフォンアプリケーションとして実装される。アプリケーションは、PythonとFlaskを使用して構築され、サーバ側でデータ処理を行う。スマートフォンは、ユーザが入力した身長体重と目標、及びレシートの情報をサーバに送信する。 The system is implemented as a smartphone application. The application is built using Python and Flask, and performs data processing on the server side. The smartphone sends the user's height, weight, and goals, as well as receipt information, to the server.
データ加工とデータ演算 Data processing and calculation
サーバは、ユーザから送信されたデータを受け取り、以下の処理を行う。 The server receives the data sent by the user and performs the following processing:
1. 不要商品の検出: 1. Detecting unwanted products:
サーバは、ユーザの身長体重と目標に基づいて、レシートに含まれる不要な商品を特定する。例えば、ユーザが「糖質制限」を目標にしている場合、レシートに含まれる「パン」や「お菓子」を不要商品として検出する。 The server identifies unnecessary items on the receipt based on the user's height, weight, and goals. For example, if the user's goal is to "limit carbohydrates," it will detect "bread" and "sweets" on the receipt as unnecessary items.
2. 節約金額と体重減少量の計算: 2. Calculate savings and weight loss:
サーバは、不要商品を購入しなかった場合の節約金額と体重減少量を計算する。例えば、不要商品の価格を合計し、その商品のカロリーを基に体重減少量を算出する。 The server calculates the amount of money saved and the amount of weight lost if the unnecessary items were not purchased. For example, it adds up the prices of the unnecessary items and calculates the amount of weight lost based on the calories in those items.
3. 結果の可視化: 3. Visualizing the results:
サーバは、計算結果をグラフやチャート形式で生成し、スマートフォンアプリケーションに送信する。ユーザは、アプリケーションを通じて結果を視覚的に確認できる。 The server generates the calculation results in the form of graphs and charts and sends them to a smartphone application. Users can visually check the results through the application.
使用するハードウェアとソフトウェア Hardware and software used
ハードウェア: スマートフォン Hardware: Smartphone
ソフトウェア: Python, Flask Software: Python, Flask
具体例 Specific examples
ユーザが「糖質制限」を目標にしており、レシートに「パン」と「お菓子」が含まれている場合、システムはこれらを不要商品として検出する。節約金額は350円(パン150円 + お菓子200円)、体重減少量は0.064kg(500kcal / 7700kcal)と計算される。これらの結果は、スマートフォンアプリケーション上でグラフとして表示される。 If a user's goal is to "limit carbohydrates" and the receipt includes "bread" and "sweets," the system will detect these as unnecessary items. The savings will be calculated as 350 yen (bread 150 yen + sweets 200 yen), and the weight loss will be 0.064 kg (500 kcal / 7700 kcal). These results are displayed as a graph on the smartphone application.
プロンプト文の例 Example prompt
ユーザが糖質制限を目標にしている場合、レシートに含まれる不要な商品を検出し、節約金額と体重減少量を計算してください。以下のデータを使用してください。 If a user is aiming to limit carbohydrates, detect unnecessary items in their receipts and calculate savings and weight loss. Use the following data:
身長: 170cm Height: 170cm
体重: 70kg Weight: 70kg
目標: 糖質制限 Goal: Carbohydrate restriction
レシートアイテム: ["パン", "お菓子", "野菜"] Receipt items: ["Bread", "Sweets", "Vegetables"]
応用例3における特定処理の流れについて図22を用いて説明する。 The flow of the specific processing in Application Example 3 will be explained using Figure 22.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、現在の身長体重と目標を入力する。 The user launches the smartphone application and enters their current height, weight, and goal.
入力: 身長、体重、目標 Input: height, weight, goal
出力: 身長、体重、目標のデータ Output: Height, weight, and goal data
具体的な動作: ユーザはアプリケーションの入力フォームに身長、体重、目標を入力し、送信ボタンを押す。 Specific action: The user enters their height, weight, and goal into the application's input form and presses the submit button.
ステップ2: Step 2:
ユーザが買い物後に購入レシートをスマートフォンでスキャンし、アプリケーションにアップロードする。 After shopping, users scan their purchase receipt with their smartphone and upload it to the application.
入力: 購入レシートの画像 Input: Purchase receipt image
出力: レシートのテキストデータ Output: Receipt text data
具体的な動作: ユーザはスマートフォンのカメラを使用してレシートを撮影し、アプリケーションにアップロードする。アプリケーションはOCR技術を用いて画像からテキストデータを抽出する。 Specific operation: The user takes a photo of the receipt using their smartphone camera and uploads it to the application. The application uses OCR technology to extract text data from the image.
ステップ3: Step 3:
サーバがユーザから送信された身長、体重、目標、およびレシートのテキストデータを受け取る。 The server receives the height, weight, goal, and receipt text data sent by the user.
入力: 身長、体重、目標、レシートのテキストデータ Input: Height, weight, goal, and receipt text data
出力: 受信データの保存 Output: Save received data
具体的な動作: サーバはHTTPリクエストを受け取り、送信されたデータをデータベースに保存する。 Specific operation: The server receives the HTTP request and stores the submitted data in the database.
ステップ4: Step 4:
サーバがユーザの目標に基づいて、レシートに含まれる不要な商品を検出する。 The server detects unwanted items on the receipt based on the user's goals.
入力: 身長、体重、目標、レシートのテキストデータ Input: Height, weight, goal, and receipt text data
出力: 不要商品のリスト Output: List of unwanted items
具体的な動作: サーバは目標に関連する不要商品のリストを参照し、レシートのテキストデータと照合して不要商品を特定する。 Specific operation: The server references the list of unwanted items related to the goal and identifies the unwanted items by matching them with the text data on the receipt.
ステップ5: Step 5:
サーバが不要商品を購入しなかった場合の節約金額と体重減少量を計算する。 The server calculates the amount of savings and weight loss you would have achieved if you had not purchased unnecessary items.
入力: 不要商品のリスト Input: List of unwanted items
出力: 節約金額、体重減少量 Output: Savings, weight loss
具体的な動作: サーバは不要商品の価格を合計し、不要商品のカロリーを基に体重減少量を算出する。例えば、不要商品の合計価格が350円で、合計カロリーが500kcalの場合、体重減少量は0.064kg(500kcal / 7700kcal)と計算される。 Specific operation: The server adds up the prices of the unwanted items and calculates the amount of weight loss based on the calories of the unwanted items. For example, if the total price of the unwanted items is 350 yen and the total calories are 500 kcal, the amount of weight loss will be calculated as 0.064 kg (500 kcal / 7700 kcal).
ステップ6: Step 6:
サーバが計算結果をグラフやチャート形式で生成し、スマートフォンアプリケーションに送信する。 The server generates the calculation results in the form of graphs and charts and sends them to the smartphone application.
入力: 節約金額、体重減少量 Input: Amount saved, weight loss
出力: グラフやチャートの画像データ Output: Image data for graphs and charts
具体的な動作: サーバは計算結果を基にグラフやチャートを生成し、画像データとしてスマートフォンアプリケーションに送信する。 Specific operation: The server generates graphs and charts based on the calculation results and sends them as image data to the smartphone application.
ステップ7: Step 7:
ユーザがスマートフォンアプリケーションを通じて、節約金額と体重減少量の結果を視覚的に確認する。 Users can visually check the savings and weight loss results through a smartphone application.
入力: グラフやチャートの画像データ Input: Image data for graphs and charts
出力: 視覚的な結果表示 Output: Visual results
具体的な動作: ユーザはアプリケーションを開き、表示されたグラフやチャートを確認する。これにより、不要商品を購入しなかった場合の具体的な節約金額と体重減少量を理解することができる。 What it does: The user opens the app and looks at the graphs and charts that are displayed, allowing them to understand the specific savings and weight loss they could have achieved by not purchasing unnecessary items.
特定処理部290は、特定処理の結果をヘッドセット型端末314に送信する。ヘッドセット型端末314では、制御部46Aが、スピーカ240及びディスプレイ343に対して特定処理の結果を出力させる。マイクロフォン238は、特定処理の結果に対するユーザ入力を示す音声を取得する。制御部46Aは、マイクロフォン238によって取得されたユーザ入力を示す音声データをデータ処理装置12に送信する。データ処理装置12では、特定処理部290が音声データを取得する。 The specific processing unit 290 transmits the results of the specific processing to the headset terminal 314. In the headset terminal 314, the control unit 46A causes the speaker 240 and display 343 to output the results of the specific processing. The microphone 238 acquires audio indicating the user input regarding the results of the specific processing. The control unit 46A transmits audio data indicating the user input acquired by the microphone 238 to the data processing device 12. In the data processing device 12, the specific processing unit 290 acquires the audio data.
データ生成モデル58は、いわゆる生成AI(Artificial Intelligence)である。データ生成モデル58の一例としては、ChatGPT(インターネット検索<URL: https://openai.com/blog/chatgpt>)等の生成AIが挙げられる。データ生成モデル58は、ニューラルネットワークに対して深層学習を行わせることによって得られる。データ生成モデル58には、指示を含むプロンプトが入力され、かつ、音声を示す音声データ、テキストを示すテキストデータ、及び画像を示す画像データ等の推論用データが入力される。データ生成モデル58は、入力された推論用データをプロンプトにより示される指示に従って推論し、推論結果を音声データ及びテキストデータ等のデータ形式で出力する。ここで、推論とは、例えば、分析、分類、予測、及び/又は要約等を指す。 Data generation model 58 is what is known as generative AI (artificial intelligence). An example of data generation model 58 is generative AI such as ChatGPT (Internet search <URL: https://openai.com/blog/chatgpt>). Data generation model 58 is obtained by performing deep learning on a neural network. A prompt containing an instruction is input to data generation model 58, and inference data such as voice data indicating voice, text data indicating text, and image data indicating an image is also input. Data generation model 58 performs inference on the input inference data in accordance with the instructions indicated by the prompt, and outputs the inference results in the form of data such as voice data and text data. Here, inference refers to, for example, analysis, classification, prediction, and/or summarization.
生成AIの他の例としては、Gemini(インターネット検索<URL: https://gemini.google.com/?hl=ja>)が挙げられる。 Another example of generative AI is Gemini (Internet search <URL: https://gemini.google.com/?hl=ja>).
上記実施形態では、データ処理装置12によって特定処理が行われる形態例を挙げたが、本開示の技術はこれに限定されず、ヘッドセット型端末314によって特定処理が行われるようにしてもよい。 In the above embodiment, an example was given in which the specific processing was performed by the data processing device 12, but the technology disclosed herein is not limited to this, and the specific processing may also be performed by the headset-type terminal 314.
[第4実施形態] [Fourth embodiment]
図7には、第4実施形態に係るデータ処理システム410の構成の一例が示されている。 Figure 7 shows an example of the configuration of a data processing system 410 according to the fourth embodiment.
図7に示すように、データ処理システム410は、データ処理装置12及びロボット414を備えている。データ処理装置12の一例としては、サーバが挙げられる。 As shown in FIG. 7, the data processing system 410 includes a data processing device 12 and a robot 414. An example of the data processing device 12 is a server.
データ処理装置12は、コンピュータ22、データベース24、及び通信I/F26を備えている。コンピュータ22は、本開示の技術に係る「コンピュータ」の一例である。コンピュータ22は、プロセッサ28、RAM30、及びストレージ32を備えている。プロセッサ28、RAM30、及びストレージ32は、バス34に接続されている。また、データベース24及び通信I/F26も、バス34に接続されている。通信I/F26は、ネットワーク54に接続されている。ネットワーク54の一例としては、WAN(Wide Area Network)及び/又はLAN(Local Area Network)等が挙げられる。 The data processing device 12 includes a computer 22, a database 24, and a communication I/F 26. The computer 22 is an example of a "computer" according to the technology of the present disclosure. The computer 22 includes a processor 28, RAM 30, and storage 32. The processor 28, RAM 30, and storage 32 are connected to a bus 34. The database 24 and communication I/F 26 are also connected to the bus 34. The communication I/F 26 is connected to a network 54. Examples of the network 54 include a WAN (Wide Area Network) and/or a LAN (Local Area Network).
ロボット414は、コンピュータ36、マイクロフォン238、スピーカ240、カメラ42、通信I/F44、及び制御対象443を備えている。コンピュータ36は、プロセッサ46、RAM48、及びストレージ50を備えている。プロセッサ46、RAM48、及びストレージ50は、バス52に接続されている。また、マイクロフォン238、スピーカ240、カメラ42、及び制御対象443も、バス52に接続されている。 The robot 414 includes a computer 36, a microphone 238, a speaker 240, a camera 42, a communication I/F 44, and a control target 443. The computer 36 includes a processor 46, RAM 48, and storage 50. The processor 46, RAM 48, and storage 50 are connected to a bus 52. The microphone 238, speaker 240, camera 42, and control target 443 are also connected to the bus 52.
マイクロフォン238は、ユーザ20が発する音声を受け付けることで、ユーザ20から指示等を受け付ける。マイクロフォン238は、ユーザ20が発する音声を捕捉し、捕捉した音声を音声データに変換してプロセッサ46に出力する。スピーカ240は、プロセッサ46からの指示に従って音声を出力する。 The microphone 238 receives instructions and the like from the user 20 by receiving voice uttered by the user 20. The microphone 238 captures the voice uttered by the user 20, converts the captured voice into audio data, and outputs it to the processor 46. The speaker 240 outputs audio in accordance with instructions from the processor 46.
カメラ42は、レンズ、絞り、及びシャッタ等の光学系と、CMOS(Complementary Metal-Oxide-Semiconductor)イメージセンサ又はCCD(Charge Coupled Device)イメージセンサ等の撮像素子とが搭載された小型デジタルカメラであり、ユーザ20の周囲(例えば、一般的な健常者の視界の広さに相当する画角で規定された撮像範囲)を撮像する。 Camera 42 is a small digital camera equipped with an optical system including a lens, aperture, and shutter, and an imaging element such as a CMOS (Complementary Metal-Oxide-Semiconductor) image sensor or a CCD (Charge Coupled Device) image sensor, and captures images of the user 20's surroundings (e.g., an imaging range defined by an angle of view equivalent to the field of vision of a typical healthy person).
通信I/F44は、ネットワーク54に接続されている。通信I/F44及び26は、ネットワーク54を介してプロセッサ46とプロセッサ28との間の各種情報の授受を司る。通信I/F44及び26を用いたプロセッサ46とプロセッサ28との間の各種情報の授受はセキュアな状態で行われる。 The communication I/F 44 is connected to the network 54. The communication I/Fs 44 and 26 are responsible for the exchange of various information between the processor 46 and the processor 28 via the network 54. The exchange of various information between the processor 46 and the processor 28 using the communication I/Fs 44 and 26 is carried out in a secure manner.
制御対象443は、表示装置、目部のLED、並びに、腕、手及び足等を駆動するモータ等を含む。ロボット414の姿勢や仕草は、腕、手及び足等のモータを制御することにより制御される。ロボット414の感情の一部は、これらのモータを制御することにより表現できる。また、ロボット414の目部のLEDの発光状態を制御することによっても、ロボット414の表情を表現できる。 The control object 443 includes a display device, LEDs in the eyes, and motors that drive the arms, hands, and feet. The posture and gestures of the robot 414 are controlled by controlling the motors of the arms, hands, and feet. Some of the emotions of the robot 414 can be expressed by controlling these motors. In addition, the facial expressions of the robot 414 can also be expressed by controlling the light emission state of the LEDs in the eyes of the robot 414.
図8には、データ処理装置12及びロボット414の要部機能の一例が示されている。図8に示すように、データ処理装置12では、プロセッサ28によって特定処理が行われる。ストレージ32には、特定処理プログラム56が格納されている。 Figure 8 shows an example of the main functions of the data processing device 12 and the robot 414. As shown in Figure 8, in the data processing device 12, specific processing is performed by the processor 28. A specific processing program 56 is stored in the storage 32.
特定処理プログラム56は、本開示の技術に係る「プログラム」の一例である。プロセッサ28は、ストレージ32から特定処理プログラム56を読み出し、読み出した特定処理プログラム56をRAM30上で実行する。特定処理は、プロセッサ28がRAM30上で実行する特定処理プログラム56に従って、特定処理部290として動作することによって実現される。 The specific processing program 56 is an example of a "program" according to the technology of the present disclosure. The processor 28 reads the specific processing program 56 from the storage 32 and executes the read specific processing program 56 on the RAM 30. The specific processing is realized by the processor 28 operating as the specific processing unit 290 in accordance with the specific processing program 56 executed on the RAM 30.
ストレージ32には、データ生成モデル58及び感情特定モデル59が格納されている。データ生成モデル58及び感情特定モデル59は、特定処理部290によって用いられる。 Storage 32 stores a data generation model 58 and an emotion identification model 59. The data generation model 58 and the emotion identification model 59 are used by the identification processing unit 290.
ロボット414では、プロセッサ46によって受付出力処理が行われる。ストレージ50には、受付出力プログラム60が格納されている。プロセッサ46は、ストレージ50から受付出力プログラム60を読み出し、読み出した受付出力プログラム60をRAM48上で実行する。受付出力処理は、プロセッサ46がRAM48上で実行する受付出力プログラム60に従って、制御部46Aとして動作することによって実現される。 In the robot 414, the reception output process is performed by the processor 46. A reception output program 60 is stored in the storage 50. The processor 46 reads the reception output program 60 from the storage 50 and executes the read reception output program 60 on the RAM 48. The reception output process is realized by the processor 46 operating as the control unit 46A in accordance with the reception output program 60 executed on the RAM 48.
次に、データ処理装置12の特定処理部290による特定処理について説明する。 Next, we will explain the identification process performed by the identification processing unit 290 of the data processing device 12.
「形態例1」 "Example 1"
本発明の形態は、消費者が自身の身長体重と目標を記入する手段として、専用の入力フォームを提供する。この入力フォームは、ウェブサイトやスマートフォンアプリケーション上に設けられ、消費者が自身の身長、体重、ダイエット目標等を直接入力できるようになっている。 This embodiment of the present invention provides a dedicated input form as a means for consumers to enter their height, weight, and diet goals. This input form is provided on a website or smartphone application, and allows consumers to directly input their height, weight, diet goals, etc.
「形態例2」 "Example 2"
次に、消費者が買い物後に購入レシートを提出する手段として、スマートフォンのカメラを用いてレシートの画像を撮影し、アプリケーションにアップロードする機能を提供する。この機能により、消費者は物理的なレシートを直接提出することなく、購入情報をシステムに伝えることができる。 Next, as a means for consumers to submit their purchase receipts after shopping, we provide a feature that allows them to take an image of the receipt using their smartphone camera and upload it to the application. This feature allows consumers to communicate purchase information to the system without having to directly submit a physical receipt.
「形態例3」 "Example 3"
そして、今回の買い物で不要だと判断できる商品を添削する手段として、システムは消費者が入力した身長体重と目標、及び提出されたレシートの情報を基に、不要な商品を自動的に検出する。例えば、ダイエット目標が「糖質制限」である場合、システムはレシート上の「パン」や「お菓子」等の糖質が多い商品を不要な商品として検出する。 Then, as a means of correcting items that are deemed unnecessary for this shopping trip, the system automatically detects unnecessary items based on the height, weight, and goal entered by the consumer, as well as the information on the submitted receipt. For example, if the diet goal is to "limit carbohydrates," the system will detect items on the receipt that are high in carbohydrates, such as "bread" and "sweets," as unnecessary.
「形態例4」 "Example 4"
最後に、不要商品を買わなかった場合の節約できるお金と減る体重を可視化する手段として、システムは検出した不要な商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算し、グラフやチャート等の形で消費者に表示する。これにより、消費者は自身の健康管理と節約の両方を具体的に把握することができる。 Finally, as a means of visualizing the money saved and weight loss that would result from not purchasing unnecessary products, the system calculates the total cost of the detected unnecessary products and the estimated amount of weight loss that would result from not consuming those products, and displays this information to consumers in the form of graphs, charts, etc. This allows consumers to concretely understand both their own health management and savings.
以下に、各形態例の処理の流れについて説明する。 The processing flow for each example form is explained below.
「形態例1」 "Example 1"
ステップ1:消費者は専用の入力フォームに自身の身長、体重、ダイエット目標等を入力する。例えば、身長170cm、体重65kg、ダイエット目標は「糖質制限」等を入力する。 Step 1: Consumers enter their height, weight, diet goals, etc. into a dedicated input form. For example, they might enter a height of 170 cm, a weight of 65 kg, and a diet goal of "restricting carbohydrates."
ステップ2:入力が完了したら、消費者は「送信」ボタンを押して情報をシステムに送信する。 Step 2: Once the information is complete, the consumer presses the "Submit" button to send the information to the system.
「形態例2」 "Example 2"
ステップ1:消費者は買い物を行い、購入した商品のレシートを取得する。 Step 1: The consumer makes a purchase and obtains a receipt for the items purchased.
ステップ2:消費者はスマートフォンのカメラを用いてレシートの画像を撮影する。 Step 2: The consumer takes a picture of the receipt using their smartphone camera.
ステップ3:撮影した画像はアプリケーションにアップロードされ、システムがレシートの情報を読み取る。 Step 3: The captured image is uploaded to the application and the system reads the receipt information.
「形態例3」 "Example 3"
ステップ1:システムは消費者が入力した身長体重と目標、及び提出されたレシートの情報を基に、不要な商品を自動的に検出する。 Step 1: The system automatically detects unwanted items based on the consumer's height, weight, and goals entered, as well as the submitted receipt information.
ステップ2:例えば、ダイエット目標が「糖質制限」である場合、システムはレシート上 Step 2: For example, if your diet goal is "restrict carbohydrates," the system will
の「パン」や「お菓子」等の糖質が多い商品を不要な商品として検出する。 Products with high sugar content, such as "bread" and "sweets," are detected as unnecessary items.
「形態例4」 "Example 4"
ステップ1:システムは検出した不要な商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算する。 Step 1: The system calculates the total value of the detected unwanted products and the estimated weight loss that would occur if the product were not consumed.
ステップ2:計算結果はグラフやチャート等の形で消費者に表示される。これにより、消費者は自身の健康管理と節約の両方を具体的に把握することができる。 Step 2: The calculation results are displayed to consumers in the form of graphs, charts, etc. This allows consumers to concretely understand both their health management and savings.
(実施例1) (Example 1)
次に、形態例1の実施例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, Example 1 of Form Example 1 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
従来のダイエット支援システムでは、ユーザが自身の身長や体重、ダイエット目標を入力するだけでなく、買い物後に購入レシートを提出し、不要な商品を判断する手段が必要であった。しかし、これらのシステムはユーザにとって手間がかかり、継続的な利用が難しいという課題があった。また、ユーザが入力したデータを基に、個別に適切なダイエットプランを提案する機能が不足していたため、効果的なダイエット支援が行えないという問題もあった Traditional diet support systems required users to input their height, weight, and diet goals, as well as submit purchase receipts after shopping and identify unwanted items. However, these systems were time-consuming for users, making them difficult to use on an ongoing basis. Furthermore, they lacked the ability to individually suggest appropriate diet plans based on the data entered by the user, making them unable to provide effective diet support.
実施例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客が入力したデータを受信し、保存する手段と、保存されたデータを基に生成AIモデルに対するプロンプト文を生成する手段と、生成AIモデルがダイエットプランを提案する手段と、を含む。これにより、ユーザが手間をかけずに継続的に利用でき、個別に適切なダイエットプランを提案することが可能となる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for receiving and saving the data entered by the customer, means for generating prompt sentences for the generative AI model based on the saved data, and means for the generative AI model to suggest a diet plan. This allows users to use the system continuously without any hassle, and makes it possible to suggest appropriate diet plans individually.
「顧客」とは、システムを利用するユーザを指す。 "Customer" refers to the user of the system.
「身長体重」とは、顧客の現在の身長と体重のデータを指す。 "Height and Weight" refers to the customer's current height and weight data.
「目標」とは、顧客が設定するダイエットや健康に関する目標を指す。 "Goals" refers to the diet and health goals set by the customer.
「入力フォーム」とは、顧客が身長、体重、目標などのデータを入力するためのインターフェースを指す。 "Input form" refers to the interface where customers enter data such as height, weight, and goals.
「購入レシート」とは、顧客が買い物後に受け取る購入品の明細書を指す。 "Purchase receipt" refers to the detailed list of purchases that a customer receives after making a purchase.
「添削する手段」とは、顧客の身長体重と目標に基づいて不要な商品を判断し、リストから削除する機能を指す。 "Means for correcting" refers to the function that determines unnecessary products based on the customer's height, weight, and goals, and removes them from the list.
「可視化する手段」とは、不要商品を買わなかった場合に節約できるお金や減る体重を視覚的に表示する機能を指す。 "Visualization means" refers to a function that visually displays the money you can save and the weight you will lose if you don't buy unnecessary products.
「データを受信し、保存する手段」とは、顧客が入力したデータをサーバが受け取り、データベースなどに保存する機能を指す。 "Means for receiving and storing data" refers to the function by which the server receives data entered by the customer and stores it in a database, etc.
「生成AIモデル」とは、入力されたデータを基に適切なダイエットプランを生成する人工知能モデルを指す。 "Generative AI model" refers to an artificial intelligence model that generates an appropriate diet plan based on input data.
「プロンプト文」とは、生成AIモデルに対して入力データを基に生成される指示文を指す。 "Prompt sentence" refers to an instruction sentence generated for a generative AI model based on input data.
「ダイエットプラン」とは、生成AIモデルが提案する、顧客の目標達成のための具体的な行動計画を指す。 "Diet Plan" refers to a specific action plan proposed by the generative AI model to help customers achieve their goals.
この発明は、顧客が自身の身長、体重、ダイエット目標を入力するための専用の入力フォームを提供するシステムである。システムは、ウェブサイトやスマートフォンアプリケーション上に設けられ、顧客が入力したデータを基に生成AIモデルが適切なダイエットプランを提案する。 This invention is a system that provides a dedicated input form for customers to enter their height, weight, and diet goals. The system is installed on a website or smartphone application, and a generative AI model proposes an appropriate diet plan based on the data entered by the customer.
使用するハードウェアおよびソフトウェア Hardware and software used
ハードウェア: サーバ(例: AWS EC2)、ユーザ端末(例: スマートフォン、PC) Hardware: Servers (e.g., AWS EC2), user devices (e.g., smartphones, PCs)
ソフトウェア: ウェブサーバ(例: Apache、Nginx)、データベース(例: MySQL、PostgreSQL)、スマートフォンアプリケーション(例: iOSアプリ、Androidアプリ) Software: Web servers (e.g., Apache, Nginx), databases (e.g., MySQL, PostgreSQL), smartphone applications (e.g., iOS apps, Android apps)
システムの具体的な動作 Specific system operation
サーバ Server
サーバは、ウェブサイトやスマートフォンアプリケーション上に専用の入力フォームを提供する。この入力フォームは、顧客が自身の身長、体重、ダイエット目標などを入力するためのものである。サーバは、入力されたデータを受信し、データベースに保存する。保存されたデータは、生成AIモデルに対してプロンプト文として利用される。 The server provides a dedicated input form on a website or smartphone application. This input form allows customers to enter their height, weight, diet goals, etc. The server receives the input data and stores it in a database. The stored data is used as prompts for the generative AI model.
端末 Device
端末は、ユーザがアクセスするウェブサイトやスマートフォンアプリケーションを表示する。ユーザが入力フォームに身長、体重、ダイエット目標を入力すると、端末はそのデータをサーバに送信する。端末は、ユーザが入力したデータをリアルタイムで表示し、確認できるようにする。 The device displays the websites and smartphone applications that the user accesses. When the user enters their height, weight, and diet goals into an input form, the device sends the data to a server. The device then displays the data the user has entered in real time, allowing them to check it.
ユーザ User
ユーザは、ウェブサイトやスマートフォンアプリケーションにアクセスし、専用の入力フォームに自身の身長、体重、ダイエット目標を入力する。ユーザが入力を完了すると、そのデータはサーバに送信される。ユーザは、入力したデータを確認し、必要に応じて修正することができる。 Users access a website or smartphone application and enter their height, weight, and diet goals into a dedicated input form. Once the user has completed the input, the data is sent to the server. The user can then review the data they have entered and make any necessary corrections.
具体例 Specific examples
例1: ウェブサイトでの利用 Example 1: Website use
ユーザがウェブサイトにアクセスし、入力フォームに以下の情報を入力する: A user visits a website and enters the following information into a form:
身長: 170 cm Height: 170 cm
体重: 70 kg Weight: 70 kg
ダイエット目標: 5 kg減量 Diet goal: Lose 5 kg
入力が完了すると、端末はこのデータをサーバに送信する。サーバはデータを受信し、データベースに保存する。その後、生成AIモデルに対して以下のプロンプト文を生成する: Once the input is complete, the device sends this data to the server. The server receives the data and stores it in a database. It then generates the following prompt for the generative AI model:
プロンプト文の例: Example prompt:
ユーザの身長は170 cm、体重は70 kg、ダイエット目標は5 kg減量です。この情報を基に、適切なダイエットプランを提案してください。 The user's height is 170 cm, weight is 70 kg, and their diet goal is to lose 5 kg. Please suggest an appropriate diet plan based on this information.
例2: スマートフォンアプリケーションでの利用 Example 2: Use in a smartphone application
ユーザがスマートフォンアプリケーションを開き、入力フォームに以下の情報を入力する: A user opens a smartphone application and enters the following information into the input form:
身長: 160 cm Height: 160 cm
体重: 60 kg Weight: 60 kg
ダイエット目標: 3 kg減量 Diet goal: Lose 3 kg
入力が完了すると、端末はこのデータをサーバに送信する。サーバはデータを受信し、データベースに保存する。その後、生成AIモデルに対して以下のプロンプト文を生成する: Once the input is complete, the device sends this data to the server. The server receives the data and stores it in a database. It then generates the following prompt for the generative AI model:
プロンプト文の例: Example prompt:
ユーザの身長は160 cm、体重は60 kg、ダイエット目標は3 kg減量です。この情報を基に、適切なダイエットプランを提案してください。 The user's height is 160 cm, weight is 60 kg, and their diet goal is to lose 3 kg. Please suggest an appropriate diet plan based on this information.
このようにして、ユーザが入力したデータを基に、生成AIモデルが適切なダイエットプランを提案するシステムが構築される。 In this way, a system is created in which a generative AI model suggests an appropriate diet plan based on data entered by the user.
実施例1における特定処理の流れについて図11を用いて説明する。 The flow of the identification process in Example 1 will be explained using Figure 11.
ステップ1: Step 1:
ユーザが入力フォームにアクセスする。 The user accesses the input form.
ユーザは、ウェブサイトやスマートフォンアプリケーションを開き、入力フォームにアクセスする。入力フォームは、ユーザが自身の身長、体重、ダイエット目標を入力するためのインターフェースである。入力フォームが表示されると、ユーザは必要な情報を入力する準備が整う。 A user opens a website or smartphone application and accesses an input form. The input form is an interface where the user can enter their height, weight, and diet goals. Once the input form is displayed, the user is ready to enter the required information.
ステップ2: Step 2:
ユーザがデータを入力する。 The user enters the data.
ユーザは、入力フォームに自身の身長、体重、ダイエット目標を入力する。例えば、ユーザが「身長: 170 cm」、「体重: 70 kg」、「ダイエット目標: 5 kg減量」と入力する。入力が完了したら、ユーザは「送信」ボタンをタップする。入力データは、JSON形式で端末に保存される。 The user enters their height, weight, and diet goal into the input form. For example, the user might enter "Height: 170 cm", "Weight: 70 kg", and "Diet goal: Lose 5 kg". Once the input is complete, the user taps the "Submit" button. The input data is saved on the device in JSON format.
ステップ3: Step 3:
端末がデータをサーバに送信する。 The device sends the data to the server.
端末は、ユーザが入力したデータをサーバに送信する。具体的には、端末はHTTP POSTリクエストを使用して、入力データをサーバに送信する。このとき、データはJSON形式で送信される。入力データ(身長、体重、ダイエット目標)がサーバに送信される。 The device sends the data entered by the user to the server. Specifically, the device uses an HTTP POST request to send the input data to the server. At this time, the data is sent in JSON format. The input data (height, weight, diet goal) is sent to the server.
ステップ4: Step 4:
サーバがデータを受信し、保存する。 The server receives and stores the data.
サーバは、端末から送信されたデータを受信する。受信したデータは、データベースに保存される。例えば、サーバはMySQLデータベースに接続し、以下のようなSQLクエリを実行する: The server receives the data sent from the device. The received data is stored in a database. For example, the server connects to a MySQL database and executes the following SQL query:
sql sql
INSERT INTO user_data (height, weight, goal) VALUES (170, 70, '5 kg減量'); INSERT INTO user_data (height, weight, goal) VALUES (170, 70, '5 kg weight loss');
この処理により、ユーザの入力データがデータベースに保存される。 This process saves the user's input data in the database.
ステップ5: Step 5:
サーバが生成AIモデルにプロンプト文を生成する。 The server generates a prompt for the generative AI model.
サーバは、保存されたデータを基に生成AIモデルに対するプロンプト文を生成する。例えば、以下のようなプロンプト文を生成する: The server generates prompts for the generative AI model based on the stored data. For example, it generates prompts like the following:
「ユーザの身長は170 cm、体重は70 kg、ダイエット目標は5 kg減量です。この情報を基に、適切なダイエットプランを提案してください。」 "The user's height is 170 cm, weight is 70 kg, and their diet goal is to lose 5 kg. Based on this information, please suggest an appropriate diet plan."
このプロンプト文は、生成AIモデルに送信される。 This prompt is sent to the generative AI model.
ステップ6: Step 6:
生成AIモデルがダイエットプランを提案する。 Generative AI models suggest diet plans.
生成AIモデルは、受け取ったプロンプト文を基にダイエットプランを生成する。例えば、生成AIモデルが以下のようなダイエットプランを提案する: The generative AI model generates a diet plan based on the prompt it receives. For example, the generative AI model might suggest the following diet plan:
1. 毎日30分の有酸素運動を行う 1. Do 30 minutes of aerobic exercise every day.
2. 1日のカロリー摂取量を1500 kcalに制限する 2. Limit your daily calorie intake to 1,500 kcal
3. 週に3回筋力トレーニングを行う 3. Strength training three times a week
このダイエットプランは、サーバを経由してユーザの端末に送信され、ユーザに表示される。 This diet plan is sent to the user's device via the server and displayed to the user.
このようにして、ユーザが入力したデータを基に、生成AIモデルが適切なダイエットプランを提案するシステムが構築される。 In this way, a system is created in which a generative AI model suggests an appropriate diet plan based on data entered by the user.
(応用例1) (Application Example 1)
次に、形態例1の応用例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, we will explain Application Example 1 of Form Example 1. In the following explanation, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
従来のフードデリバリーシステムでは、顧客の健康状態やダイエット目標に基づいた食事プランを提供することが難しく、個々のニーズに応じたサービスを提供することができなかった。また、顧客が不要な商品を購入してしまうことによる無駄な支出や、ダイエット目標達成の妨げとなる食事選択が問題となっていた Traditional food delivery systems struggled to provide meal plans based on customers' health status and diet goals, making it impossible to provide services tailored to individual needs. Furthermore, problems arose, such as customers buying unnecessary items and making meal choices that hindered the achievement of diet goals.
応用例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の身長体重と目標に基づいて適切な食事プランを生成する手段と、生成された食事プランを顧客に提示する手段と、を含む。これにより、顧客の健康状態やダイエット目標に応じた適切な食事プランを提供し、無駄な支出を抑えつつ、ダイエット目標の達成をサポートすることが可能となる。 In this invention, the server includes means for the customer to enter their current height, weight, and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for generating an appropriate meal plan based on the customer's height, weight, and goals, and means for presenting the generated meal plan to the customer. This makes it possible to provide an appropriate meal plan based on the customer's health condition and diet goals, and support the achievement of diet goals while reducing unnecessary spending.
「顧客」とは、サービスを利用する消費者を指す。 "Customer" refers to the consumer who uses the service.
「身長体重」とは、顧客の身体的な高さと体重を指す。 "Height and Weight" refers to the customer's physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な健康やダイエットに関する目的を指す。 "Goals" refer to the specific health or diet objectives that a customer wishes to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る購入品の明細書を指す。 "Purchase receipt" refers to the detailed list of purchases received by a customer when making a purchase.
「添削する手段」とは、顧客が購入した商品を評価し、不要な商品を特定するための方法やシステムを指す。 "Correction means" refers to a method or system for evaluating products purchased by customers and identifying unwanted products.
「可視化する手段」とは、節約できるお金や減る体重を視覚的に表示するための方法やシステムを指す。 "Visualization means" refers to a method or system that visually displays the money saved or weight lost.
「食事プラン」とは、顧客の健康状態やダイエット目標に基づいて提案される食事の内容やスケジュールを指す。 "Meal Plan" refers to the meal content and schedule suggested based on the client's health and diet goals.
「生成する手段」とは、顧客の入力データに基づいて食事プランを作成するための方法やシステムを指す。 "Means for generating" refers to a method or system for creating a meal plan based on customer input data.
「提示する手段」とは、生成された食事プランを顧客に見せるための方法やシステムを指す。 "Presentation means" refers to the method or system for showing the generated meal plan to the customer.
この発明を実施するための形態として、以下のシステム構成を提案する。 The following system configuration is proposed as an embodiment of this invention.
システム構成 System Configuration
システムは、顧客が使用するスマートフォンアプリケーション、サーバ、及び生成AIモデルを含む。スマートフォンアプリケーションは、顧客が自身の身長、体重、ダイエット目標を入力するためのインターフェースを提供する。サーバは、入力されたデータを受信し、生成AIモデルにプロンプト文を送信して適切な食事プランを生成する。生成された食事プランは、再びスマートフォンアプリケーションを通じて顧客に提示される。 The system includes a smartphone application used by customers, a server, and a generative AI model. The smartphone application provides an interface for customers to input their height, weight, and diet goals. The server receives the input data and sends prompts to the generative AI model to generate an appropriate meal plan. The generated meal plan is then presented to the customer again via the smartphone application.
使用するハードウェア及びソフトウェア Hardware and software used
ハードウェア: スマートフォン、サーバ Hardware: Smartphones, servers
ソフトウェア: スマートフォンアプリケーション、生成AIモデル(例: OpenAI GPT-3) Software: Smartphone applications, generative AI models (e.g., OpenAI GPT-3)
データ加工及びデータ演算 Data processing and calculation
1. データ入力: 顧客がスマートフォンアプリケーションを使用して、身長、体重、ダイエット目標を入力する。 1. Data entry: Customers use a smartphone application to enter their height, weight, and diet goals.
2. データ送信: スマートフォンアプリケーションが入力されたデータをサーバに送信する。 2. Data transmission: The smartphone application sends the entered data to the server.
3. プロンプト生成: サーバが受信したデータを基に、生成AIモデルに送信するプロンプト文を生成する。 3. Prompt generation: Based on the data received by the server, a prompt sentence is generated to be sent to the generative AI model.
4. 食事プラン生成: 生成AIモデルがプロンプト文を受け取り、適切な食事プランを生成する。 4. Meal plan generation: The generative AI model receives the prompt and generates an appropriate meal plan.
5. データ受信及び提示: サーバが生成された食事プランを受信し、スマートフォンアプリケーションを通じて顧客に提示する。 5. Data reception and presentation: The server receives the generated meal plan and presents it to the customer via the smartphone application.
具体例 Specific examples
例えば、顧客が身長170cm、体重70kg、ダイエット目標として「5kg減量」を入力した場合、サーバは以下のプロンプト文を生成AIモデルに送信する。 For example, if a customer enters their height as 170cm, weight as 70kg, and their diet goal as "lose 5kg," the server will send the following prompt text to the generative AI model:
プロンプト文の例 Example prompt
「身長: 170 cm, 体重: 70 kg, 目標: 5kg減量に基づいて、適切な食事プランを提案してください。」 "Please suggest an appropriate meal plan based on the following: height: 170 cm, weight: 70 kg, goal: to lose 5 kg."
生成AIモデルはこのプロンプト文を基に、バランスの取れた食事プランを生成する。例えば、「朝食 - オートミール、昼食 - サラダ、夕食 - 鶏胸肉と野菜」といった具体的な食事内容が提案される。この食事プランは、スマートフォンアプリケーションを通じて顧客に提示される。 Based on this prompt, the generative AI model generates a balanced meal plan. For example, it suggests specific meal options such as "Breakfast - oatmeal, Lunch - salad, Dinner - chicken breast and vegetables." This meal plan is presented to the customer via a smartphone application.
このようにして、顧客の健康状態やダイエット目標に応じた適切な食事プランを提供し、無駄な支出を抑えつつ、ダイエット目標の達成をサポートすることが可能となる。 In this way, we can provide customers with appropriate meal plans based on their health condition and diet goals, helping them achieve their diet goals while reducing unnecessary spending.
応用例1における特定処理の流れについて図12を用いて説明する。 The flow of the specific processing in Application Example 1 will be explained using Figure 12.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、身長、体重、ダイエット目標を入力する。入力されたデータは、スマートフォンアプリケーション内で一時的に保存される。入力データの例として、身長170cm、体重70kg、ダイエット目標「5kg減量」がある。 The user launches the smartphone application and enters their height, weight, and diet goal. The entered data is temporarily saved within the smartphone application. An example of input data is: height 170cm, weight 70kg, diet goal "lose 5kg."
ステップ2: Step 2:
スマートフォンアプリケーションが、入力されたデータをサーバに送信する。送信されるデータは、ユーザの身長、体重、ダイエット目標を含む。サーバは、受信したデータを解析し、次の処理ステップに進む。 The smartphone application sends the entered data to the server. The data sent includes the user's height, weight, and diet goals. The server analyzes the received data and proceeds to the next processing step.
ステップ3: Step 3:
サーバが、受信したデータを基にプロンプト文を生成する。具体的には、ユーザの身長、体重、ダイエット目標を組み合わせて、生成AIモデルに送信するためのプロンプト文を作成する。例えば、「身長: 170 cm, 体重: 70 kg, 目標: 5kg減量に基づいて、適切な食事プランを提案してください。」というプロンプト文が生成される。 The server generates a prompt based on the received data. Specifically, it combines the user's height, weight, and diet goal to create a prompt to send to the generative AI model. For example, a prompt might be generated that reads, "Based on height: 170 cm, weight: 70 kg, goal: to lose 5 kg, please suggest an appropriate meal plan."
ステップ4: Step 4:
サーバが、生成したプロンプト文を生成AIモデルに送信する。生成AIモデルは、受信したプロンプト文を基にデータ演算を行い、適切な食事プランを生成する。生成AIモデルは、例えばOpenAI GPT-3を使用する。 The server sends the generated prompt text to the generative AI model. The generative AI model performs data calculations based on the received prompt text and generates an appropriate meal plan. The generative AI model uses, for example, OpenAI GPT-3.
ステップ5: Step 5:
生成AIモデルが、プロンプト文に基づいて食事プランを生成し、その結果をサーバに返送する。生成された食事プランの例として、「朝食 - オートミール、昼食 - サラダ、夕食 - 鶏胸肉と野菜」がある。 The generative AI model generates a meal plan based on the prompt and sends the results back to the server. An example of a generated meal plan is "Breakfast - Oatmeal, Lunch - Salad, Dinner - Chicken Breast and Vegetables."
ステップ6: Step 6:
サーバが、生成AIモデルから受信した食事プランを解析し、スマートフォンアプリケーションに送信する。送信されるデータは、生成された食事プランを含む。 The server analyzes the meal plan received from the generative AI model and sends it to the smartphone application. The transmitted data includes the generated meal plan.
ステップ7: Step 7:
スマートフォンアプリケーションが、サーバから受信した食事プランをユーザに提示する。ユーザは、アプリケーションを通じて提案された食事プランを確認し、実行することができる。 The smartphone application presents the meal plan received from the server to the user. The user can review and implement the proposed meal plan through the application.
(実施例2) (Example 2)
次に、形態例2の実施例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, Example 2 of Form Example 2 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
従来のシステムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかる上に、レシートの紛失や破損のリスクがあった。また、購入した商品の中で不要なものを判断し、節約できる金額や減る体重を可視化する手段が不十分であった。これにより、顧客が目標に向かって効果的に買い物を管理することが難しかった Under the previous system, customers had to physically submit receipts for their purchases, which was time-consuming and risked loss or damage. Furthermore, there were insufficient ways to identify unnecessary purchases and visualize savings and weight loss. This made it difficult for customers to effectively manage their shopping to achieve their goals.
実施例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出するために画像を撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できる金額および減る体重を可視化する手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、購入情報を簡単にシステムに伝えることが可能となる。また、不要な商品を判断し、節約できる金額や減る体重を可視化することで、顧客が目標に向かって効果的に買い物を管理することができる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to take an image of their purchase receipt after shopping and upload it to the application so that they can submit it, means for correcting items that are determined to be unnecessary for this purchase, and means for visualizing the amount of money saved and weight loss that would be achieved if the unnecessary items were not purchased. This saves the customer the trouble of submitting a physical receipt and allows them to easily communicate their purchase information to the system. Furthermore, by identifying unnecessary items and visualizing the amount of money saved and weight loss that would be achieved, customers can effectively manage their shopping toward their goals.
「顧客」とは、システムを利用して買い物を行い、購入情報を管理する個人を指す。 "Customer" refers to an individual who uses the system to shop and manages their purchase information.
「身長体重」とは、顧客の現在の身体的な高さと体重を指す。 "Height and Weight" refers to the customer's current physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な身体的または経済的な目標を指す。 "Goal" refers to a specific physical or financial goal that the client wishes to achieve.
「購入レシート」とは、顧客が買い物を行った際に発行される、購入した商品の詳細が記載された紙または電子の記録を指す。 "Purchase receipt" means a paper or electronic record issued to a customer when they make a purchase that contains details of the items purchased.
「画像を撮影する」とは、スマートフォンやカメラなどのデバイスを使用して、物理的なレシートの写真を撮る行為を指す。 "Taking an image" refers to the act of taking a photo of a physical receipt using a device such as a smartphone or camera.
「アプリケーション」とは、スマートフォンやタブレットなどのデバイス上で動作するソフトウェアプログラムを指す。 "Application" refers to a software program that runs on a device such as a smartphone or tablet.
「アップロードする」とは、撮影した画像をインターネットを通じてサーバに送信する行為を指す。 "Uploading" refers to the act of sending captured images to a server via the Internet.
「サーバ」とは、ネットワークを介してデータを受信、処理、保存するためのコンピュータシステムを指す。 "Server" refers to a computer system that receives, processes, and stores data over a network.
「画像を解析する」とは、画像認識技術を使用して、撮影されたレシートの内容をデジタルデータとして抽出する行為を指す。 "Analyzing an image" refers to the act of using image recognition technology to extract the contents of a photographed receipt as digital data.
「不要な商品」とは、顧客の目標に対して購入する必要がないと判断された商品を指す。 "Unnecessary products" refer to products that are determined not to be necessary for the customer to achieve their goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金銭的な額を指す。 "Savings" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を購入しなかった場合に期待される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss you would expect if you had not purchased unnecessary items.
「可視化する」とは、データを視覚的に表示することで、顧客が容易に理解できるようにする行為を指す。 "Visualizing" refers to the act of displaying data visually so that customers can easily understand it.
「グラフィカルに表示する」とは、データをグラフやチャートなどの視覚的な形式で表示する行為を指す。 "Displaying graphically" refers to the act of displaying data in a visual format such as a graph or chart.
この発明は、顧客が買い物後に購入レシートを提出するために画像を撮影し、アプリケーションにアップロードするシステムを提供するものである。以下に、このシステムの具体的な実施形態を説明する。 This invention provides a system that allows customers to take an image of their purchase receipt after shopping and upload it to an application in order to submit it. A specific embodiment of this system is described below.
ユーザは、スマートフォンのカメラを使用して購入レシートの画像を撮影する。撮影した画像は、専用のアプリケーション(例えば、「ReceiptUploader」)を使用してアップロードされる。アプリケーションは、ユーザが撮影した画像をサーバに送信する機能を持つ。 The user takes a picture of the purchase receipt using the smartphone camera. The image is then uploaded using a dedicated application (e.g., "ReceiptUploader"). The application has the function of sending the image taken by the user to the server.
サーバは、端末から送信されたレシートの画像を受信する。受信後、サーバはGoogle Cloud Vision APIなどの画像認識ソフトウェアを使用して、レシートの内容を解析する。解析には、文字認識(OCR)技術が使用され、レシートに記載された商品名、価格、購入日時などの情報が抽出される。 The server receives the image of the receipt sent from the device. After receiving it, the server uses image recognition software such as Google Cloud Vision API to analyze the contents of the receipt. Optical character recognition (OCR) technology is used for the analysis, and information such as the product name, price, and purchase date and time written on the receipt is extracted.
解析されたデータは、サーバによってデータベースに保存される。保存されたデータには、商品名、価格、購入日時、店舗名などが含まれる。これにより、ユーザの購入履歴がデータベースに蓄積される。 The analyzed data is stored in a database by the server. The stored data includes the product name, price, purchase date and time, store name, etc. This allows the user's purchase history to be accumulated in the database.
ユーザは、アプリケーションを使用して購入履歴を確認することができる。アプリケーション内の「購入履歴」セクションを開くと、サーバから取得されたデータが表示される。ユーザは、過去の購入情報を一覧で確認することができる。 Users can check their purchase history using the application. By opening the "Purchase History" section within the application, data retrieved from the server is displayed. Users can view a list of past purchases.
具体例として、ユーザがスーパーで買い物をした後のシナリオを考える。ユーザはスマートフォンのカメラを使ってレシートの画像を撮影し、「ReceiptUploader」アプリケーションを開く。アプリケーション内で「アップロード」ボタンをタップし、撮影したレシートの画像を選択してアップロードする。アプリケーションは画像をサーバに送信し、サーバはGoogle Cloud Vision APIを使用してレシートの内容を解析する。解析されたデータはデータベースに保存され、ユーザはアプリケーション内で「購入履歴」セクションを開いて、最近の購入情報を確認することができる。 As a concrete example, consider a scenario after a user has shopped at a supermarket. The user takes a picture of the receipt using their smartphone camera and opens the "ReceiptUploader" application. Within the application, the user taps the "Upload" button, selects the image of the receipt, and uploads it. The application sends the image to a server, which uses the Google Cloud Vision API to analyze the contents of the receipt. The analyzed data is stored in a database, and the user can open the "Purchase History" section within the application to view information about recent purchases.
生成AIモデルへ入力するプロンプト文の例としては、以下のようなものが考えられる。 Examples of prompts to input into a generative AI model include:
「ユーザがスマートフォンのカメラを使用してレシートの画像を撮影し、アプリケーションにアップロードする機能を説明してください。具体的なハードウェアやソフトウェアの名前も含めてください。」 "Please describe the functionality that allows users to take a picture of a receipt using their smartphone camera and upload it to the application. Please include the names of any specific hardware or software."
このプロンプト文を使用することで、生成AIモデルはシステムの処理を詳細に説明する文章を生成することができる。 Using this prompt, the generative AI model can generate sentences that explain in detail how the system will operate.
実施例2における特定処理の流れについて図13を用いて説明する。 The flow of the identification process in Example 2 will be explained using Figure 13.
ステップ1: Step 1:
ユーザがレシートの画像を撮影する。 The user takes a picture of the receipt.
ユーザはスマートフォンのカメラを使用して、購入した商品のレシートの画像を撮影する。撮影時には、レシート全体が鮮明に写るように注意する。入力は物理的なレシートであり、出力はデジタル画像である。 The user uses their smartphone camera to take an image of the receipt for the item they purchased. When taking the photo, they are careful to capture the entire receipt clearly. The input is the physical receipt, and the output is a digital image.
ステップ2: Step 2:
端末が画像をアプリケーションにアップロードする。 The device uploads the image to the application.
端末(スマートフォン)は、撮影したレシートの画像を「ReceiptUploader」アプリケーションにアップロードする。ユーザはアプリケーションを開き、「アップロード」ボタンをタップして、撮影した画像を選択する。入力はデジタル画像であり、出力はサーバへの画像データの送信である。 The device (smartphone) uploads the captured image of the receipt to the "ReceiptUploader" application. The user opens the application, taps the "Upload" button, and selects the captured image. The input is a digital image, and the output is the transmission of image data to the server.
ステップ3: Step 3:
サーバが画像を受信し、解析する。 The server receives and analyzes the image.
サーバは、端末から送信されたレシートの画像を受信する。受信後、サーバはGoogle Cloud Vision APIなどの画像認識ソフトウェアを使用して、レシートの内容を解析する。解析には、文字認識(OCR)技術が使用され、レシートに記載された商品名、価格、購入日時などの情報が抽出される。入力は画像データであり、出力は解析されたテキストデータである。 The server receives the image of the receipt sent from the device. After receiving it, the server uses image recognition software such as Google Cloud Vision API to analyze the contents of the receipt. Optical character recognition (OCR) technology is used for the analysis, and information such as the product name, price, and purchase date and time written on the receipt is extracted. The input is image data, and the output is analyzed text data.
ステップ4: Step 4:
サーバが解析結果をデータベースに保存する。 The server stores the analysis results in a database.
サーバは、解析されたデータをデータベースに保存する。保存されるデータには、商品名、価格、購入日時、店舗名などが含まれる。これにより、ユーザの購入履歴がデータベースに蓄積される。入力は解析されたテキストデータであり、出力はデータベースへの保存である。 The server saves the analyzed data in a database. The saved data includes the product name, price, purchase date and time, store name, etc. This allows the user's purchase history to be accumulated in the database. The input is the analyzed text data, and the output is saved in the database.
ステップ5: Step 5:
ユーザが購入履歴を確認する。 The user checks their purchase history.
ユーザは「ReceiptUploader」アプリケーションを使用して、購入履歴を確認することができる。アプリケーション内の「購入履歴」セクションを開くと、サーバから取得されたデータが表示される。ユーザは、過去の購入情報を一覧で確認することができる。入力はデータベースから取得されたデータであり、出力はアプリケーション上の表示である。 Users can use the "ReceiptUploader" application to check their purchase history. When they open the "Purchase History" section in the application, data retrieved from the server is displayed. Users can view a list of past purchases. The input is data retrieved from the database, and the output is displayed in the application.
(応用例2) (Application Example 2)
次に、形態例2の応用例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, we will explain Application Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
従来の買い物システムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかる上に、購入情報の管理が煩雑であった。また、購入情報を基にしたポイント還元や節約効果の可視化が十分に行われていなかった。さらに、顧客の健康目標に基づいて不要な商品を判断し、節約効果や健康効果を可視化するシステムが不足していた Traditional shopping systems required customers to physically submit receipts for their purchases, which was time-consuming and made managing purchase information cumbersome. Furthermore, there was a lack of systems that could identify unnecessary products based on customers' health goals and visualize their savings and health benefits.
応用例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、購入レシートの内容を解析し、購入情報を自動的に抽出する手段と、抽出された購入情報に基づいて、顧客にポイントを還元する手段と、還元されたポイントを次回の購入時に使用できる手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、購入情報の管理が容易になり、ポイント還元や節約効果の可視化が可能となる。また、顧客の健康目標に基づいて不要な商品を判断し、節約効果や健康効果を可視化することができる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 2 is realized by the following means. In this invention, the server includes: a means for the customer to enter their current height and weight and goals; a means for the customer to take a photo of their purchase receipt with their smartphone camera after shopping and upload it to the application; a means for correcting items determined to be unnecessary for the current purchase; a means for visualizing the money saved and weight lost if the unnecessary items were not purchased; a means for analyzing the contents of the purchase receipt and automatically extracting purchase information; a means for rewarding points to the customer based on the extracted purchase information; and a means for allowing the rewarded points to be used for the next purchase. This saves the customer the trouble of submitting a physical receipt, simplifies management of purchase information, and enables visualization of point rewards and savings. It also identifies unnecessary items based on the customer's health goals and visualizes savings and health benefits.
「顧客」とは、商品やサービスを購入する消費者のことである。 "Customer" refers to a consumer who purchases goods or services.
「身長体重」とは、顧客の身体の高さと体重を指す基本的な身体情報である。 "Height and weight" refers to basic physical information that refers to the customer's physical height and weight.
「目標」とは、顧客が達成したい具体的な数値や状態を指すものである。 A "goal" refers to a specific numerical value or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される取引の詳細を記載した紙または電子の記録である。 A "purchase receipt" is a paper or electronic record detailing a transaction issued to a customer when they purchase goods.
「スマートフォン」とは、インターネット接続やアプリケーションの利用が可能な携帯電話の一種である。 A "smartphone" is a type of mobile phone that can connect to the Internet and use applications.
「カメラ」とは、画像や動画を撮影するための装置である。 A "camera" is a device used to take images and videos.
「アプリケーション」とは、スマートフォンやコンピュータ上で動作するソフトウェアプログラムである。 An "application" is a software program that runs on a smartphone or computer.
「アップロード」とは、データをローカルデバイスからサーバやクラウドに転送する行為である。 "Uploading" is the act of transferring data from a local device to a server or cloud.
「不要な商品」とは、顧客の目標達成に対して必要でないと判断される商品である。 "Unnecessary products" are products that are deemed not necessary for achieving the customer's goals.
「添削」とは、内容を確認し、修正や改善を行う行為である。 "Correction" is the act of checking the content and making corrections or improvements.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額である。 "Money saved" is the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を購入しなかった結果として減少した体重である。 "Weight lost" refers to the weight lost as a result of not purchasing unnecessary items.
「可視化」とは、データや情報を視覚的に表示することを指す。 "Visualization" refers to the visual display of data or information.
「解析」とは、データや情報を詳細に調べて、その構造や意味を明らかにする行為である。 "Analysis" is the act of examining data or information in detail to clarify its structure and meaning.
「購入情報」とは、顧客が購入した商品の詳細情報である。 "Purchase information" refers to detailed information about the products purchased by the customer.
「自動的に抽出」とは、システムが人の手を介さずにデータを取り出すことを指す。 "Automatic extraction" means that the system extracts data without human intervention.
「ポイント還元」とは、購入金額に応じて顧客にポイントを付与する行為である。 "Point redemption" is the act of awarding points to customers based on the purchase amount.
「次回の購入時に使用できる」とは、顧客が次に商品を購入する際にポイントを利用できることを指す。 "Can be used on next purchase" means that the customer can use the points the next time they purchase a product.
この発明を実施するための形態について、以下に詳細に説明する。 The following describes in detail the mode for implementing this invention.
まず、顧客が現在の身長体重と目標を記入する手段として、スマートフォンアプリケーションを用いる。顧客はアプリケーションを起動し、身長体重および目標を入力する。これにより、顧客の健康目標がシステムに登録される。 First, a smartphone application is used by the customer to enter their current height, weight, and goals. The customer launches the application and enters their height, weight, and goals. This registers the customer's health goals in the system.
次に、顧客が買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする手段を提供する。顧客はレシートを撮影し、アプリケーション内のアップロード機能を使用して画像をサーバに送信する。 Next, we provide a way for customers to take a photo of their purchase receipt with their smartphone camera after shopping and upload it to the application. Customers take a photo of their receipt and use the upload function within the application to send the image to the server.
サーバは、アップロードされたレシート画像を受信し、OpenCVを用いて画像を前処理する。具体的には、画像をグレースケールに変換し、二値化処理を行う。次に、pytesseractを用いて前処理された画像からテキストを抽出する。抽出されたテキストから購入情報(商品名、金額など)を解析し、自動的に抽出する。 The server receives the uploaded receipt image and preprocesses it using OpenCV. Specifically, it converts the image to grayscale and performs binarization. Next, it uses pytesseract to extract text from the preprocessed image. It then analyzes and automatically extracts purchase information (product name, price, etc.) from the extracted text.
解析された購入情報に基づいて、顧客にポイントを還元する手段を提供する。サーバは、購入金額に応じてポイントを計算し、顧客のアカウントにポイントを付与する。還元されたポイントは、次回の購入時に使用できるようにアプリケーション内で管理される。 Based on the analyzed purchase information, the application provides a means for rewarding customers with points. The server calculates points based on the purchase amount and adds them to the customer's account. Rewarded points are managed within the application so they can be used for the next purchase.
さらに、今回の買い物で不要だと判断できる商品を添削する手段として、顧客の身長体重と目標に基づいて不要な商品を判断するアルゴリズムを実装する。サーバは、購入情報と顧客の健康目標を照らし合わせ、不要な商品を特定する。 Furthermore, as a means of filtering out items that may be deemed unnecessary for this shopping trip, an algorithm is implemented to determine unnecessary items based on the customer's height, weight, and goals. The server compares purchase information with the customer's health goals to identify unnecessary items.
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段として、サーバは節約できる金額と減少した体重を計算し、グラフィカルに表示する。これにより、顧客は節約効果と健康効果を視覚的に確認できる。 To visualize the money saved and weight lost by not buying unnecessary products, the server calculates the amount saved and weight lost and displays them graphically. This allows customers to visually see the savings and health benefits.
具体例として、ユーザーがコンビニで飲み物を購入し、レシートを撮影してアプリにアップロードする場合を考える。アプリがレシートから「飲み物」と「150円」を抽出し、15ポイントを還元する。また、ユーザーの健康目標に基づいて、飲み物が不要な商品と判断される場合、節約できる金額と減少した体重が表示される。 As a concrete example, consider the case where a user purchases a drink at a convenience store, takes a photo of the receipt, and uploads it to the app. The app extracts "drink" and "150 yen" from the receipt and rewards 15 points. Furthermore, if the drink is deemed an unnecessary item based on the user's health goals, the amount of money saved and the weight lost will be displayed.
生成AIモデルへのプロンプト文の例は以下の通りである: Examples of prompts for a generative AI model are as follows:
「ユーザーがスマートフォンのカメラで撮影したレシート画像をアップロードしました。この画像から購入情報を抽出し、ポイントを還元するプログラムを作成してください。購入金額の10%をポイントとして還元します。」 "A user has uploaded a receipt image taken with their smartphone camera. Please create a program that extracts purchase information from this image and rewards points. 10% of the purchase amount will be rewarded as points."
応用例2における特定処理の流れについて図14を用いて説明する。 The flow of the specific processing in Application Example 2 will be explained using Figure 14.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、現在の身長体重と目標を入力する。入力されたデータはアプリケーション内で一時的に保存され、サーバに送信される。入力データは、ユーザの健康目標を設定するための基礎情報として使用される。 The user launches the smartphone application and enters their current height, weight, and goals. The entered data is temporarily saved within the application and sent to the server. The entered data is used as the basis for setting the user's health goals.
ステップ2: Step 2:
ユーザが買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする。撮影されたレシート画像は、アプリケーション内で一時的に保存され、サーバに送信される。入力データは、レシート画像である。 After shopping, the user takes a photo of the purchase receipt with their smartphone camera and uploads it to the application. The captured receipt image is temporarily saved within the application and then sent to the server. The input data is the receipt image.
ステップ3: Step 3:
サーバがアップロードされたレシート画像を受信し、OpenCVを用いて画像を前処理する。具体的には、画像をグレースケールに変換し、二値化処理を行う。入力データはレシート画像であり、出力データは前処理された画像である。 The server receives the uploaded receipt image and preprocesses it using OpenCV. Specifically, it converts the image to grayscale and performs binarization. The input data is the receipt image, and the output data is the preprocessed image.
ステップ4: Step 4:
サーバが前処理された画像からpytesseractを用いてテキストを抽出する。入力データは前処理された画像であり、出力データは抽出されたテキストである。具体的な動作として、OCR(光学文字認識)技術を使用して画像内の文字情報を読み取る。 The server extracts text from the preprocessed image using pytesseract. The input data is the preprocessed image, and the output data is the extracted text. Specifically, it uses OCR (optical character recognition) technology to read the text information in the image.
ステップ5: Step 5:
サーバが抽出されたテキストから購入情報(商品名、金額など)を解析し、自動的に抽出する。入力データは抽出されたテキストであり、出力データは解析された購入情報である。具体的な動作として、テキスト解析アルゴリズムを使用して必要な情報を抽出する。 The server analyzes and automatically extracts purchase information (product name, price, etc.) from the extracted text. The input data is the extracted text, and the output data is the analyzed purchase information. Specifically, it uses a text analysis algorithm to extract the required information.
ステップ6: Step 6:
サーバが解析された購入情報に基づいて、顧客にポイントを還元する。入力データは解析された購入情報であり、出力データは還元されたポイントである。具体的な動作として、購入金額に応じてポイントを計算し、顧客のアカウントにポイントを付与する。 The server rewards the customer with points based on the analyzed purchase information. The input data is the analyzed purchase information, and the output data is the rewarded points. Specifically, it calculates points based on the purchase amount and adds them to the customer's account.
ステップ7: Step 7:
サーバが顧客の身長体重と目標に基づいて不要な商品を判断する。入力データは顧客の健康目標と購入情報であり、出力データは不要な商品のリストである。具体的な動作として、健康目標と購入情報を照らし合わせ、不要な商品を特定するアルゴリズムを実行する。 The server determines unnecessary products based on the customer's height, weight, and goals. The input data is the customer's health goals and purchase information, and the output data is a list of unnecessary products. Specifically, it runs an algorithm that compares the health goals with the purchase information and identifies unnecessary products.
ステップ8: Step 8:
サーバが不要商品を買わなかったら節約できるお金&減る体重を計算し、グラフィカルに表示する。入力データは不要な商品のリストと購入情報であり、出力データは節約できる金額と減少した体重である。具体的な動作として、節約効果と健康効果を計算し、ユーザに視覚的に表示する。 The server calculates the amount of money saved and weight lost if unnecessary items are not purchased, and displays this graphically. The input data is a list of unnecessary items and purchase information, and the output data is the amount saved and weight lost. Specifically, it calculates the savings and health benefits and displays them visually to the user.
ステップ9: Step 9:
ユーザが次回の購入時に還元されたポイントを使用する。入力データは還元されたポイントであり、出力データはポイントを使用した後の残高である。具体的な動作として、ポイントを使用して購入金額を割引し、残高を更新する。 The user uses the points they have earned on their next purchase. The input data is the points earned, and the output data is the balance after the points have been used. Specific operations include using the points to discount the purchase amount and updating the balance.
(実施例3) (Example 3)
次に、形態例3の実施例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, Example 3 of Form Example 3 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を両立させることが難しいと感じている。特に、ダイエットや健康目標を持つ消費者は、買い物の際にどの商品が不要であるかを判断するのが困難である。また、不要な商品を購入しなかった場合の節約金額や健康効果を具体的に把握する手段が不足している。このため、消費者が健康管理と節約を効果的に行うためのシステムが求められている Today's consumers find it difficult to balance health management and saving money. Consumers with diet or health goals in particular have difficulty determining which products are unnecessary when shopping. Furthermore, there are few ways to specifically assess the savings and health benefits of not purchasing unnecessary products. For this reason, a system that helps consumers effectively manage their health and save money is needed.
実施例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、提出されたレシート情報を光学文字認識技術でテキストデータに変換する手段と、顧客の身長体重と目標に基づいて不要な商品を判断する手段と、不要商品を買わなかった場合に節約できる金額と減少する体重を計算する手段と、計算結果をグラフィカルに表示する手段を含む。これにより、消費者は買い物の際に不要な商品を簡単に特定し、節約金額と健康効果を具体的に把握することが可能となる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Example 3 is realized by the following means. In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for converting the submitted receipt information into text data using optical character recognition technology, means for determining unnecessary products based on the customer's height, weight, and goals, means for calculating the amount of money saved and the weight lost if the unnecessary products are not purchased, and means for graphically displaying the calculation results. This allows consumers to easily identify unnecessary products when shopping and specifically understand the amount of money saved and the health benefits.
「顧客」とは、システムを利用して自身の健康管理と節約を行おうとする消費者である。 "Customers" are consumers who use the system to manage their own health and save money.
「身長体重」とは、顧客の現在の身体的な測定値であり、健康管理の基礎データとして使用されるものである。 "Height and Weight" refers to the customer's current physical measurements and is used as basic data for health management.
「目標」とは、顧客が設定する健康やダイエットに関する具体的な目的であり、例えば「糖質制限」や「カロリー制限」などが含まれる。 "Goals" are specific health and diet objectives set by customers, and include, for example, "carbohydrate restriction" or "calorie restriction."
「レシート」とは、顧客が買い物後に受け取る購入商品の明細書であり、商品名と価格が記載されているものである。 A "receipt" is a detailed list of purchased items that a customer receives after shopping, listing the product names and prices.
「光学文字認識技術」とは、画像データから文字情報を抽出する技術であり、レシート画像をテキストデータに変換するために使用されるものである。 "Optical character recognition technology" is a technology that extracts character information from image data and is used to convert receipt images into text data.
「テキストデータ」とは、光学文字認識技術によって変換された文字情報であり、商品名や価格などの情報が含まれるものである。 "Text data" refers to text information converted using optical character recognition technology, and includes information such as product names and prices.
「不要な商品」とは、顧客の身長体重と目標に基づいて、健康管理やダイエットの観点から購入する必要がないと判断される商品である。 "Unnecessary products" are products that are determined not to be necessary to purchase from the perspective of health management or dieting, based on the customer's height, weight, and goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金銭の総額である。 "Amount saved" is the total amount of money you can save by not purchasing unnecessary items.
「減少する体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量である。 "Weight loss" is the amount of weight loss predicted if the unnecessary product is not consumed.
「グラフィカルに表示する」とは、計算結果を視覚的にわかりやすくするために、グラフやチャートなどの形式で表示することである。 "Displaying graphically" means displaying the calculation results in the form of graphs, charts, etc. to make them easier to understand visually.
発明を実施するための形態 Form for implementing the invention
この発明は、消費者が健康管理と節約を効果的に行うためのシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system that enables consumers to effectively manage their health and save money. Specific embodiments of this system are described below.
システムの構成 System Configuration
このシステムは、以下の主要なコンポーネントから構成される。 The system consists of the following main components:
1. ユーザが身長、体重、目標を入力するための端末 1. A device for users to enter their height, weight, and goals.
2. ユーザが買い物後にレシートを提出するための端末 2. A terminal where users can submit receipts after shopping.
3. サーバがデータを受信し、処理を行うためのハードウェアおよびソフトウェア 3. Hardware and software for the server to receive and process data
使用するハードウェアおよびソフトウェア Hardware and software used
端末: スマートフォンやタブレットなどのモバイルデバイス Device: Mobile devices such as smartphones and tablets
サーバ: 高性能なデータ処理サーバ Server: High-performance data processing server
OCR技術: Google Cloud Vision APIなどの光学文字認識技術 OCR technology: Optical character recognition technology such as Google Cloud Vision API
データベース: MySQLやPostgreSQLなどのリレーショナルデータベース Database: Relational database such as MySQL or PostgreSQL
データビジュアライゼーションライブラリ: D3.jsやChart.jsなど Data visualization libraries: D3.js, Chart.js, etc.
プログラムの処理 Program processing
サーバは、ユーザが入力した身長、体重、目標、および提出されたレシートの情報を受信する。サーバは、これらのデータを用いて不要な商品を検出するためのデータ加工とデータ演算を行う。具体的には、以下の手順で処理を行う。 The server receives the height, weight, and goal information entered by the user, as well as the submitted receipt. Using this data, the server processes and calculates the data to detect unwanted products. Specifically, the process is carried out as follows:
1. データ受信と解析: 1. Data reception and analysis:
サーバは、ユーザが入力した身長、体重、目標(例:糖質制限)を受信する。 The server receives the user's input height, weight, and goal (e.g., carbohydrate restriction).
サーバは、提出されたレシートの情報をOCR技術を用いてテキストデータに変換する。 The server converts the information on the submitted receipt into text data using OCR technology.
2. 不要商品の検出: 2. Detecting unwanted products:
サーバは、目標に基づいて不要な商品を検出する。例えば、目標が「糖質制限」である場合、サーバはレシート上の「パン」や「お菓子」などの糖質が多い商品を不要な商品としてリストアップする。 The server detects unnecessary products based on the goal. For example, if the goal is "restricting carbohydrates," the server will list high-carbohydrate products on the receipt, such as "bread" and "sweets," as unnecessary products.
3. 節約金額と体重減少量の計算: 3. Calculate savings and weight loss:
サーバは、検出した不要な商品の合計金額を計算する。 The server calculates the total price of the unwanted items detected.
サーバは、不要な商品を摂取しなかった場合の推定体重減少量を計算する。 The server calculates the estimated weight loss that would occur if the unnecessary products were not consumed.
4. 結果の可視化: 4. Visualizing the results:
サーバは、計算結果をグラフやチャートなどの形で消費者に表示する。 The server displays the calculation results to the consumer in the form of graphs, charts, etc.
具体例 Specific examples
ユーザが身長170cm、体重70kg、目標を「糖質制限」と設定し、レシートを提出したとする。レシートには「パン(300円)」、「お菓子(200円)」、「野菜(100円)」が含まれている。システムは「パン」と「お菓子」を不要な商品として検出し、合計金額500円を節約できると計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を0.5kgと計算し、グラフで表示する。 Let's say a user is 170cm tall, weighs 70kg, sets their goal to "restrict carbohydrates," and submits a receipt. The receipt includes "bread (300 yen)," "sweets (200 yen)," and "vegetables (100 yen)." The system detects "bread" and "sweets" as unnecessary items and calculates that a total of 500 yen can be saved. The system also calculates that the estimated weight loss would be 0.5kg if these items were not consumed, and displays this in a graph.
プロンプト文の例 Example prompt
「身長170cm、体重70kg、目標は糖質制限です。以下のレシート情報を基に不要な商品を検出し、節約金額と体重減少量を計算してください。レシート情報:パン(300円)、お菓子(200円)、野菜(100円)」 "I'm 170cm tall and weigh 70kg. My goal is to limit my carbohydrate intake. Use the following receipt information to identify unnecessary items and calculate the savings and weight loss. Receipt information: Bread (300 yen), sweets (200 yen), vegetables (100 yen)."
実施例3における特定処理の流れについて図15を用いて説明する。 The flow of the identification process in Example 3 will be explained using Figure 15.
ステップ1: Step 1:
ユーザが身長、体重、目標を入力し、レシートを提出する。 Users enter their height, weight, and goal, then submit a receipt.
入力: ユーザはスマートフォンのアプリを開き、身長170cm、体重70kg、目標「糖質制限」を入力する。また、買い物後のレシートをスマートフォンのカメラで撮影し、アプリを通じてサーバにアップロードする。 Input: The user opens the app on their smartphone and enters their height (170cm), weight (70kg), and goal of "restricting carbohydrates." After shopping, they also take a photo of the receipt with their smartphone camera and upload it to the server via the app.
出力: ユーザの入力データとレシート画像がサーバに送信される。 Output: User input data and receipt image are sent to the server.
ステップ2: Step 2:
サーバが入力データとレシート情報を受信する。 The server receives the input data and receipt information.
入力: ユーザから送信された身長、体重、目標、およびレシート画像。 Input: Height, weight, goal, and receipt image submitted by the user.
出力: サーバ内のデータベースに保存されたユーザの入力データとレシート画像。 Output: User input data and receipt image stored in a database on the server.
ステップ3: Step 3:
サーバがレシート情報をOCR技術でテキストデータに変換する。 The server converts the receipt information into text data using OCR technology.
入力: サーバに保存されたレシート画像。 Input: Receipt image stored on the server.
データ加工: サーバはGoogle Cloud Vision APIを呼び出し、レシート画像を解析して商品名と価格を抽出する。 Data processing: The server calls the Google Cloud Vision API, analyzes the receipt image, and extracts the product name and price.
出力: 変換されたテキストデータ(例:「パン(300円)」、「お菓子(200円)」、「野菜(100円)」)。 Output: Converted text data (e.g., "Bread (300 yen)", "Sweets (200 yen)", "Vegetables (100 yen)").
ステップ4: Step 4:
サーバが目標に基づいて不要な商品を検出する。 The server detects unwanted items based on your goals.
入力: ユーザの目標(例:「糖質制限」)と変換されたテキストデータ。 Input: User's goal (e.g., "Limit carbohydrates") and converted text data.
データ演算: サーバは事前に定義された食品カテゴリと目標に基づくルールベースのフィルタリングを行い、不要な商品をリストアップする。 Data calculation: The server performs rule-based filtering based on predefined food categories and goals to list unwanted products.
出力: 不要な商品のリスト(例:「パン」、「お菓子」)。 Output: List of unwanted products (e.g., "bread", "sweets").
ステップ5: Step 5:
サーバが不要商品の合計金額と推定体重減少量を計算する。 The server calculates the total price of unwanted items and the estimated weight loss.
入力: 不要な商品のリストとそれぞれの価格。 Input: List of unwanted items and their respective prices.
データ演算: サーバは不要な商品の合計金額を計算し、さらに不要な商品を摂取しなかった場合の推定体重減少量を計算する。ここで使用するモデルは、消費カロリーと体重減少の関係を基にしたシミュレーションモデルである。 Data calculation: The server calculates the total price of the unnecessary products and also calculates the estimated weight loss if the unnecessary products were not consumed. The model used here is a simulation model based on the relationship between calories consumed and weight loss.
出力: 節約金額(例:500円)と推定体重減少量(例:0.5kg)。 Output: Amount saved (e.g., 500 yen) and estimated weight loss (e.g., 0.5 kg).
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化し、ユーザに表示する。 The server visualizes the calculation results in graphs and charts and displays them to the user.
入力: 節約金額と推定体重減少量。 Enter: Amount saved and estimated weight loss.
データ加工: サーバはD3.jsやChart.jsなどのデータビジュアライゼーションライブラリを用いて、計算結果をグラフやチャートで可視化する。 Data processing: The server uses data visualization libraries such as D3.js and Chart.js to visualize the calculation results in graphs and charts.
出力: ユーザの端末に表示されるグラフやチャート。 Output: Graphs and charts displayed on the user's device.
(応用例3) (Application Example 3)
次に、形態例3の応用例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, we will explain Application Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を同時に達成することが難しいと感じている。特に、ダイエット目標を持つ消費者は、購入した商品の中から不要な商品を見つけ出し、それを避けることで健康と経済的な利益を得ることが求められている。しかし、これを手動で行うのは手間がかかり、正確性にも欠ける。したがって、消費者が簡単に不要な商品を特定し、節約と健康管理を効率的に行うためのシステムが必要である Today's consumers find it difficult to simultaneously manage their health and save money. In particular, consumers with dietary goals need to identify and avoid unnecessary products from their purchases in order to achieve health and financial benefits. However, doing this manually is time-consuming and inaccurate. Therefore, a system is needed that allows consumers to easily identify unnecessary products and efficiently manage their savings and health.
応用例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、レシートの情報を解析し、ダイエット目標に基づいて不要な商品を自動的に検出する手段と、不要商品を買わなかった場合の節約できる金額と推定体重減少量を計算し、グラフやチャートで表示する手段と、スマートフォンにインストールされるアプリケーションを含む。これにより、消費者は簡単に不要な商品を特定し、節約と健康管理を効率的に行うことが可能となる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for analyzing receipt information and automatically detecting unnecessary items based on diet goals, means for calculating the amount of money saved and estimated weight loss if the unnecessary items are not purchased and displaying them in graphs and charts, and an application installed on a smartphone. This allows consumers to easily identify unnecessary items and efficiently save money and manage their health.
「顧客」とは、システムを利用する消費者を指す。 "Customer" refers to consumers who use the system.
「身長体重」とは、顧客の身体的な高さと体重を示すデータである。 "Height and Weight" is data indicating the customer's physical height and weight.
「目標」とは、顧客が達成したい健康やダイエットに関する具体的な目的を指す。 "Goals" refer to the specific health or diet objectives that the customer wants to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を示す紙または電子データである。 A "purchase receipt" is paper or electronic data showing the purchase details of a product that a customer receives when making a purchase.
「不要な商品」とは、顧客の目標に対して不適切または不要と判断される商品を指す。 "Unwanted products" refer to products that are deemed inappropriate or unnecessary for the customer's goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss predicted if the unnecessary product is not consumed.
「レシートの情報」とは、購入レシートに記載されている商品の名称、価格、数量などのデータを指す。 "Receipt information" refers to data such as the product name, price, and quantity listed on the purchase receipt.
「ダイエット目標」とは、顧客が設定した体重減少や特定の栄養制限などの健康に関する目標を指す。 "Diet Goals" refers to health goals set by a customer, such as weight loss or specific nutritional restrictions.
「自動的に検出する」とは、システムがプログラムに基づいて人の介入なしに不要な商品を特定することを指す。 "Automatically detect" means that the system identifies unwanted products programmatically without human intervention.
「グラフやチャート」とは、データを視覚的に表示するための図表を指す。 "Graphs and charts" refer to diagrams used to visually display data.
「スマートフォンにインストールされるアプリケーション」とは、スマートフォン上で動作するソフトウェアプログラムを指す。 "Applications installed on smartphones" refers to software programs that run on smartphones.
この発明は、消費者が健康管理と節約を効率的に行うためのシステムである。以下に、このシステムを実施するための具体的な形態を説明する。 This invention is a system that allows consumers to efficiently manage their health and save money. Specific embodiments for implementing this system are described below.
システムの構成 System Configuration
システムは、以下の主要なコンポーネントから構成される: The system consists of the following main components:
1. ユーザー端末:スマートフォンなどの携帯端末。 1. User device: A mobile device such as a smartphone.
2. サーバ:データ処理と解析を行う中央サーバ。 2. Server: A central server that processes and analyzes data.
3. アプリケーション:スマートフォンにインストールされる専用アプリケーション。 3. Application: A dedicated application installed on a smartphone.
プログラムの処理 Program processing
ユーザー端末 User device
ユーザー端末は、以下の機能を持つ: The user device has the following functions:
ユーザー情報入力:ユーザーはアプリケーションを通じて、自身の身長、体重、ダイエット目標を入力する。 User information input: Users enter their height, weight, and diet goals through the application.
レシートスキャン:ユーザーが購入した商品のレシートをスマートフォンのカメラでスキャンし、画像データとして取得する。 Receipt scanning: The user scans the receipt for the item they purchased with their smartphone camera and obtains the image data.
サーバ Server
サーバは、以下の処理を行う: The server performs the following process:
レシート情報の解析:取得したレシート画像をOCR(光学文字認識)技術を用いてテキストデータに変換する。この処理には、pytesseractライブラリを使用する。 Analyzing receipt information: The acquired receipt image is converted into text data using OCR (optical character recognition) technology. This process uses the pytesseract library.
不要商品の検出:ユーザーのダイエット目標に基づいて、レシートのテキストデータから不要な商品を自動的に検出する。例えば、糖質制限を目標とするユーザーの場合、「パン」や「お菓子」などの高糖質商品を検出する。 Detection of unnecessary products: Automatically detect unnecessary products from receipt text data based on the user's diet goals. For example, for a user aiming to limit carbohydrate intake, high-carbohydrate products such as "bread" and "sweets" will be detected.
節約金額と体重減少量の計算:検出された不要商品の合計金額と、その商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、1kgの体重減少に必要なカロリー(約7700kcal)を基準とする。 Calculation of savings and weight loss: Calculates the total cost of the detected unnecessary products and the estimated weight loss if you did not consume those products. Weight loss is calculated based on the calories required to lose 1 kg of weight (approximately 7700 kcal).
アプリケーション application
アプリケーションは、以下の機能を持つ: The application has the following features:
結果の可視化:計算された節約金額と推定体重減少量をグラフやチャートで表示する。これにより、ユーザーは自身の健康管理と節約の効果を視覚的に確認できる。 Visualization of results: Calculated savings and estimated weight loss are displayed in graphs and charts, allowing users to visually see the effects of their health management and savings.
具体例 Specific examples
例えば、ユーザーが「糖質制限」を目標として設定し、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が不要商品として検出される。検出された不要商品の合計金額が500円で、推定体重減少量が0.2kgであるとする。 For example, if a user sets a goal of "restricting carbohydrates" and the receipt includes "bread" and "sweets," these items will be detected as unnecessary products. Suppose the total amount of the detected unnecessary products is 500 yen, and the estimated weight loss is 0.2 kg.
プロンプト文の例 Example prompt
ユーザー情報を入力してください: Please enter your user information:
身長:170 cm
体重:70 kg
ダイエット目標:糖質制限
Height: 170 cm
Weight: 70 kg
Diet goal: Carbohydrate restriction
レシートをスキャンしてください: Scan your receipt:
(レシート画像をアップロード) (Upload receipt image)
不要商品を検出しています... Unwanted items detected...
検出された不要商品: Unwanted items detected:
パン:200円 Bread: 200 yen
お菓子:300円 Sweets: 300 yen
節約金額:500円 Savings: ¥500
推定体重減少量:0.2kg Estimated weight loss: 0.2kg
結果をグラフで表示します。 The results are displayed in a graph.
このようにして、ユーザーは簡単に不要な商品を特定し、節約と健康管理を効率的に行うことができる。 In this way, users can easily identify unnecessary products and efficiently save money and manage their health.
応用例3における特定処理の流れについて図16を用いて説明する。 The flow of the specific processing in Application Example 3 will be explained using Figure 16.
ステップ1: Step 1:
ユーザがスマートフォンのアプリケーションを起動し、自身の身長、体重、ダイエット目標を入力する。 The user launches the smartphone application and enters their height, weight, and diet goals.
入力:ユーザの身長、体重、ダイエット目標 Input: User's height, weight, and diet goal
出力:ユーザ情報データ Output: User information data
具体的な動作:ユーザはアプリケーションの入力フォームに身長、体重、ダイエット目標(例:糖質制限)を入力し、送信ボタンを押す。これにより、ユーザ情報データが生成され、サーバに送信される。 Specific operation: The user enters their height, weight, and diet goal (e.g., carbohydrate restriction) into the application's input form and presses the submit button. This generates user information data and sends it to the server.
ステップ2: Step 2:
ユーザが買い物後に購入した商品のレシートをスマートフォンのカメラでスキャンする。 After shopping, the user scans the receipt for the purchased items using their smartphone camera.
入力:レシート画像 Input: Receipt image
出力:レシート画像データ Output: Receipt image data
具体的な動作:ユーザはアプリケーション内のカメラ機能を使用して、購入レシートを撮影する。撮影されたレシート画像はアプリケーション内に保存され、サーバに送信される。 Specific operation: The user uses the application's camera function to take a photo of the purchase receipt. The captured receipt image is saved within the application and sent to the server.
ステップ3: Step 3:
サーバがレシート画像を受信し、OCR技術を用いてテキストデータに変換する。 The server receives the receipt image and converts it into text data using OCR technology.
入力:レシート画像データ Input: Receipt image data
出力:レシートテキストデータ Output: Receipt text data
具体的な動作:サーバはpytesseractライブラリを使用して、受信したレシート画像データからテキストを抽出する。抽出されたテキストデータはレシートテキストデータとして保存される。 Specific operation: The server uses the pytesseract library to extract text from the received receipt image data. The extracted text data is saved as receipt text data.
ステップ4: Step 4:
サーバがユーザのダイエット目標に基づいて、レシートテキストデータから不要な商品を自動的に検出する。 The server automatically detects unnecessary items from receipt text data based on the user's diet goals.
入力:ユーザ情報データ、レシートテキストデータ Input: User information data, receipt text data
出力:不要商品リスト Output: List of unwanted items
具体的な動作:サーバはユーザのダイエット目標(例:糖質制限)に基づいて、レシートテキストデータを解析する。特定のキーワード(例:「パン」、「お菓子」)を含む商品を不要商品としてリストアップする。 Specific operation: The server analyzes receipt text data based on the user's diet goal (e.g., carbohydrate restriction). Products containing specific keywords (e.g., "bread," "sweets") are listed as unwanted items.
ステップ5: Step 5:
サーバが不要商品を買わなかった場合の節約できる金額と推定体重減少量を計算する。 The server calculates the amount of money you could save and the estimated weight loss if you didn't buy unnecessary items.
入力:不要商品リスト Input: List of unwanted items
出力:節約金額、推定体重減少量 Output: Money saved, estimated weight loss
具体的な動作:サーバは不要商品リストに基づいて、各商品の価格を合計し、節約金額を計算する。また、各商品のカロリー情報を基に、推定体重減少量を計算する。体重減少量の計算には、1kgの体重減少に必要なカロリー(約7700kcal)を基準とする。 Specific operation: The server calculates the savings amount by adding up the prices of each item based on the list of unwanted items. It also calculates the estimated weight loss amount based on the calorie information of each item. The weight loss amount is calculated based on the calories required to lose 1 kg (approximately 7700 kcal).
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化し、ユーザのスマートフォンに表示する。 The server visualizes the calculation results in graphs and charts and displays them on the user's smartphone.
入力:節約金額、推定体重減少量 Input: Amount saved, estimated weight loss
出力:グラフやチャートの画像データ Output: Image data for graphs and charts
具体的な動作:サーバは計算結果を基に、節約金額と推定体重減少量をグラフやチャートとして生成する。生成されたグラフやチャートの画像データはユーザのスマートフォンに送信され、アプリケーション内で表示される。 Specific operation: Based on the calculation results, the server generates graphs and charts showing the amount of savings and estimated weight loss. Image data of the generated graphs and charts is sent to the user's smartphone and displayed within the application.
このようにして、ユーザは簡単に不要な商品を特定し、節約と健康管理を効率的に行うことができる。 In this way, users can easily identify unnecessary products and efficiently save money and manage their health.
なお、更に、ユーザの感情を推定する感情エンジンを組み合わせてもよい。すなわち、特定処理部290は、感情特定モデル59を用いてユーザの感情を推定し、ユーザの感情を用いた特定処理を行うようにしてもよい。 It is also possible to further combine an emotion engine that estimates the user's emotion. That is, the identification processing unit 290 may estimate the user's emotion using the emotion identification model 59 and perform identification processing using the user's emotion.
「形態例1」 "Example 1"
本発明の一実施形態として、感情エンジンを組み合わせたシステムが提供される。このシステムは、ユーザの感情を認識し、その感情に基づいて不要な商品を判断する。具体的には、ユーザがストレスを感じているときには、甘いお菓子などの不健康な食品を不要な商品として検出する。また、ユーザがリラックスしているときには、健康的な食品を推奨する。 One embodiment of the present invention provides a system that incorporates an emotion engine. This system recognizes the user's emotions and determines which products are unnecessary based on those emotions. Specifically, when the user is feeling stressed, it detects unhealthy foods such as sweets as unnecessary products. When the user is relaxed, it recommends healthy foods.
「形態例2」 "Example 2"
さらに、感情エンジンは、ユーザの感情に基づいて節約できるお金と減る体重をグラフィカルに表示する。具体的には、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を表示する。これにより、ユーザは自身の感情と健康管理、節約の関係を視覚的に理解することができる。 Furthermore, the emotion engine graphically displays the money saved and weight lost based on the user's emotions. Specifically, it displays the amount of money saved and the amount of weight lost if the user refrains from purchasing unnecessary products when feeling stressed. This allows users to visually understand the relationship between their emotions, health management, and saving money.
「形態例3」 "Example 3"
具体例として、ユーザがストレスを感じているときにチョコレートを購入した場合、感情エンジンはチョコレートを不要な商品として検出する。そして、チョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。これにより、ユーザはストレスを感じているときに不健康な食品を購入する傾向があることを認識し、その結果としての金銭的、健康的な影響を理解することができる。 For example, if a user buys chocolate when feeling stressed, the emotion engine will detect the chocolate as an unnecessary item and display a graph of the amount of money saved and weight loss they would have experienced if they had not bought the chocolate. This helps users recognize their tendency to buy unhealthy foods when they are stressed and understand the resulting financial and health impacts.
以下に、各形態例の処理の流れについて説明する。 The processing flow for each example form is explained below.
「形態例1」 "Example 1"
ステップ1:ユーザがシステムに自身の現在の身長と体重、目標を入力する。 Step 1: The user enters their current height, weight, and goal into the system.
ステップ2:ユーザがショッピングを行い、レシートをシステムに提出する。 Step 2: The user makes a purchase and submits the receipt to the system.
ステップ3:感情エンジンがユーザの感情を認識する。 Step 3: The emotion engine recognizes the user's emotions.
ステップ4:感情エンジンがユーザの感情に基づいて不要な商品を判断し、その結果をユーザに通知する。 Step 4: The emotion engine determines which products are unnecessary based on the user's emotions and notifies the user of the results.
「形態例2」 "Example 2"
ステップ1:ユーザがシステムに自身の現在の身長と体重、目標を入力する。 Step 1: The user enters their current height, weight, and goal into the system.
ステップ2:ユーザがショッピングを行い、レシートをシステムに提出する。 Step 2: The user makes a purchase and submits the receipt to the system.
ステップ3:感情エンジンがユーザの感情を認識する。 Step 3: The emotion engine recognizes the user's emotions.
ステップ4:感情エンジンがユーザの感情に基づいて節約できるお金と減る体重をグラフィカルに表示する。 Step 4: The emotion engine graphically displays the money saved and weight lost based on the user's emotions.
「形態例3」 "Example 3"
ステップ1:ユーザがストレスを感じているときにチョコレートを購入する。 Step 1: Buy chocolate when the user is feeling stressed.
ステップ2:感情エンジンがユーザの感情を認識し、チョコレートを不要な商品として検出する。 Step 2: The emotion engine recognizes the user's emotions and detects chocolate as an unwanted item.
ステップ3:感情エンジンがチョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。 Step 3: The emotion engine displays a graph of the amount of money saved and weight loss you would have experienced if you had not bought the chocolate.
(実施例1) (Example 1)
次に、形態例1の実施例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, Example 1 of Form Example 1 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
従来のシステムでは、顧客が自身の身長体重と目標を記入する手段や、買い物後に購入レシートを提出する手段は提供されていたが、顧客の感情に基づいて不要な商品を判断し、健康的な商品を推奨する機能が欠けていた。そのため、顧客がストレスを感じている場合やリラックスしている場合に適切な商品を選択することが難しかった。また、不要商品を買わなかった場合の節約できるお金や減る体重を可視化する手段も不十分であった。これにより、顧客の健康管理や節約意識を高めることが困難であった The previous system allowed customers to enter their height, weight, and goals, and to submit receipts after shopping, but it lacked the ability to identify unnecessary products based on the customer's emotions and recommend healthy products. This made it difficult for customers to select appropriate products when they were stressed or relaxed. It also lacked a way to visualize the money saved and weight lost by not purchasing unnecessary items. This made it difficult to raise customers' awareness of health management and saving money.
実施例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 1 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を認識し、その感情に基づいて不要な商品を判断する手段と、顧客の感情に基づいて健康的な商品を推奨する手段と、を含む。これにより、顧客の感情状態に応じた適切な商品選択が可能となり、健康管理や節約意識を高めることができる。 In this invention, the server includes means for the customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if the unnecessary items are not purchased, means for recognizing the customer's emotions and determining unnecessary items based on those emotions, and means for recommending healthy products based on the customer's emotions. This enables the customer to select appropriate products according to their emotional state, thereby increasing their awareness of health management and saving money.
「顧客」とは、システムを利用して自身の身長体重やダイエット目標を入力し、買い物後に購入レシートを提出する個人を指す。 "Customer" refers to an individual who uses the system to enter their height, weight, and diet goals, and then submits a purchase receipt after shopping.
「身長体重」とは、顧客の現在の身体の高さと体重を指す。 "Height and Weight" refers to the customer's current height and weight.
「目標」とは、顧客が達成したいと考えるダイエットや健康に関する具体的な数値や状態を指す。 "Goals" refer to specific numerical values or conditions related to dieting or health that a customer wishes to achieve.
「入力手段」とは、顧客が自身の身長体重や目標をシステムに入力するためのインターフェースを指す。 "Input means" refers to the interface that allows customers to input their height, weight, and goals into the system.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を記載した紙または電子データを指す。 "Purchase receipt" refers to the paper or electronic data containing the purchase details of a product that a customer receives when making a purchase.
「提出手段」とは、顧客が購入レシートをシステムに送信するためのインターフェースを指す。 "Submission means" refers to the interface through which customers submit purchase receipts to the system.
「添削手段」とは、システムが顧客の入力データや感情データに基づいて不要な商品を判断し、顧客に通知する機能を指す。 "Correction method" refers to the function by which the system determines unnecessary products based on customer input data and emotional data and notifies the customer.
「可視化手段」とは、システムが不要商品を買わなかった場合の節約できるお金や減る体重をグラフィカルに表示する機能を指す。 "Visualization means" refers to the system's ability to graphically display the money saved and weight lost if unnecessary items are not purchased.
「感情認識手段」とは、システムが顧客の感情を分析し、その感情に基づいて不要な商品を判断する機能を指す。 "Emotion recognition means" refers to the system's ability to analyze customer emotions and determine which products are unnecessary based on those emotions.
「健康的な商品推奨手段」とは、システムが顧客の感情に基づいて健康的な商品を推奨する機能を指す。 "Healthy product recommendation means" refers to the system's ability to recommend healthy products based on customer sentiment.
この発明は、顧客が自身の身長体重と目標を記入するための専用の入力フォームを提供するシステムである。このシステムは、ウェブサイトやスマートフォンアプリケーション上に設けられ、顧客が自身の身長、体重、ダイエット目標等を直接入力できるようになっている。また、感情エンジンを組み合わせることで、顧客の感情に基づいて不要な商品を判断し、健康的な商品を推奨する機能を持つ。 This invention is a system that provides a dedicated input form for customers to enter their height, weight, and diet goals. The system is set up on a website or smartphone application, and allows customers to directly input their height, weight, diet goals, etc. In addition, by combining it with an emotion engine, it has the function of determining unnecessary products based on the customer's emotions and recommending healthy products.
サーバは、ウェブサイトやスマートフォンアプリケーション上に入力フォームを設置する。この入力フォームは、HTMLとCSSを用いて作成され、JavaScriptを用いて入力データをリアルタイムで検証する。ユーザが入力フォームにデータを入力すると、サーバはそのデータを受信し、データベース(例えば、MySQLやPostgreSQL)に保存する。 The server places an input form on a website or smartphone application. This input form is created using HTML and CSS, and JavaScript is used to validate the input data in real time. When a user enters data into the input form, the server receives the data and stores it in a database (for example, MySQL or PostgreSQL).
次に、サーバは感情エンジン(例えば、Microsoft AzureのEmotion APIやGoogle CloudのNatural Language API)を使用して、ユーザの感情を分析する。感情エンジンは、ユーザの入力データや過去の行動データを基に、ユーザが現在感じている感情を認識する。例えば、ユーザがストレスを感じている場合、サーバはその情報を基に、甘いお菓子などの不健康な食品を不要な商品として判断する。一方、ユーザがリラックスしている場合、サーバは健康的な食品を推奨する。 Next, the server uses an emotion engine (for example, Microsoft Azure's Emotion API or Google Cloud's Natural Language API) to analyze the user's emotions. The emotion engine recognizes the user's current emotions based on the user's input data and past behavioral data. For example, if the user is feeling stressed, the server will use that information to determine that unhealthy foods such as sweets are unnecessary. On the other hand, if the user is relaxed, the server will recommend healthy foods.
具体例として、ユーザがスマートフォンアプリケーションを使用して、身長170cm、体重70kg、ダイエット目標を「5kg減量」と入力したとする。このデータはサーバに送信され、データベースに保存される。その後、感情エンジンがユーザの感情を分析し、ユーザがストレスを感じていると判断した場合、サーバは「チョコレートやクッキーなどの甘いお菓子は避けましょう」といったメッセージを表示する。 As a concrete example, suppose a user uses a smartphone application to enter their height as 170cm, weight as 70kg, and diet goal as "lose 5kg." This data is sent to the server and stored in a database. The emotion engine then analyzes the user's emotions, and if it determines that the user is feeling stressed, the server displays a message such as "Avoid sweet snacks such as chocolate and cookies."
生成AIモデルへ入力するプロンプト文の例: Example of a prompt to input to a generative AI model:
ユーザが身長170cm、体重70kg、ダイエット目標を「5kg減量」と入力しました。感情エンジンがユーザの感情を分析した結果、ユーザがストレスを感じていると判断しました。この場合、どのような商品を不要と判断し、どのような商品を推奨しますか? A user enters their height as 170cm, weight as 70kg, and their diet goal as "lose 5kg." The emotion engine analyzes the user's emotions and determines that the user is feeling stressed. In this case, what products would be deemed unnecessary and what products would be recommended?
このプロンプト文を生成AIモデルに入力することで、具体的な商品推奨や不要商品の判断を得ることができる。このようにして、システムはユーザの入力データと感情データを基に、適切な商品推奨を行うことができる。 By inputting this prompt into a generative AI model, specific product recommendations and a determination of unnecessary products can be obtained. In this way, the system can make appropriate product recommendations based on the user's input data and emotional data.
実施例1における特定処理の流れについて図17を用いて説明する。 The flow of the identification process in Example 1 will be explained using Figure 17.
ステップ1: Step 1:
ユーザが入力フォームにアクセスする。 The user accesses the input form.
ユーザはウェブサイトまたはスマートフォンアプリケーションを開く。端末は、ブラウザやアプリケーションを通じてサーバにリクエストを送り、入力フォームを取得する。サーバは、HTMLとCSSを用いて入力フォームを生成し、端末に送信する。端末は、受信したHTMLとCSSをレンダリングし、ユーザに入力フォームを表示する。 A user opens a website or smartphone application. The device sends a request to the server through the browser or application to retrieve an input form. The server generates the input form using HTML and CSS and sends it to the device. The device renders the received HTML and CSS and displays the input form to the user.
入力:ユーザのアクセスリクエスト Input: User access request
出力:入力フォームの表示 Output: Display input form
ステップ2: Step 2:
ユーザが身長、体重、ダイエット目標を入力する。 Users enter their height, weight, and diet goals.
ユーザは、表示された入力フォームに自身の身長、体重、ダイエット目標を入力する。端末は、JavaScriptを用いて入力データの形式をリアルタイムで検証し、エラーがないことを確認する。 The user enters their height, weight, and diet goals into the displayed input form. The device uses JavaScript to validate the format of the input data in real time to ensure there are no errors.
入力:ユーザの身長、体重、ダイエット目標 Input: User's height, weight, and diet goal
出力:検証済みの入力データ Output: Validated input data
ステップ3: Step 3:
サーバが入力データを受信し、データベースに保存する。 The server receives the input data and stores it in the database.
ユーザが送信ボタンを押すと、端末は入力データをJSON形式でサーバに送信する。サーバは、受信したデータを解析し、MySQLデータベースに保存する。具体的には、INSERT文を用いてデータベースにデータを追加する。 When the user presses the send button, the device sends the input data in JSON format to the server. The server parses the received data and saves it in a MySQL database. Specifically, it adds the data to the database using the INSERT statement.
入力:JSON形式の入力データ Input: JSON format input data
出力:データベースに保存されたデータ Output: Data stored in the database
ステップ4: Step 4:
サーバが感情エンジンを呼び出し、ユーザの感情を分析する。 The server calls the emotion engine and analyzes the user's emotions.
サーバは、保存されたデータを基に感情エンジン(例えば、Microsoft AzureのEmotion APIやGoogle CloudのNatural Language API)を呼び出す。APIにデータを送信し、ユーザの感情を分析する。APIは、ユーザがストレスを感じていると判断し、その結果をサーバに返す。 The server calls an emotion engine (for example, Microsoft Azure's Emotion API or Google Cloud's Natural Language API) based on the stored data. The data is sent to the API, which analyzes the user's emotions. The API determines that the user is feeling stressed and returns the result to the server.
入力:データベースに保存されたデータ Input: Data stored in the database
出力:感情エンジンからの感情分析結果 Output: Sentiment analysis results from the emotion engine
ステップ5: Step 5:
サーバが感情に基づいて不要な商品を判断し、推奨商品を決定する。 The server determines which products are unnecessary based on emotions and decides which products to recommend.
サーバは、感情エンジンから得られた感情データを基に、不要な商品と推奨商品を判断する。例えば、ユーザがストレスを感じている場合、サーバは「チョコレートやクッキーなどの甘いお菓子は避けましょう」と判断し、「フルーツやナッツなどの健康的な食品を推奨します」と決定する。 The server determines which products are unnecessary and which are recommended based on emotional data obtained from the emotion engine. For example, if the user is feeling stressed, the server will determine that "sweets such as chocolate and cookies should be avoided" and decide to "recommend healthy foods such as fruits and nuts."
入力:感情エンジンからの感情分析結果 Input: Sentiment analysis results from the emotion engine
出力:不要商品と推奨商品のリスト Output: List of unwanted and recommended products
ステップ6: Step 6:
サーバが結果をユーザに表示する。 The server displays the results to the user.
サーバは、判断結果をユーザに表示するためのHTMLを生成し、端末に送信する。端末は、受信したHTMLをレンダリングし、ユーザに不要な商品と推奨商品を表示する。ユーザは、表示された結果を確認し、次の行動を決定する。 The server generates HTML to display the results of the judgment to the user and sends it to the device. The device renders the received HTML and displays unwanted products and recommended products to the user. The user checks the displayed results and decides on their next course of action.
入力:不要商品と推奨商品のリスト Input: List of unwanted and recommended products
出力:ユーザに表示された結果 Output: The result displayed to the user
(応用例1) (Application Example 1)
次に、形態例1の応用例1について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, we will explain Application Example 1 of Form Example 1. In the following explanation, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
従来のフードデリバリーシステムでは、ユーザの健康状態や感情に基づいた食品の推薦が行われておらず、ユーザがストレスを感じているときに不健康な食品を選んでしまう可能性がある。また、ユーザが自身のダイエット目標に沿った食品を選ぶためのサポートが不足しているため、効果的なダイエットが難しいという問題がある Traditional food delivery systems don't recommend foods based on the user's health status or emotions, which can lead to users choosing unhealthy foods when they're stressed. Furthermore, there's a lack of support for users to choose foods that align with their diet goals, making it difficult to diet effectively.
応用例1におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を認識し、その感情に基づいて不要な商品を判断する手段と、を含む。これにより、ユーザの健康状態や感情に基づいた食品の推薦が可能となり、ユーザがストレスを感じているときに不健康な食品を避け、ダイエット目標に沿った食品を選ぶことができるようになる。 The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 1 is realized by the following means. In this invention, the server includes a means for the customer to enter their current height and weight and goals, a means for the customer to submit a purchase receipt after shopping, a means for correcting items determined to be unnecessary in this purchase, a means for visualizing the money saved and weight lost if the unnecessary items are not purchased, and a means for recognizing the customer's emotions and determining unnecessary items based on those emotions. This makes it possible to recommend foods based on the user's health condition and emotions, allowing the user to avoid unhealthy foods when feeling stressed and to choose foods that are in line with their diet goals.
「顧客」とは、サービスや商品を利用する消費者を指す。 "Customer" refers to a consumer who uses a service or product.
「身長体重」とは、個人の身体の高さと体重を示す数値である。 "Height and weight" are numbers that indicate an individual's physical height and weight.
「目標」とは、顧客が達成したいと考える具体的な目的や状態を指す。 "Goal" refers to the specific objective or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される取引の記録を示す紙または電子データである。 A "purchase receipt" is a paper or electronic record of a transaction issued when a customer purchases a product.
「不要な商品」とは、顧客の健康状態や目標に対して不適切と判断される商品を指す。 "Unnecessary products" refer to products that are deemed inappropriate for the customer's health condition or goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、顧客が不要な商品を避けることで達成できる体重の減少を示す数値である。 "Weight Loss" is a numerical value that represents the weight loss a customer can achieve by avoiding unnecessary products.
「感情を認識する手段」とは、顧客の感情状態を検出し、それに基づいて判断を行うための技術や装置を指す。 "Means for recognizing emotions" refers to technologies or devices that detect a customer's emotional state and make decisions based on that.
「可視化する手段」とは、節約できるお金や減る体重を視覚的に表示するための技術や装置を指す。 "Visualization means" refers to technology or devices that visually display the money saved or weight lost.
この発明を実施するためのシステムは、以下のように構成される。まず、ユーザが自身の身長、体重、ダイエット目標を入力するための専用フォームを提供する。このフォームは、ウェブサイトやスマートフォンアプリケーション上に設けられ、ユーザが簡単に入力できるようになっている。 A system for implementing this invention is configured as follows: First, a dedicated form is provided for users to enter their height, weight, and diet goals. This form is provided on a website or smartphone application, allowing users to easily enter information.
次に、感情エンジンを組み合わせたシステムが提供される。このシステムは、ユーザの感情をリアルタイムで認識し、その感情に基づいて不要な商品を判断する。具体的には、ユーザがストレスを感じているときには、甘いお菓子などの不健康な食品を不要な商品として検出し、リラックスしているときには、健康的な食品を推奨する。 Next, we present a system that combines an emotion engine. This system recognizes the user's emotions in real time and determines which products are unnecessary based on those emotions. Specifically, when the user is feeling stressed, it detects unhealthy foods such as sweets as unnecessary products, and when the user is relaxed, it recommends healthy foods.
このシステムの実現には、以下のハードウェアおよびソフトウェアが使用される。 The following hardware and software are used to implement this system:
ハードウェア: スマートフォン、タブレット、またはPC Hardware: Smartphone, tablet, or PC
ソフトウェア: Python、EmotionRecognizerライブラリ、FoodRecommenderライブラリ Software: Python, EmotionRecognizer library, FoodRecommender library
サーバは、ユーザが入力した身長、体重、ダイエット目標のデータを受け取り、EmotionRecognizerライブラリを使用してユーザの感情をリアルタイムで認識する。次に、FoodRecommenderライブラリを使用して、ユーザの入力データと認識された感情に基づいて適切な食品を推薦する。 The server receives the user's input data such as height, weight, and diet goal, and uses the EmotionRecognizer library to recognize the user's emotions in real time. It then uses the FoodRecommender library to recommend appropriate foods based on the user's input data and the recognized emotions.
例えば、ユーザが身長170cm、体重65kg、ダイエット目標が「体重を減らす」と入力し、感情エンジンがユーザがストレスを感じていると認識した場合、システムは不健康な食品(例えば、甘いお菓子)を避け、代わりに健康的な食品(例えば、サラダやフルーツ)を推薦する。 For example, if a user enters their height as 170cm, weight as 65kg, and diet goal as "lose weight," and the emotion engine recognizes that the user is feeling stressed, the system will avoid unhealthy foods (e.g., sweet snacks) and instead recommend healthy foods (e.g., salads and fruit).
プロンプト文の例としては、以下のようなものがある。 Examples of prompt statements include:
「ユーザが身長170cm、体重65kg、ダイエット目標が『体重を減らす』と入力し、感情エンジンがユーザがストレスを感じていると認識した場合、どのような食品を推薦しますか?」 "If a user is 170cm tall, weighs 65kg, and their diet goal is to lose weight, and the emotion engine determines that the user is feeling stressed, what foods would you recommend?"
このようにして、ユーザの健康状態や感情に基づいた食品の推薦が可能となり、ユーザがストレスを感じているときに不健康な食品を避け、ダイエット目標に沿った食品を選ぶことができるようになる。 In this way, food recommendations can be made based on the user's health status and emotions, helping users avoid unhealthy foods when they are stressed and choosing foods that align with their diet goals.
応用例1における特定処理の流れについて図18を用いて説明する。 The flow of the specific processing in Application Example 1 is explained using Figure 18.
ステップ1: Step 1:
ユーザが端末を使用して、身長、体重、ダイエット目標を入力する。入力されたデータは、サーバに送信される。入力データには、ユーザの身長(例:170cm)、体重(例:65kg)、ダイエット目標(例:「体重を減らす」)が含まれる。 The user uses the terminal to input their height, weight, and diet goal. The input data is sent to the server. The input data includes the user's height (e.g., 170 cm), weight (e.g., 65 kg), and diet goal (e.g., "lose weight").
ステップ2: Step 2:
サーバは、受信したユーザの入力データを保存し、EmotionRecognizerライブラリを使用してユーザの感情をリアルタイムで認識する。感情認識のために、ユーザの表情や音声データが入力として使用される。出力として、ユーザの感情状態(例:ストレス、リラックス)が得られる。 The server stores the received user input data and uses the EmotionRecognizer library to recognize the user's emotions in real time. For emotion recognition, the user's facial expressions and voice data are used as input. The output is the user's emotional state (e.g., stressed, relaxed).
ステップ3: Step 3:
サーバは、認識された感情状態とユーザの入力データを基に、FoodRecommenderライブラリを使用して適切な食品を推薦する。入力データには、ユーザの身長、体重、ダイエット目標、および感情状態が含まれる。出力として、推薦される食品のリスト(例:サラダ、フルーツ)が得られる。 The server uses the FoodRecommender library to recommend appropriate foods based on the recognized emotional state and user input data. Input data includes the user's height, weight, diet goals, and emotional state. The output is a list of recommended foods (e.g., salads, fruits).
ステップ4: Step 4:
サーバは、推薦された食品のリストをユーザの端末に送信する。ユーザは、端末上で推薦された食品のリストを確認することができる。具体的な動作として、ユーザがストレスを感じている場合には不健康な食品を避け、健康的な食品を推薦する。 The server sends a list of recommended foods to the user's device, where the user can check the list of recommended foods on their device. Specifically, if the user is feeling stressed, unhealthy foods will be avoided and healthy foods will be recommended.
ステップ5: Step 5:
ユーザが買い物を行い、購入レシートを端末を使用してサーバに提出する。サーバは、提出されたレシートデータを解析し、購入された商品のリストを生成する。入力データには、レシートの画像または電子データが含まれる。出力として、購入された商品のリストが得られる。 A user makes a purchase and submits the purchase receipt to the server using a terminal. The server analyzes the submitted receipt data and generates a list of the purchased items. Input data includes receipt images or electronic data. The output is a list of the purchased items.
ステップ6: Step 6:
サーバは、購入された商品のリストとユーザのダイエット目標および感情状態を比較し、不要な商品を判断する。具体的な動作として、ユーザの目標に対して不適切な商品(例:甘いお菓子)を検出する。入力データには、購入された商品のリスト、ユーザのダイエット目標、および感情状態が含まれる。出力として、不要な商品のリストが得られる。 The server compares the list of purchased items with the user's diet goals and emotional state to determine which items are unnecessary. Specific operations include detecting items that are inappropriate for the user's goals (e.g., sweet snacks). Input data includes the list of purchased items, the user's diet goals, and their emotional state. The output is a list of unnecessary items.
ステップ7: Step 7:
サーバは、不要な商品を購入しなかった場合に節約できるお金と減る体重を計算し、可視化する。具体的な動作として、節約できる金額と減少した体重をグラフィカルに表示する。入力データには、不要な商品のリストが含まれる。出力として、節約できる金額と減少した体重のグラフィカル表示が得られる。 The server calculates and visualizes the money saved and weight lost if unnecessary items are not purchased. Specific operations include graphically displaying the amount saved and weight lost. The input data includes a list of unnecessary items. The output is a graphical representation of the amount saved and weight lost.
ステップ8: Step 8:
サーバは、可視化されたデータをユーザの端末に送信する。ユーザは、端末上で節約できる金額と減少した体重を確認することができる。具体的な動作として、ユーザが不要な商品を避けることで得られるメリットを視覚的に理解することができる。 The server sends the visualized data to the user's device, where the user can check the amount of money saved and the weight lost on the device. Specifically, the user can visually understand the benefits they can gain by avoiding unnecessary products.
(実施例2) (Example 2)
次に、形態例2の実施例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, Example 2 of Form Example 2 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
従来の健康管理システムでは、顧客が買い物後に購入証明書を提出する際に、物理的な証明書を直接提出する必要があり、手間がかかるという問題があった。また、顧客の感情状態を考慮した節約金額や体重減少量の可視化が行われておらず、顧客が自身の感情と健康管理、節約の関係を理解するのが難しいという課題があった。 With conventional health management systems, customers had to submit physical proof of purchase after shopping, which was time-consuming. Furthermore, the amount of savings and weight loss were not visualized taking into account the customer's emotional state, making it difficult for customers to understand the relationship between their emotions, health management, and savings.
実施例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身体情報と目標を記入する手段と、顧客が買い物後に購入証明書を提出する手段と、顧客が携帯端末の撮影機能を用いて購入証明書の画像を取得し、アプリケーションにアップロードする手段と、サーバが画像処理技術を用いて購入証明書の内容をテキストデータに変換する手段と、サーバが変換されたテキストデータを保存する手段と、顧客が感情データを入力する手段と、サーバが感情解析技術を用いて顧客の感情データを解析する手段と、サーバが解析結果に基づいて不要な商品を判断し、節約できる金額と減少した体重を計算する手段と、サーバが計算結果をグラフィカルに表示する手段を含む。これにより、顧客は物理的な証明書を直接提出することなく、購入情報をシステムに伝えることが可能となり、さらに自身の感情と健康管理、節約の関係を視覚的に理解することが可能となる。 In this invention, the server includes means for the customer to enter their current physical information and goals, means for the customer to submit a proof of purchase after shopping, means for the customer to capture an image of the proof of purchase using the camera function of their mobile device and upload it to the application, means for the server to convert the contents of the proof of purchase into text data using image processing technology, means for the server to save the converted text data, means for the customer to input emotional data, means for the server to analyze the customer's emotional data using emotion analysis technology, means for the server to determine unnecessary products based on the analysis results and calculate the amount of savings and weight loss, and means for the server to graphically display the calculation results. This allows customers to communicate their purchase information to the system without having to directly submit a physical proof of purchase, and further enables them to visually understand the relationship between their emotions, health management, and savings.
「顧客」とは、システムを利用して自身の健康管理や節約を行う個人を指す。 "Customer" refers to an individual who uses the system to manage their own health and save money.
「身体情報」とは、顧客の身長、体重、体脂肪率などの身体的なデータを指す。 "Physical information" refers to physical data such as the customer's height, weight, and body fat percentage.
「目標」とは、顧客が達成したい健康状態や節約目標を指す。 "Goals" refers to the health or savings goals the customer wants to achieve.
「購入証明書」とは、顧客が買い物後に受け取るレシートや領収書などの購入を証明する文書を指す。 "Proof of purchase" refers to a document that proves a purchase, such as a receipt or invoice that a customer receives after shopping.
「携帯端末」とは、スマートフォンやタブレットなどの携帯可能な電子機器を指す。 "Mobile device" refers to portable electronic devices such as smartphones and tablets.
「撮影機能」とは、携帯端末に搭載されたカメラ機能を指す。 "Photography function" refers to the camera function built into the mobile device.
「アプリケーション」とは、携帯端末上で動作するソフトウェアプログラムを指す。 "Application" refers to a software program that runs on a mobile device.
「画像処理技術」とは、画像データを解析し、必要な情報を抽出する技術を指す。 "Image processing technology" refers to the technology of analyzing image data and extracting necessary information.
「テキストデータ」とは、画像処理技術によって抽出された文字情報を指す。 "Text data" refers to text information extracted using image processing technology.
「感情データ」とは、顧客の感情状態を示すデータを指す。 "Emotional data" refers to data that indicates a customer's emotional state.
「感情解析技術」とは、感情データを解析し、顧客の感情状態を評価する技術を指す。 "Emotion analysis technology" refers to technology that analyzes emotional data and evaluates a customer's emotional state.
「不要な商品」とは、顧客の健康目標や節約目標に対して購入する必要がないと判断された商品を指す。 "Unnecessary products" refer to products that are determined not to be necessary for the customer's health or savings goals.
「節約できる金額」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Amount saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減少した体重」とは、不要な商品を購入しなかった場合に減少する可能性のある体重を指す。 "Weight lost" refers to the weight you would lose if you had not purchased unnecessary items.
「グラフィカルに表示する」とは、計算結果を視覚的にわかりやすく表示することを指す。 "Displaying graphically" means displaying the calculation results in a visually easy-to-understand manner.
発明を実施するための形態 Form for implementing the invention
この発明は、顧客が買い物後に購入証明書を提出し、感情データを基に節約金額と体重減少量を可視化するシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system in which customers submit a purchase certificate after shopping and visualize the amount of savings and weight loss based on emotional data. A specific embodiment of this system is described below.
システムの構成 System Configuration
このシステムは、主に以下のハードウェアおよびソフトウェアを用いる: This system primarily uses the following hardware and software:
携帯端末(スマートフォンやタブレット) Mobile devices (smartphones and tablets)
カメラ機能 Camera function
アプリケーション application
サーバ Server
画像処理ソフトウェア(例:OpenCV、Tesseract) Image processing software (e.g., OpenCV, Tesseract)
感情解析技術 Emotion analysis technology
プログラムの処理 Program processing
ユーザは、買い物後に携帯端末のカメラ機能を使用して購入証明書の画像を撮影する。撮影した画像は、アプリケーションを通じてサーバにアップロードされる。サーバは、画像処理ソフトウェア(例えば、OpenCVやTesseract)を用いて画像内のテキストを抽出し、購入商品の名前、価格、数量などの情報をテキストデータに変換する。このテキストデータは、サーバによってデータベースに保存される。 After shopping, the user uses the camera function on their mobile device to take a picture of the purchase certificate. The image is then uploaded to the server via the application. The server then uses image processing software (e.g., OpenCV or Tesseract) to extract text from the image and convert information such as the name, price, and quantity of the purchased item into text data. The server then stores this text data in a database.
次に、ユーザはアプリケーションを通じて自身の感情データを入力する。感情データは、ユーザが手動で入力する場合もあれば、ウェアラブルデバイスから自動的に取得される場合もある。サーバは、感情解析技術を用いて感情データを解析し、ユーザがストレスを感じているかどうか、どの程度のストレスを感じているかを評価する。 Next, the user enters their emotional data through the application. The emotional data may be entered manually by the user or automatically obtained from the wearable device. The server then analyzes the emotional data using emotion analysis technology to assess whether the user is feeling stressed and to what extent.
サーバは、感情解析の結果を基に、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算する。例えば、ユーザがストレスを感じているときにチョコレートを買わなかった場合、その価格(200円)とカロリー(300kcal)を基に計算する。計算結果は、サーバによってグラフィカルに表示され、ユーザはアプリケーションを通じて確認することができる。 Based on the results of the emotion analysis, the server calculates the amount of money saved and the amount of weight lost if the user refrains from buying unnecessary items when feeling stressed. For example, if the user refrains from buying chocolate when feeling stressed, the calculation is based on the price (200 yen) and calories (300 kcal). The calculation results are displayed graphically by the server, and the user can check them through the application.
具体例 Specific examples
具体例として、ユーザがストレスを感じているときにチョコレートを買わなかった場合を考える。ユーザは、スマートフォンのカメラでレシートを撮影し、アプリケーションにアップロードする。サーバは、画像処理ソフトウェアを用いてレシートの内容をテキストデータに変換し、データベースに保存する。次に、ユーザが感情データをアプリケーションに入力し、サーバが感情解析技術を用いて解析する。解析結果を基に、サーバはチョコレートの価格(200円)とカロリー(300kcal)を基に節約金額と体重減少量を計算する。最後に、サーバは計算結果をグラフィカルに表示し、ユーザはアプリケーションを通じて確認することができる。 As a concrete example, consider the case where a user decides not to buy chocolate when they are feeling stressed. The user takes a photo of the receipt with their smartphone camera and uploads it to the application. The server uses image processing software to convert the contents of the receipt into text data and stores it in a database. Next, the user enters emotional data into the application, which the server analyzes using emotion analysis technology. Based on the analysis results, the server calculates the amount of savings and weight loss based on the price of the chocolate (200 yen) and calories (300 kcal). Finally, the server displays the calculation results graphically, and the user can check them through the application.
プロンプト文の例 Example prompt
生成AIモデルへ入力するプロンプト文の例: Example of a prompt to input to a generative AI model:
「ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算し、グラフィカルに表示するプログラムを生成してください。」 "Generate a program that calculates and graphically displays the amount of money saved and weight loss a user would achieve if they avoided buying unnecessary items when they were feeling stressed."
このようにして、ユーザは自身の感情と健康管理、節約の関係を視覚的に理解することができる。 In this way, users can visually understand the relationship between their emotions, health management, and saving money.
実施例2における特定処理の流れについて図19を用いて説明する。 The flow of the identification process in Example 2 will be explained using Figure 19.
ステップ1: Step 1:
ユーザがスマートフォンのカメラで購入証明書を撮影する。 The user takes a photo of the purchase certificate using their smartphone camera.
入力:購入証明書 Enter: Proof of purchase
出力:購入証明書の画像 Output: Image of proof of purchase
具体的な動作:ユーザは、スマートフォンのカメラを起動し、購入証明書をフレーム内に収めて撮影ボタンを押す。撮影された画像はスマートフォンのギャラリーに保存される。 Specific operation: The user activates the smartphone camera, frames the purchase certificate, and presses the capture button. The captured image is saved to the smartphone's gallery.
ステップ2: Step 2:
端末が撮影した購入証明書の画像をアプリケーションにアップロードする。 Upload the image of the purchase certificate taken by the device to the application.
入力:購入証明書の画像 Input: Image of proof of purchase
出力:サーバに送信された画像データ Output: Image data sent to the server
具体的な動作:ユーザは、アプリケーションを起動し、購入証明書の画像を選択してアップロードボタンを押す。端末は、選択された画像をサーバに送信する。 Specific operation: The user launches the application, selects an image of the purchase certificate, and presses the upload button. The device then sends the selected image to the server.
ステップ3: Step 3:
サーバが画像処理技術を用いて購入証明書の内容をテキストデータに変換する。 The server uses image processing technology to convert the contents of the purchase certificate into text data.
入力:購入証明書の画像データ Input: Image data of purchase certificate
出力:テキストデータ Output: Text data
具体的な動作:サーバは、受信した画像データを画像処理ソフトウェア(例:OpenCV、Tesseract)を用いて解析し、画像内の文字情報を抽出する。抽出された文字情報は、購入商品の名前、価格、数量などのテキストデータに変換される。 Specific operation: The server analyzes the received image data using image processing software (e.g., OpenCV, Tesseract) and extracts text information from the image. The extracted text information is converted into text data such as the name, price, and quantity of the purchased item.
ステップ4: Step 4:
サーバが変換されたテキストデータをデータベースに保存する。 The server stores the converted text data in a database.
入力:テキストデータ Input: Text data
出力:データベースに保存された購入情報 Output: Purchase information stored in the database
具体的な動作:サーバは、変換されたテキストデータをデータベースに保存する。保存されるデータには、購入日時、店舗名、商品情報などが含まれる。 Specific operation: The server saves the converted text data in a database. The saved data includes the purchase date and time, store name, product information, etc.
ステップ5: Step 5:
ユーザが感情データをアプリケーションに入力する。 The user inputs emotional data into the application.
入力:感情データ Input: Emotion data
出力:サーバに送信された感情データ Output: Emotion data sent to the server
具体的な動作:ユーザは、アプリケーションを通じて自身の感情状態を入力する。感情データは、ストレスレベルや気分などの情報を含む。また、ウェアラブルデバイスから自動的に取得される場合もある。 Specific operation: The user inputs their emotional state through the application. Emotional data includes information such as stress level and mood. It may also be obtained automatically from the wearable device.
ステップ6: Step 6:
サーバが感情解析技術を用いてユーザの感情データを解析する。 The server analyzes the user's emotional data using emotion analysis technology.
入力:感情データ Input: Emotion data
出力:解析結果 Output: Analysis results
具体的な動作:サーバは、感情解析技術を用いて感情データを解析し、ユーザがストレスを感じているかどうか、どの程度のストレスを感じているかを評価する。解析結果は、数値やグラフとして表現される。 Specific operation: The server uses emotion analysis technology to analyze emotional data and evaluate whether the user is feeling stressed and to what extent. The analysis results are displayed as numbers and graphs.
ステップ7: Step 7:
サーバが解析結果に基づいて不要な商品を判断し、節約できる金額と減少した体重を計算する。 The server determines which items are unnecessary based on the analysis results and calculates the amount of money saved and the weight lost.
入力:解析結果、テキストデータ Input: Analysis results, text data
出力:節約金額と減少した体重のデータ Output: Savings and weight loss data
具体的な動作:サーバは、感情解析の結果と購入情報を基に、ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算する。例えば、チョコレートの価格(200円)とカロリー(300kcal)を基に計算する。 Specific operation: Based on the results of emotion analysis and purchase information, the server calculates the amount of money saved and the amount of weight lost if the user does not buy unnecessary items when feeling stressed. For example, the calculation is based on the price (200 yen) and calories (300 kcal) of chocolate.
ステップ8: Step 8:
サーバが計算結果をグラフィカルに表示する。 The server displays the calculation results graphically.
入力:節約金額と減少した体重のデータ Input: Savings and weight loss data
出力:グラフィカルな表示 Output: Graphical display
具体的な動作:サーバは、計算結果をグラフィカルに表示するためのデータを生成し、アプリケーションを通じてユーザに提供する。ユーザは、アプリケーションを通じて節約金額と体重減少量を視覚的に確認することができる。 Specific operation: The server generates data for graphically displaying the calculation results and provides it to the user through the application. The user can visually check the amount of savings and weight loss through the application.
(応用例2) (Application Example 2)
次に、形態例2の応用例2について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, we will explain Application Example 2 of Form Example 2. In the following explanation, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
従来の買い物支援システムでは、顧客が購入した商品のレシートを物理的に提出する必要があり、手間がかかるという問題があった。また、顧客の感情や健康状態を考慮した買い物支援が行われておらず、ストレスを感じているときに不要な商品を購入してしまうことが多かった。これにより、無駄な出費や健康への悪影響が生じることが課題であった。 Conventional shopping support systems required customers to physically submit receipts for purchased items, which was a time-consuming process. Furthermore, the shopping support did not take into account the customer's emotions or health status, leading to unnecessary purchases when they were feeling stressed. This led to wasteful spending and negative health effects, which was an issue.
応用例2におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 2 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートをスマートフォンのカメラを用いて撮影し、アプリケーションにアップロードする手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、顧客の感情を分析し、ストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量をグラフィカルに表示する手段と、を含む。これにより、顧客は物理的なレシートを提出する手間を省き、感情や健康状態を考慮した買い物支援が可能となる。 In this invention, the server includes: a means for the customer to enter their current height and weight and goals; a means for the customer to take a photo of their purchase receipt using their smartphone camera after shopping and upload it to the application; a means for correcting items that are determined to be unnecessary in this purchase; a means for visualizing the money saved and weight lost if the customer does not buy unnecessary items; and a means for analyzing the customer's emotions and graphically displaying the amount of money saved and weight lost if the customer does not buy unnecessary items when they are feeling stressed. This saves the customer the trouble of submitting physical receipts, and enables shopping support that takes their emotions and health state into consideration.
「顧客」とは、商品やサービスを購入する消費者である。 "Customer" refers to a consumer who purchases goods or services.
「身長体重」とは、顧客の身体の高さと体重の数値である。 "Height and Weight" refers to the customer's physical height and weight.
「目標」とは、顧客が達成したい具体的な数値や状態を指す。 "Goal" refers to the specific numerical value or state that the customer wants to achieve.
「購入レシート」とは、顧客が商品を購入した際に発行される購入証明書である。 A "purchase receipt" is a proof of purchase issued when a customer purchases a product.
「スマートフォンのカメラ」とは、スマートフォンに内蔵されている撮影装置である。 A "smartphone camera" is a photographic device built into a smartphone.
「アプリケーション」とは、スマートフォンや他のデバイスで動作するソフトウェアプログラムである。 An "application" is a software program that runs on a smartphone or other device.
「アップロード」とは、データをローカルデバイスからサーバやクラウドに転送する行為である。 "Uploading" is the act of transferring data from a local device to a server or cloud.
「添削」とは、内容を確認し、不要な部分を修正または削除する行為である。 "Correction" is the act of checking the content and correcting or deleting unnecessary parts.
「不要商品」とは、顧客が購入する必要がないと判断された商品である。 "Unnecessary items" are items that customers have determined they do not need to purchase.
「節約できるお金」とは、不要商品を購入しなかった場合に節約できる金額である。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要商品を購入しなかった結果として減少した体重である。 "Weight lost" refers to the weight lost as a result of not purchasing unnecessary items.
「可視化」とは、データや情報を視覚的に表示する行為である。 "Visualization" is the act of visually displaying data or information.
「感情を分析」とは、顧客の感情状態を評価し、理解するプロセスである。 "Analyzing emotions" is the process of assessing and understanding a customer's emotional state.
「ストレス」とは、精神的または肉体的な緊張や負担を指す。 "Stress" refers to mental or physical tension or strain.
「グラフィカルに表示」とは、情報をグラフや図表などの視覚的な形式で表示することである。 "Graphically displayed" means displaying information in a visual format such as a graph or chart.
この発明は、顧客が買い物後に購入レシートをスマートフォンのカメラを用いて撮影し、アプリケーションにアップロードするシステムを提供するものである。さらに、顧客の感情を分析し、ストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量をグラフィカルに表示する機能を含む。 This invention provides a system that allows customers to take a photo of their purchase receipt using their smartphone camera after shopping and upload it to an application. It also includes a function that analyzes the customer's emotions and graphically displays the amount of money saved and the amount of weight lost if they avoid buying unnecessary items when they are feeling stressed.
システムの構成 System Configuration
1. ハードウェア: 1. Hardware:
スマートフォン: カメラ機能を用いて購入レシートを撮影する。 Smartphone: Use the camera function to take a photo of your purchase receipt.
サーバ: アプリケーションのバックエンドとして機能し、データの保存と処理を行う。 Server: Serves as the backend for the application, storing and processing data.
2. ソフトウェア: 2. Software:
アプリケーション: スマートフォンにインストールされ、レシートの撮影、アップロード、感情分析、グラフィカル表示を行う。 Application: Installed on a smartphone, it takes photos of receipts, uploads them, performs sentiment analysis, and displays them graphically.
OpenCV: レシート画像の読み込みと前処理を行うライブラリ。 OpenCV: A library for loading and preprocessing receipt images.
Tesseract OCR: レシート画像からテキストを抽出するための光学文字認識ソフトウェア。 Tesseract OCR: Optical character recognition software for extracting text from receipt images.
EmotionRecognizer: 顧客の感情を分析するための感情認識ソフトウェア。 EmotionRecognizer: Emotion recognition software for analyzing customer emotions.
Matplotlib: 節約金額と体重減少量をグラフィカルに表示するためのライブラリ。 Matplotlib: A library for graphically displaying savings and weight loss.
システムの動作 System Operation
1. レシート撮影とアップロード: 1. Take a photo of your receipt and upload it:
ユーザはスマートフォンのカメラを使って購入レシートを撮影する。 Users take a photo of their purchase receipt using their smartphone camera.
撮影した画像はアプリケーションを通じてサーバにアップロードされる。 The captured images are uploaded to the server via the application.
2. テキスト抽出: 2. Text extraction:
サーバはOpenCVを用いて画像を前処理し、Tesseract OCRを使ってレシートからテキストを抽出する。 The server preprocesses the image using OpenCV and extracts text from the receipt using Tesseract OCR.
3. 感情分析: 3. Sentiment analysis:
サーバはEmotionRecognizerを用いてユーザの感情を分析する。 The server analyzes the user's emotions using EmotionRecognizer.
ストレスを感じている場合、不要な商品を買わなかった場合の節約金額と体重減少量を計算する。 When you're feeling stressed, calculate how much money you'll save and how much weight you'll lose if you don't buy unnecessary items.
4. グラフィカル表示: 4. Graphical display:
サーバはMatplotlibを用いて節約金額と体重減少量をグラフィカルに表示するデータを生成し、アプリケーションに送信する。 The server uses Matplotlib to generate data that graphically displays the savings and weight loss, and sends it to the application.
アプリケーションはこれをユーザに視覚的に表示する。 The application will display this visually to the user.
具体例 Specific examples
例えば、ユーザがストレスを感じているときに不要な商品を買わなかった場合、アプリケーションは1000円の節約と0.5kgの体重減少をグラフィカルに表示する。 For example, if a user avoids buying unnecessary items when feeling stressed, the application will graphically display a savings of 1,000 yen and a weight loss of 0.5 kg.
プロンプト文の例 Example prompt
ユーザがストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量を計算し、グラフィカルに表示するプログラムを作成してください。レシート画像をスマートフォンのカメラで撮影し、Tesseract OCRでテキストを抽出します。EmotionRecognizerを使ってユーザの感情を分析し、Matplotlibで結果を表示します。 Create a program that calculates and graphically displays the savings and weight loss that a user could achieve by not purchasing unnecessary items when they are feeling stressed. Take a photo of the receipt with a smartphone camera and extract the text using Tesseract OCR. Analyze the user's emotions using EmotionRecognizer and display the results using Matplotlib.
応用例2における特定処理の流れについて図20を用いて説明する。 The flow of the specific processing in Application Example 2 is explained using Figure 20.
ステップ1: Step 1:
ユーザはスマートフォンのカメラを使って購入レシートを撮影する。 Users take a photo of their purchase receipt using their smartphone camera.
入力: 購入レシートの物理的な画像 Input: Physical image of purchase receipt
出力: スマートフォンに保存されたレシート画像 Output: Receipt image saved on your smartphone
具体的な動作: ユーザはスマートフォンのカメラアプリを起動し、購入レシートを撮影する。撮影された画像はスマートフォンのストレージに保存される。 Specific operation: The user launches the smartphone's camera app and takes a photo of the purchase receipt. The captured image is saved to the smartphone's storage.
ステップ2: Step 2:
端末は撮影したレシート画像をアプリケーションにアップロードする。 The device will upload the captured receipt image to the application.
入力: スマートフォンに保存されたレシート画像 Input: Receipt image saved on your smartphone
出力: サーバにアップロードされたレシート画像 Output: Receipt image uploaded to the server
具体的な動作: ユーザはアプリケーションを起動し、撮影したレシート画像を選択してアップロードボタンを押す。画像はインターネットを通じてサーバに送信される。 Specific operation: The user launches the application, selects the captured receipt image, and presses the upload button. The image is sent to the server via the Internet.
ステップ3: Step 3:
サーバはOpenCVを用いてレシート画像を前処理し、Tesseract OCRでテキストを抽出する。 The server preprocesses the receipt image using OpenCV and extracts text using Tesseract OCR.
入力: サーバにアップロードされたレシート画像 Input: Receipt image uploaded to the server
出力: 抽出されたテキストデータ Output: Extracted text data
具体的な動作: サーバはOpenCVを使って画像のノイズを除去し、テキスト部分を強調する。次に、Tesseract OCRを用いて画像からテキストを抽出する。 Specific operation: The server uses OpenCV to remove noise from the image and highlight the text. Then, it uses Tesseract OCR to extract the text from the image.
ステップ4: Step 4:
サーバはEmotionRecognizerを用いてユーザの感情を分析する。 The server analyzes the user's emotions using EmotionRecognizer.
入力: ユーザの感情データ(例えば、ユーザがアプリケーションに入力した感情状態) Input: User emotional data (e.g., the emotional state the user enters into the application)
出力: 分析された感情状態 Output: Analyzed emotional state
具体的な動作: サーバはEmotionRecognizerを使ってユーザの感情データを解析し、ストレス状態かどうかを判断する。 Specific operation: The server uses EmotionRecognizer to analyze the user's emotional data and determine whether they are under stress.
ステップ5: Step 5:
サーバはストレスを感じている場合、不要な商品を買わなかった場合の節約金額と体重減少量を計算する。 When you feel stressed, the server calculates the amount of money you would save and the amount of weight you would lose if you didn't buy unnecessary items.
入力: 分析された感情状態、抽出されたテキストデータ Input: Analyzed emotional state, extracted text data
出力: 節約金額と体重減少量のデータ Output: Savings and weight loss data
具体的な動作: サーバは感情状態がストレスである場合、抽出されたテキストデータから不要な商品を特定し、それを買わなかった場合の節約金額と体重減少量を計算する。 Specific operation: If the emotional state is stressed, the server identifies unnecessary items from the extracted text data and calculates the amount of savings and weight loss that would result if the item were not purchased.
ステップ6: Step 6:
サーバはMatplotlibを用いて節約金額と体重減少量をグラフィカルに表示するデータを生成し、アプリケーションに送信する。 The server uses Matplotlib to generate data that graphically displays the savings and weight loss, and sends it to the application.
入力: 節約金額と体重減少量のデータ Input: Savings and weight loss data
出力: グラフィカルに表示するための画像データ Output: Image data for graphical display
具体的な動作: サーバはMatplotlibを使って節約金額と体重減少量を棒グラフなどの形式で視覚的に表示する画像を生成し、その画像データをアプリケーションに送信する。 Specific operation: The server uses Matplotlib to generate images that visually display the amount of savings and weight loss in the form of bar graphs, etc., and sends the image data to the application.
ステップ7: Step 7:
端末はサーバから受け取ったグラフィカルなデータをユーザに表示する。 The terminal displays the graphical data received from the server to the user.
入力: サーバから送信されたグラフィカルな画像データ Input: Graphical image data sent from the server
出力: スマートフォンの画面に表示されたグラフィカルな情報 Output: Graphical information displayed on a smartphone screen
具体的な動作: アプリケーションはサーバから受け取った画像データをスマートフォンの画面に表示し、ユーザが視覚的に節約金額と体重減少量を確認できるようにする。 Specific operation: The application displays the image data received from the server on the smartphone screen, allowing the user to visually check the amount of savings and weight loss.
(実施例3) (Example 3)
次に、形態例3の実施例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, Example 3 of Form Example 3 will be described. In the following description, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
現代の消費者は、健康管理と節約の両立を目指しているが、日常の買い物において不要な商品を購入してしまうことが多い。このような不要な商品は、健康目標に反するだけでなく、無駄な出費を引き起こす原因となる。しかし、消費者自身がこれらの不要な商品を特定し、購入を避けることは容易ではない。したがって、消費者が自身の健康目標に基づいて不要な商品を自動的に検出し、節約できる金額と健康への影響を可視化するシステムが求められている Today's consumers aim to balance health management with saving money, but they often end up buying unnecessary products in their daily shopping. These unnecessary products not only go against their health goals but also lead to wasteful spending. However, it is not easy for consumers to identify and avoid these unnecessary products. Therefore, there is a need for a system that automatically detects unnecessary products based on consumers' health goals and visualizes the savings and health impact.
実施例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を入力する手段と、顧客が買い物後に購入レシートの画像をアップロードする手段と、レシート画像を光学文字認識技術を用いてデジタルデータに変換する手段と、デジタルデータから商品情報を解析し、不要な商品を検出する手段と、不要商品の合計金額と推定体重減少量を計算する手段と、計算結果をグラフやチャートで可視化する手段を含む。これにより、消費者は自身の健康目標に基づいて不要な商品を自動的に検出し、節約できる金額と健康への影響を具体的に把握することが可能となる。 In this invention, the server includes means for customers to input their current height and weight and goals, means for customers to upload an image of their purchase receipt after shopping, means for converting the receipt image into digital data using optical character recognition technology, means for analyzing product information from the digital data and detecting unnecessary products, means for calculating the total price of unnecessary products and estimated weight loss, and means for visualizing the calculation results in graphs and charts. This allows consumers to automatically detect unnecessary products based on their own health goals and specifically understand the amount of money they can save and the impact on their health.
「顧客」とは、システムを利用して自身の健康管理と節約を目指す消費者である。 "Customers" are consumers who use the system to manage their own health and save money.
「身長体重」とは、顧客の身体的な基本データであり、健康目標を設定するための基礎情報である。 "Height and weight" refers to the customer's basic physical data and is fundamental information for setting health goals.
「目標」とは、顧客が達成したい健康状態や体重管理の目標であり、例えば糖質制限やカロリー制限などが含まれる。 "Goals" refer to the health and weight management goals that a customer wishes to achieve, such as carbohydrate restriction or calorie restriction.
「レシートの画像」とは、顧客が買い物後に取得する購入明細書の写真データである。 "Receipt image" refers to photo data of the purchase details that a customer obtains after shopping.
「光学文字認識技術」とは、画像内の文字情報をデジタルデータに変換する技術であり、OCR(Optical Character Recognition)とも呼ばれる。 "Optical character recognition technology" is a technology that converts text information in an image into digital data, and is also known as OCR (Optical Character Recognition).
「デジタルデータ」とは、光学文字認識技術を用いて変換されたテキスト情報である。 "Digital data" means text information converted using optical character recognition technology.
「商品情報」とは、レシートに記載された商品の名称や価格、栄養情報などのデータである。 "Product information" refers to data such as the product name, price, and nutritional information listed on the receipt.
「不要な商品」とは、顧客の健康目標に反する商品であり、購入を避けるべきものである。 "Unnecessary products" are products that are contrary to the customer's health goals and should be avoided.
「合計金額」とは、検出された不要な商品の総価格である。 "Total amount" is the total price of the unwanted items detected.
「推定体重減少量」とは、不要な商品を摂取しなかった場合に予測される体重の減少量である。 "Estimated weight loss" is the amount of weight loss predicted if the unnecessary product was not consumed.
「グラフやチャート」とは、計算結果を視覚的に表示するための図表である。 "Graphs and charts" are diagrams that visually display calculation results.
この発明は、消費者が自身の健康管理と節約を効率的に行うためのシステムである。以下に、このシステムの具体的な実施形態を説明する。 This invention is a system that allows consumers to efficiently manage their own health and save money. Specific embodiments of this system are described below.
まず、ユーザは端末を使用してシステムのウェブページにアクセスする。ユーザは自身の身長、体重、および健康目標(例:糖質制限)を入力する。これらのデータは、サーバに送信され、データベースに保存される。 First, the user accesses the system's web page using a terminal. The user enters their height, weight, and health goals (e.g., carbohydrate restriction). This data is sent to the server and stored in a database.
次に、ユーザは買い物後に取得したレシートの画像を端末からシステムにアップロードする。アップロードされたレシート画像は、サーバに送信される。サーバは、Google Cloud Vision APIなどの光学文字認識技術を使用して、レシート画像をデジタルデータに変換する。このデジタルデータには、レシート上のテキスト情報が含まれている。 Next, the user uploads an image of the receipt obtained after shopping from their device to the system. The uploaded receipt image is sent to the server, which then uses optical character recognition technology such as Google Cloud Vision API to convert the receipt image into digital data. This digital data includes the text information on the receipt.
サーバは、変換されたデジタルデータを解析し、商品名とその栄養情報を抽出する。例えば、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が糖質制限の目標に反するため、不要な商品としてリストアップする。 The server analyzes the converted digital data and extracts product names and their nutritional information. For example, if the receipt includes "bread" or "sweets," these items are listed as unnecessary because they go against the goal of carbohydrate restriction.
次に、サーバは不要な商品の合計金額を計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、標準的なカロリー消費モデルを使用する。計算結果は、D3.jsなどのデータ可視化ライブラリを使用してグラフやチャートとして可視化される。 The server then calculates the total cost of the unnecessary items, as well as the estimated weight loss that would occur if these items were not consumed. A standard calorie expenditure model is used to calculate weight loss. The results are visualized as graphs and charts using a data visualization library such as D3.js.
ユーザは端末を使用して、サーバから送信されたグラフやチャートを確認する。これにより、ユーザは不要な商品を買わなかった場合の節約金額と体重減少量を視覚的に理解することができる。 The user uses their device to view the graphs and charts sent from the server, allowing them to visually understand how much money they could save and how much weight they could lose by not buying unnecessary items.
具体例として、ユーザがストレスを感じているときにチョコレートを購入した場合を考える。感情エンジンは、ユーザの感情状態を分析し、ストレスが高いと判断する。この場合、チョコレートを不要な商品として検出する。そして、チョコレートを買わなかった場合の節約金額と体重減少量をグラフで表示する。これにより、ユーザはストレスを感じているときに不健康な食品を購入する傾向があることを認識し、その結果としての金銭的、健康的な影響を理解することができる。 As a concrete example, consider the case where a user purchases chocolate when feeling stressed. The emotion engine analyzes the user's emotional state and determines that stress is high. In this case, it detects chocolate as an unnecessary item and displays a graph of the amount of money saved and weight loss that would have been achieved if the user had not purchased the chocolate. This allows the user to recognize their tendency to purchase unhealthy foods when they are stressed and understand the resulting financial and health impacts.
プロンプト文の例: Example prompt:
ユーザがストレスを感じているときに購入した食品を検出し、その食品を買わなかった場合の節約金額と体重減少量を計算してグラフで表示してください。 Detect the foods the user purchases when they are stressed, calculate the amount of money saved and the weight loss they would have lost if they had not purchased those foods, and display the results in a graph.
このシステムにより、ユーザは自身の健康管理と節約の両方を具体的に把握することができる。実施例3における特定処理の流れについて図21を用いて説明する。 This system allows users to specifically understand both their own health management and savings. The flow of the identification process in Example 3 will be explained using Figure 21.
ステップ1: Step 1:
ユーザが身長、体重、目標を入力する。 Users enter their height, weight, and goals.
ユーザは端末を使用して、システムのウェブページにアクセスし、フォームに自身の身長(例:170cm)、体重(例:70kg)、および健康目標(例:糖質制限)を入力する。入力されたデータは、サーバに送信され、データベースに保存される。 Using a terminal, a user accesses the system's web page and enters their height (e.g., 170 cm), weight (e.g., 70 kg), and health goal (e.g., carbohydrate restriction) into the form. The entered data is sent to the server and stored in a database.
入力:身長、体重、健康目標 Input: height, weight, health goals
出力:データベースに保存されたユーザ情報 Output: User information stored in the database
ステップ2: Step 2:
ユーザがレシートの画像をアップロードする。 The user uploads an image of the receipt.
ユーザは端末を使用して、最近の買い物のレシート画像をシステムにアップロードする。アップロードされた画像は、サーバに送信される。 Users use their device to upload images of recent purchase receipts to the system. The uploaded images are then sent to the server.
入力:レシート画像 Input: Receipt image
出力:サーバに保存されたレシート画像 Output: Receipt image saved on the server
ステップ3: Step 3:
サーバがレシート画像をOCR処理する。 The server performs OCR processing on the receipt image.
サーバは、光学文字認識技術(OCR)を使用してレシート画像をデジタルデータに変換する。具体的には、Google Cloud Vision APIを呼び出してOCR処理を行う。 The server uses optical character recognition (OCR) technology to convert the receipt image into digital data. Specifically, it calls the Google Cloud Vision API to perform the OCR process.
入力:レシート画像 Input: Receipt image
出力:デジタルデータ(テキスト情報) Output: Digital data (text information)
ステップ4: Step 4:
サーバが商品情報を解析し、不要な商品を検出する。 The server analyzes product information and detects unnecessary products.
サーバは、OCR処理で得られたデジタルデータを解析し、商品名とその栄養情報を抽出する。例えば、レシートに「パン」や「お菓子」が含まれている場合、これらの商品が糖質制限の目標に反するため、不要な商品としてリストアップする。 The server analyzes the digital data obtained through OCR processing and extracts product names and their nutritional information. For example, if a receipt includes "bread" or "sweets," these items are listed as unnecessary because they go against the goal of carbohydrate restriction.
入力:デジタルデータ(テキスト情報)、ユーザの健康目標 Input: Digital data (text information), user's health goals
出力:不要な商品のリスト Output: List of unwanted items
ステップ5: Step 5:
サーバが不要商品の合計金額と推定体重減少量を計算する。 The server calculates the total price of unwanted items and the estimated weight loss.
サーバは、検出された不要商品の合計金額を計算する。また、これらの商品を摂取しなかった場合の推定体重減少量を計算する。体重減少量の計算には、標準的なカロリー消費モデルを使用する。 The server calculates the total value of the unwanted products detected, as well as the estimated weight loss that would occur if the user did not consume these products. A standard calorie expenditure model is used to calculate weight loss.
入力:不要な商品のリスト、商品価格、カロリー情報 Input: List of unwanted items, product price, calorie information
出力:合計金額、推定体重減少量 Output: Total amount, estimated weight loss
ステップ6: Step 6:
サーバが計算結果をグラフやチャートで可視化する。 The server visualizes the calculation results in graphs and charts.
サーバは、D3.jsなどのデータ可視化ライブラリを使用して、不要商品の合計金額と推定体重減少量をグラフやチャートとして生成する。 The server uses a data visualization library such as D3.js to generate graphs and charts showing the total price of unwanted items and estimated weight loss.
入力:合計金額、推定体重減少量 Input: Total amount, estimated weight loss
出力:グラフやチャート Output: Graphs and charts
ステップ7: Step 7:
ユーザが結果を確認する。 The user checks the results.
ユーザは端末を使用して、サーバから送信されたグラフやチャートを確認する。これにより、ユーザは不要な商品を買わなかった場合の節約金額と体重減少量を視覚的に理解することができる。 The user uses their device to view the graphs and charts sent from the server, allowing them to visually understand how much money they could save and how much weight they could lose by not buying unnecessary items.
入力:グラフやチャート Input: Graphs and charts
出力:ユーザの理解と認識 Output: User understanding and recognition
(応用例3) (Application Example 3)
次に、形態例3の応用例3について説明する。以下の説明では、データ処理装置12を「サーバ」と称し、ロボット414を「端末」と称する。 Next, we will explain Application Example 3 of Form Example 3. In the following explanation, the data processing device 12 will be referred to as the "server" and the robot 414 will be referred to as the "terminal."
現代の消費者は、健康管理と節約を同時に行うことが求められているが、買い物の際にどの商品が不要であるかを判断するのは難しい。また、不要な商品を購入しなかった場合の具体的な節約金額や体重減少量を把握する手段が不足している。このため、消費者が健康的な選択をし、節約を実感できるシステムが求められている。 Today's consumers are expected to manage their health and save money at the same time, but it can be difficult to determine which products are unnecessary when shopping. Furthermore, there is a lack of ways to grasp the specific amount of savings or weight loss that can be achieved by not purchasing unnecessary items. For this reason, there is a need for a system that allows consumers to make healthy choices and realize the savings they are making.
応用例3におけるデータ処理装置12の特定処理部290による特定処理を、以下の各手段により実現する。 The specific processing performed by the specific processing unit 290 of the data processing device 12 in Application Example 3 is realized by the following means.
この発明では、サーバは、顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、不要商品を検出し、節約金額と体重減少量を計算する手段と、検出結果をグラフで表示する手段と、を含む。これにより、消費者は買い物の際に不要な商品を簡単に特定し、健康管理と節約の両方を具体的に把握することが可能となる。 In this invention, the server includes means for customers to enter their current height and weight and goals, means for customers to submit purchase receipts after shopping, means for correcting items determined to be unnecessary for this purchase, means for visualizing the money saved and weight lost if unnecessary items are not purchased, means for detecting unnecessary items and calculating the amount saved and the amount of weight lost, and means for displaying the detection results in a graph. This allows consumers to easily identify unnecessary items when shopping and specifically understand both health management and savings.
「顧客」とは、システムを利用して買い物を行う消費者を指す。 "Customer" refers to a consumer who uses the system to make purchases.
「身長体重」とは、顧客の現在の身体の高さと体重を指す。 "Height and Weight" refers to the customer's current height and weight.
「目標」とは、顧客が達成したい健康やダイエットに関する具体的な目的を指す。 "Goals" refer to the specific health or diet objectives that the customer wants to achieve.
「購入レシート」とは、顧客が買い物をした際に受け取る商品の購入明細を示す紙または電子データを指す。 "Purchase receipt" refers to the paper or electronic data showing the purchase details of a product that a customer receives when making a purchase.
「不要な商品」とは、顧客の身長体重と目標に基づいて、買い物リストから除外すべきと判断される商品を指す。 "Unnecessary items" refer to items that should be removed from the shopping list based on the customer's height, weight, and goals.
「節約できるお金」とは、不要な商品を購入しなかった場合に節約できる金額を指す。 "Money saved" refers to the amount of money you can save by not purchasing unnecessary items.
「減る体重」とは、不要な商品を摂取しなかった場合に予測される体重の減少量を指す。 "Weight loss" refers to the amount of weight loss predicted if the unnecessary product is not consumed.
「可視化する手段」とは、節約できるお金と減る体重をグラフやチャートなどの視覚的な形式で表示する方法を指す。 "Visualization methods" refers to ways to display the money saved and weight lost in visual form, such as graphs or charts.
「検出する手段」とは、顧客の身長体重と目標に基づいて不要な商品を特定する方法を指す。 "Means of detection" refers to a method for identifying unwanted products based on the customer's height, weight, and goals.
「計算する手段」とは、不要な商品を買わなかった場合の節約金額と体重減少量を算出する方法を指す。 "Means of calculation" refers to a method for calculating the amount of money saved and weight loss that would be achieved by not purchasing unnecessary items.
「グラフで表示する手段」とは、検出結果を視覚的に理解しやすい形式で表示する方法を指す。 "Graphical display" refers to a method of displaying detection results in a visually easy-to-understand format.
この発明を実施するためのシステムは、顧客が現在の身長体重と目標を記入する手段、顧客が買い物後に購入レシートを提出する手段、今回の買い物で不要だと判断できる商品を添削する手段、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段、不要商品を検出し、節約金額と体重減少量を計算する手段、検出結果をグラフで表示する手段を含む。 A system for implementing this invention includes means for a customer to enter their current height and weight and goals, means for the customer to submit a purchase receipt after shopping, means for correcting items that are determined to be unnecessary in this purchase, means for visualizing the money saved and weight lost if unnecessary items are not purchased, means for detecting unnecessary items and calculating the amount saved and weight lost, and means for displaying the detection results in a graph.
システムの構成 System Configuration
システムは、スマートフォンアプリケーションとして実装される。アプリケーションは、PythonとFlaskを使用して構築され、サーバ側でデータ処理を行う。スマートフォンは、ユーザが入力した身長体重と目標、及びレシートの情報をサーバに送信する。 The system is implemented as a smartphone application. The application is built using Python and Flask, and performs data processing on the server side. The smartphone sends the user's height, weight, and goals, as well as receipt information, to the server.
データ加工とデータ演算 Data processing and calculation
サーバは、ユーザから送信されたデータを受け取り、以下の処理を行う。 The server receives the data sent by the user and performs the following processing:
1. 不要商品の検出: 1. Detecting unwanted products:
サーバは、ユーザの身長体重と目標に基づいて、レシートに含まれる不要な商品を特定する。例えば、ユーザが「糖質制限」を目標にしている場合、レシートに含まれる「パン」や「お菓子」を不要商品として検出する。 The server identifies unnecessary items on the receipt based on the user's height, weight, and goals. For example, if the user's goal is to "limit carbohydrates," it will detect "bread" and "sweets" on the receipt as unnecessary items.
2. 節約金額と体重減少量の計算: 2. Calculate savings and weight loss:
サーバは、不要商品を購入しなかった場合の節約金額と体重減少量を計算する。例えば、不要商品の価格を合計し、その商品のカロリーを基に体重減少量を算出する。 The server calculates the amount of money saved and the amount of weight lost if the unnecessary items were not purchased. For example, it adds up the prices of the unnecessary items and calculates the amount of weight lost based on the calories in those items.
3. 結果の可視化: 3. Visualizing the results:
サーバは、計算結果をグラフやチャート形式で生成し、スマートフォンアプリケーションに送信する。ユーザは、アプリケーションを通じて結果を視覚的に確認できる。 The server generates the calculation results in the form of graphs and charts and sends them to a smartphone application. Users can visually check the results through the application.
使用するハードウェアとソフトウェア Hardware and software used
ハードウェア: スマートフォン Hardware: Smartphone
ソフトウェア: Python, Flask Software: Python, Flask
具体例 Specific examples
ユーザが「糖質制限」を目標にしており、レシートに「パン」と「お菓子」が含まれている場合、システムはこれらを不要商品として検出する。節約金額は350円(パン150円 + お菓子200円)、体重減少量は0.064kg(500kcal / 7700kcal)と計算される。これらの結果は、スマートフォンアプリケーション上でグラフとして表示される。 If a user's goal is to "limit carbohydrates" and the receipt includes "bread" and "sweets," the system will detect these as unnecessary items. The savings will be calculated as 350 yen (bread 150 yen + sweets 200 yen), and the weight loss will be 0.064 kg (500 kcal / 7700 kcal). These results are displayed as a graph on the smartphone application.
プロンプト文の例 Example prompt
ユーザが糖質制限を目標にしている場合、レシートに含まれる不要な商品を検出し、節約金額と体重減少量を計算してください。以下のデータを使用してください。 If a user is aiming to limit carbohydrates, detect unnecessary items in their receipts and calculate savings and weight loss. Use the following data:
身長: 170cm
体重: 70kg
目標: 糖質制限
レシートアイテム: ["パン", "お菓子", "野菜"]
Height: 170cm
Weight: 70kg
Goal: Low-carb Receipt items: ["bread", "sweets", "vegetables"]
応用例3における特定処理の流れについて図22を用いて説明する。 The flow of the specific processing in Application Example 3 is explained using Figure 22.
ステップ1: Step 1:
ユーザがスマートフォンアプリケーションを起動し、現在の身長体重と目標を入力する。 The user launches the smartphone application and enters their current height, weight, and goal.
入力: 身長、体重、目標 Input: height, weight, goal
出力: 身長、体重、目標のデータ Output: Height, weight, and goal data
具体的な動作: ユーザはアプリケーションの入力フォームに身長、体重、目標を入力し、送信ボタンを押す。 Specific action: The user enters their height, weight, and goal into the application's input form and presses the submit button.
ステップ2: Step 2:
ユーザが買い物後に購入レシートをスマートフォンでスキャンし、アプリケーションにアップロードする。 After shopping, users scan their purchase receipt with their smartphone and upload it to the application.
入力: 購入レシートの画像 Input: Purchase receipt image
出力: レシートのテキストデータ Output: Receipt text data
具体的な動作: ユーザはスマートフォンのカメラを使用してレシートを撮影し、アプリケーションにアップロードする。アプリケーションはOCR技術を用いて画像からテキストデータを抽出する。 Specific operation: The user takes a photo of the receipt using their smartphone camera and uploads it to the application. The application uses OCR technology to extract text data from the image.
ステップ3: Step 3:
サーバがユーザから送信された身長、体重、目標、およびレシートのテキストデータを受け取る。 The server receives the height, weight, goal, and receipt text data sent by the user.
入力: 身長、体重、目標、レシートのテキストデータ Input: Height, weight, goal, and receipt text data
出力: 受信データの保存 Output: Save received data
具体的な動作: サーバはHTTPリクエストを受け取り、送信されたデータをデータベースに保存する。 Specific operation: The server receives the HTTP request and stores the submitted data in the database.
ステップ4: Step 4:
サーバがユーザの目標に基づいて、レシートに含まれる不要な商品を検出する。 The server detects unwanted items on the receipt based on the user's goals.
入力: 身長、体重、目標、レシートのテキストデータ Input: Height, weight, goal, and receipt text data
出力: 不要商品のリスト Output: List of unwanted items
具体的な動作: サーバは目標に関連する不要商品のリストを参照し、レシートのテキストデータと照合して不要商品を特定する。 Specific operation: The server references the list of unwanted items related to the goal and matches them with the text data on the receipt to identify the unwanted items.
ステップ5: Step 5:
サーバが不要商品を購入しなかった場合の節約金額と体重減少量を計算する。 The server calculates the amount of savings and weight loss you would have achieved if you had not purchased unnecessary items.
入力: 不要商品のリスト Input: List of unwanted items
出力: 節約金額、体重減少量 Output: Savings, weight loss
具体的な動作: サーバは不要商品の価格を合計し、不要商品のカロリーを基に体重減少量を算出する。例えば、不要商品の合計価格が350円で、合計カロリーが500kcalの場合、体重減少量は0.064kg(500kcal / 7700kcal)と計算される。 Specific operation: The server adds up the prices of the unwanted items and calculates the amount of weight loss based on the calories of the unwanted items. For example, if the total price of the unwanted items is 350 yen and the total calories are 500 kcal, the amount of weight loss will be calculated as 0.064 kg (500 kcal / 7700 kcal).
ステップ6: Step 6:
サーバが計算結果をグラフやチャート形式で生成し、スマートフォンアプリケーションに送信する。 The server generates the calculation results in the form of graphs and charts and sends them to the smartphone application.
入力: 節約金額、体重減少量 Input: Amount saved, weight loss
出力: グラフやチャートの画像データ Output: Image data for graphs and charts
具体的な動作: サーバは計算結果を基にグラフやチャートを生成し、画像データとしてスマートフォンアプリケーションに送信する。 Specific operation: The server generates graphs and charts based on the calculation results and sends them as image data to the smartphone application.
ステップ7: Step 7:
ユーザがスマートフォンアプリケーションを通じて、節約金額と体重減少量の結果を視覚的に確認する。 Users can visually check the savings and weight loss results through a smartphone application.
入力: グラフやチャートの画像データ Input: Image data for graphs and charts
出力: 視覚的な結果表示 Output: Visual results
具体的な動作: ユーザはアプリケーションを開き、表示されたグラフやチャートを確認する。これにより、不要商品を購入しなかった場合の具体的な節約金額と体重減少量を理解することができる。 What it does: The user opens the app and looks at the graphs and charts that are displayed, allowing them to understand the specific savings and weight loss they could have achieved by not purchasing unnecessary items.
特定処理部290は、特定処理の結果をロボット414に送信する。ロボット414では、制御部46Aが、スピーカ240及び制御対象443に対して特定処理の結果を出力させる。マイクロフォン238は、特定処理の結果に対するユーザ入力を示す音声を取得する。制御部46Aは、マイクロフォン238によって取得されたユーザ入力を示す音声データをデータ処理装置12に送信する。データ処理装置12では、特定処理部290が音声データを取得する。 The specific processing unit 290 transmits the results of the specific processing to the robot 414. In the robot 414, the control unit 46A causes the speaker 240 and the control target 443 to output the results of the specific processing. The microphone 238 acquires audio indicating the user input regarding the results of the specific processing. The control unit 46A transmits audio data indicating the user input acquired by the microphone 238 to the data processing device 12. In the data processing device 12, the specific processing unit 290 acquires the audio data.
データ生成モデル58は、いわゆる生成AI(Artificial Intelligence)である。データ生成モデル58の一例としては、ChatGPT(インターネット検索<URL: https://openai.com/blog/chatgpt>)等の生成AIが挙げられる。データ生成モデル58は、ニューラルネットワークに対して深層学習を行わせることによって得られる。データ生成モデル58には、指示を含むプロンプトが入力され、かつ、音声を示す音声データ、テキストを示すテキストデータ、及び画像を示す画像データ等の推論用データが入力される。データ生成モデル58は、入力された推論用データをプロンプトにより示される指示に従って推論し、推論結果を音声データ及びテキストデータ等のデータ形式で出力する。ここで、推論とは、例えば、分析、分類、予測、及び/又は要約等を指す。 Data generation model 58 is what is known as generative AI (artificial intelligence). An example of data generation model 58 is generative AI such as ChatGPT (Internet search <URL: https://openai.com/blog/chatgpt>). Data generation model 58 is obtained by performing deep learning on a neural network. A prompt containing an instruction is input to data generation model 58, and inference data such as voice data indicating voice, text data indicating text, and image data indicating an image is also input. Data generation model 58 performs inference on the input inference data in accordance with the instructions indicated by the prompt, and outputs the inference results in the form of data such as voice data and text data. Here, inference refers to, for example, analysis, classification, prediction, and/or summarization.
生成AIの他の例としては、Gemini(インターネット検索<URL: https://gemini.google.com/?hl=ja>)が挙げられる。 Another example of generative AI is Gemini (Internet search <URL: https://gemini.google.com/?hl=ja>).
上記実施形態では、データ処理装置12によって特定処理が行われる形態例を挙げたが、本開示の技術はこれに限定されず、ロボット414によって特定処理が行われるようにしてもよい。 In the above embodiment, an example was given in which the specific processing was performed by the data processing device 12, but the technology disclosed herein is not limited to this, and the specific processing may also be performed by the robot 414.
なお、感情エンジンとしての感情特定モデル59は、特定のマッピングに従い、ユーザの感情を決定してよい。具体的には、感情特定モデル59は、特定のマッピングである感情マップ(図9参照)に従い、ユーザの感情を決定してよい。また、感情特定モデル59は、同様に、ロボットの感情を決定し、特定処理部290は、ロボットの感情を用いた特定処理を行うようにしてもよい。 The emotion identification model 59, which serves as an emotion engine, may determine the user's emotion according to a specific mapping. Specifically, the emotion identification model 59 may determine the user's emotion according to an emotion map (see Figure 9), which is a specific mapping. Similarly, the emotion identification model 59 may determine the robot's emotion, and the identification processing unit 290 may perform identification processing using the robot's emotion.
図9は、複数の感情がマッピングされる感情マップ400を示す図である。感情マップ400において、感情は、中心から放射状に同心円に配置されている。同心円の中心に近いほど、原始的状態の感情が配置されている。同心円のより外側には、心境から生まれる状態や行動を表す感情が配置されている。感情とは、情動や心的状態も含む概念である。同心円の左側には、概して脳内で起きる反応から生成される感情が配置されている。同心円の右側には概して、状況判断で誘導される感情が配置されている。同心円の上方向及び下方向には、概して脳内で起きる反応から生成され、かつ、状況判断で誘導される感情が配置されている。また、同心円の上側には、「快」の感情が配置され、下側には、「不快」の感情が配置されている。このように、感情マップ400では、感情が生まれる構造に基づいて複数の感情がマッピングされており、同時に生じやすい感情が、近くにマッピングされている。 Figure 9 shows an emotion map 400 on which multiple emotions are mapped. In emotion map 400, emotions are arranged in concentric circles radiating from the center. Emotions closer to the center of the concentric circles are more primitive. Emotions representing states and actions arising from a state of mind are arranged on the outer edges of the concentric circles. The concept of emotion includes both emotions and mental states. Emotions that are generally generated from reactions that occur in the brain are arranged on the left side of the concentric circles. Emotions that are generally induced by situational judgment are arranged on the right side of the concentric circles. Emotions that are generally generated from reactions that occur in the brain and are induced by situational judgment are arranged above and below the concentric circles. Furthermore, the emotion of "pleasure" is arranged on the top side of the concentric circles, and the emotion of "discomfort" is arranged on the bottom side. In this way, emotion map 400 maps multiple emotions based on the structure by which emotions are generated, with emotions that tend to occur simultaneously being mapped close together.
これらの感情は、感情マップ400の3時の方向に分布しており、普段は安心と不安のあたりを行き来する。感情マップ400の右半分では、内部的な感覚よりも状況認識の方が優位に立つため、落ち着いた印象になる。 These emotions are distributed in the 3 o'clock direction on emotion map 400, and usually fluctuate between relief and anxiety. In the right half of emotion map 400, situational awareness takes precedence over internal sensations, resulting in a calm impression.
感情マップ400の内側は心の中、感情マップ400の外側は行動を表すため、感情マップ400の外側に行くほど、感情が目に見える(行動に表れる)ようになる。 The inside of emotion map 400 represents what is going on in the mind, and the outside of emotion map 400 represents behavior, so the further out you go on emotion map 400, the more visible (expressed in behavior) the emotion becomes.
ここで、人の感情は、姿勢や血糖値のような様々なバランスを基礎としており、それらのバランスが理想から遠ざかると不快、理想に近づくと快という状態を示す。ロボットや自動車やバイク等においても、姿勢やバッテリー残量のような様々なバランスを基礎として、それらのバランスが理想から遠ざかると不快、理想に近づくと快という状態を示すよ Here, human emotions are based on various balances, such as posture and blood sugar levels. When these balances deviate from the ideal, discomfort is felt, and when they approach the ideal, comfort is felt. Robots, cars, motorcycles, etc. also use various balances, such as posture and battery level, as their basis. When these balances deviate from the ideal, discomfort is felt, and when they approach the ideal, comfort is felt.
うに感情を作ることができる。感情マップは、例えば、光吉博士の感情地図(音声感情認識及び情動の脳生理信号分析システムに関する研究、徳島大学、博士論文:https://ci.nii.ac.jp/naid/500000375379)に基づいて生成されてよい。感情地図の左半分には、感覚が優位にたつ「反応」と呼ばれる領域に属する感情が並ぶ。また、感情地図の右半分には、状況認識が優位にたつ「状況」と呼ばれる領域に属する感情が並ぶ。 Emotions can be created in this way. An emotion map may be generated, for example, based on Dr. Mitsuyoshi's emotion map (Research on speech emotion recognition and emotional brain physiological signal analysis systems, Tokushima University, doctoral dissertation: https://ci.nii.ac.jp/naid/500000375379). The left half of the emotion map lists emotions that belong to an area called "reaction," where sensation is dominant. The right half of the emotion map lists emotions that belong to an area called "situation," where situational awareness is dominant.
感情マップでは学習を促す感情が2つ定義される。1つは、状況側にあるネガティブな「懺悔」や「反省」の真ん中周辺の感情である。つまり、「もう2度とこんな想いはしたくない」「もう叱られたくない」というネガティブな感情がロボットに生じたときである。もう1つは、反応側にあるポジティブな「欲」のあたりの感情である。つまり、「もっと欲しい」「もっと知りたい」というポジティブな気持ちのときである。 The emotion map defines two emotions that encourage learning. One is the negative emotion around the middle of "repentance" or "reflection" on the situation side. In other words, this is when the robot experiences negative emotions such as "I never want to feel this way again" or "I don't want to be scolded again." The other is the positive emotion around "desire" on the response side. In other words, this is when the robot experiences positive feelings such as "I want more" or "I want to know more."
感情特定モデル59は、ユーザ入力を、予め学習されたニューラルネットワークに入力し、感情マップ400に示す各感情を示す感情値を取得し、ユーザの感情を決定する。このニューラルネットワークは、ユーザ入力と、感情マップ400に示す各感情を示す感情値との組み合わせである複数の学習データに基づいて予め学習されたものである。また、このニューラルネットワークは、図10に示す感情マップ900のように、近くに配置されている感情同士は、近い値を持つように学習される。図10では、「安心」、「安穏」、「心強い」という複数の感情が、近い感情値となる例を示している。 The emotion identification model 59 inputs user input into a pre-trained neural network, obtains emotion values indicating each emotion shown in the emotion map 400, and determines the user's emotion. This neural network is pre-trained based on multiple pieces of training data that are combinations of user input and emotion values indicating each emotion shown in the emotion map 400. Furthermore, this neural network is trained so that emotions that are close to each other have similar values, as in the emotion map 900 shown in Figure 10. Figure 10 shows an example in which multiple emotions, such as "relieved," "calm," and "reassuring," have similar emotion values.
上記実施形態では、1台のコンピュータ22によって特定処理が行われる形態例を挙げたが、本開示の技術はこれに限定されず、コンピュータ22を含めた複数のコンピュータによる特定処理に対する分散処理が行われるようにしてもよい。 In the above embodiment, an example was given in which a specific process is performed by a single computer 22, but the technology disclosed herein is not limited to this, and distributed processing of the specific process may also be performed by multiple computers, including computer 22.
上記実施形態では、ストレージ32に特定処理プログラム56が格納されている形態例を挙げて説明したが、本開示の技術はこれに限定されない。例えば、特定処理プログラム56がUSB(Universal Serial Bus)メモリなどの可搬型のコンピュータ読み取り可能な非一時的格納媒体に格納されていてもよい。非一時的格納媒体に格納されている特定処理プログラム56は、データ処理装置12のコンピュータ22にインストールされる。プロセッサ28は、特定処理プログラム56に従って特定処理を実行する。 In the above embodiment, an example was described in which the specific processing program 56 is stored in the storage 32, but the technology of the present disclosure is not limited to this. For example, the specific processing program 56 may be stored in a portable, computer-readable, non-transitory storage medium such as a USB (Universal Serial Bus) memory. The specific processing program 56 stored in the non-transitory storage medium is installed in the computer 22 of the data processing device 12. The processor 28 executes the specific processing in accordance with the specific processing program 56.
また、ネットワーク54を介してデータ処理装置12に接続されるサーバ等の格納装置に特定処理プログラム56を格納させておき、データ処理装置12の要求に応じて特定処理プログラム56がダウンロードされ、コンピュータ22にインストールされるようにしてもよい。 Alternatively, the specific processing program 56 may be stored in a storage device such as a server connected to the data processing device 12 via the network 54, and the specific processing program 56 may be downloaded and installed on the computer 22 in response to a request from the data processing device 12.
なお、ネットワーク54を介してデータ処理装置12に接続されるサーバ等の格納装置に特定処理プログラム56の全てを格納させておいたり、ストレージ32に特定処理プログラム56の全てを記憶させたりしておく必要はなく、特定処理プログラム56の一部を格納させておいてもよい。 It is not necessary to store the entire specific processing program 56 in a storage device such as a server connected to the data processing device 12 via the network 54, or to store the entire specific processing program 56 in the storage 32; only a portion of the specific processing program 56 may be stored.
特定処理を実行するハードウェア資源としては、次に示す各種のプロセッサを用いることができる。プロセッサとしては、例えば、ソフトウェア、すなわち、プログラムを実行することで、特定処理を実行するハードウェア資源として機能する汎用的なプロセッサであるCPUが挙げられる。また、プロセッサとしては、例えば、FPGA(Field-Programmable Gate Array)、PLD(Programmable Logic Device)、又はASIC(Application Specific Integrated Circuit)などの特定の処理を実行させるために専用に設計された回路構成を有するプロセッサである専用電気回路が挙げられる。何れのプロセッサにもメモリが内蔵又は接続されており、何れのプロセッサもメモリを使用することで特定処理を実行する。 The following types of processors can be used as hardware resources for executing specific processes. Examples of processors include a CPU, a general-purpose processor that functions as a hardware resource for executing specific processes by executing software, i.e., a program. Other examples of processors include dedicated electrical circuits, such as FPGAs (Field-Programmable Gate Arrays), PLDs (Programmable Logic Devices), or ASICs (Application Specific Integrated Circuits), which are processors with a circuit configuration designed specifically for executing specific processes. All processors have built-in or connected memory, and all use the memory to execute specific processes.
特定処理を実行するハードウェア資源は、これらの各種のプロセッサのうちの1つで構成されてもよいし、同種又は異種の2つ以上のプロセッサの組み合わせ(例えば、複数のFPGAの組み合わせ、又はCPUとFPGAとの組み合わせ)で構成されてもよい。また、特定処理を実行するハードウェア資源は1つのプロセッサであってもよい。 The hardware resource that executes the specific processing may be composed of one of these various processors, or may be composed of a combination of two or more processors of the same or different types (for example, a combination of multiple FPGAs, or a combination of a CPU and an FPGA). The hardware resource that executes the specific processing may also be a single processor.
1つのプロセッサで構成する例としては、第1に、1つ以上のCPUとソフトウェアの組み合わせで1つのプロセッサを構成し、このプロセッサが、特定処理を実行するハードウェア資源として機能する形態がある。第2に、SoC(System-on-a-chip)などに代表されるように、特定処理を実行する複数のハードウェア資源を含むシステム全体の機能を1つのICチップで実現するプロセッサを使用する形態がある。このように、特定処理は、ハードウェア資源として、上記各種のプロセッサの1つ以上を用いて実現される。 As an example of a configuration using a single processor, first, there is a configuration in which one processor is configured using a combination of one or more CPUs and software, and this processor functions as a hardware resource that executes specific processing. Second, there is a configuration in which a processor is used to realize the functions of an entire system, including multiple hardware resources that execute specific processing, on a single IC chip, as typified by SoC (System-on-a-chip). In this way, specific processing is realized using one or more of the various processors listed above as hardware resources.
更に、これらの各種のプロセッサのハードウェア的な構造としては、より具体的には、半導体素子などの回路素子を組み合わせた電気回路を用いることができる。また、上記の特定処理はあくまでも一例である。従って、主旨を逸脱しない範囲内において不要なステップを削除したり、新たなステップを追加したり、処理順序を入れ替えたりしてもよいことは言うまでもない。 More specifically, the hardware structure of these various processors can be an electrical circuit that combines circuit elements such as semiconductor devices. Furthermore, the specific processing described above is merely an example. Therefore, it goes without saying that unnecessary steps can be deleted, new steps can be added, or the processing order can be rearranged, all within the scope of the spirit of the invention.
以上に示した記載内容及び図示内容は、本開示の技術に係る部分についての詳細な説明であり、本開示の技術の一例に過ぎない。例えば、上記の構成、機能、作用、及び効果に関する説明は、本開示の技術に係る部分の構成、機能、作用、及び効果の一例に関する説明である。よって、本開示の技術の主旨を逸脱しない範囲内において、以上に示した記載内容及び図示内容に対して、不要な部分を削除したり、新たな要素を追加したり、置き換えたりしてもよいことは言うまでもない。また、錯綜を回避し、本開示の技術に係る部分の理解を容易にするために、以上に示した記載内容及び図示内容では、本開示の技術の実施を可能にする上で特に説明を要しない技術常識等に関する説明は省略されている。 The above-described written content and illustrations are a detailed explanation of the parts related to the technology of the present disclosure and are merely an example of the technology of the present disclosure. For example, the above explanation of the configuration, functions, actions, and effects is an explanation of an example of the configuration, functions, actions, and effects of the parts related to the technology of the present disclosure. Therefore, it goes without saying that unnecessary parts may be deleted, new elements may be added, or substitutions may be made to the above-described written content and illustrations, as long as they do not deviate from the spirit of the technology of the present disclosure. Furthermore, to avoid confusion and facilitate understanding of the parts related to the technology of the present disclosure, the above-described written content and illustrations omit explanations of common technical knowledge that do not require particular explanation to enable the implementation of the technology of the present disclosure.
本明細書に記載された全ての文献、特許出願及び技術規格は、個々の文献、特許出願及び技術規格が参照により取り込まれることが具体的かつ個々に記された場合と同程度に、本明細書中に参照により取り込まれる。 All publications, patent applications, and technical standards mentioned in this specification are incorporated by reference herein to the same extent as if each individual publication, patent application, and technical standard was specifically and individually indicated to be incorporated by reference.
以上の実施形態に関し、更に以下を開示する。 The following is further disclosed regarding the above embodiments.
(請求項1) (Claim 1)
顧客が現在の身長体重と目標を記入する手段と、顧客が買い物後に購入レシートを提出する手段と、今回の買い物で不要だと判断できる商品を添削する手段と、不要商品を買わなかったら節約できるお金&減る体重を可視化する手段を含むシステム。 The system includes a means for customers to enter their current height and weight and goals, a means for customers to submit purchase receipts after shopping, a means for customers to correct any items that are determined to be unnecessary in this purchase, and a means for customers to visualize the money they could save and the weight they would lose if they did not buy the unnecessary items.
(請求項2)
前記添削する手段が、顧客の身長体重と目標に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system according to claim 1 , wherein the correcting means determines unnecessary products based on the customer's height, weight, and goals.
(請求項3)
前記可視化する手段が、節約できるお金と減る体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the visualization means graphically displays the money saved and weight lost.
(請求項4)
前記システムが、ユーザの感情を認識する感情エンジンを更に含む、請求項1記載のシステム。
(Claim 4)
The system of claim 1 , wherein the system further comprises an emotion engine that recognizes an emotion of a user.
(請求項5)
前記感情エンジンが、ユーザの感情に基づいて不要な商品を判断する、請求項4記載のシステム。
(Claim 5)
The system of claim 4 , wherein the emotion engine determines unwanted products based on the user's emotions.
(請求項6)
前記感情エンジンが、ユーザの感情に基づいて節約できるお金と減る体重をグラフィカルに表示する、請求項4記載のシステム。
(Claim 6)
The system of claim 4 , wherein the emotion engine graphically displays money saved and weight lost based on the user's emotions.
「実施例1」 "Example 1"
(請求項1)
顧客が現在の身長体重と目標を記入する手段と、
顧客が買い物後に購入レシートを提出する手段と、
今回の買い物で不要だと判断できる商品を添削する手段と、
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、
顧客が入力したデータを受信し、保存する手段と、
保存されたデータを基に生成AIモデルに対するプロンプト文を生成する手段と、
生成AIモデルがダイエットプランを提案する手段を含むシステム。
(Claim 1)
A means for the customer to enter their current height and weight and goals;
a means for the customer to submit a purchase receipt after making a purchase;
A way to correct items that you think are unnecessary for this shopping trip,
A way to visualize the money you can save and the weight you can lose if you don't buy unnecessary products,
means for receiving and storing data entered by the customer;
A means for generating a prompt sentence for the generative AI model based on the stored data;
A system including a means for a generative AI model to suggest a diet plan.
(請求項2)
前記添削する手段が、顧客の身長体重と目標に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system according to claim 1 , wherein the correcting means determines unnecessary products based on the customer's height, weight, and goals.
(請求項3)
前記可視化する手段が、節約できるお金と減る体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the visualization means graphically displays the money saved and weight lost.
「応用例1」 "Application Example 1"
(請求項1)
顧客が現在の身長体重と目標を記入する手段と、
顧客が買い物後に購入レシートを提出する手段と、
今回の買い物で不要だと判断できる商品を添削する手段と、
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、
顧客の身長体重と目標に基づいて適切な食事プランを生成する手段と、
生成された食事プランを顧客に提示する手段と、
を含むシステム。
(Claim 1)
A means for the customer to enter their current height and weight and goals;
a means for the customer to submit a purchase receipt after making a purchase;
A way to correct items that you think are unnecessary for this shopping trip,
A way to visualize the money you can save and the weight you can lose if you don't buy unnecessary products,
A means for generating an appropriate meal plan based on the customer's height, weight, and goals;
a means for presenting the generated meal plan to the customer;
A system including:
(請求項2)
前記添削する手段が、顧客の身長体重と目標に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system according to claim 1 , wherein the correcting means determines unnecessary products based on the customer's height, weight, and goals.
(請求項3)
前記可視化する手段が、節約できるお金と減る体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the visualization means graphically displays the money saved and weight lost.
「実施例2」 "Example 2"
(請求項1)
顧客が現在の身長体重と目標を記入する手段と、
顧客が買い物後に購入レシートを提出するために画像を撮影し、アプリケーションにアップロードする手段と、
今回の買い物で不要だと判断できる商品を添削する手段と、
不要商品を買わなかったら節約できる金額および減る体重を可視化する手段を含むシステム。
(Claim 1)
A means for the customer to enter their current height and weight and goals;
a means for the customer to take an image of the purchase and upload it to the application to provide a receipt for the purchase;
A way to correct items that you think are unnecessary for this shopping trip,
A system that includes a means to visualize the amount of money saved and the weight lost by not buying unnecessary items.
(請求項2)
前記添削する手段が、顧客の身長体重と目標に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system according to claim 1 , wherein the correcting means determines unnecessary products based on the customer's height, weight, and goals.
(請求項3)
前記可視化する手段が、節約できる金額と減る体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the visualization means graphically displays the amount of money saved and the weight lost.
「応用例2」 "Application Example 2"
(請求項1)
顧客が現在の身長体重と目標を記入する手段と、
顧客が買い物後に購入レシートをスマートフォンのカメラで撮影し、アプリケーションにアップロードする手段と、
今回の買い物で不要だと判断できる商品を添削する手段と、
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、
購入レシートの内容を解析し、購入情報を自動的に抽出する手段と、
抽出された購入情報に基づいて、顧客にポイントを還元する手段と、
還元されたポイントを次回の購入時に使用できる手段
を含むシステム。
(Claim 1)
A means for the customer to enter their current height and weight and goals;
After shopping, customers can take a photo of their purchase receipt with their smartphone camera and upload it to the application.
A way to correct items that you think are unnecessary for this shopping trip,
A way to visualize the money you can save and the weight you can lose if you don't buy unnecessary products,
means for analyzing the contents of a purchase receipt and automatically extracting purchase information;
A means for redeeming points to customers based on the extracted purchase information;
A system that includes a means to use earned points for your next purchase.
(請求項2)
前記添削する手段が、顧客の身長体重と目標に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system according to claim 1 , wherein the correcting means determines unnecessary products based on the customer's height, weight, and goals.
(請求項3)
前記可視化する手段が、節約できるお金と減る体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the visualization means graphically displays the money saved and weight lost.
「実施例3」 "Example 3"
(請求項1)
顧客が現在の身長体重と目標を記入する手段と、
顧客が買い物後に購入レシートを提出する手段と、
提出されたレシート情報を光学文字認識技術でテキストデータに変換する手段と、
顧客の身長体重と目標に基づいて不要な商品を判断する手段と、
不要商品を買わなかった場合に節約できる金額と減少する体重を計算する手段と、
計算結果をグラフィカルに表示する手段を含むシステム。
(Claim 1)
A means for the customer to enter their current height and weight and goals;
a means for the customer to submit a purchase receipt after making a purchase;
A means for converting the submitted receipt information into text data using optical character recognition technology;
A means to determine unnecessary products based on the customer's height, weight, and goals;
A way to calculate how much money you could save and how much weight you could lose if you didn't buy unnecessary items,
A system including means for graphically displaying the results of the calculations.
(請求項2)
前記光学文字認識技術でテキストデータに変換する手段が、レシート画像を解析して商品名と価格を抽出する、請求項1記載のシステム。
(Claim 2)
2. The system according to claim 1, wherein the means for converting into text data using optical character recognition technology analyzes a receipt image to extract the product name and price.
(請求項3)
前記不要商品を判断する手段が、事前に定義された食品カテゴリと目標に基づくルールベースのフィルタリングを行う、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the means for determining unwanted items performs rule-based filtering based on predefined food categories and goals.
「応用例3」 "Application Example 3"
(請求項1)
顧客が現在の身長体重と目標を記入する手段と、
顧客が買い物後に購入レシートを提出する手段と、
今回の買い物で不要だと判断できる商品を添削する手段と、
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、
レシートの情報を解析し、ダイエット目標に基づいて不要な商品を自動的に検出する手段と、
不要商品を買わなかった場合の節約できる金額と推定体重減少量を計算し、グラフやチャートで表示する手段と、
スマートフォンにインストールされるアプリケーションを含むシステム。
(Claim 1)
A means for the customer to enter their current height and weight and goals;
a means for the customer to submit a purchase receipt after making a purchase;
A way to correct items that you think are unnecessary for this shopping trip,
A way to visualize the money you can save and the weight you can lose if you don't buy unnecessary products,
A means for analyzing receipt information and automatically detecting unnecessary products based on diet goals;
A way to calculate the amount of money you can save and the estimated amount of weight you can lose by not buying unnecessary items, and display them in graphs and charts.
A system that includes applications that are installed on smartphones.
(請求項2)
前記添削する手段が、顧客の身長体重と目標に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system according to claim 1 , wherein the correcting means determines unnecessary products based on the customer's height, weight, and goals.
(請求項3)
前記可視化する手段が、節約できるお金と減る体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the visualization means graphically displays the money saved and weight lost.
「感情エンジンを組み合わせた場合の実施例1」 "Example 1: Combining Emotion Engines"
(請求項1)
顧客が現在の身長体重と目標を記入する手段と、
顧客が買い物後に購入レシートを提出する手段と、
今回の買い物で不要だと判断できる商品を添削する手段と、
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、
顧客の感情を認識し、その感情に基づいて不要な商品を判断する手段と、
顧客の感情に基づいて健康的な商品を推奨する手段と、
を含むシステム。
(Claim 1)
A means for the customer to enter their current height and weight and goals;
a means for the customer to submit a purchase receipt after making a purchase;
A way to correct items that you think are unnecessary for this shopping trip,
A way to visualize the money you can save and the weight you can lose if you don't buy unnecessary products,
A means of recognizing customer emotions and determining unnecessary products based on those emotions;
A means of recommending healthy products based on customer sentiment;
A system including:
(請求項2)
前記添削する手段が、顧客の身長体重と目標に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system according to claim 1 , wherein the correcting means determines unnecessary products based on the customer's height, weight, and goals.
(請求項3)
前記可視化する手段が、節約できるお金と減る体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the visualization means graphically displays the money saved and weight lost.
「感情エンジンを組み合わせた場合の応用例1」 "Application example 1: Combining emotion engines"
(請求項1)
顧客が現在の身長体重と目標を記入する手段と、
顧客が買い物後に購入レシートを提出する手段と、
今回の買い物で不要だと判断できる商品を添削する手段と、
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、
顧客の感情を認識し、その感情に基づいて不要な商品を判断する手段と、
を含むシステム。
(Claim 1)
A means for the customer to enter their current height and weight and goals;
a means for the customer to submit a purchase receipt after making a purchase;
A way to correct items that you think are unnecessary for this shopping trip,
A way to visualize the money you can save and the weight you can lose if you don't buy unnecessary products,
A means of recognizing customer emotions and determining unnecessary products based on those emotions;
A system including:
(請求項2)
前記添削する手段が、顧客の身長体重と目標および感情に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system according to claim 1 , wherein the correction means determines unnecessary products based on the customer's height, weight, goals, and emotions.
(請求項3)
前記可視化する手段が、節約できるお金と減る体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the visualization means graphically displays the money saved and weight lost.
「感情エンジンを組み合わせた場合の実施例2」 "Example 2: Combining Emotion Engines"
(請求項1)
顧客が現在の身体情報と目標を記入する手段と、
顧客が買い物後に購入証明書を提出する手段と、
顧客が携帯端末の撮影機能を用いて購入証明書の画像を取得し、アプリケーションにアップロードする手段と、
サーバが画像処理技術を用いて購入証明書の内容をテキストデータに変換する手段と、
サーバが変換されたテキストデータを保存する手段と、
顧客が感情データを入力する手段と、
サーバが感情解析技術を用いて顧客の感情データを解析する手段と、
サーバが解析結果に基づいて不要な商品を判断し、節約できる金額と減少した体重を計算する手段と、
サーバが計算結果をグラフィカルに表示する手段を含むシステム。
(Claim 1)
a means for the customer to enter their current physical information and goals;
A means for customers to submit proof of purchase after making a purchase;
A means for the customer to take an image of the purchase certificate using the photographing function of the mobile device and upload it to the application;
A means for the server to convert the contents of the purchase certificate into text data using image processing technology;
A means for the server to store the converted text data;
a means for the customer to input emotion data;
A means for the server to analyze customer emotion data using emotion analysis technology;
A means for the server to determine unnecessary products based on the analysis results and calculate the amount of money saved and the weight lost;
The system includes a means for the server to graphically display the results of the calculations.
(請求項2)
前記判断する手段が、顧客の身体情報と目標に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system of claim 1 , wherein the determining means determines unnecessary products based on physical information and goals of the customer.
(請求項3)
前記表示する手段が、節約できる金額と減少した体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
10. The system of claim 1, wherein said displaying means graphically displays the amount of money saved and the weight lost.
「感情エンジンを組み合わせた場合の応用例2」 "Application Example 2: Combining Emotion Engines"
(請求項1)
顧客が現在の身長体重と目標を記入する手段と、
顧客が買い物後に購入レシートをスマートフォンのカメラを用いて撮影し、アプリケーションにアップロードする手段と、
今回の買い物で不要だと判断できる商品を添削する手段と、
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、
顧客の感情を分析し、ストレスを感じているときに不要な商品を買わなかった場合の節約金額と体重減少量をグラフィカルに表示する手段を含むシステム。
(Claim 1)
A means for the customer to enter their current height and weight and goals;
A means for customers to take a photo of their purchase receipt using their smartphone camera after shopping and upload it to the application;
A way to correct items that you think are unnecessary for this shopping trip,
A way to visualize the money you can save and the weight you can lose if you don't buy unnecessary products,
The system includes a means for analyzing customer emotions and graphically displaying savings and weight loss if unnecessary items are not purchased when the customer is under stress.
(請求項2)
前記添削する手段が、顧客の身長体重と目標に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system according to claim 1 , wherein the correcting means determines unnecessary products based on the customer's height, weight, and goals.
(請求項3)
前記可視化する手段が、節約できるお金と減る体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the visualization means graphically displays the money saved and weight lost.
「感情エンジンを組み合わせた場合の実施例3」 "Example 3: Combining Emotion Engines"
(請求項1)
顧客が現在の身長体重と目標を入力する手段と、
顧客が買い物後に購入レシートの画像をアップロードする手段と、
レシート画像を光学文字認識技術を用いてデジタルデータに変換する手段と、
デジタルデータから商品情報を解析し、不要な商品を検出する手段と、
不要商品の合計金額と推定体重減少量を計算する手段と、
計算結果をグラフやチャートで可視化する手段を含むシステム。
(Claim 1)
a means for the customer to input their current height and weight and goals;
A means for customers to upload an image of their purchase receipt after making a purchase;
A means for converting receipt images into digital data using optical character recognition technology;
A means for analyzing product information from digital data and detecting unnecessary products;
a means for calculating the total value of unwanted items and the estimated weight loss;
A system that includes a means for visualizing the results of calculations in graphs and charts.
(請求項2)
前記不要な商品を検出する手段が、顧客の身長体重と目標に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system of claim 1 , wherein the means for detecting unwanted products determines unwanted products based on the customer's height, weight, and goals.
(請求項3)
前記計算結果を可視化する手段が、節約できるお金と減る体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the means for visualizing the calculation results graphically displays the money saved and weight lost.
「感情エンジンを組み合わせた場合の応用例3」 "Application Example 3: Combining Emotion Engines"
(請求項1)
顧客が現在の身長体重と目標を記入する手段と、
顧客が買い物後に購入レシートを提出する手段と、
今回の買い物で不要だと判断できる商品を添削する手段と、
不要商品を買わなかったら節約できるお金&減る体重を可視化する手段と、
不要商品を検出し、節約金額と体重減少量を計算する手段と、
検出結果をグラフで表示する手段と、
を含むシステム。
(Claim 1)
A means for the customer to enter their current height and weight and goals;
a means for the customer to submit a purchase receipt after making a purchase;
A way to correct items that you think are unnecessary for this shopping trip,
A way to visualize the money you can save and the weight you can lose if you don't buy unnecessary products,
A means for detecting unnecessary items and calculating savings and weight loss;
a means for displaying the detection results in a graph;
A system including:
(請求項2)
前記添削する手段が、顧客の身長体重と目標に基づいて不要な商品を判断する、請求項1記載のシステム。
(Claim 2)
The system according to claim 1 , wherein the correcting means determines unnecessary products based on the customer's height, weight, and goals.
(請求項3)
前記可視化する手段が、節約できるお金と減る体重をグラフィカルに表示する、請求項1記載のシステム。
(Claim 3)
The system of claim 1 , wherein the visualization means graphically displays the money saved and weight lost.
10、210、310、410 データ処理システム
12 データ処理装置
14 スマートデバイス
214 スマート眼鏡
314 ヘッドセット型端末
414 ロボット
10, 210, 310, 410 Data processing system 12 Data processing device 14 Smart device 214 Smart glasses 314 Headset type terminal 414 Robot
Claims (1)
顧客が買い物後に購入レシートを提出する手段と、
感情エンジンを用いて顧客の感情状態を解析する手段と、
提出された前記購入レシートの情報を参照して、顧客が入力した顧客の身長体重とダイエット目標と、感情エンジンを用いて解析された顧客の感情状態と、に基づいて、今回の買い物で不要だと判断できる商品を特定して添削する手段と、
不要商品を買わなかったら節約できる節約金額と、その商品を摂取しなかった場合の推定体重減少量を可視化する手段と、
顧客が入力した現在の身長体重とダイエット目標とに基づいて、ダイエットプランを提案することを指示するプロンプト文を生成する手段と、
生成されたプロンプト文と、生成AIモデルとを用いて、ダイエットプランを提案する手段と、
提案されたダイエットプランと、可視化された節約金額と推定体重減少量の情報を顧客の端末に送信する手段と、
前記添削する手段は、前記顧客の身長体重と、ダイエット目標と、前記顧客の感情状態の解析結果と、を含むプロンプト文を生成AIモデルに入力することで、不要な商品を判断する、
システム。
A means for the customer to enter their current height, weight and diet goals;
a means for the customer to submit a purchase receipt after making a purchase;
means for analyzing the emotional state of a customer using an emotion engine;
A means for identifying and correcting products that are determined to be unnecessary for the current purchase based on the customer's height, weight, and diet goals entered by the customer and the customer's emotional state analyzed using an emotion engine, by referring to the information on the submitted purchase receipt;
A way to visualize the amount of money you could save by not buying unnecessary products and the estimated weight loss you would experience if you didn't consume those products.
means for generating a prompt sentence instructing the customer to propose a diet plan based on the customer's current height and weight and diet goal;
A means for suggesting a diet plan using the generated prompt sentence and the generative AI model;
means for transmitting the proposed diet plan and the visualized savings and estimated weight loss information to the customer's terminal;
The correction means determines unnecessary products by inputting a prompt sentence including the height and weight of the customer , a diet goal, and an analysis result of the emotional state of the customer into a generation AI model.
system.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2023151020 | 2023-09-19 | ||
| JP2023151020 | 2023-09-19 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2025044199A JP2025044199A (en) | 2025-04-01 |
| JP7825006B2 true JP7825006B2 (en) | 2026-03-05 |
Family
ID=95205312
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2024161782A Active JP7825006B2 (en) | 2023-09-19 | 2024-09-19 | system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7825006B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7835480B1 (en) * | 2025-10-06 | 2026-03-25 | 株式会社Asobica | Information processing systems, information processing methods, and programs |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006134114A (en) | 2004-11-05 | 2006-05-25 | Xing Inc | Calorie intake control method, calorie information processing system and calorie information processing apparatus, and computer program |
| JP2012168857A (en) | 2011-02-16 | 2012-09-06 | Omron Healthcare Co Ltd | Management device, management system and display method in management system |
| JP2013235406A (en) | 2012-05-09 | 2013-11-21 | Hitachi Consumer Electronics Co Ltd | Product purchasing system |
| JP2017102614A (en) | 2015-11-30 | 2017-06-08 | 株式会社ニコン | Electronics |
| JP2020513119A (en) | 2017-04-07 | 2020-04-30 | アクセス ビジネス グループ インターナショナル リミテッド ライアビリティ カンパニー | Weight management and activity tracking system |
-
2024
- 2024-09-19 JP JP2024161782A patent/JP7825006B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006134114A (en) | 2004-11-05 | 2006-05-25 | Xing Inc | Calorie intake control method, calorie information processing system and calorie information processing apparatus, and computer program |
| JP2012168857A (en) | 2011-02-16 | 2012-09-06 | Omron Healthcare Co Ltd | Management device, management system and display method in management system |
| JP2013235406A (en) | 2012-05-09 | 2013-11-21 | Hitachi Consumer Electronics Co Ltd | Product purchasing system |
| JP2017102614A (en) | 2015-11-30 | 2017-06-08 | 株式会社ニコン | Electronics |
| JP2020513119A (en) | 2017-04-07 | 2020-04-30 | アクセス ビジネス グループ インターナショナル リミテッド ライアビリティ カンパニー | Weight management and activity tracking system |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2025044199A (en) | 2025-04-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7825006B2 (en) | system | |
| JP2025049234A (en) | system | |
| JP2026035137A (en) | system | |
| JP2026021179A (en) | system | |
| JP2026026863A (en) | system | |
| JP2026029013A (en) | system | |
| JP2026035221A (en) | system | |
| JP2026038283A (en) | system | |
| JP2026035213A (en) | system | |
| JP2026036094A (en) | system | |
| JP2026024064A (en) | system | |
| JP2026040095A (en) | system | |
| JP2026027079A (en) | system | |
| JP2026018374A (en) | system | |
| JP2026036241A (en) | system | |
| JP2026040176A (en) | system | |
| JP2025044231A (en) | system | |
| JP2026072772A (en) | system | |
| JP2026014836A (en) | system | |
| JP2026041304A (en) | system | |
| JP2026028788A (en) | system | |
| JP2026033333A (en) | system | |
| JP2026034200A (en) | system | |
| JP2026024609A (en) | system | |
| JP2026030271A (en) | system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20241118 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20250422 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20250606 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20250924 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20251113 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20260210 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20260220 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7825006 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |