System
A system efficiently collects and visually displays product terms and conditions using regular expressions, addressing the challenge of managing and understanding complex purchase information, thereby improving user convenience.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2026-03-06
AI Technical Summary
Users face challenges in efficiently managing and understanding the terms and conditions of purchased products, as this information is often confusingly formatted and time-consuming to review, leading to important details being overlooked.
A system that collects purchase history, extracts specific information (e.g., return period, warranty period, usage precautions) from web pages using regular expressions, and visually displays this information in an organized format on devices like smartphones.
Efficiently provides users with important product information, allowing them to easily check and act on terms and conditions, enhancing user convenience and reducing the likelihood of overlooking critical details.
Smart Images

Figure 2026038014000001_ABST
Abstract
Description
[Technical Field]
[0001] The technology of the present disclosure relates to a system. [Background technology]
[0002] Patent document 1 discloses a persona chatbot control method performed 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 character, encoding the prompt, and inputting the encoded prompt into a language model to generate a chatbot utterance in response to the user utterance. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Publication No. 2022-180282 Summary of the Invention [Problem to be solved by the invention]
[0004] In recent years, with the spread of online shopping, users have been purchasing a variety of products more and more frequently. However, individually checking the terms and conditions of each purchased product (e.g., return policy, warranty period, usage precautions, etc.) can be time-consuming and can lead to overlooking important information. Furthermore, this information is often provided in a confusing format, making it difficult for users to accurately understand it. Therefore, there is a need for a system that can automatically retrieve, analyze, and display the terms and conditions of purchased products in an organized format. [Means for solving the problem]
[0005] To solve the above-mentioned problems, the present invention provides a system including means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (e.g., return period, warranty period, usage precautions, etc.), and means for visually displaying the extracted specific information to the user. Specifically, the system analyzes the HTML structure of the web page to extract the terms and conditions information, and then uses regular expressions to extract the specific information. By providing this information to the user in a visually easy-to-understand format, the user can easily check important terms and conditions information for the purchased product and take appropriate action.
[0006] "User" refers to an individual or corporation that uses the system to purchase products and confirm terms and conditions information.
[0007] "Purchase history" refers to data that includes information about products that a user has purchased in the past, specifically including the names of the products and the URLs of related web pages.
[0008] "Web page" refers to a document in HTML format that is publicly available on the Internet.
[0009] "Terms and conditions information" refers to a document that contains important information about a product, such as the product purchase conditions, usage precautions, warranty period, and return period.
[0010] "Means of collection" refers to software or programs for retrieving HTML content from designated web pages and collecting policy information.
[0011] "Means for analysis" refers to the means for analyzing collected clause information and extracting specific information. Specifically, it refers to a program that organizes and extracts information using regular expressions, etc.
[0012] "Means for extracting" refers to software or a program that extracts specific important information (e.g., return period, warranty period, usage precautions, etc.) from the analyzed information.
[0013] "Means for visual display" refers to a display or screen display means for visually presenting extracted information to users. Specifically, it refers to displaying information in a format such as a GUI.
[0014] "Regular expressions" refers to a method for identifying and extracting specific patterns from text data.
[0015] "HTML structure" refers to the hierarchical structure of tags and elements in HTML, the basic markup language that makes up web pages. [Brief explanation of the drawings]
[0016] [Figure 1] 1 is a conceptual diagram showing an example of the configuration of a data processing system according to a first embodiment. [Figure 2] 1 is a conceptual diagram showing an example of main functions of a data processing device and a smart device according to a first embodiment. [Figure 3] FIG. 10 is a conceptual diagram showing an example of the configuration of a data processing system according to a second embodiment. [Figure 4] FIG. 10 is a conceptual diagram showing an example of main functions of a data processing device and smart glasses according to a second embodiment. [Figure 5] FIG. 10 is a conceptual diagram showing an example of the configuration of a data processing system according to a third embodiment. [Figure 6] FIG. 11 is a conceptual diagram showing an example of main functions of a data processing device and a headset-type terminal according to a third embodiment. [Figure 7] FIG. 10 is a conceptual diagram showing an example of the configuration of a data processing system according to a fourth embodiment. [Figure 8] FIG. 10 is a conceptual diagram showing an example of main functions of a data processing device and a robot according to a fourth embodiment. [Figure 9] 1 shows an emotion map onto which multiple emotions are mapped. [Figure 10] 1 shows an emotion map onto which multiple emotions are mapped. [Figure 11]FIG. 3 is a sequence diagram showing a processing flow of the data processing system according to the first embodiment. [Figure 12] FIG. 10 is a sequence diagram showing the flow of processing in the data processing system in Application Example 1. [Figure 13] FIG. 10 is a sequence diagram showing the flow of processing in the data processing system according to the second embodiment when an emotion engine is combined. [Figure 14] FIG. 10 is a sequence diagram showing the flow of processing in the data processing system in Application Example 2 when an emotion engine is combined. DETAILED DESCRIPTION OF THE INVENTION
[0017] An example of an embodiment of a system according to the technology of the present disclosure will be described below with reference to the accompanying drawings.
[0018] First, the terms used in the following description will be explained.
[0019] In the following embodiments, a coded processor (hereinafter simply referred to as a "processor") may be a single arithmetic device or a combination of multiple arithmetic devices. Furthermore, a processor may be a single type of arithmetic device or a combination of multiple types of arithmetic devices. Examples of arithmetic devices include a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a GPGPU (General-Purpose computing on Graphics Processing Units), and an APU (Accelerated Processing Unit).
[0020] In the following embodiments, a coded RAM (Random Access Memory) is a memory in which information is temporarily stored and is used as a working memory by a processor.
[0021] In the following embodiments, the coded storage is one or more non-volatile storage devices that store various programs, various parameters, etc. Examples of non-volatile storage devices include flash memory (SSD (Solid State Drive)), magnetic disks (e.g., hard disks), and magnetic tapes.
[0022] In the following embodiments, a communication I / F (Interface) with a symbol is an interface including a communication processor, an antenna, etc. The communication I / F controls communication between multiple computers. Examples of communication standards applied to the communication I / F include wireless communication standards including 5G (5th Generation Mobile Communication System), Wi-Fi (registered trademark), Bluetooth (registered trademark), etc.
[0023] 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 only A, only B, or a combination of A and B. Furthermore, in this specification, the same concept as "A and / or B" is also applied when three or more things are expressed connected by "and / or."
[0024] [First embodiment]
[0025] FIG. 1 shows an example of the configuration of a data processing system 10 according to the first embodiment.
[0026] 1, a 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.
[0027] 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, a RAM 30, and a storage 32. The processor 28, the RAM 30, and the storage 32 are connected to a bus 34. The database 24 and the 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).
[0028] 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, a RAM 48, and a storage 50. The processor 46, the RAM 48, and the storage 50 are connected to a bus 52. The reception device 38, the output device 40, and the camera 42 are also connected to the bus 52.
[0029] The reception device 38 includes a touch panel 38A, a microphone 38B, and the like, and receives user input. The touch panel 38A detects contact with an indicator (for example, a pen or a finger) to receive user input by the touch of the indicator. The microphone 38B detects the user's voice to receive user input by 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.
[0030] The output device 40 includes a display 40A and a speaker 40B, and presents data to the user 20 by outputting the data in a form of expression that the user 20 can perceive (for example, 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.
[0031] The communication I / F 44 is connected to a network 54. The communication I / Fs 44 and 26 control the exchange of various information between the processor 46 and the processor 28 via the network 54.
[0032] FIG. 2 shows an example of the main functions of the data processing device 12 and the smart device 14.
[0033] 2, in the data processing device 12, a specific process 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 process 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.
[0034] The 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.
[0035] In the smart device 14, the processor 46 performs the reception output process. 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 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.
[0036] Next, a description will be given of the specific processing performed by the specific processing unit 290 of the data processing device 12. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0037] This invention is a system that efficiently collects contract information for products purchased by users and visually displays the analysis results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[0038] Server Roles
[0039] Receiving purchase history
[0040] The server first receives the user's purchase history, which is data containing information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[0041] Collecting policy information
[0042] The server then collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[0043] Device Role
[0044] Analysis of clause information
[0045] Next, the terminal analyzes the contract information obtained from the server. During the analysis, specific information (such as return period, warranty period, and usage precautions) is extracted from the contract information using regular expressions. This allows important information for the user to be extracted efficiently from the contract information.
[0046] Visual display of information
[0047] The analysis results are visually displayed on the device. Specifically, specific extracted information (such as return periods, warranty periods, and usage precautions) is displayed in an easy-to-understand format for the user. This allows users to check important information about the purchased product at a glance.
[0048] User Use
[0049] Registering purchase history
[0050] A user registers their purchase history in the system. For example, if they purchased "Product A" and "Product B," they enter the names of the products and the associated URLs into the system.
[0051] Verify the information
[0052] After the system collects and analyzes the information, the user checks the information displayed on the device. For example, the return period and usage precautions for "Product A" are displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product's warranty period.
[0053] Specific examples
[0054] For example, suppose a user purchases "Product A" and "Product B." First, the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." Next, the device analyzes the obtained information and extracts the return period and usage precautions for "Product A." For example, if the terms and conditions for "Product A" state that "the return period is within 30 days" and "the usage precaution is to avoid high temperatures," this information is extracted. The device then displays information to the user in the form of "Product A: The return period is within 30 days" or "Product A: The usage precaution is to avoid high temperatures."
[0055] In this way, the present invention efficiently provides important product clause information to users and supports them in responding appropriately.
[0056] The processing flow will be explained below.
[0057] Step 1:
[0058] A user inputs his / her purchasing history into the system. Specifically, the history is saved as a list including the names of purchased products and the URLs of the associated web pages.
[0059] Step 2:
[0060] The server receives the purchase history entered by the user and sends an HTTP request to the URL of each product in the list, thereby retrieving the HTML content of the associated web page.
[0061] Step 3:
[0062] The BeautifulSoup library is used to parse the HTML content retrieved by the server. The server extracts all paragraph elements ( tag) and concatenate the text into a single string.
[0063] Step 4:
[0064] The server stores the linked text data in a dictionary with the product name as a key, thereby organizing the terms and conditions information for each product.
[0065] Step 5:
[0066] The device receives dictionary-formatted contract information from the server. The device parses the contract information and uses regular expressions to extract specific information (such as return period, warranty period, and usage precautions).
[0067] Step 6:
[0068] Using regular expression patterns, the terminal extracts specific information from the contract information of each product. For example, the pattern "return period.?(\d+days)" extracts the return period.
[0069] Step 7:
[0070] The device stores the extracted specific information in a new dictionary using the product name as a key, providing information that is organized and easy for the user to understand.
[0071] Step 8:
[0072] The device visually displays the organized information, specifically using a GUI to show the user the name of each product and related terms and conditions (e.g., return policy and usage instructions).
[0073] Step 9:
[0074] The user checks the information displayed on the device, allowing them to grasp important terms and conditions of the purchased product at a glance and respond appropriately in their daily lives.
[0075] Example 1
[0076] Next, a description will be given of Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0077] Today's consumers purchase many products online, resulting in the need to manage the terms and conditions of various products. However, this information is diverse and it is extremely cumbersome to manage and review it manually. Furthermore, while important information is contained in the terms and conditions, reviewing it all takes time and effort, which can lead to users overlooking important information. Therefore, there is a need for a system that can efficiently collect, automatically analyze, and visually display terms and conditions information.
[0078] The specific processing by the specific processing unit 290 of the data processing device 12 in the first embodiment is realized by the following means.
[0079] In this invention, the server includes means for receiving a user's purchase history and collecting clause information from related web pages based on the purchase history, means for analyzing the collected clause information and extracting specific information (return period, warranty period, usage precautions, etc.) using regular expressions, means for visually displaying the analyzed specific information to the user, and means for displaying the analysis results via the user's terminal, thereby enabling the user to efficiently collect clause information and easily check important information.
[0080] "User" means an individual or corporation that uses the system to register their purchase history and check terms and conditions information.
[0081] "Purchase history" is data containing information about products that a user has purchased in the past, including the names of the products and the URLs of related web pages.
[0082] A "server" is a computer system that receives purchase histories from users and collects and analyzes policy information from related web pages.
[0083] "Terms and conditions information" refers to document information that describes the product's usage conditions, warranty period, return period, etc.
[0084] A "regular expression" is a special notation used to search and extract strings, and is used to find specific patterns.
[0085] The "detailed analysis means" is a means for analyzing the collected clause information and extracting specific information using regular expressions.
[0086] "Visual display means" refers to a means for displaying analyzed information in a form that allows the user to easily confirm the information.
[0087] A "terminal" is a computer system or device that a user uses to check information obtained from a server.
[0088] "HTML structure" refers to the underlying hierarchical structure of the documents that make up a web page.
[0089] This invention is a system that efficiently collects contract information for products purchased by users and visually displays the analysis results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[0090] Server Roles
[0091] Receiving purchase history
[0092] The server first receives the user's purchase history, which is data containing information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[0093] Collecting policy information
[0094] The server then collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[0095] Device Role
[0096] Analysis of clause information
[0097] Next, the terminal analyzes the contract information obtained from the server. During the analysis, regular expressions are used to extract specific information from the contract information (e.g., return period, warranty period, usage precautions, etc.). This allows important information for the user to be extracted efficiently from the contract information.
[0098] Visual display of information
[0099] The analysis results are visually displayed on the device. Specifically, specific information such as return periods, warranty periods, and usage precautions are displayed in an easy-to-understand format for the user, allowing the user to check important information about the purchased product at a glance.
[0100] User Use
[0101] Registering purchase history
[0102] A user registers their purchase history in the system. For example, if they purchased "Product A" and "Product B," they enter the names of the products and the associated URLs into the system.
[0103] Verify the information
[0104] After the system collects and analyzes the information, the user checks the information displayed on the device. For example, the return period and usage precautions for "Product A" are displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product's warranty period.
[0105] Specific examples
[0106] For example, suppose a user purchases "Product A" and "Product B." First, the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." Next, the device analyzes the obtained information and extracts the return period and usage precautions for "Product A." For example, if the terms and conditions for "Product A" state that "the return period is within 30 days" and "the usage precaution is to avoid high temperatures," this information is extracted. The device then displays information to the user in the form of "Product A: The return period is within 30 days" or "Product A: The usage precaution is to avoid high temperatures."
[0107] Prompt Sentence Examples
[0108] A user has purchased "Product A" and "Product B." Please retrieve the terms and conditions information and display the return period and usage precautions for "Product A."
[0109] In this way, the present invention efficiently provides important product clause information to users and supports them in responding appropriately.
[0110] The flow of the identification process in the first embodiment will be described with reference to FIG.
[0111] Step 1:
[0112] Receiving purchase history
[0113] The server receives purchase history from the user. The user enters the product name and the associated URL. The purchase history data is sent to the server in JSON format.
[0114] Input and Output: The input is the purchase history (product name and URL) provided by the user, and the output is the purchase history information stored in the internal database.
[0115] Specific operation: The server receives the purchase history data sent by the user and stores it in an internal database.
[0116] Step 2:
[0117] Collecting policy information
[0118] The server collects terms and conditions information from related web pages based on the purchase history stored in the internal database.
[0119] Input and Output: The input is the saved purchase history data, and the output is text data containing the terms and conditions information.
[0120] Specific operation: The server uses the BeautifulSoup library to retrieve HTML content from each URL listed in the purchase history, parses the HTML, and extracts all paragraph elements. The retrieved text is then stored in a database in the form of a dictionary with product names as keys.
[0121] Step 3:
[0122] Analysis of clause information
[0123] The terminal analyzes the terms and conditions information obtained from the server.
[0124] Input and Output: The input is text data obtained from the server, and the output is specific information extracted using regular expressions.
[0125] Specific operation: The device uses a regular expression library to search for specific keywords (e.g., "return period," "warranty period," "usage precautions") in the acquired text data, extracts this information, and formats the extracted information in a format that can be viewed by the user.
[0126] Step 4:
[0127] Visual display of information
[0128] The terminal visually displays the analysis results.
[0129] Input and Output: Input is the specific information that is parsed, and output is the information that is visually presented to the user.
[0130] Specific operation: The terminal visually formats the extracted information in list or table format and displays it through the user interface, allowing the user to easily check important policy information.
[0131] Step 5:
[0132] Verify the information
[0133] The user checks the parsed clause information.
[0134] Input and Output: The input is the analysis result displayed on the terminal, and the output is the information obtained by the user.
[0135] Specific operations: The user can check information such as the return period, warranty period, and usage precautions for each product through the device, and obtain important information regarding product usage.
[0136] As described above, the processing of this system is such that the server and terminal cooperate to efficiently provide important clause information to the user.
[0137] (Application example 1)
[0138] Next, a description will be given of Application Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0139] Conventional purchase history management systems have had difficulty efficiently collecting, analyzing, and visually displaying terms and conditions information (such as return periods, warranty periods, and usage precautions) for products purchased by users. Furthermore, there was a lack of a way to easily check this information on smartphones and other mobile devices. This made it difficult for users to quickly and accurately grasp important terms and conditions information for purchased products and take appropriate action.
[0140] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 1 is realized by the following means.
[0141] In this invention, the server includes means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, and means for displaying the extracted specific information on a mobile device. This allows users to quickly and accurately grasp important terms and conditions information for purchased products and easily check them on their smartphones or other mobile devices.
[0142] "User" refers to a person who uses the system to register purchase history and check information.
[0143] "Purchase history" refers to data including the names of products a user has previously purchased and the URLs of related web pages.
[0144] "Terms and conditions information" refers to information that describes important rules and conditions regarding purchased products, such as return periods, warranty periods, and usage precautions.
[0145] "Means of collection" refers to the server's ability to retrieve the HTML content of a web page from a specified URL.
[0146] "Means of analysis" refers to the function of extracting specific information from the collected clause information using regular expressions.
[0147] "Means for visual display" refers to the function of the device to display the analysis results in an easy-to-understand manner for the user.
[0148] "Mobile devices" refers to mobile information terminals such as smartphones and tablets.
[0149] This invention is a system that efficiently collects and analyzes contract information for products purchased by users and visually displays the results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[0150] Server Roles
[0151] Receiving purchase history
[0152] The server first receives the user's purchase history, which includes information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[0153] Collecting policy information
[0154] Next, the server collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[0155] Device Role
[0156] Analysis of clause information
[0157] Next, the terminal analyzes the contract information obtained from the server. During the analysis, specific information (e.g., return period, warranty period, usage precautions, etc.) is extracted using regular expressions. This process efficiently extracts information that is important to the user from the contract information.
[0158] Visual display of information
[0159] The analysis results are visually displayed on the device. Specifically, specific extracted information (such as return periods, warranty periods, and usage precautions) is displayed in an easy-to-understand format for the user. This allows users to check important information about the purchased product at a glance.
[0160] View on mobile devices
[0161] The extracted specific information is displayed on mobile devices such as smartphones or tablets, allowing users to easily check the policy information and take necessary action quickly.
[0162] User Use
[0163] Registering purchase history
[0164] A user registers his or her purchase history in the system. For example, when a user purchases a specific product, the user enters the name of the product and the associated URL into the system.
[0165] Verify the information
[0166] After the system collects and analyzes the information, the user can check the information displayed on the device. For example, the return period and usage precautions for a certain product can be displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product warranty period.
[0167] Specific examples
[0168] For example, suppose a user purchases a specific product. The server collects terms and conditions information from the specified product's URL, and the device analyzes that information. Through the analysis, important information such as the return period and usage precautions is extracted. The user can then use their smartphone to check information such as "The return period is 30 days" and "Avoid high temperatures."
[0169] Prompt Sentence Examples
[0170] "Collect product terms and conditions information from the following URL and extract the return period, warranty period, and usage precautions. URL: https: / / example.com / productA"
[0171] In this way, the present invention is a system that efficiently provides important product clause information to users and supports them in taking the necessary actions quickly.
[0172] The flow of the specific processing in the application example 1 will be described with reference to FIG.
[0173] Step 1:
[0174] The server receives the user's purchase history. When a user registers a purchase history, they enter the product name and the associated URL. This input data is received by the server and saved in a database. The input here is the product name and the product's associated URL, and the output is the purchase history saved in the database.
[0175] Step 2:
[0176] The server collects terms and conditions information from related web pages based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL. The HTML content is retrieved using the Requests library and parsed using the BeautifulSoup library. The input at this stage is the URL, and the output is the terms and conditions information extracted from the HTML content.
[0177] Step 3:
[0178] The server analyzes the extracted terms and conditions information and extracts specific information. During the analysis, regular expressions are used to extract important information such as the return period, warranty period, and usage precautions. The input at this stage is the text data of the HTML content, and the output is the analyzed specific information.
[0179] Step 4:
[0180] The server transmits the analyzed specific information to the terminal. Here, the input is the analyzed specific information, and the output is the data to be transmitted to the terminal. The server transmits this data to the user's mobile device.
[0181] Step 5:
[0182] The device visually displays the specific information it receives. The information acquired by the device is displayed to the user in a visually easy-to-understand format. For example, information such as "Return period is 30 days" and "Avoid high temperatures" may be displayed on a smartphone screen. The input here is the specific information that has been analyzed, and the output is the information displayed on the user interface.
[0183] Step 6:
[0184] The user checks the information displayed on the device and takes the necessary action. For example, if a return period is displayed, the user can return the product within that period if necessary. The input here is the information displayed on the device, and the output is the user's judgment and action.
[0185] In this way, specific data processing and data calculation are performed at each step, and a system is realized that efficiently provides clause information to users.
[0186] 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.
[0187] The present invention combines an emotion engine with a system that efficiently collects contract information for products purchased by users and visually displays the analyzed results. Specific embodiments of this system are described below.
[0188] Server Roles
[0189] Receiving purchase history
[0190] As a user, the user first enters their purchase history into the system, including the names of the products they have purchased and the URLs of the associated web pages. The server then receives this purchase history.
[0191] Collecting policy information
[0192] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL using an HTTP request and analyzes the page content using an HTML parsing library such as BeautifulSoup.
[0193] Device Role
[0194] Analysis of clause information
[0195] The terminal analyzes the HTML content obtained from the server and extracts the terms and conditions information for each product. The extracted text data is concatenated and stored in a dictionary with the product name as the key. The terminal then further analyzes this terms and conditions information and extracts specific information (e.g., return period, warranty period, usage precautions, etc.) using regular expressions.
[0196] Visual display of information
[0197] After the device extracts the specific information, it visually displays it in an easy-to-understand format for the user. Specifically, it displays the information using a GUI, allowing the user to check the necessary information at a glance.
[0198] Incorporating an emotion engine
[0199] Emotion Recognition in Action
[0200] The terminal further recognizes the user's emotions using an emotion engine, which can analyze the user's facial expressions, voice, or input data to identify the user's current emotional state.
[0201] Customized display of information
[0202] Based on the emotions recognized by the emotion engine, the device adjusts the way information is visually displayed, specifically adjusting the layout, color tone, and font size of the information depending on the user's emotional state, to present the information in a format that is optimal for the user.
[0203] User Use
[0204] Registering purchase history
[0205] As an example of inputting a purchase history into the system, the user inputs "product A" and "product B."
[0206] Information verification and emotion recognition
[0207] After the policy information is collected, analyzed, and displayed, the emotion engine recognizes the user's emotions when they review the information displayed on their device. For example, if the user shows confusion at the displayed information, the device will adjust the display layout and color tones to make the information easier for the user to understand.
[0208] For example, if a user purchases "Product A" and "Product B," the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes the information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the layout and color of the displayed information to make it easier for the user to understand.
[0209] In this way, the present invention efficiently provides users with important terms and conditions information for purchased products, and further improves convenience for users by optimizing the way information is presented according to the user's emotions.
[0210] The processing flow will be explained below.
[0211] Step 1:
[0212] A user inputs his / her purchasing history into the system. Specifically, the user inputs the names of purchased products and the URLs of the related web pages in a list format. This list is used for subsequent processing.
[0213] Step 2:
[0214] The server receives the purchase history input from the user, which includes the names of the products and the URLs of the associated web pages.
[0215] Step 3:
[0216] The server retrieves HTML content from the web pages related to each product based on the received purchase history. Specifically, the server retrieves the HTML of the web pages from each URL using an HTTP request.
[0217] Step 4:
[0218] The BeautifulSoup library is used to parse the HTML content retrieved by the server. The server parses the HTML structure and extracts all paragraph elements ( tag) and concatenate the text.
[0219] Step 5:
[0220] The server stores the linked text data in a dictionary with the product name as a key, thereby organizing the terms and conditions information for each product.
[0221] Step 6:
[0222] The terminal receives a dictionary of terms and conditions information obtained from the server. The terminal uses regular expressions to parse this information and extract specific information (e.g., return period, warranty period, usage precautions, etc.).
[0223] Step 7:
[0224] The terminal uses regular expression patterns to extract specific information from the contract information of each product. For example, the pattern "return period.?(\d+days)" is used to extract the return period.
[0225] Step 8:
[0226] The specific information extracted by the device is stored in a new dictionary with the product name as the key, providing information that is organized and easy for the user to understand.
[0227] Step 9:
[0228] The emotion engine analyzes the user's facial expressions, voice, and input data to recognize the user's emotions. Specifically, it uses a camera and microphone to analyze the user's facial expressions and tone of voice.
[0229] Step 10:
[0230] The device adjusts the way information is displayed based on the user's emotions as recognized by the emotion engine. For example, if the user is confused, the device will change the layout and color of the displayed information to make it easier to understand.
[0231] Step 11:
[0232] The device visually displays optimized information to the user. Specifically, the information is displayed using a GUI, allowing the user to check the necessary information at a glance.
[0233] Step 12:
[0234] The user checks the information displayed on the device and understands the terms and conditions of the purchased product. This allows the user to understand important information such as how to use the product and the return period, and respond appropriately.
[0235] For example, if a user purchases "Product A" and "Product B," the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes the information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the layout and color of the displayed information to make it easier for the user to understand. This series of steps allows the user to efficiently and appropriately check the important terms and conditions information for the purchased products.
[0236] Example 2
[0237] Next, a description will be given of Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0238] In today's world, it is important for users to efficiently gather terms and conditions for the products they purchase and quickly understand the information they need. However, the wide variety of terms and conditions information available on web pages makes it difficult for users to extract and understand this information on their own. Furthermore, terms and conditions information is often presented in a visually confusing manner, hindering user understanding. Furthermore, information presentation methods that do not take into account the user's feelings can cause dissatisfaction and confusion.
[0239] The specific processing by the specific processing unit 290 of the data processing device 12 in the second embodiment is realized by the following means. In this invention, the server includes means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, means for recognizing the user's emotions, and means for adjusting the information display method based on the recognized emotions. This allows the user to efficiently collect terms and conditions information and understand the information in a visually easy-to-understand format. Furthermore, the information presentation method based on the user's emotions can improve user satisfaction.
[0240] "User purchase history" is information including the names of products that a user has purchased in the past and the URLs of related web pages.
[0241] "Terms and conditions information" refers to information about the contract contents posted on the webpage, including information on product purchase conditions, return and warranty periods, and usage precautions.
[0242] "Analysis means" refers to methods and tools used to analyze collected HTML content and extract specific information.
[0243] "Visual display means" refers to a method of displaying information using a GUI so that users can easily understand the information.
[0244] "Means for recognizing emotions" refers to technology that analyzes a user's facial expressions, voice, or input data to identify their current emotional state.
[0245] "Means for adjusting the display method" refers to a method for adjusting the layout, color tone, font size, etc. of information based on the recognized emotion.
[0246] The "means for receiving purchase history" refers to a method for receiving purchase history information from a user.
[0247] "HTML content of a web page" refers to the entire content of a web page, including HTML tags and text.
[0248] "Regular expressions" refers to a pattern matching technique used for string searches and replacements.
[0249] "GUI" refers to a graphical user interface designed to allow users to operate it intuitively.
[0250] An "HTTP request" refers to a communication protocol for requesting a specific resource from a web server.
[0251] "HTML parsing library" refers to a software tool for parsing HTML content and extracting structured data.
[0252] The present invention combines an emotion engine with a system that efficiently collects contract information for products purchased by users and visually displays the analyzed results. Specific embodiments of this system are described below.
[0253] Server Roles
[0254] The server's role is to first receive purchase history from the user. The user enters the product name and the URL of the associated web page into the system. This data is sent to the server, which provides a means for it to be received. For example, data is entered using a web form, and the data is sent to the server when the submit button is clicked.
[0255] Next, the server retrieves the HTML content of the relevant webpage from the specified URL. Specifically, it uses the requests library to send an HTTP request to retrieve the HTML data of the webpage. It then uses an HTML parsing library such as BeautifulSoup to parse the HTML content and extract the required data.
[0256] Device Role
[0257] The terminal's role is to analyze the HTML content obtained from the server and extract specific policy information. The terminal uses BeautifulSoup to analyze the HTML and extract specific information from the text (e.g., return policy, warranty period, usage precautions, etc.). Regular expressions are used to accurately extract the desired information.
[0258] The extracted information is then visually displayed to the user. Using GUI libraries such as Tkinter and PyQt, the policy information is displayed in a table format, with important information highlighted, making it visually easy to understand.
[0259] Incorporating an emotion engine
[0260] The system incorporates an emotion engine that can recognize user emotions in real time. It uses libraries such as OpenCV and dlib to capture the user's face from a camera and analyze their facial expressions to identify their emotional state. If the analysis shows that the user is confused, dissatisfied, or satisfied, the layout and color tone of the displayed information are automatically adjusted accordingly.
[0261] User Use
[0262] First, the user inputs the history of purchased products into the system. For example, they input "Product A" and "Product B" and specify the associated URLs for each. The system then collects, analyzes, and displays the terms and conditions information from the web page.
[0263] When the information is displayed, the user checks it and the system recognizes the user's emotions. For example, if the user shows confusion, the device will adjust the display layout and color tones of the information to make it easier for the user to understand.
[0264] Examples of concrete examples and prompts
[0265] For example, if a user purchases "Product A" and "Product B," the server collects terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes this information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the display layout and color tones to make the information easier for the user to understand.
[0266] An example of a specific prompt is:
[0267] "I would like to design a system that recognizes emotions from a user's facial expressions and optimizes the visual presentation of information. First, I would like to know the algorithm that collects data entered by the user, and then retrieves and analyzes information from web pages based on that data."
[0268] It is possible that:
[0269] This system allows users to efficiently collect and understand important terms and conditions information for the products they are purchasing, and by presenting information in response to their emotions, it provides a more satisfying user experience.
[0270] The flow of the identification process in the second embodiment will be described with reference to FIG.
[0271] Step 1: Receive purchase history
[0272] The server receives the purchase history entered by the user. The user enters the product name and the URL of the associated web page and submits the data. To receive this, the server sets up a web form or API endpoint. Specifically, when the user enters the names and URLs of "Product A" and "Product B" and presses the "Submit" button, the server receives the data and stores it in the specified variable.
[0273] Input: Product name and URL entered by the user
[0274] Output: Received purchase history data
[0275] Step 2: Get the HTML content of the web page
[0276] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL. The server uses the requests library to send an HTTP request to retrieve the web page data. For example, it retrieves HTML from the URL of "Product A," and then retrieves it from the URL of "Product B."
[0277] Input: URL included in purchase history data
[0278] Output: HTML content retrieved from the URL
[0279] Step 3: Parsing HTML content
[0280] The terminal receives the HTML content sent from the server. The terminal uses the BeautifulSoup library to parse the HTML and extract the clause information. Specifically, it uses the soup.find_all('p') method to get all paragraphs in the page and extract the text of each.
[0281] Input: Retrieved HTML content
[0282] Output: Parsed clause information text
[0283] Step 4: Extract specific information
[0284] The terminal extracts specific information (such as return period, warranty period, and usage precautions) from the parsed terms and conditions information. Regular expressions are used for this. For example, to extract the return period, a search pattern such as re.search(r'return period:(\d+days)', text) is used. The extracted information is stored in a dictionary data structure.
[0285] Input: Parsed clause information text
[0286] Output: Extracted specific information
[0287] Step 5: Visually display the information
[0288] The terminal visually displays the extracted specific information using a GUI. To make it easier for users to understand, libraries such as Tkinter and PyQt are used to display information about each product in a table or dashboard format. For example, the return period and usage precautions for "Product A" are displayed in a list, with important information highlighted.
[0289] Input: Extracted specific information
[0290] Output: Visually displayed information
[0291] Step 6: Recognize emotions
[0292] The device uses an emotion engine to recognize the user's emotions. It uses libraries such as OpenCV and dlib to capture the user's face from the camera and analyze their facial expressions to determine their current emotional state. For example, if the user's brow is furrowed, it will recognize that they are confused.
[0293] Input: Real-time video from the camera
[0294] Output: Perceived emotional state
[0295] Step 7: Adjust the display
[0296] Based on the recognized emotion, the device will adjust the way information is displayed. For example, if the user shows a confused expression, the device will simplify the layout of the information, soften the color tone, and increase the font size, making it easier for the user to understand the information.
[0297] Input: Perceived emotional state
[0298] Output: Adjusted information display
[0299] In this way, the system efficiently collects terms and conditions information for purchased products and presents it in an easy-to-understand format. Furthermore, by presenting information that takes into account the user's emotions, the system improves user satisfaction.
[0300] (Application example 2)
[0301] Next, a description will be given of Application Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0302] Product terms and conditions are extremely important in modern purchasing activities, but it is difficult to efficiently collect this information and display it in a visually understandable manner. Furthermore, adjusting the display format of the information based on the user's emotional response to the presented information would improve the user experience, but current systems lack such functionality. In particular, infotainment systems for autonomous vehicles require information display that adapts to the user's emotional response to provide a safe and comfortable shopping experience.
[0303] The specific processing 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 means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, means for recognizing the user's emotions, and means for adjusting the layout and color tone of the visually displayed information based on the recognized emotions. This allows the user to more easily understand the terms and conditions information based on their purchase history and receive the information in a display format optimal for their emotions at the time.
[0304] "User" refers to a user of this system.
[0305] "Purchase history" is data that includes information about products that a user has purchased in the past.
[0306] A "related web page" refers to a web page that contains information about the product purchased by the user.
[0307] "Terms and conditions information" refers to important contract and agreement information regarding products and services, such as product return periods, warranty periods, and usage precautions.
[0308] "Means for collecting" refers to the technical means by which the server obtains the necessary information from related web pages based on the purchase history.
[0309] "Means for analysis" refers to the technical means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions).
[0310] "Visual display means" refers to technical means for displaying extracted information in an easy-to-understand manner for the user.
[0311] "Means for recognizing" refers to technical means for identifying a user's emotional state using facial expressions, voice, or input data.
[0312] "Adjusting means" refers to technical means that change the layout or color tone of visually displayed information based on perceived emotions.
[0313] "System" is a general term for a series of devices and programs that include each of the above means.
[0314] "Information layout" refers to the arrangement and structure of information that is visually displayed.
[0315] "Color tone" refers to the color and brightness of the displayed information.
[0316] The system of the present invention incorporates a function for efficiently collecting user purchasing histories and visually displaying the analyzed results. It also uses an emotion engine to recognize the user's emotions and adjusts the display format of information according to those emotions, improving the user experience. A specific embodiment for implementing this system is described below.
[0317] Server Roles
[0318] Receiving purchase history
[0319] The server receives the purchase history entered by the user, which includes the names of the purchased items and the URLs of the associated web pages.
[0320] Collecting policy information
[0321] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL using an HTTP request, and then parses the retrieved HTML content using an HTML parsing library such as BeautifulSoup.
[0322] Device Role
[0323] Analysis of clause information
[0324] The terminal receives the HTML content obtained from the server and analyzes it. Product terms and conditions information is extracted from the HTML content and stored as text data in a dictionary. Specific information (e.g., return period, warranty period, usage precautions, etc.) is extracted using regular expressions during the analysis.
[0325] Visual display of information
[0326] The extracted specific information is visually displayed to the user using a GUI, allowing the user to check the required information at a glance.
[0327] Incorporating an emotion engine
[0328] Emotion Recognition in Action
[0329] The terminal further recognizes the user's emotions using an emotion engine, which analyzes the user's facial expressions to identify their emotional state.
[0330] Customized display of information
[0331] The layout and color of the visually displayed information can be adjusted based on the user's emotions. For example, if the user shows a confused expression, the device will adjust the display layout and color to make the information easier for the user to understand.
[0332] Hardware and software used
[0333] The server uses libraries (e.g., requests) to process HTTP requests and BeautifulSoup for HTML parsing. The device uses the emotion_recognition library for emotion analysis. Smart glasses (e.g., Google® Glass®) or other display devices are used to visually display information.
[0334] Specific examples
[0335] For example, if a user purchases "Product A" and "Product B," the server collects the terms and conditions information for "Product A" and "Product B" from their respective URLs (e.g., "https: / / example.com / productA" and "https: / / example.com / productB"). The device analyzes the collected information, extracts specific information, and displays it visually. If the emotion engine recognizes dissatisfaction from the user's facial expression, it can adjust the display format to provide the user with the most appropriate information.
[0336] Prompt Sentence Examples
[0337] "Please take as input an image of the user's facial expression captured by the camera of the smart glasses and analyze its emotions. Based on the analysis results, please propose a display format that will satisfy the user. Please use the emotion_recognition library for analyzing the emotions in the image and the flask framework for proposing a layout based on the analysis results."
[0338] The flow of the specific processing in the application example 2 will be described with reference to FIG.
[0339] Step 1:
[0340] A server receives the user's purchasing history.
[0341] Specifically, the server receives purchase information entered by the user through the infotainment system (e.g., smart glasses or other devices). This information includes the name of the purchased product and the URL of the associated web page. The input is the user's operation, and the output is the purchase history data received by the server.
[0342] Step 2:
[0343] The server collects clause information from related web pages based on the purchase history.
[0344] The server uses an HTTP request to retrieve HTML content from the URL of each product included in the purchase history data. The input is the URL and the output is the HTML content. The server uses a library such as the requests library to perform this process.
[0345] Step 3:
[0346] Parse the HTML content retrieved by the server.
[0347] The server uses BeautifulSoup or another HTML parsing library to extract the terms and conditions information from the retrieved HTML content. For example, it parses HTML tags with specific class names or ID names. The input is the HTML content, and the output is the extracted terms and conditions information as text data.
[0348] Step 4:
[0349] The server transfers the policy information to the terminal.
[0350] The server sends the extracted clause information to the terminal. The input is the text data of the clause information, and the output is the data received by the terminal. This transfer uses the HTTP protocol or other data communication methods.
[0351] Step 5:
[0352] The terminal further analyzes the received terms and conditions information and extracts specific information.
[0353] The terminal analyzes the received terms and conditions information using regular expressions and extracts specific information such as the return period, warranty period, and usage precautions. The input is the text data of the terms and conditions information, and the output is the extracted specific information.
[0354] Step 6:
[0355] The device visually displays specific information extracted.
[0356] The terminal displays the extracted information in a GUI in a format that is easy for the user to understand. For example, it uses different colors depending on the type of information, or highlights important information. The input is specific information, and the output is visual information displayed on the terminal's display.
[0357] Step 7:
[0358] The device recognizes the user's emotions.
[0359] The device's camera and microphone are used to capture the user's facial expressions and voice, and the emotion_recognition library is used to analyze their emotions. The input is the user's facial expression images and voice data, and the output is the analyzed emotional data.
[0360] Step 8:
[0361] The device adjusts the visual display based on the emotion it recognizes.
[0362] The device adjusts the display layout and color tone based on the analyzed emotional data. For example, if the user shows a confused expression, the device will display information more simply. The input is emotional data, and the output is adjusted visual information.
[0363] Prompt Sentence Examples
[0364] "Please take as input an image of the user's facial expression captured by the camera of the smart glasses and analyze its emotions. Based on the analysis results, please propose a display format that will satisfy the user. Please use the emotion_recognition library for analyzing the emotions in the image and the flask framework for proposing a layout based on the analysis results."
[0365] The specific processing unit 290 transmits the result 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 result of the specific processing. The microphone 38B acquires audio indicating a user input regarding the result 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.
[0366] The data generation model 58 is a so-called generative AI (Artificial Intelligence). An example of the data generation model 58 is ChatGPT (registered trademark) (Internet search engine).<URL: https: / / openai.com / blog / chatgpt> ), Gemini (registered trademark) (Internet search <url: https: gemini.google.com ?hl="ja">) and other generation AIs. The data generation model 58 is obtained by performing deep learning on a neural network. A prompt including an instruction is input to the 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. The data generation model 58 performs inference on the input inference data in accordance with the instruction indicated by the prompt, and outputs the inference result in a data format such as voice data and text data. Here, inference refers to, for example, analysis, classification, prediction, and / or summarization.
[0367] In the above embodiment, an example in which the specific process is performed by the data processing device 12 has been given, but the technology of the present disclosure is not limited to this, and the specific process may be performed by the smart device 14.
[0368] [Second embodiment]
[0369] FIG. 3 shows an example of the configuration of a data processing system 210 according to the second embodiment.
[0370] 3, the data processing system 210 includes the data processing device 12 and smart glasses 214. An example of the data processing device 12 is a server.
[0371] 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, a RAM 30, and a storage 32. The processor 28, the RAM 30, and the storage 32 are connected to a bus 34. The database 24 and the 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).
[0372] 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, a RAM 48, and a storage 50. The processor 46, the RAM 48, and the storage 50 are connected to a bus 52. The microphone 238, the speaker 240, and the camera 42 are also connected to the bus 52.
[0373] 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.
[0374] 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 surroundings of user 20 (for example, an imaging range defined by an angle of view equivalent to the field of vision of a typical healthy person).
[0375] The communication I / F 44 is connected to a 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 state.
[0376] Fig. 4 shows an example of the main functions of the data processing device 12 and the smart glasses 214. As shown in Fig. 4, in the data processing device 12, a specific process is performed by the processor 28. A specific process program 56 is stored in the storage 32.
[0377] 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.
[0378] The 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.
[0379] 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.
[0380] Next, a description will be given of the identification process performed by the identification processing unit 290 of the data processing device 12. 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."
[0381] This invention is a system that efficiently collects contract information for products purchased by users and visually displays the analysis results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[0382] Server Roles
[0383] Receiving purchase history
[0384] The server first receives the user's purchase history, which is data containing information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[0385] Collecting policy information
[0386] The server then collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[0387] Device Role
[0388] Analysis of clause information
[0389] Next, the terminal analyzes the contract information obtained from the server. During the analysis, specific information (such as return period, warranty period, and usage precautions) is extracted from the contract information using regular expressions. This allows important information for the user to be extracted efficiently from the contract information.
[0390] Visual display of information
[0391] The analysis results are visually displayed on the device. Specifically, specific extracted information (such as return periods, warranty periods, and usage precautions) is displayed in an easy-to-understand format for the user. This allows users to check important information about the purchased product at a glance.
[0392] User Use
[0393] Registering purchase history
[0394] A user registers their purchase history in the system. For example, if they purchased "Product A" and "Product B," they enter the names of the products and the associated URLs into the system.
[0395] Verify the information
[0396] After the system collects and analyzes the information, the user checks the information displayed on the device. For example, the return period and usage precautions for "Product A" are displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product's warranty period.
[0397] Specific examples
[0398] For example, suppose a user purchases "Product A" and "Product B." First, the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." Next, the device analyzes the obtained information and extracts the return period and usage precautions for "Product A." For example, if the terms and conditions for "Product A" state that "the return period is within 30 days" and "the usage precaution is to avoid high temperatures," this information is extracted. The device then displays information to the user in the form of "Product A: The return period is within 30 days" or "Product A: The usage precaution is to avoid high temperatures."
[0399] In this way, the present invention efficiently provides important product clause information to users and supports them in responding appropriately.
[0400] The processing flow will be explained below.
[0401] Step 1:
[0402] A user inputs his / her purchasing history into the system. Specifically, the history is saved as a list including the names of purchased products and the URLs of the associated web pages.
[0403] Step 2:
[0404] The server receives the purchase history entered by the user and sends an HTTP request to the URL of each product in the list, thereby retrieving the HTML content of the associated web page.
[0405] Step 3:
[0406] The BeautifulSoup library is used to parse the HTML content retrieved by the server. The server extracts all paragraph elements (< / url:> tag) and concatenate the text into a single string.
[0407] Step 4:
[0408] The server stores the linked text data in a dictionary with the product name as a key, thereby organizing the terms and conditions information for each product.
[0409] Step 5:
[0410] The device receives dictionary-formatted contract information from the server. The device parses the contract information and uses regular expressions to extract specific information (such as return period, warranty period, and usage precautions).
[0411] Step 6:
[0412] Using regular expression patterns, the terminal extracts specific information from the contract information of each product. For example, the pattern "return period.?(\d+days)" extracts the return period.
[0413] Step 7:
[0414] The device stores the extracted specific information in a new dictionary using the product name as a key, providing information that is organized and easy for the user to understand.
[0415] Step 8:
[0416] The device visually displays the organized information, specifically using a GUI to show the user the name of each product and related terms and conditions (e.g., return policy and usage instructions).
[0417] Step 9:
[0418] The user checks the information displayed on the device, allowing them to grasp important terms and conditions of the purchased product at a glance and respond appropriately in their daily lives.
[0419] Example 1
[0420] Next, a description will be given of Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[0421] Today's consumers purchase many products online, resulting in the need to manage the terms and conditions of various products. However, this information is diverse and it is extremely cumbersome to manage and review it manually. Furthermore, while important information is contained in the terms and conditions, reviewing it all takes time and effort, which can lead to users overlooking important information. Therefore, there is a need for a system that can efficiently collect, automatically analyze, and visually display terms and conditions information.
[0422] The specific processing by the specific processing unit 290 of the data processing device 12 in the first embodiment is realized by the following means.
[0423] In this invention, the server includes means for receiving a user's purchase history and collecting clause information from related web pages based on the purchase history, means for analyzing the collected clause information and extracting specific information (return period, warranty period, usage precautions, etc.) using regular expressions, means for visually displaying the analyzed specific information to the user, and means for displaying the analysis results via the user's terminal, thereby enabling the user to efficiently collect clause information and easily check important information.
[0424] "User" means an individual or corporation that uses the system to register their purchase history and check terms and conditions information.
[0425] "Purchase history" is data containing information about products that a user has purchased in the past, including the names of the products and the URLs of related web pages.
[0426] A "server" is a computer system that receives purchase histories from users and collects and analyzes policy information from related web pages.
[0427] "Terms and conditions information" refers to document information that describes the product's usage conditions, warranty period, return period, etc.
[0428] A "regular expression" is a special notation used to search and extract strings, and is used to find specific patterns.
[0429] The "detailed analysis means" is a means for analyzing the collected clause information and extracting specific information using regular expressions.
[0430] "Visual display means" refers to a means for displaying analyzed information in a form that allows the user to easily confirm the information.
[0431] A "terminal" is a computer system or device that a user uses to check information obtained from a server.
[0432] "HTML structure" refers to the underlying hierarchical structure of the documents that make up a web page.
[0433] This invention is a system that efficiently collects contract information for products purchased by users and visually displays the analysis results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[0434] Server Roles
[0435] Receiving purchase history
[0436] The server first receives the user's purchase history, which is data containing information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[0437] Collecting policy information
[0438] The server then collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[0439] Device Role
[0440] Analysis of clause information
[0441] Next, the terminal analyzes the contract information obtained from the server. During the analysis, regular expressions are used to extract specific information from the contract information (e.g., return period, warranty period, usage precautions, etc.). This allows important information for the user to be extracted efficiently from the contract information.
[0442] Visual display of information
[0443] The analysis results are visually displayed on the device. Specifically, specific information such as return periods, warranty periods, and usage precautions are displayed in an easy-to-understand format for the user, allowing the user to check important information about the purchased product at a glance.
[0444] User Use
[0445] Registering purchase history
[0446] A user registers their purchase history in the system. For example, if they purchased "Product A" and "Product B," they enter the names of the products and the associated URLs into the system.
[0447] Verify the information
[0448] After the system collects and analyzes the information, the user checks the information displayed on the device. For example, the return period and usage precautions for "Product A" are displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product's warranty period.
[0449] Specific examples
[0450] For example, suppose a user purchases "Product A" and "Product B." First, the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." Next, the device analyzes the obtained information and extracts the return period and usage precautions for "Product A." For example, if the terms and conditions for "Product A" state that "the return period is within 30 days" and "the usage precaution is to avoid high temperatures," this information is extracted. The device then displays information to the user in the form of "Product A: The return period is within 30 days" or "Product A: The usage precaution is to avoid high temperatures."
[0451] Prompt Sentence Examples
[0452] A user has purchased "Product A" and "Product B." Please retrieve the terms and conditions information and display the return period and usage precautions for "Product A."
[0453] In this way, the present invention efficiently provides important product clause information to users and supports them in responding appropriately.
[0454] The flow of the identification process in the first embodiment will be described with reference to FIG.
[0455] Step 1:
[0456] Receiving purchase history
[0457] The server receives purchase history from the user. The user enters the product name and the associated URL. The purchase history data is sent to the server in JSON format.
[0458] Input and Output: The input is the purchase history (product name and URL) provided by the user, and the output is the purchase history information stored in the internal database.
[0459] Specific operation: The server receives the purchase history data sent by the user and stores it in an internal database.
[0460] Step 2:
[0461] Collecting policy information
[0462] The server collects terms and conditions information from related web pages based on the purchase history stored in the internal database.
[0463] Input and Output: The input is the saved purchase history data, and the output is text data containing the terms and conditions information.
[0464] Specific operation: The server uses the BeautifulSoup library to retrieve HTML content from each URL listed in the purchase history, parses the HTML, and extracts all paragraph elements. The retrieved text is then stored in a database in the form of a dictionary with product names as keys.
[0465] Step 3:
[0466] Analysis of clause information
[0467] The terminal analyzes the terms and conditions information obtained from the server.
[0468] Input and Output: The input is text data obtained from the server, and the output is specific information extracted using regular expressions.
[0469] Specific operation: The device uses a regular expression library to search for specific keywords (e.g., "return period," "warranty period," "usage precautions") in the acquired text data, extracts this information, and formats the extracted information in a format that can be viewed by the user.
[0470] Step 4:
[0471] Visual display of information
[0472] The terminal visually displays the analysis results.
[0473] Input and Output: Input is the specific information that is parsed, and output is the information that is visually presented to the user.
[0474] Specific operation: The terminal visually formats the extracted information in list or table format and displays it through the user interface, allowing the user to easily check important policy information.
[0475] Step 5:
[0476] Verify the information
[0477] The user checks the parsed clause information.
[0478] Input and Output: The input is the analysis result displayed on the terminal, and the output is the information obtained by the user.
[0479] Specific operations: The user can check information such as the return period, warranty period, and usage precautions for each product through the device, and obtain important information regarding product usage.
[0480] As described above, the processing of this system is such that the server and terminal cooperate to efficiently provide important clause information to the user.
[0481] (Application example 1)
[0482] Next, a description will be given of Application Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[0483] Conventional purchase history management systems have had difficulty efficiently collecting, analyzing, and visually displaying terms and conditions information (such as return periods, warranty periods, and usage precautions) for products purchased by users. Furthermore, there was a lack of a way to easily check this information on smartphones and other mobile devices. This made it difficult for users to quickly and accurately grasp important terms and conditions information for purchased products and take appropriate action.
[0484] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 1 is realized by the following means.
[0485] In this invention, the server includes means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, and means for displaying the extracted specific information on a mobile device. This allows users to quickly and accurately grasp important terms and conditions information for purchased products and easily check them on their smartphones or other mobile devices.
[0486] "User" refers to a person who uses the system to register purchase history and check information.
[0487] "Purchase history" refers to data including the names of products a user has previously purchased and the URLs of related web pages.
[0488] "Terms and conditions information" refers to information that describes important rules and conditions regarding purchased products, such as return periods, warranty periods, and usage precautions.
[0489] "Means of collection" refers to the server's ability to retrieve the HTML content of a web page from a specified URL.
[0490] "Means of analysis" refers to the function of extracting specific information from the collected clause information using regular expressions.
[0491] "Means for visual display" refers to the function of the device to display the analysis results in an easy-to-understand manner for the user.
[0492] "Mobile devices" refers to mobile information terminals such as smartphones and tablets.
[0493] This invention is a system that efficiently collects and analyzes contract information for products purchased by users and visually displays the results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[0494] Server Roles
[0495] Receiving purchase history
[0496] The server first receives the user's purchase history, which includes information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[0497] Collecting policy information
[0498] Next, the server collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[0499] Device Role
[0500] Analysis of clause information
[0501] Next, the terminal analyzes the contract information obtained from the server. During the analysis, specific information (e.g., return period, warranty period, usage precautions, etc.) is extracted using regular expressions. This process efficiently extracts information that is important to the user from the contract information.
[0502] Visual display of information
[0503] The analysis results are visually displayed on the device. Specifically, specific extracted information (such as return periods, warranty periods, and usage precautions) is displayed in an easy-to-understand format for the user. This allows users to check important information about the purchased product at a glance.
[0504] View on mobile devices
[0505] The extracted specific information is displayed on mobile devices such as smartphones or tablets, allowing users to easily check the policy information and take necessary action quickly.
[0506] User Use
[0507] Registering purchase history
[0508] A user registers his or her purchase history in the system. For example, when a user purchases a specific product, the user enters the name of the product and the associated URL into the system.
[0509] Verify the information
[0510] After the system collects and analyzes the information, the user can check the information displayed on the device. For example, the return period and usage precautions for a certain product can be displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product warranty period.
[0511] Specific examples
[0512] For example, suppose a user purchases a specific product. The server collects terms and conditions information from the specified product's URL, and the device analyzes that information. Through the analysis, important information such as the return period and usage precautions is extracted. The user can then use their smartphone to check information such as "The return period is 30 days" and "Avoid high temperatures."
[0513] Prompt Sentence Examples
[0514] "Collect product terms and conditions information from the following URL and extract the return period, warranty period, and usage precautions. URL: https: / / example.com / productA"
[0515] In this way, the present invention is a system that efficiently provides important product clause information to users and supports them in taking the necessary actions quickly.
[0516] The flow of the specific processing in the application example 1 will be described with reference to FIG.
[0517] Step 1:
[0518] The server receives the user's purchase history. When a user registers a purchase history, they enter the product name and the associated URL. This input data is received by the server and saved in a database. The input here is the product name and the product's associated URL, and the output is the purchase history saved in the database.
[0519] Step 2:
[0520] The server collects terms and conditions information from related web pages based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL. The HTML content is retrieved using the Requests library and parsed using the BeautifulSoup library. The input at this stage is the URL, and the output is the terms and conditions information extracted from the HTML content.
[0521] Step 3:
[0522] The server analyzes the extracted terms and conditions information and extracts specific information. During the analysis, regular expressions are used to extract important information such as the return period, warranty period, and usage precautions. The input at this stage is the text data of the HTML content, and the output is the analyzed specific information.
[0523] Step 4:
[0524] The server transmits the analyzed specific information to the terminal. Here, the input is the analyzed specific information, and the output is the data to be transmitted to the terminal. The server transmits this data to the user's mobile device.
[0525] Step 5:
[0526] The device visually displays the specific information it receives. The information acquired by the device is displayed to the user in a visually easy-to-understand format. For example, information such as "Return period is 30 days" and "Avoid high temperatures" may be displayed on a smartphone screen. The input here is the specific information that has been analyzed, and the output is the information displayed on the user interface.
[0527] Step 6:
[0528] The user checks the information displayed on the device and takes the necessary action. For example, if a return period is displayed, the user can return the product within that period if necessary. The input here is the information displayed on the device, and the output is the user's judgment and action.
[0529] In this way, specific data processing and data calculation are performed at each step, and a system is realized that efficiently provides clause information to users.
[0530] Furthermore, an emotion engine that estimates the user's emotion may be further 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.
[0531] The present invention combines an emotion engine with a system that efficiently collects contract information for products purchased by users and visually displays the analyzed results. Specific embodiments of this system are described below.
[0532] Server Roles
[0533] Receiving purchase history
[0534] As a user, the user first enters their purchase history into the system, including the names of the products they have purchased and the URLs of the associated web pages. The server then receives this purchase history.
[0535] Collecting policy information
[0536] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL using an HTTP request and analyzes the page content using an HTML parsing library such as BeautifulSoup.
[0537] Device Role
[0538] Analysis of clause information
[0539] The terminal analyzes the HTML content obtained from the server and extracts the terms and conditions information for each product. The extracted text data is concatenated and stored in a dictionary with the product name as the key. The terminal then further analyzes this terms and conditions information and extracts specific information (e.g., return period, warranty period, usage precautions, etc.) using regular expressions.
[0540] Visual display of information
[0541] After the device extracts the specific information, it visually displays it in an easy-to-understand format for the user. Specifically, it displays the information using a GUI, allowing the user to check the necessary information at a glance.
[0542] Incorporating an emotion engine
[0543] Emotion Recognition in Action
[0544] The terminal further recognizes the user's emotions using an emotion engine, which can analyze the user's facial expressions, voice, or input data to identify the user's current emotional state.
[0545] Customized display of information
[0546] Based on the emotions recognized by the emotion engine, the device adjusts the way information is visually displayed, specifically adjusting the layout, color tone, and font size of the information depending on the user's emotional state, to present the information in a format that is optimal for the user.
[0547] User Use
[0548] Registering purchase history
[0549] As an example of inputting a purchase history into the system, the user inputs "product A" and "product B."
[0550] Information verification and emotion recognition
[0551] After the policy information is collected, analyzed, and displayed, the emotion engine recognizes the user's emotions when they review the information displayed on their device. For example, if the user shows confusion at the displayed information, the device will adjust the display layout and color tones to make the information easier for the user to understand.
[0552] For example, if a user purchases "Product A" and "Product B," the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes the information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the layout and color of the displayed information to make it easier for the user to understand.
[0553] In this way, the present invention efficiently provides users with important terms and conditions information for purchased products, and further improves convenience for users by optimizing the way information is presented according to the user's emotions.
[0554] The processing flow will be explained below.
[0555] Step 1:
[0556] A user inputs his / her purchasing history into the system. Specifically, the user inputs the names of purchased products and the URLs of the related web pages in a list format. This list is used for subsequent processing.
[0557] Step 2:
[0558] The server receives the purchase history input from the user, which includes the names of the products and the URLs of the associated web pages.
[0559] Step 3:
[0560] The server retrieves HTML content from the web pages related to each product based on the received purchase history. Specifically, the server retrieves the HTML of the web pages from each URL using an HTTP request.
[0561] Step 4:
[0562] The BeautifulSoup library is used to parse the HTML content retrieved by the server. The server parses the HTML structure and extracts all paragraph elements ( tag) and concatenate the text.
[0563] Step 5:
[0564] The server stores the linked text data in a dictionary with the product name as a key, thereby organizing the terms and conditions information for each product.
[0565] Step 6:
[0566] The terminal receives a dictionary of terms and conditions information obtained from the server. The terminal uses regular expressions to parse this information and extract specific information (e.g., return period, warranty period, usage precautions, etc.).
[0567] Step 7:
[0568] The terminal uses regular expression patterns to extract specific information from the contract information of each product. For example, the pattern "return period.?(\d+days)" is used to extract the return period.
[0569] Step 8:
[0570] The specific information extracted by the device is stored in a new dictionary with the product name as the key, providing information that is organized and easy for the user to understand.
[0571] Step 9:
[0572] The emotion engine analyzes the user's facial expressions, voice, and input data to recognize the user's emotions. Specifically, it uses a camera and microphone to analyze the user's facial expressions and tone of voice.
[0573] Step 10:
[0574] The device adjusts the way information is displayed based on the user's emotions as recognized by the emotion engine. For example, if the user is confused, the device will change the layout and color of the displayed information to make it easier to understand.
[0575] Step 11:
[0576] The device visually displays optimized information to the user. Specifically, the information is displayed using a GUI, allowing the user to check the necessary information at a glance.
[0577] Step 12:
[0578] The user checks the information displayed on the device and understands the terms and conditions of the purchased product. This allows the user to understand important information such as how to use the product and the return period, and respond appropriately.
[0579] For example, if a user purchases "Product A" and "Product B," the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes the information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the layout and color of the displayed information to make it easier for the user to understand. This series of steps allows the user to efficiently and appropriately check the important terms and conditions information for the purchased products.
[0580] Example 2
[0581] Next, a description will be given of Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[0582] In today's world, it is important for users to efficiently gather terms and conditions for the products they purchase and quickly understand the information they need. However, the wide variety of terms and conditions information available on web pages makes it difficult for users to extract and understand this information on their own. Furthermore, terms and conditions information is often presented in a visually confusing manner, hindering user understanding. Furthermore, information presentation methods that do not take into account the user's feelings can cause dissatisfaction and confusion.
[0583] The specific processing by the specific processing unit 290 of the data processing device 12 in the second embodiment is realized by the following means. In this invention, the server includes means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, means for recognizing the user's emotions, and means for adjusting the information display method based on the recognized emotions. This allows the user to efficiently collect terms and conditions information and understand the information in a visually easy-to-understand format. Furthermore, the information presentation method based on the user's emotions can improve user satisfaction.
[0584] "User purchase history" is information including the names of products that a user has purchased in the past and the URLs of related web pages.
[0585] "Terms and conditions information" refers to information about the contract contents posted on the webpage, including information on product purchase conditions, return and warranty periods, and usage precautions.
[0586] "Analysis means" refers to methods and tools used to analyze collected HTML content and extract specific information.
[0587] "Visual display means" refers to a method of displaying information using a GUI so that users can easily understand the information.
[0588] "Means for recognizing emotions" refers to technology that analyzes a user's facial expressions, voice, or input data to identify their current emotional state.
[0589] "Means for adjusting the display method" refers to a method for adjusting the layout, color tone, font size, etc. of information based on the recognized emotion.
[0590] The "means for receiving purchase history" refers to a method for receiving purchase history information from a user.
[0591] "HTML content of a web page" refers to the entire content of a web page, including HTML tags and text.
[0592] "Regular expressions" refers to a pattern matching technique used for string searches and replacements.
[0593] "GUI" refers to a graphical user interface designed to allow users to operate it intuitively.
[0594] An "HTTP request" refers to a communication protocol for requesting a specific resource from a web server.
[0595] "HTML parsing library" refers to a software tool for parsing HTML content and extracting structured data.
[0596] The present invention combines an emotion engine with a system that efficiently collects contract information for products purchased by users and visually displays the analyzed results. Specific embodiments of this system are described below.
[0597] Server Roles
[0598] The server's role is to first receive purchase history from the user. The user enters the product name and the URL of the associated web page into the system. This data is sent to the server, which provides a means for it to be received. For example, data is entered using a web form, and the data is sent to the server when the submit button is clicked.
[0599] Next, the server retrieves the HTML content of the relevant webpage from the specified URL. Specifically, it uses the requests library to send an HTTP request to retrieve the HTML data of the webpage. It then uses an HTML parsing library such as BeautifulSoup to parse the HTML content and extract the required data.
[0600] Device Role
[0601] The terminal's role is to analyze the HTML content obtained from the server and extract specific policy information. The terminal uses BeautifulSoup to analyze the HTML and extract specific information from the text (e.g., return policy, warranty period, usage precautions, etc.). Regular expressions are used to accurately extract the desired information.
[0602] The extracted information is then visually displayed to the user. Using GUI libraries such as Tkinter and PyQt, the policy information is displayed in a table format, with important information highlighted, making it visually easy to understand.
[0603] Incorporating an emotion engine
[0604] The system incorporates an emotion engine that can recognize user emotions in real time. It uses libraries such as OpenCV and dlib to capture the user's face from a camera and analyze their facial expressions to identify their emotional state. If the analysis shows that the user is confused, dissatisfied, or satisfied, the layout and color tone of the displayed information are automatically adjusted accordingly.
[0605] User Use
[0606] First, the user inputs the history of purchased products into the system. For example, they input "Product A" and "Product B" and specify the associated URLs for each. The system then collects, analyzes, and displays the terms and conditions information from the web page.
[0607] When the information is displayed, the user checks it and the system recognizes the user's emotions. For example, if the user shows confusion, the device will adjust the display layout and color tones of the information to make it easier for the user to understand.
[0608] Examples of concrete examples and prompts
[0609] For example, if a user purchases "Product A" and "Product B," the server collects terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes this information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the display layout and color tones to make the information easier for the user to understand.
[0610] An example of a specific prompt is:
[0611] "I would like to design a system that recognizes emotions from a user's facial expressions and optimizes the visual presentation of information. First, I would like to know the algorithm that collects data entered by the user, and then retrieves and analyzes information from web pages based on that data."
[0612] It is possible that:
[0613] This system allows users to efficiently collect and understand important terms and conditions information for the products they are purchasing, and by presenting information in response to their emotions, it provides a more satisfying user experience.
[0614] The flow of the identification process in the second embodiment will be described with reference to FIG.
[0615] Step 1: Receive purchase history
[0616] The server receives the purchase history entered by the user. The user enters the product name and the URL of the associated web page and submits the data. To receive this, the server sets up a web form or API endpoint. Specifically, when the user enters the names and URLs of "Product A" and "Product B" and presses the "Submit" button, the server receives the data and stores it in the specified variable.
[0617] Input: Product name and URL entered by the user
[0618] Output: Received purchase history data
[0619] Step 2: Get the HTML content of the web page
[0620] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL. The server uses the requests library to send an HTTP request to retrieve the web page data. For example, it retrieves HTML from the URL of "Product A," and then retrieves it from the URL of "Product B."
[0621] Input: URL included in purchase history data
[0622] Output: HTML content retrieved from the URL
[0623] Step 3: Parsing HTML content
[0624] The terminal receives the HTML content sent from the server. The terminal uses the BeautifulSoup library to parse the HTML and extract the clause information. Specifically, it uses the soup.find_all('p') method to get all paragraphs in the page and extract the text of each.
[0625] Input: Retrieved HTML content
[0626] Output: Parsed clause information text
[0627] Step 4: Extract specific information
[0628] The terminal extracts specific information (such as return period, warranty period, and usage precautions) from the parsed terms and conditions information. Regular expressions are used for this. For example, to extract the return period, a search pattern such as re.search(r'return period:(\d+days)', text) is used. The extracted information is stored in a dictionary data structure.
[0629] Input: Parsed clause information text
[0630] Output: Extracted specific information
[0631] Step 5: Visually display the information
[0632] The terminal visually displays the extracted specific information using a GUI. To make it easier for users to understand, libraries such as Tkinter and PyQt are used to display information about each product in a table or dashboard format. For example, the return period and usage precautions for "Product A" are displayed in a list, with important information highlighted.
[0633] Input: Extracted specific information
[0634] Output: Visually displayed information
[0635] Step 6: Recognize emotions
[0636] The device uses an emotion engine to recognize the user's emotions. It uses libraries such as OpenCV and dlib to capture the user's face from the camera and analyze their facial expressions to determine their current emotional state. For example, if the user's brow is furrowed, it will recognize that they are confused.
[0637] Input: Real-time video from the camera
[0638] Output: Perceived emotional state
[0639] Step 7: Adjust the display
[0640] Based on the recognized emotion, the device will adjust the way information is displayed. For example, if the user shows a confused expression, the device will simplify the layout of the information, soften the color tone, and increase the font size, making it easier for the user to understand the information.
[0641] Input: Perceived emotional state
[0642] Output: Adjusted information display
[0643] In this way, the system efficiently collects terms and conditions information for purchased products and presents it in an easy-to-understand format. Furthermore, by presenting information that takes into account the user's emotions, the system improves user satisfaction.
[0644] (Application example 2)
[0645] Next, a description will be given of Application Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[0646] Product terms and conditions are extremely important in modern purchasing activities, but it is difficult to efficiently collect this information and display it in a visually understandable manner. Furthermore, adjusting the display format of the information based on the user's emotional response to the presented information would improve the user experience, but current systems lack such functionality. In particular, infotainment systems for autonomous vehicles require information display that adapts to the user's emotional response to provide a safe and comfortable shopping experience.
[0647] The specific processing 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 means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, means for recognizing the user's emotions, and means for adjusting the layout and color tone of the visually displayed information based on the recognized emotions. This allows the user to more easily understand the terms and conditions information based on their purchase history and receive the information in a display format optimal for their emotions at the time.
[0648] "User" refers to a user of this system.
[0649] "Purchase history" is data that includes information about products that a user has purchased in the past.
[0650] A "related web page" refers to a web page that contains information about the product purchased by the user.
[0651] "Terms and conditions information" refers to important contract and agreement information regarding products and services, such as product return periods, warranty periods, and usage precautions.
[0652] "Means for collecting" refers to the technical means by which the server obtains the necessary information from related web pages based on the purchase history.
[0653] "Means for analysis" refers to the technical means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions).
[0654] "Visual display means" refers to technical means for displaying extracted information in an easy-to-understand manner for the user.
[0655] "Means for recognizing" refers to technical means for identifying a user's emotional state using facial expressions, voice, or input data.
[0656] "Adjusting means" refers to technical means that change the layout or color tone of visually displayed information based on perceived emotions.
[0657] "System" is a general term for a series of devices and programs that include each of the above means.
[0658] "Information layout" refers to the arrangement and structure of information that is visually displayed.
[0659] "Color tone" refers to the color and brightness of the displayed information.
[0660] The system of the present invention incorporates a function for efficiently collecting user purchasing histories and visually displaying the analyzed results. It also uses an emotion engine to recognize the user's emotions and adjusts the display format of information according to those emotions, improving the user experience. A specific embodiment for implementing this system is described below.
[0661] Server Roles
[0662] Receiving purchase history
[0663] The server receives the purchase history entered by the user, which includes the names of the purchased items and the URLs of the associated web pages.
[0664] Collecting policy information
[0665] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL using an HTTP request, and then parses the retrieved HTML content using an HTML parsing library such as BeautifulSoup.
[0666] Device Role
[0667] Analysis of clause information
[0668] The terminal receives the HTML content obtained from the server and analyzes it. Product terms and conditions information is extracted from the HTML content and stored as text data in a dictionary. Specific information (e.g., return period, warranty period, usage precautions, etc.) is extracted using regular expressions during the analysis.
[0669] Visual display of information
[0670] The extracted specific information is visually displayed to the user using a GUI, allowing the user to check the required information at a glance.
[0671] Incorporating an emotion engine
[0672] Emotion Recognition in Action
[0673] The terminal further recognizes the user's emotions using an emotion engine, which analyzes the user's facial expressions to identify their emotional state.
[0674] Customized display of information
[0675] The layout and color of the visually displayed information can be adjusted based on the user's emotions. For example, if the user shows a confused expression, the device will adjust the display layout and color to make the information easier for the user to understand.
[0676] Hardware and software used
[0677] The server uses libraries (e.g., requests) to process HTTP requests and BeautifulSoup for HTML parsing, while the device uses the emotion_recognition library for emotion analysis and smart glasses (e.g., Google Glass) or other display devices for visual display of information.
[0678] Specific examples
[0679] For example, if a user purchases "Product A" and "Product B," the server collects the terms and conditions information for "Product A" and "Product B" from their respective URLs (e.g., "https: / / example.com / productA" and "https: / / example.com / productB"). The device analyzes the collected information, extracts specific information, and displays it visually. If the emotion engine recognizes dissatisfaction from the user's facial expression, it can adjust the display format to provide the user with the most appropriate information.
[0680] Prompt Sentence Examples
[0681] "Please take as input an image of the user's facial expression captured by the camera of the smart glasses and analyze its emotions. Based on the analysis results, please propose a display format that will satisfy the user. Please use the emotion_recognition library for analyzing the emotions in the image and the flask framework for proposing a layout based on the analysis results."
[0682] The flow of the specific processing in the application example 2 will be described with reference to FIG.
[0683] Step 1:
[0684] A server receives the user's purchasing history.
[0685] Specifically, the server receives purchase information entered by the user through the infotainment system (e.g., smart glasses or other devices). This information includes the name of the purchased product and the URL of the associated web page. The input is the user's operation, and the output is the purchase history data received by the server.
[0686] Step 2:
[0687] The server collects clause information from related web pages based on the purchase history.
[0688] The server uses an HTTP request to retrieve HTML content from the URL of each product included in the purchase history data. The input is the URL and the output is the HTML content. The server uses a library such as the requests library to perform this process.
[0689] Step 3:
[0690] Parse the HTML content retrieved by the server.
[0691] The server uses BeautifulSoup or another HTML parsing library to extract the terms and conditions information from the retrieved HTML content. For example, it parses HTML tags with specific class names or ID names. The input is the HTML content, and the output is the extracted terms and conditions information as text data.
[0692] Step 4:
[0693] The server transfers the policy information to the terminal.
[0694] The server sends the extracted clause information to the terminal. The input is the text data of the clause information, and the output is the data received by the terminal. This transfer uses the HTTP protocol or other data communication methods.
[0695] Step 5:
[0696] The terminal further analyzes the received terms and conditions information and extracts specific information.
[0697] The terminal analyzes the received terms and conditions information using regular expressions and extracts specific information such as the return period, warranty period, and usage precautions. The input is the text data of the terms and conditions information, and the output is the extracted specific information.
[0698] Step 6:
[0699] The device visually displays specific information extracted.
[0700] The terminal displays the extracted information in a GUI in a format that is easy for the user to understand. For example, it uses different colors depending on the type of information, or highlights important information. The input is specific information, and the output is visual information displayed on the terminal's display.
[0701] Step 7:
[0702] The device recognizes the user's emotions.
[0703] The device's camera and microphone are used to capture the user's facial expressions and voice, and the emotion_recognition library is used to analyze their emotions. The input is the user's facial expression images and voice data, and the output is the analyzed emotional data.
[0704] Step 8:
[0705] The device adjusts the visual display based on the emotion it recognizes.
[0706] The device adjusts the display layout and color tone based on the analyzed emotional data. For example, if the user shows a confused expression, the device will display information more simply. The input is emotional data, and the output is adjusted visual information.
[0707] Prompt Sentence Examples
[0708] "Please take as input an image of the user's facial expression captured by the camera of the smart glasses and analyze its emotions. Based on the analysis results, please propose a display format that will satisfy the user. Please use the emotion_recognition library for analyzing the emotions in the image and the flask framework for proposing a layout based on the analysis results."
[0709] The specific processing unit 290 transmits the result 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 result of the specific processing. The microphone 238 acquires audio indicating a user input regarding the result 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.
[0710] The data generation model 58 is a so-called generative AI (Artificial Intelligence). An example of the data generation model 58 is ChatGPT (Internet Search<URL: https: / / openai.com / blog / chatgpt> ), Gemini (Internet search <url: https: gemini.google.com ?hl="ja">) and other generation AIs. The data generation model 58 is obtained by performing deep learning on a neural network. A prompt including an instruction is input to the 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. The data generation model 58 performs inference on the input inference data in accordance with the instruction indicated by the prompt, and outputs the inference result in a data format such as voice data and text data. Here, inference refers to, for example, analysis, classification, prediction, and / or summarization.
[0711] In the above embodiment, an example in which the specific processing is performed by the data processing device 12 has been given, but the technology of the present disclosure is not limited to this, and the specific processing may be performed by the smart glasses 214.
[0712] [Third embodiment]
[0713] FIG. 5 shows an example of the configuration of a data processing system 310 according to the third embodiment.
[0714] 5, the data processing system 310 includes the data processing device 12 and a headset terminal 314. An example of the data processing device 12 is a server.
[0715] 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, a RAM 30, and a storage 32. The processor 28, the RAM 30, and the storage 32 are connected to a bus 34. The database 24 and the 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).
[0716] The headset type 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, a RAM 48, and a storage 50. The processor 46, the RAM 48, and the 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.
[0717] 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.
[0718] 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 surroundings of user 20 (for example, an imaging range defined by an angle of view equivalent to the field of vision of a typical healthy person).
[0719] The communication I / F 44 is connected to a 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 state.
[0720] Fig. 6 shows an example of the main functions of the data processing device 12 and the headset type terminal 314. As shown in Fig. 6, in the data processing device 12, a specific process is performed by the processor 28. A specific process program 56 is stored in the storage 32.
[0721] 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.
[0722] The 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.
[0723] In the headset type terminal 314, a 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.
[0724] Next, a description will be given of the identification process performed by the identification processing unit 290 of the data processing device 12. 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."
[0725] This invention is a system that efficiently collects contract information for products purchased by users and visually displays the analysis results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[0726] Server Roles
[0727] Receiving purchase history
[0728] The server first receives the user's purchase history, which is data containing information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[0729] Collecting policy information
[0730] The server then collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[0731] Device Role
[0732] Analysis of clause information
[0733] Next, the terminal analyzes the contract information obtained from the server. During the analysis, specific information (such as return period, warranty period, and usage precautions) is extracted from the contract information using regular expressions. This allows important information for the user to be extracted efficiently from the contract information.
[0734] Visual display of information
[0735] The analysis results are visually displayed on the device. Specifically, specific extracted information (such as return periods, warranty periods, and usage precautions) is displayed in an easy-to-understand format for the user. This allows users to check important information about the purchased product at a glance.
[0736] User Use
[0737] Registering purchase history
[0738] A user registers their purchase history in the system. For example, if they purchased "Product A" and "Product B," they enter the names of the products and the associated URLs into the system.
[0739] Verify the information
[0740] After the system collects and analyzes the information, the user checks the information displayed on the device. For example, the return period and usage precautions for "Product A" are displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product's warranty period.
[0741] Specific examples
[0742] For example, suppose a user purchases "Product A" and "Product B." First, the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." Next, the device analyzes the obtained information and extracts the return period and usage precautions for "Product A." For example, if the terms and conditions for "Product A" state that "the return period is within 30 days" and "the usage precaution is to avoid high temperatures," this information is extracted. The device then displays information to the user in the form of "Product A: The return period is within 30 days" or "Product A: The usage precaution is to avoid high temperatures."
[0743] In this way, the present invention efficiently provides important product clause information to users and supports them in responding appropriately.
[0744] The processing flow will be explained below.
[0745] Step 1:
[0746] A user inputs his / her purchasing history into the system. Specifically, the history is saved as a list including the names of purchased products and the URLs of the associated web pages.
[0747] Step 2:
[0748] The server receives the purchase history entered by the user and sends an HTTP request to the URL of each product in the list, thereby retrieving the HTML content of the associated web page.
[0749] Step 3:
[0750] The BeautifulSoup library is used to parse the HTML content retrieved by the server. The server extracts all paragraph elements (< / url:> tag) and concatenate the text into a single string.
[0751] Step 4:
[0752] The server stores the linked text data in a dictionary with the product name as a key, thereby organizing the terms and conditions information for each product.
[0753] Step 5:
[0754] The device receives dictionary-formatted contract information from the server. The device parses the contract information and uses regular expressions to extract specific information (such as return period, warranty period, and usage precautions).
[0755] Step 6:
[0756] Using regular expression patterns, the terminal extracts specific information from the contract information of each product. For example, the pattern "return period.?(\d+days)" extracts the return period.
[0757] Step 7:
[0758] The device stores the extracted specific information in a new dictionary using the product name as a key, providing information that is organized and easy for the user to understand.
[0759] Step 8:
[0760] The device visually displays the organized information, specifically using a GUI to show the user the name of each product and related terms and conditions (e.g., return policy and usage instructions).
[0761] Step 9:
[0762] The user checks the information displayed on the device, allowing them to grasp important terms and conditions of the purchased product at a glance and respond appropriately in their daily lives.
[0763] Example 1
[0764] Next, a description will be given of Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the headset type terminal 314 will be referred to as a "terminal."
[0765] Today's consumers purchase many products online, resulting in the need to manage the terms and conditions of various products. However, this information is diverse and it is extremely cumbersome to manage and review it manually. Furthermore, while important information is contained in the terms and conditions, reviewing it all takes time and effort, which can lead to users overlooking important information. Therefore, there is a need for a system that can efficiently collect, automatically analyze, and visually display terms and conditions information.
[0766] The specific processing by the specific processing unit 290 of the data processing device 12 in the first embodiment is realized by the following means.
[0767] In this invention, the server includes means for receiving a user's purchase history and collecting clause information from related web pages based on the purchase history, means for analyzing the collected clause information and extracting specific information (return period, warranty period, usage precautions, etc.) using regular expressions, means for visually displaying the analyzed specific information to the user, and means for displaying the analysis results via the user's terminal, thereby enabling the user to efficiently collect clause information and easily check important information.
[0768] "User" means an individual or corporation that uses the system to register their purchase history and check terms and conditions information.
[0769] "Purchase history" is data containing information about products that a user has purchased in the past, including the names of the products and the URLs of related web pages.
[0770] A "server" is a computer system that receives purchase histories from users and collects and analyzes policy information from related web pages.
[0771] "Terms and conditions information" refers to document information that describes the product's usage conditions, warranty period, return period, etc.
[0772] A "regular expression" is a special notation used to search and extract strings, and is used to find specific patterns.
[0773] The "detailed analysis means" is a means for analyzing the collected clause information and extracting specific information using regular expressions.
[0774] "Visual display means" refers to a means for displaying analyzed information in a form that allows the user to easily confirm the information.
[0775] A "terminal" is a computer system or device that a user uses to check information obtained from a server.
[0776] "HTML structure" refers to the underlying hierarchical structure of the documents that make up a web page.
[0777] This invention is a system that efficiently collects contract information for products purchased by users and visually displays the analysis results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[0778] Server Roles
[0779] Receiving purchase history
[0780] The server first receives the user's purchase history, which is data containing information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[0781] Collecting policy information
[0782] The server then collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[0783] Device Role
[0784] Analysis of clause information
[0785] Next, the terminal analyzes the contract information obtained from the server. During the analysis, regular expressions are used to extract specific information from the contract information (e.g., return period, warranty period, usage precautions, etc.). This allows important information for the user to be extracted efficiently from the contract information.
[0786] Visual display of information
[0787] The analysis results are visually displayed on the device. Specifically, specific information such as return periods, warranty periods, and usage precautions are displayed in an easy-to-understand format for the user, allowing the user to check important information about the purchased product at a glance.
[0788] User Use
[0789] Registering purchase history
[0790] A user registers their purchase history in the system. For example, if they purchased "Product A" and "Product B," they enter the names of the products and the associated URLs into the system.
[0791] Verify the information
[0792] After the system collects and analyzes the information, the user checks the information displayed on the device. For example, the return period and usage precautions for "Product A" are displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product's warranty period.
[0793] Specific examples
[0794] For example, suppose a user purchases "Product A" and "Product B." First, the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." Next, the device analyzes the obtained information and extracts the return period and usage precautions for "Product A." For example, if the terms and conditions for "Product A" state that "the return period is within 30 days" and "the usage precaution is to avoid high temperatures," this information is extracted. The device then displays information to the user in the form of "Product A: The return period is within 30 days" or "Product A: The usage precaution is to avoid high temperatures."
[0795] Prompt Sentence Examples
[0796] A user has purchased "Product A" and "Product B." Please retrieve the terms and conditions information and display the return period and usage precautions for "Product A."
[0797] In this way, the present invention efficiently provides important product clause information to users and supports them in responding appropriately.
[0798] The flow of the identification process in the first embodiment will be described with reference to FIG.
[0799] Step 1:
[0800] Receiving purchase history
[0801] The server receives purchase history from the user. The user enters the product name and the associated URL. The purchase history data is sent to the server in JSON format.
[0802] Input and Output: The input is the purchase history (product name and URL) provided by the user, and the output is the purchase history information stored in the internal database.
[0803] Specific operation: The server receives the purchase history data sent by the user and stores it in an internal database.
[0804] Step 2:
[0805] Collecting policy information
[0806] The server collects terms and conditions information from related web pages based on the purchase history stored in the internal database.
[0807] Input and Output: The input is the saved purchase history data, and the output is text data containing the terms and conditions information.
[0808] Specific operation: The server uses the BeautifulSoup library to retrieve HTML content from each URL listed in the purchase history, parses the HTML, and extracts all paragraph elements. The retrieved text is then stored in a database in the form of a dictionary with product names as keys.
[0809] Step 3:
[0810] Analysis of clause information
[0811] The terminal analyzes the terms and conditions information obtained from the server.
[0812] Input and Output: The input is text data obtained from the server, and the output is specific information extracted using regular expressions.
[0813] Specific operation: The device uses a regular expression library to search for specific keywords (e.g., "return period," "warranty period," "usage precautions") in the acquired text data, extracts this information, and formats the extracted information in a format that can be viewed by the user.
[0814] Step 4:
[0815] Visual display of information
[0816] The terminal visually displays the analysis results.
[0817] Input and Output: Input is the specific information that is parsed, and output is the information that is visually presented to the user.
[0818] Specific operation: The terminal visually formats the extracted information in list or table format and displays it through the user interface, allowing the user to easily check important policy information.
[0819] Step 5:
[0820] Verify the information
[0821] The user checks the parsed clause information.
[0822] Input and Output: The input is the analysis result displayed on the terminal, and the output is the information obtained by the user.
[0823] Specific operations: The user can check information such as the return period, warranty period, and usage precautions for each product through the device, and obtain important information regarding product usage.
[0824] As described above, the processing of this system is such that the server and terminal cooperate to efficiently provide important clause information to the user.
[0825] (Application example 1)
[0826] Next, a description will be given of Application Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the headset type terminal 314 will be referred to as a "terminal."
[0827] Conventional purchase history management systems have had difficulty efficiently collecting, analyzing, and visually displaying terms and conditions information (such as return periods, warranty periods, and usage precautions) for products purchased by users. Furthermore, there was a lack of a way to easily check this information on smartphones and other mobile devices. This made it difficult for users to quickly and accurately grasp important terms and conditions information for purchased products and take appropriate action.
[0828] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 1 is realized by the following means.
[0829] In this invention, the server includes means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, and means for displaying the extracted specific information on a mobile device. This allows users to quickly and accurately grasp important terms and conditions information for purchased products and easily check them on their smartphones or other mobile devices.
[0830] "User" refers to a person who uses the system to register purchase history and check information.
[0831] "Purchase history" refers to data including the names of products a user has previously purchased and the URLs of related web pages.
[0832] "Terms and conditions information" refers to information that describes important rules and conditions regarding purchased products, such as return periods, warranty periods, and usage precautions.
[0833] "Means of collection" refers to the server's ability to retrieve the HTML content of a web page from a specified URL.
[0834] "Means of analysis" refers to the function of extracting specific information from the collected clause information using regular expressions.
[0835] "Means for visual display" refers to the function of the device to display the analysis results in an easy-to-understand manner for the user.
[0836] "Mobile devices" refers to mobile information terminals such as smartphones and tablets.
[0837] This invention is a system that efficiently collects and analyzes contract information for products purchased by users and visually displays the results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[0838] Server Roles
[0839] Receiving purchase history
[0840] The server first receives the user's purchase history, which includes information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[0841] Collecting policy information
[0842] Next, the server collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[0843] Device Role
[0844] Analysis of clause information
[0845] Next, the terminal analyzes the contract information obtained from the server. During the analysis, specific information (e.g., return period, warranty period, usage precautions, etc.) is extracted using regular expressions. This process efficiently extracts information that is important to the user from the contract information.
[0846] Visual display of information
[0847] The analysis results are visually displayed on the device. Specifically, specific extracted information (such as return periods, warranty periods, and usage precautions) is displayed in an easy-to-understand format for the user. This allows users to check important information about the purchased product at a glance.
[0848] View on mobile devices
[0849] The extracted specific information is displayed on mobile devices such as smartphones or tablets, allowing users to easily check the policy information and take necessary action quickly.
[0850] User Use
[0851] Registering purchase history
[0852] Users register their purchase history in the system. For example, when they purchase a specific product, they enter the name of the product and the associated URL into the system.
[0853] Verify the information
[0854] After the system collects and analyzes the information, the user can check the information displayed on the device. For example, the return period and usage precautions for a certain product can be displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product warranty period.
[0855] Specific examples
[0856] For example, suppose a user purchases a specific product. The server collects terms and conditions information from the specified product's URL, and the device analyzes that information. Through the analysis, important information such as the return period and usage precautions is extracted. The user can then use their smartphone to check information such as "The return period is 30 days" and "Avoid high temperatures."
[0857] Prompt Sentence Examples
[0858] "Collect product terms and conditions information from the following URL and extract the return period, warranty period, and usage precautions. URL: https: / / example.com / productA"
[0859] In this way, the present invention is a system that efficiently provides important product clause information to users and supports them in taking the necessary action promptly.
[0860] The flow of the specific processing in the application example 1 will be described with reference to FIG.
[0861] Step 1:
[0862] The server receives the user's purchase history. When a user registers a purchase history, they enter the product name and the associated URL. This input data is received by the server and saved in a database. The input here is the product name and the product's associated URL, and the output is the purchase history saved in the database.
[0863] Step 2:
[0864] The server collects terms and conditions information from related web pages based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL. The HTML content is retrieved using the Requests library and parsed using the BeautifulSoup library. The input at this stage is the URL, and the output is the terms and conditions information extracted from the HTML content.
[0865] Step 3:
[0866] The server analyzes the extracted terms and conditions information and extracts specific information. During the analysis, regular expressions are used to extract important information such as the return period, warranty period, and usage precautions. The input at this stage is the text data of the HTML content, and the output is the analyzed specific information.
[0867] Step 4:
[0868] The server transmits the analyzed specific information to the terminal. Here, the input is the analyzed specific information, and the output is the data to be transmitted to the terminal. The server transmits this data to the user's mobile device.
[0869] Step 5:
[0870] The device visually displays the specific information it receives. The information acquired by the device is displayed to the user in a visually easy-to-understand format. For example, information such as "Return period is 30 days" and "Avoid high temperatures" may be displayed on a smartphone screen. The input here is the specific information that has been analyzed, and the output is the information displayed on the user interface.
[0871] Step 6:
[0872] The user checks the information displayed on the device and takes the necessary action. For example, if a return period is displayed, the user can return the product within that period if necessary. The input here is the information displayed on the device, and the output is the user's judgment and action.
[0873] In this way, specific data processing and data calculation are performed at each step, and a system is realized that efficiently provides clause information to users.
[0874] Furthermore, an emotion engine that estimates the user's emotion may be further 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.
[0875] The present invention combines an emotion engine with a system that efficiently collects contract information for products purchased by users and visually displays the analyzed results. Specific embodiments of this system are described below.
[0876] Server Roles
[0877] Receiving purchase history
[0878] As a user, the user first enters their purchase history into the system, including the names of the purchased products and the URLs of the associated web pages. The server then receives this purchase history.
[0879] Collecting policy information
[0880] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL using an HTTP request and analyzes the page content using an HTML parsing library such as BeautifulSoup.
[0881] Device Role
[0882] Analysis of clause information
[0883] The terminal analyzes the HTML content obtained from the server and extracts the terms and conditions information for each product. The extracted text data is concatenated and stored in a dictionary with the product name as the key. The terminal then further analyzes this terms and conditions information and extracts specific information (e.g., return period, warranty period, usage precautions, etc.) using regular expressions.
[0884] Visual display of information
[0885] After the device extracts the specific information, it visually displays it in an easy-to-understand format for the user. Specifically, it displays the information using a GUI, allowing the user to check the necessary information at a glance.
[0886] Incorporating an emotion engine
[0887] Emotion Recognition in Action
[0888] The terminal further recognizes the user's emotions using an emotion engine, which can analyze the user's facial expressions, voice, or input data to identify the user's current emotional state.
[0889] Customized display of information
[0890] Based on the emotions recognized by the emotion engine, the device adjusts the way information is visually displayed, specifically adjusting the layout, color tone, and font size of the information depending on the user's emotional state, to present the information in a format that is optimal for the user.
[0891] User Use
[0892] Registering purchase history
[0893] As an example of inputting a purchase history into the system, the user inputs "product A" and "product B."
[0894] Information verification and emotion recognition
[0895] After the policy information is collected, analyzed, and displayed, the emotion engine recognizes the user's emotions as they view the information displayed on their device. For example, if the user shows confusion at the displayed information, the device will adjust the display layout and color tones to make the information easier for the user to understand.
[0896] For example, if a user purchases "Product A" and "Product B," the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes the information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the layout and color of the displayed information to make it easier for the user to understand.
[0897] In this way, the present invention efficiently provides users with important terms and conditions information for purchased products, and further improves user convenience by optimizing the information presentation method according to the user's emotions.
[0898] The processing flow will be explained below.
[0899] Step 1:
[0900] A user inputs his / her purchasing history into the system. Specifically, the user inputs the names of purchased products and the URLs of the related web pages in a list format. This list is used for subsequent processing.
[0901] Step 2:
[0902] The server receives the purchase history input from the user, which includes the names of the products and the URLs of the associated web pages.
[0903] Step 3:
[0904] The server retrieves HTML content from the web pages related to each product based on the received purchase history. Specifically, the server retrieves the HTML of the web pages from each URL using an HTTP request.
[0905] Step 4:
[0906] The BeautifulSoup library is used to parse the HTML content retrieved by the server. The server parses the HTML structure and extracts all paragraph elements ( tag) and concatenate the text.
[0907] Step 5:
[0908] The server stores the linked text data in a dictionary with the product name as a key, thereby organizing the terms and conditions information for each product.
[0909] Step 6:
[0910] The terminal receives a dictionary of terms and conditions information obtained from the server. The terminal uses regular expressions to parse this information and extract specific information (e.g., return period, warranty period, usage precautions, etc.).
[0911] Step 7:
[0912] The terminal uses regular expression patterns to extract specific information from the contract information of each product. For example, the pattern "return period.?(\d+days)" is used to extract the return period.
[0913] Step 8:
[0914] The specific information extracted by the device is stored in a new dictionary with the product name as the key, providing information that is organized and easy for the user to understand.
[0915] Step 9:
[0916] The emotion engine analyzes the user's facial expressions, voice, and input data to recognize the user's emotions. Specifically, it uses a camera and microphone to analyze the user's facial expressions and tone of voice.
[0917] Step 10:
[0918] The device adjusts the way information is displayed based on the user's emotions as recognized by the emotion engine. For example, if the user is confused, the device will change the layout and color of the displayed information to make it easier to understand.
[0919] Step 11:
[0920] The device visually displays optimized information to the user. Specifically, the information is displayed using a GUI, allowing the user to check the necessary information at a glance.
[0921] Step 12:
[0922] The user checks the information displayed on the device and understands the terms and conditions of the purchased product. This allows the user to understand important information such as how to use the product and the return period, and respond appropriately.
[0923] For example, if a user purchases "Product A" and "Product B," the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes the information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the layout and color of the displayed information to make it easier for the user to understand. This series of steps allows the user to efficiently and appropriately check the important terms and conditions information for the purchased products.
[0924] Example 2
[0925] Next, a description will be given of Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the headset type terminal 314 will be referred to as a "terminal."
[0926] In today's world, it is important for users to efficiently gather terms and conditions for the products they purchase and quickly understand the information they need. However, the wide variety of terms and conditions information available on web pages makes it difficult for users to extract and understand this information on their own. Furthermore, terms and conditions information is often presented in a visually confusing manner, hindering user understanding. Furthermore, information presentation methods that do not take into account the user's feelings can cause dissatisfaction and confusion.
[0927] The specific processing by the specific processing unit 290 of the data processing device 12 in the second embodiment is realized by the following means. In this invention, the server includes means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, means for recognizing the user's emotions, and means for adjusting the information display method based on the recognized emotions. This allows the user to efficiently collect terms and conditions information and understand the information in a visually easy-to-understand format. Furthermore, the information presentation method based on the user's emotions can improve user satisfaction.
[0928] "User purchase history" is information including the names of products that a user has purchased in the past and the URLs of related web pages.
[0929] "Terms and conditions information" refers to information about the contract contents posted on the webpage, including information on product purchase conditions, return and warranty periods, and usage precautions.
[0930] "Analysis means" refers to methods and tools used to analyze collected HTML content and extract specific information.
[0931] "Visual display means" refers to a method of displaying information using a GUI so that users can easily understand the information.
[0932] "Means for recognizing emotions" refers to technology that analyzes a user's facial expressions, voice, or input data to identify their current emotional state.
[0933] "Means for adjusting the display method" refers to a method for adjusting the layout, color tone, font size, etc. of information based on the recognized emotion.
[0934] The "means for receiving purchase history" refers to a method for receiving purchase history information from a user.
[0935] "HTML content of a web page" refers to the entire content of a web page, including HTML tags and text.
[0936] "Regular expressions" refers to a pattern matching technique used for string searches and replacements.
[0937] "GUI" refers to a graphical user interface designed to allow users to operate it intuitively.
[0938] An "HTTP request" refers to a communication protocol for requesting a specific resource from a web server.
[0939] "HTML parsing library" refers to a software tool for parsing HTML content and extracting structured data.
[0940] The present invention combines an emotion engine with a system that efficiently collects contract information for products purchased by users and visually displays the analyzed results. Specific embodiments of this system are described below.
[0941] Server Roles
[0942] The server's role is to first receive purchase history from the user. The user enters the product name and the URL of the associated web page into the system. This data is sent to the server, which provides a means for it to be received. For example, data is entered using a web form, and the data is sent to the server when the submit button is clicked.
[0943] Next, the server retrieves the HTML content of the relevant webpage from the specified URL. Specifically, it uses the requests library to send an HTTP request to retrieve the HTML data of the webpage. It then uses an HTML parsing library such as BeautifulSoup to parse the HTML content and extract the required data.
[0944] Device Role
[0945] The terminal's role is to analyze the HTML content obtained from the server and extract specific policy information. The terminal uses BeautifulSoup to analyze the HTML and extract specific information from the text (e.g., return policy, warranty period, usage precautions, etc.). Regular expressions are used to accurately extract the desired information.
[0946] The extracted information is then visually displayed to the user. Using GUI libraries such as Tkinter and PyQt, the policy information is displayed in a table format, with important information highlighted, making it visually easy to understand.
[0947] Incorporating an emotion engine
[0948] The system incorporates an emotion engine that can recognize user emotions in real time. It uses libraries such as OpenCV and dlib to capture the user's face from a camera and analyze their facial expressions to identify their emotional state. If the analysis shows that the user is confused, dissatisfied, or satisfied, the layout and color tone of the displayed information are automatically adjusted accordingly.
[0949] User Use
[0950] First, the user inputs the history of purchased products into the system. For example, they input "Product A" and "Product B" and specify the associated URLs for each. The system then collects, analyzes, and displays the terms and conditions information from the web page.
[0951] When the information is displayed, the user checks it and the system recognizes the user's emotions. For example, if the user shows confusion, the device will adjust the display layout and color tones of the information to make it easier for the user to understand.
[0952] Examples of concrete examples and prompts
[0953] For example, if a user purchases "Product A" and "Product B," the server collects terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes this information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the display layout and color tones to make the information easier for the user to understand.
[0954] An example of a specific prompt is:
[0955] "I would like to design a system that recognizes emotions from a user's facial expressions and optimizes the visual presentation of information. First, I would like to know the algorithm that collects data entered by the user, and then retrieves and analyzes information from web pages based on that data."
[0956] It is possible that:
[0957] This system allows users to efficiently collect and understand important terms and conditions information for the products they are purchasing, and by presenting information in response to their emotions, it provides a more satisfying user experience.
[0958] The flow of the identification process in the second embodiment will be described with reference to FIG.
[0959] Step 1: Receive purchase history
[0960] The server receives the purchase history entered by the user. The user enters the product name and the URL of the associated web page and submits the data. To receive this, the server sets up a web form or API endpoint. Specifically, when the user enters the names and URLs of "Product A" and "Product B" and presses the "Submit" button, the server receives the data and stores it in the specified variable.
[0961] Input: Product name and URL entered by the user
[0962] Output: Received purchase history data
[0963] Step 2: Get the HTML content of the web page
[0964] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL. The server uses the requests library to send an HTTP request to retrieve the web page data. For example, it retrieves HTML from the URL of "Product A," and then retrieves it from the URL of "Product B."
[0965] Input: URL included in purchase history data
[0966] Output: HTML content retrieved from the URL
[0967] Step 3: Parsing HTML content
[0968] The terminal receives the HTML content sent from the server. The terminal uses the BeautifulSoup library to parse the HTML and extract the clause information. Specifically, it uses the soup.find_all('p') method to get all paragraphs in the page and extract the text of each.
[0969] Input: Retrieved HTML content
[0970] Output: Parsed clause information text
[0971] Step 4: Extract specific information
[0972] The terminal extracts specific information (such as return period, warranty period, and usage precautions) from the parsed terms and conditions information. Regular expressions are used for this. For example, to extract the return period, a search pattern such as re.search(r'return period:(\d+days)', text) is used. The extracted information is stored in a dictionary data structure.
[0973] Input: Parsed clause information text
[0974] Output: Extracted specific information
[0975] Step 5: Visually display the information
[0976] The terminal visually displays the extracted specific information using a GUI. To make it easier for users to understand, libraries such as Tkinter and PyQt are used to display information about each product in a table or dashboard format. For example, the return period and usage precautions for "Product A" are displayed in a list, with important information highlighted.
[0977] Input: Extracted specific information
[0978] Output: Visually displayed information
[0979] Step 6: Recognize emotions
[0980] The device uses an emotion engine to recognize the user's emotions. It uses libraries such as OpenCV and dlib to capture the user's face from the camera and analyze their facial expressions to determine their current emotional state. For example, if the user's brow is furrowed, it will recognize that they are confused.
[0981] Input: Real-time video from the camera
[0982] Output: Perceived emotional state
[0983] Step 7: Adjust the display
[0984] Based on the recognized emotion, the device will adjust the way information is displayed. For example, if the user shows a confused expression, the device will simplify the layout of the information, soften the color tone, and increase the font size, making it easier for the user to understand the information.
[0985] Input: Perceived emotional state
[0986] Output: Adjusted information display
[0987] In this way, the system efficiently collects terms and conditions information for purchased products and presents it in an easy-to-understand format. Furthermore, by presenting information that takes into account the user's emotions, the system improves user satisfaction.
[0988] (Application example 2)
[0989] Next, a description will be given of Application Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the headset type terminal 314 will be referred to as a "terminal."
[0990] Product terms and conditions are extremely important in modern purchasing activities, but it is difficult to efficiently collect this information and display it in a visually understandable manner. Furthermore, adjusting the display format of the information based on the user's emotional response to the presented information would improve the user experience, but current systems lack such functionality. In particular, infotainment systems for autonomous vehicles require information display that adapts to the user's emotional response to provide a safe and comfortable shopping experience.
[0991] The specific processing 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 means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, means for recognizing the user's emotions, and means for adjusting the layout and color tone of the visually displayed information based on the recognized emotions. This allows the user to more easily understand the terms and conditions information based on their purchase history and receive the information in a display format optimal for their emotions at the time.
[0992] "User" refers to a user of this system.
[0993] "Purchase history" is data that includes information about products that a user has purchased in the past.
[0994] A "related web page" refers to a web page that contains information about the product purchased by the user.
[0995] "Terms and conditions information" refers to important contract and agreement information regarding products and services, such as product return periods, warranty periods, and usage precautions.
[0996] "Means for collecting" refers to the technical means by which the server obtains the necessary information from related web pages based on the purchase history.
[0997] "Means for analysis" refers to the technical means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions).
[0998] "Visual display means" refers to technical means for displaying extracted information in an easy-to-understand manner for the user.
[0999] "Means for recognizing" refers to technical means for identifying a user's emotional state using facial expressions, voice, or input data.
[1000] "Adjusting means" refers to technical means that change the layout or color tone of visually displayed information based on perceived emotions.
[1001] "System" is a general term for a series of devices and programs that include each of the above means.
[1002] "Information layout" refers to the arrangement and structure of information that is visually displayed.
[1003] "Color tone" refers to the color and brightness of the displayed information.
[1004] The system of the present invention incorporates a function for efficiently collecting user purchasing histories and visually displaying the analyzed results. It also uses an emotion engine to recognize the user's emotions and adjusts the display format of information according to those emotions, improving the user experience. A specific embodiment for implementing this system is described below.
[1005] Server Roles
[1006] Receiving purchase history
[1007] The server receives the purchase history entered by the user, which includes the names of the purchased items and the URLs of the associated web pages.
[1008] Collecting policy information
[1009] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL using an HTTP request, and then parses the retrieved HTML content using an HTML parsing library such as BeautifulSoup.
[1010] Device Role
[1011] Analysis of clause information
[1012] The terminal receives the HTML content obtained from the server and analyzes it. Product terms and conditions information is extracted from the HTML content and stored as text data in a dictionary. Specific information (e.g., return period, warranty period, usage precautions, etc.) is extracted using regular expressions during the analysis.
[1013] Visual display of information
[1014] The extracted specific information is visually displayed to the user using a GUI, allowing the user to check the required information at a glance.
[1015] Incorporating an emotion engine
[1016] Emotion Recognition in Action
[1017] The terminal further recognizes the user's emotions using an emotion engine, which analyzes the user's facial expressions to identify their emotional state.
[1018] Customized display of information
[1019] The layout and color of the visually displayed information can be adjusted based on the user's emotions. For example, if the user shows a confused expression, the device will adjust the display layout and color to make the information easier for the user to understand.
[1020] Hardware and software used
[1021] The server uses libraries (e.g., requests) to process HTTP requests and BeautifulSoup for HTML parsing, while the device uses the emotion_recognition library for emotion analysis and smart glasses (e.g., Google Glass) or other display devices for visual display of information.
[1022] Specific examples
[1023] For example, if a user purchases "Product A" and "Product B," the server collects the terms and conditions information for "Product A" and "Product B" from their respective URLs (e.g., "https: / / example.com / productA" and "https: / / example.com / productB"). The device analyzes the collected information, extracts specific information, and displays it visually. If the emotion engine recognizes dissatisfaction from the user's facial expression, it can adjust the display format to provide the user with the most appropriate information.
[1024] Prompt Sentence Examples
[1025] "Please take as input an image of the user's facial expression captured by the camera of the smart glasses and analyze its emotions. Based on the analysis results, please propose a display format that will satisfy the user. Please use the emotion_recognition library for analyzing the emotions in the image and the flask framework for proposing a layout based on the analysis results."
[1026] The flow of the specific processing in the application example 2 will be described with reference to FIG.
[1027] Step 1:
[1028] A server receives the user's purchasing history.
[1029] Specifically, the server receives purchase information entered by the user through the infotainment system (e.g., smart glasses or other devices). This information includes the name of the purchased product and the URL of the associated web page. The input is the user's operation, and the output is the purchase history data received by the server.
[1030] Step 2:
[1031] The server collects clause information from related web pages based on the purchase history.
[1032] The server uses an HTTP request to retrieve HTML content from the URL of each product included in the purchase history data. The input is the URL and the output is the HTML content. The server uses a library such as the requests library to perform this process.
[1033] Step 3:
[1034] Parse the HTML content retrieved by the server.
[1035] The server uses BeautifulSoup or another HTML parsing library to extract the terms and conditions information from the retrieved HTML content. For example, it parses HTML tags with specific class names or ID names. The input is the HTML content, and the output is the extracted terms and conditions information as text data.
[1036] Step 4:
[1037] The server transfers the policy information to the terminal.
[1038] The server sends the extracted clause information to the terminal. The input is the text data of the clause information, and the output is the data received by the terminal. This transfer uses the HTTP protocol or other data communication methods.
[1039] Step 5:
[1040] The terminal further analyzes the received terms and conditions information and extracts specific information.
[1041] The terminal analyzes the received terms and conditions information using regular expressions and extracts specific information such as the return period, warranty period, and usage precautions. The input is the text data of the terms and conditions information, and the output is the extracted specific information.
[1042] Step 6:
[1043] The device visually displays specific information extracted.
[1044] The terminal displays the extracted information in a GUI in a format that is easy for the user to understand. For example, it uses different colors depending on the type of information, or highlights important information. The input is specific information, and the output is visual information displayed on the terminal's display.
[1045] Step 7:
[1046] The device recognizes the user's emotions.
[1047] The device's camera and microphone are used to capture the user's facial expressions and voice, and the emotion_recognition library is used to analyze their emotions. The input is the user's facial expression images and voice data, and the output is the analyzed emotional data.
[1048] Step 8:
[1049] The device adjusts the visual display based on the emotion it recognizes.
[1050] The device adjusts the display layout and color tone based on the analyzed emotional data. For example, if the user shows a confused expression, the device will display information more simply. The input is emotional data, and the output is adjusted visual information.
[1051] Prompt Sentence Examples
[1052] "Please take as input an image of the user's facial expression captured by the camera of the smart glasses and analyze its emotions. Based on the analysis results, please propose a display format that will satisfy the user. Please use the emotion_recognition library for analyzing the emotions in the image and the flask framework for proposing a layout based on the analysis results."
[1053] The specific processing unit 290 transmits the result of the specific processing to the headset type terminal 314. In the headset type terminal 314, the control unit 46A causes the speaker 240 and the display 343 to output the result of the specific processing. The microphone 238 acquires audio indicating a user input regarding the result 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.
[1054] The data generation model 58 is a so-called generative AI (Artificial Intelligence). An example of the data generation model 58 is ChatGPT (Internet Search<URL: https: / / openai.com / blog / chatgpt> ), Gemini (Internet search <url: https: gemini.google.com ?hl="ja">) and other generation AIs. The data generation model 58 is obtained by performing deep learning on a neural network. A prompt including an instruction is input to the 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. The data generation model 58 performs inference on the input inference data in accordance with the instruction indicated by the prompt, and outputs the inference result in a data format such as voice data and text data. Here, inference refers to, for example, analysis, classification, prediction, and / or summarization.
[1055] In the above embodiment, an example was given in which the specific processing is performed by the data processing device 12, but the technology of the present disclosure is not limited to this, and the specific processing may be performed by the headset type terminal 314.
[1056] [Fourth embodiment]
[1057] FIG. 7 shows an example of the configuration of a data processing system 410 according to the fourth embodiment.
[1058] 7, a 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.
[1059] 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, a RAM 30, and a storage 32. The processor 28, the RAM 30, and the storage 32 are connected to a bus 34. The database 24 and the 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).
[1060] 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, a RAM 48, and a storage 50. The processor 46, the RAM 48, and the storage 50 are connected to a bus 52. The microphone 238, the speaker 240, the camera 42, and the control target 443 are also connected to the bus 52.
[1061] 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.
[1062] 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 surroundings of user 20 (for example, an imaging range defined by an angle of view equivalent to the field of vision of a typical healthy person).
[1063] The communication I / F 44 is connected to a network 54. The communication I / Fs 44 and 26 control 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 state.
[1064] The control object 443 includes a display device, LEDs in the eyes, and motors for driving 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.
[1065] Fig. 8 shows an example of the main functions of the data processing device 12 and the robot 414. As shown in Fig. 8, in the data processing device 12, a specific process is performed by the processor 28. A specific process program 56 is stored in the storage 32.
[1066] 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.
[1067] The 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.
[1068] In the robot 414, the processor 46 performs the reception output process. 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.
[1069] Next, a description will be given of the specific processing performed by the specific processing unit 290 of the data processing device 12. In the following description, the data processing device 12 will be referred to as a "server" and the robot 414 will be referred to as a "terminal."
[1070] This invention is a system that efficiently collects contract information for products purchased by users and visually displays the analysis results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[1071] Server Roles
[1072] Receiving purchase history
[1073] The server first receives the user's purchase history, which is data containing information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[1074] Collecting policy information
[1075] The server then collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[1076] Device Role
[1077] Analysis of clause information
[1078] Next, the terminal analyzes the contract information obtained from the server. During the analysis, specific information (such as return period, warranty period, and usage precautions) is extracted from the contract information using regular expressions. This allows important information for the user to be extracted efficiently from the contract information.
[1079] Visual display of information
[1080] The analysis results are visually displayed on the device. Specifically, specific extracted information (such as return periods, warranty periods, and usage precautions) is displayed in an easy-to-understand format for the user. This allows users to check important information about the purchased product at a glance.
[1081] User Use
[1082] Registering purchase history
[1083] A user registers their purchase history in the system. For example, if they purchased "Product A" and "Product B," they enter the names of the products and the associated URLs into the system.
[1084] Verify the information
[1085] After the system collects and analyzes the information, the user checks the information displayed on the device. For example, the return period and usage precautions for "Product A" are displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product's warranty period.
[1086] Specific examples
[1087] For example, suppose a user purchases "Product A" and "Product B." First, the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." Next, the device analyzes the obtained information and extracts the return period and usage precautions for "Product A." For example, if the terms and conditions for "Product A" state that "the return period is within 30 days" and "the usage precaution is to avoid high temperatures," this information is extracted. The device then displays information to the user in the form of "Product A: The return period is within 30 days" or "Product A: The usage precaution is to avoid high temperatures."
[1088] In this way, the present invention efficiently provides important product clause information to users and supports them in responding appropriately.
[1089] The processing flow will be explained below.
[1090] Step 1:
[1091] A user inputs his / her purchasing history into the system. Specifically, the history is saved as a list including the names of purchased products and the URLs of the associated web pages.
[1092] Step 2:
[1093] The server receives the purchase history entered by the user and sends an HTTP request to the URL of each product in the list, thereby retrieving the HTML content of the associated web page.
[1094] Step 3:
[1095] The BeautifulSoup library is used to parse the HTML content retrieved by the server. The server extracts all paragraph elements (< / url:> tag) and concatenate the text into a single string.
[1096] Step 4:
[1097] The server stores the linked text data in a dictionary with the product name as a key, thereby organizing the terms and conditions information for each product.
[1098] Step 5:
[1099] The device receives dictionary-formatted contract information from the server. The device parses the contract information and uses regular expressions to extract specific information (such as return period, warranty period, and usage precautions).
[1100] Step 6:
[1101] Using regular expression patterns, the terminal extracts specific information from the contract information of each product. For example, the pattern "return period.?(\d+days)" extracts the return period.
[1102] Step 7:
[1103] The device stores the extracted specific information in a new dictionary using the product name as a key, providing information that is organized and easy for the user to understand.
[1104] Step 8:
[1105] The device visually displays the organized information, specifically using a GUI to show the user the name of each product and related terms and conditions (e.g., return policy and usage instructions).
[1106] Step 9:
[1107] The user checks the information displayed on the device, allowing them to grasp important terms and conditions of the purchased product at a glance and respond appropriately in their daily lives.
[1108] Example 1
[1109] Next, a description will be given of Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the robot 414 will be referred to as a "terminal."
[1110] Today's consumers purchase many products online, resulting in the need to manage the terms and conditions of various products. However, this information is diverse and manual management and review is extremely cumbersome. Furthermore, while important information is contained in the terms and conditions, reviewing it all takes time and effort, which can lead to users overlooking important information. Therefore, there is a need for a system that can efficiently collect, automatically analyze, and visually display terms and conditions information.
[1111] The specific processing by the specific processing unit 290 of the data processing device 12 in the first embodiment is realized by the following means.
[1112] In this invention, the server includes means for receiving a user's purchase history and collecting clause information from related web pages based on the purchase history, means for analyzing the collected clause information and extracting specific information (return period, warranty period, usage precautions, etc.) using regular expressions, means for visually displaying the analyzed specific information to the user, and means for displaying the analysis results via the user's terminal, thereby enabling the user to efficiently collect clause information and easily check important information.
[1113] "User" means an individual or corporation that uses the system to register their purchase history and check terms and conditions information.
[1114] "Purchase history" is data containing information about products that a user has purchased in the past, including the names of the products and the URLs of related web pages.
[1115] A "server" is a computer system that receives purchase histories from users and collects and analyzes policy information from related web pages.
[1116] "Terms and conditions information" refers to document information that describes the product's usage conditions, warranty period, return period, etc.
[1117] A "regular expression" is a special notation used to search and extract strings, and is used to find specific patterns.
[1118] The "detailed analysis means" is a means for analyzing the collected clause information and extracting specific information using regular expressions.
[1119] "Visual display means" refers to a means for displaying analyzed information in a form that allows the user to easily confirm the information.
[1120] A "terminal" is a computer system or device that a user uses to check information obtained from a server.
[1121] "HTML structure" refers to the underlying hierarchical structure of the documents that make up a web page.
[1122] This invention is a system that efficiently collects contract information for products purchased by users and visually displays the analysis results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[1123] Server Roles
[1124] Receiving purchase history
[1125] The server first receives the user's purchase history, which is data containing information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[1126] Collecting policy information
[1127] The server then collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[1128] Device Role
[1129] Analysis of clause information
[1130] Next, the terminal analyzes the contract information obtained from the server. During the analysis, regular expressions are used to extract specific information from the contract information (e.g., return period, warranty period, usage precautions, etc.). This allows important information for the user to be extracted efficiently from the contract information.
[1131] Visual display of information
[1132] The analysis results are visually displayed on the device. Specifically, specific information such as return periods, warranty periods, and usage precautions are displayed in an easy-to-understand format for the user, allowing the user to check important information about the purchased product at a glance.
[1133] User Use
[1134] Registering purchase history
[1135] A user registers their purchase history in the system. For example, if they purchased "Product A" and "Product B," they enter the names of the products and the associated URLs into the system.
[1136] Verify the information
[1137] After the system collects and analyzes the information, the user checks the information displayed on the device. For example, the return period and usage precautions for "Product A" are displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product's warranty period.
[1138] Specific examples
[1139] For example, suppose a user purchases "Product A" and "Product B." First, the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." Next, the device analyzes the obtained information and extracts the return period and usage precautions for "Product A." For example, if the terms and conditions for "Product A" state that "the return period is within 30 days" and "the usage precaution is to avoid high temperatures," this information is extracted. The device then displays information to the user in the form of "Product A: The return period is within 30 days" or "Product A: The usage precaution is to avoid high temperatures."
[1140] Prompt Sentence Examples
[1141] A user has purchased "Product A" and "Product B." Please retrieve the terms and conditions information and display the return period and usage precautions for "Product A."
[1142] In this way, the present invention efficiently provides important product clause information to users and supports them in responding appropriately.
[1143] The flow of the identification process in the first embodiment will be described with reference to FIG.
[1144] Step 1:
[1145] Receiving purchase history
[1146] The server receives purchase history from the user. The user enters the product name and the associated URL. The purchase history data is sent to the server in JSON format.
[1147] Input and Output: The input is the purchase history (product name and URL) provided by the user, and the output is the purchase history information stored in the internal database.
[1148] Specific operation: The server receives the purchase history data sent by the user and stores it in an internal database.
[1149] Step 2:
[1150] Collecting policy information
[1151] The server collects terms and conditions information from related web pages based on the purchase history stored in the internal database.
[1152] Input and Output: The input is the saved purchase history data, and the output is text data containing the terms and conditions information.
[1153] Specific operation: The server uses the BeautifulSoup library to retrieve HTML content from each URL listed in the purchase history, parses the HTML, and extracts all paragraph elements. The retrieved text is then stored in a database in the form of a dictionary with product names as keys.
[1154] Step 3:
[1155] Analysis of clause information
[1156] The terminal analyzes the terms and conditions information obtained from the server.
[1157] Input and Output: The input is text data obtained from the server, and the output is specific information extracted using regular expressions.
[1158] Specific operation: The device uses a regular expression library to search for specific keywords (e.g., "return period," "warranty period," "usage precautions") in the acquired text data, extracts this information, and formats the extracted information in a format that can be viewed by the user.
[1159] Step 4:
[1160] Visual display of information
[1161] The terminal visually displays the analysis results.
[1162] Input and Output: Input is the specific information that is parsed, and output is the information that is visually presented to the user.
[1163] Specific operation: The terminal visually formats the extracted information in list or table format and displays it through the user interface, allowing the user to easily check important policy information.
[1164] Step 5:
[1165] Verify the information
[1166] The user checks the parsed clause information.
[1167] Input and Output: The input is the analysis result displayed on the terminal, and the output is the information obtained by the user.
[1168] Specific operations: The user can check information such as the return period, warranty period, and usage precautions for each product through the device, and obtain important information regarding product usage.
[1169] As described above, the processing of this system is such that the server and terminal cooperate to efficiently provide important clause information to the user.
[1170] (Application example 1)
[1171] Next, a description will be given of Application Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the robot 414 will be referred to as a "terminal."
[1172] Conventional purchase history management systems have had difficulty efficiently collecting, analyzing, and visually displaying terms and conditions information (such as return periods, warranty periods, and usage precautions) for products purchased by users. Furthermore, there was a lack of a way to easily check this information on smartphones and other mobile devices. This made it difficult for users to quickly and accurately grasp important terms and conditions information for purchased products and take appropriate action.
[1173] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 1 is realized by the following means.
[1174] In this invention, the server includes means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, and means for displaying the extracted specific information on a mobile device. This allows users to quickly and accurately grasp important terms and conditions information for purchased products and easily check them on their smartphones or other mobile devices.
[1175] "User" refers to a person who uses the system to register purchase history and check information.
[1176] "Purchase history" refers to data including the names of products a user has previously purchased and the URLs of related web pages.
[1177] "Terms and conditions information" refers to information that describes important rules and conditions regarding purchased products, such as return periods, warranty periods, and usage precautions.
[1178] "Means of collection" refers to the server's ability to retrieve the HTML content of a web page from a specified URL.
[1179] "Means of analysis" refers to the function of extracting specific information from the collected clause information using regular expressions.
[1180] "Means for visual display" refers to the function of the device to display the analysis results in an easy-to-understand manner for the user.
[1181] "Mobile devices" refers to mobile information terminals such as smartphones and tablets.
[1182] This invention is a system that efficiently collects and analyzes contract information for products purchased by users and visually displays the results. Below, we will explain in detail how the invention can be implemented, taking into account the roles of the server, terminal, and user.
[1183] Server Roles
[1184] Receiving purchase history
[1185] The server first receives the user's purchase history, which includes information about products the user has purchased in the past, including the names of the products and the URLs of the associated web pages.
[1186] Collecting policy information
[1187] Next, the server collects clause information from the relevant web pages for each product based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL and uses an HTML parsing library such as BeautifulSoup to extract all paragraph elements within the page. The extracted paragraph text is concatenated and stored in a dictionary with the product name as the key.
[1188] Device Role
[1189] Analysis of clause information
[1190] Next, the terminal analyzes the contract information obtained from the server. During the analysis, specific information (e.g., return period, warranty period, usage precautions, etc.) is extracted using regular expressions. This process efficiently extracts information that is important to the user from the contract information.
[1191] Visual display of information
[1192] The analysis results are visually displayed on the device. Specifically, specific extracted information (such as return periods, warranty periods, and usage precautions) is displayed in an easy-to-understand format for the user. This allows users to check important information about the purchased product at a glance.
[1193] View on mobile devices
[1194] The extracted specific information is displayed on mobile devices such as smartphones or tablets, allowing users to easily check the policy information and take necessary action quickly.
[1195] User Use
[1196] Registering purchase history
[1197] Users register their purchase history in the system. For example, when they purchase a specific product, they enter the name of the product and the associated URL into the system.
[1198] Verify the information
[1199] After the system collects and analyzes the information, the user can check the information displayed on the device. For example, the return period and usage precautions for a certain product can be displayed, allowing the user to use the product with peace of mind. The user can also remember important information such as the product warranty period.
[1200] Specific examples
[1201] For example, suppose a user purchases a specific product. The server collects terms and conditions information from the specified product's URL, and the device analyzes that information. Through the analysis, important information such as the return period and usage precautions is extracted. The user can then use their smartphone to check information such as "The return period is 30 days" and "Avoid high temperatures."
[1202] Prompt Sentence Examples
[1203] "Collect product terms and conditions information from the following URL and extract the return period, warranty period, and usage precautions. URL: https: / / example.com / productA"
[1204] In this way, the present invention is a system that efficiently provides important product clause information to users and supports them in taking the necessary action promptly.
[1205] The flow of the specific processing in the application example 1 will be described with reference to FIG.
[1206] Step 1:
[1207] The server receives the user's purchase history. When a user registers a purchase history, they enter the product name and the associated URL. This input data is received by the server and saved in a database. The input here is the product name and the product's associated URL, and the output is the purchase history saved in the database.
[1208] Step 2:
[1209] The server collects terms and conditions information from related web pages based on the purchase history. Specifically, the server retrieves the HTML content of the web page from the specified URL. The HTML content is retrieved using the Requests library and parsed using the BeautifulSoup library. The input at this stage is the URL, and the output is the terms and conditions information extracted from the HTML content.
[1210] Step 3:
[1211] The server analyzes the extracted terms and conditions information and extracts specific information. During the analysis, regular expressions are used to extract important information such as the return period, warranty period, and usage precautions. The input at this stage is the text data of the HTML content, and the output is the analyzed specific information.
[1212] Step 4:
[1213] The server transmits the analyzed specific information to the terminal. Here, the input is the analyzed specific information, and the output is the data to be transmitted to the terminal. The server transmits this data to the user's mobile device.
[1214] Step 5:
[1215] The device visually displays the specific information it receives. The information acquired by the device is displayed to the user in a visually easy-to-understand format. For example, information such as "Return period is 30 days" and "Avoid high temperatures" may be displayed on a smartphone screen. The input here is the specific information that has been analyzed, and the output is the information displayed on the user interface.
[1216] Step 6:
[1217] The user checks the information displayed on the device and takes the necessary action. For example, if a return period is displayed, the user can return the product within that period if necessary. The input here is the information displayed on the device, and the output is the user's judgment and action.
[1218] In this way, specific data processing and data calculation are performed at each step, and a system is realized that efficiently provides clause information to users.
[1219] Furthermore, an emotion engine that estimates the user's emotion may be further 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.
[1220] The present invention combines an emotion engine with a system that efficiently collects contract information for products purchased by users and visually displays the analyzed results. Specific embodiments of this system are described below.
[1221] Server Roles
[1222] Receiving purchase history
[1223] As a user, the user first enters their purchase history into the system, including the names of the purchased products and the URLs of the associated web pages. The server then receives this purchase history.
[1224] Collecting policy information
[1225] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL using an HTTP request and analyzes the page content using an HTML parsing library such as BeautifulSoup.
[1226] Device Role
[1227] Analysis of clause information
[1228] The terminal analyzes the HTML content obtained from the server and extracts the terms and conditions information for each product. The extracted text data is concatenated and stored in a dictionary with the product name as the key. The terminal then further analyzes this terms and conditions information and extracts specific information (e.g., return period, warranty period, usage precautions, etc.) using regular expressions.
[1229] Visual display of information
[1230] After the device extracts the specific information, it visually displays it in an easy-to-understand format for the user. Specifically, it displays the information using a GUI, allowing the user to check the necessary information at a glance.
[1231] Incorporating an emotion engine
[1232] Emotion Recognition in Action
[1233] The terminal further recognizes the user's emotions using an emotion engine, which can analyze the user's facial expressions, voice, or input data to identify the user's current emotional state.
[1234] Customized display of information
[1235] Based on the emotions recognized by the emotion engine, the device adjusts the way information is visually displayed, specifically adjusting the layout, color tone, and font size of the information depending on the user's emotional state, to present the information in a format that is optimal for the user.
[1236] User Use
[1237] Registering purchase history
[1238] As an example of inputting a purchase history into the system, the user inputs "product A" and "product B."
[1239] Information verification and emotion recognition
[1240] After the policy information is collected, analyzed, and displayed, the emotion engine recognizes the user's emotions as they view the information displayed on their device. For example, if the user shows confusion at the displayed information, the device will adjust the display layout and color tones to make the information easier for the user to understand.
[1241] For example, if a user purchases "Product A" and "Product B," the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes the information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the layout and color of the displayed information to make it easier for the user to understand.
[1242] In this way, the present invention efficiently provides users with important terms and conditions information for purchased products, and further improves user convenience by optimizing the information presentation method according to the user's emotions.
[1243] The processing flow will be explained below.
[1244] Step 1:
[1245] A user inputs his / her purchasing history into the system. Specifically, the user inputs the names of purchased products and the URLs of the related web pages in a list format. This list is used for subsequent processing.
[1246] Step 2:
[1247] The server receives the purchase history input from the user, which includes the names of the products and the URLs of the associated web pages.
[1248] Step 3:
[1249] The server retrieves HTML content from the web pages related to each product based on the received purchase history. Specifically, the server retrieves the HTML of the web pages from each URL using an HTTP request.
[1250] Step 4:
[1251] The BeautifulSoup library is used to parse the HTML content retrieved by the server. The server parses the HTML structure and extracts all paragraph elements ( tag) and concatenate the text.
[1252] Step 5:
[1253] The server stores the linked text data in a dictionary with the product name as a key, thereby organizing the terms and conditions information for each product.
[1254] Step 6:
[1255] The terminal receives a dictionary of terms and conditions information obtained from the server. The terminal uses regular expressions to parse this information and extract specific information (e.g., return period, warranty period, usage precautions, etc.).
[1256] Step 7:
[1257] The terminal uses regular expression patterns to extract specific information from the contract information of each product. For example, the pattern "return period.?(\d+days)" is used to extract the return period.
[1258] Step 8:
[1259] The specific information extracted by the device is stored in a new dictionary with the product name as the key, providing information that is organized and easy for the user to understand.
[1260] Step 9:
[1261] The emotion engine analyzes the user's facial expressions, voice, and input data to recognize the user's emotions. Specifically, it uses a camera and microphone to analyze the user's facial expressions and tone of voice.
[1262] Step 10:
[1263] The device adjusts the way information is displayed based on the user's emotions as recognized by the emotion engine. For example, if the user is confused, the device will change the layout and color of the displayed information to make it easier to understand.
[1264] Step 11:
[1265] The device visually displays optimized information to the user. Specifically, the information is displayed using a GUI, allowing the user to check the necessary information at a glance.
[1266] Step 12:
[1267] The user checks the information displayed on the device and understands the terms and conditions of the purchased product. This allows the user to understand important information such as how to use the product and the return period, and respond appropriately.
[1268] For example, if a user purchases "Product A" and "Product B," the server collects the respective terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes the information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the layout and color of the displayed information to make it easier for the user to understand. This series of steps allows the user to efficiently and appropriately check the important terms and conditions information for the purchased products.
[1269] Example 2
[1270] Next, a description will be given of Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the robot 414 will be referred to as a "terminal."
[1271] In today's world, it is important for users to efficiently gather terms and conditions for the products they purchase and quickly understand the information they need. However, the wide variety of terms and conditions information available on web pages makes it difficult for users to extract and understand this information on their own. Furthermore, terms and conditions information is often presented in a visually confusing manner, hindering user understanding. Furthermore, information presentation methods that do not take into account the user's feelings can cause dissatisfaction and confusion.
[1272] The specific processing by the specific processing unit 290 of the data processing device 12 in the second embodiment is realized by the following means. In this invention, the server includes means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, means for recognizing the user's emotions, and means for adjusting the information display method based on the recognized emotions. This allows the user to efficiently collect terms and conditions information and understand the information in a visually easy-to-understand format. Furthermore, the information presentation method based on the user's emotions can improve user satisfaction.
[1273] "User purchase history" is information including the names of products that a user has purchased in the past and the URLs of related web pages.
[1274] "Terms and conditions information" refers to information about the contract contents posted on the webpage, including information on product purchase conditions, return and warranty periods, and usage precautions.
[1275] "Analysis means" refers to methods and tools used to analyze collected HTML content and extract specific information.
[1276] "Visual display means" refers to a method of displaying information using a GUI so that users can easily understand the information.
[1277] "Means for recognizing emotions" refers to technology that analyzes a user's facial expressions, voice, or input data to identify their current emotional state.
[1278] "Means for adjusting the display method" refers to a method for adjusting the layout, color tone, font size, etc. of information based on the recognized emotion.
[1279] The "means for receiving purchase history" refers to a method for receiving purchase history information from a user.
[1280] "HTML content of a web page" refers to the entire content of a web page, including HTML tags and text.
[1281] "Regular expressions" refers to a pattern matching technique used for string searches and replacements.
[1282] "GUI" refers to a graphical user interface designed to allow users to operate it intuitively.
[1283] An "HTTP request" refers to a communication protocol for requesting a specific resource from a web server.
[1284] "HTML parsing library" refers to a software tool for parsing HTML content and extracting structured data.
[1285] The present invention combines an emotion engine with a system that efficiently collects contract information for products purchased by users and visually displays the analyzed results. Specific embodiments of this system are described below.
[1286] Server Roles
[1287] The server's role is to first receive purchase history from the user. The user enters the product name and the URL of the associated web page into the system. This data is sent to the server, which provides a means for it to be received. For example, data is entered using a web form, and the data is sent to the server when the submit button is clicked.
[1288] Next, the server retrieves the HTML content of the relevant webpage from the specified URL. Specifically, it uses the requests library to send an HTTP request to retrieve the HTML data of the webpage. It then uses an HTML parsing library such as BeautifulSoup to parse the HTML content and extract the required data.
[1289] Device Role
[1290] The terminal's role is to analyze the HTML content obtained from the server and extract specific policy information. The terminal uses BeautifulSoup to analyze the HTML and extract specific information from the text (e.g., return policy, warranty period, usage precautions, etc.). Regular expressions are used to accurately extract the desired information.
[1291] The extracted information is then visually displayed to the user. Using GUI libraries such as Tkinter and PyQt, the policy information is displayed in a table format, with important information highlighted, making it visually easy to understand.
[1292] Incorporating an emotion engine
[1293] The system incorporates an emotion engine that can recognize user emotions in real time. It uses libraries such as OpenCV and dlib to capture the user's face from a camera and analyze their facial expressions to identify their emotional state. If the analysis shows that the user is confused, dissatisfied, or satisfied, the layout and color tone of the displayed information are automatically adjusted accordingly.
[1294] User Use
[1295] First, the user inputs the history of purchased products into the system. For example, they input "Product A" and "Product B" and specify the associated URLs for each. The system then collects, analyzes, and displays the terms and conditions information from the web page.
[1296] When the information is displayed, the user checks it and the system recognizes the user's emotions. For example, if the user shows confusion, the device will adjust the display layout and color tones of the information to make it easier for the user to understand.
[1297] Examples of concrete examples and prompts
[1298] For example, if a user purchases "Product A" and "Product B," the server collects terms and conditions information from "https: / / example.com / productA" and "https: / / example.com / productB." The device then analyzes this information, extracts the return period and usage precautions for "Product A," and displays them appropriately. If the emotion engine recognizes dissatisfaction from the user's facial expression, it adjusts the display layout and color tones to make the information easier for the user to understand.
[1299] An example of a specific prompt is:
[1300] "I would like to design a system that recognizes emotions from a user's facial expressions and optimizes the visual presentation of information. First, I would like to know the algorithm that collects data entered by the user, and then retrieves and analyzes information from web pages based on that data."
[1301] It is possible that:
[1302] This system allows users to efficiently collect and understand important terms and conditions information for the products they are purchasing, and by presenting information in response to their emotions, it provides a more satisfying user experience.
[1303] The flow of the identification process in the second embodiment will be described with reference to FIG.
[1304] Step 1: Receive purchase history
[1305] The server receives the purchase history entered by the user. The user enters the product name and the URL of the associated web page and submits the data. To receive this, the server sets up a web form or API endpoint. Specifically, when the user enters the names and URLs of "Product A" and "Product B" and presses the "Submit" button, the server receives the data and stores it in the specified variable.
[1306] Input: Product name and URL entered by the user
[1307] Output: Received purchase history data
[1308] Step 2: Get the HTML content of the web page
[1309] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL. The server uses the requests library to send an HTTP request to retrieve the web page data. For example, it retrieves HTML from the URL of "Product A," and then retrieves it from the URL of "Product B."
[1310] Input: URL included in purchase history data
[1311] Output: HTML content retrieved from the URL
[1312] Step 3: Parsing HTML content
[1313] The terminal receives the HTML content sent from the server. The terminal uses the BeautifulSoup library to parse the HTML and extract the clause information. Specifically, it uses the soup.find_all('p') method to get all paragraphs in the page and extract the text of each.
[1314] Input: Retrieved HTML content
[1315] Output: Parsed clause information text
[1316] Step 4: Extract specific information
[1317] The terminal extracts specific information (such as return period, warranty period, and usage precautions) from the parsed terms and conditions information. Regular expressions are used for this. For example, to extract the return period, a search pattern such as re.search(r'return period:(\d+days)', text) is used. The extracted information is stored in a dictionary data structure.
[1318] Input: Parsed clause information text
[1319] Output: Extracted specific information
[1320] Step 5: Visually display the information
[1321] The terminal visually displays the extracted specific information using a GUI. To make it easier for users to understand, libraries such as Tkinter and PyQt are used to display information about each product in a table or dashboard format. For example, the return period and usage precautions for "Product A" are displayed in a list, with important information highlighted.
[1322] Input: Extracted specific information
[1323] Output: Visually displayed information
[1324] Step 6: Recognize emotions
[1325] The device uses an emotion engine to recognize the user's emotions. It uses libraries such as OpenCV and dlib to capture the user's face from the camera and analyze their facial expressions to determine their current emotional state. For example, if the user's brow is furrowed, it will recognize that they are confused.
[1326] Input: Real-time video from the camera
[1327] Output: Perceived emotional state
[1328] Step 7: Adjust the display
[1329] Based on the recognized emotion, the device will adjust the way information is displayed. For example, if the user shows a confused expression, the device will simplify the layout of the information, soften the color tone, and increase the font size, making it easier for the user to understand the information.
[1330] Input: Perceived emotional state
[1331] Output: Adjusted information display
[1332] In this way, the system efficiently collects terms and conditions information for purchased products and presents it in an easy-to-understand format. Furthermore, by presenting information that takes into account the user's emotions, the system improves user satisfaction.
[1333] (Application example 2)
[1334] Next, a description will be given of Application Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the robot 414 will be referred to as a "terminal."
[1335] Product terms and conditions are extremely important in modern purchasing activities, but it is difficult to efficiently collect this information and display it in a visually understandable manner. Furthermore, adjusting the display format of the information based on the user's emotional response to the presented information would improve the user experience, but current systems lack such functionality. In particular, infotainment systems for autonomous vehicles require information display that adapts to the user's emotional response to provide a safe and comfortable shopping experience.
[1336] The specific processing 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 means for receiving a user's purchase history and collecting terms and conditions information from related web pages based on the purchase history, means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions), means for visually displaying the extracted specific information to the user, means for recognizing the user's emotions, and means for adjusting the layout and color tone of the visually displayed information based on the recognized emotions. This allows the user to more easily understand the terms and conditions information based on their purchase history and receive the information in a display format optimal for their emotions at the time.
[1337] "User" refers to a user of this system.
[1338] "Purchase history" is data that includes information about products that a user has purchased in the past.
[1339] A "related web page" refers to a web page that contains information about the product purchased by the user.
[1340] "Terms and conditions information" refers to important contract and agreement information regarding products and services, such as product return periods, warranty periods, and usage precautions.
[1341] "Means for collecting" refers to the technical means by which the server obtains the necessary information from related web pages based on the purchase history.
[1342] "Means for analysis" refers to the technical means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions).
[1343] "Visual display means" refers to technical means for displaying extracted information in an easy-to-understand manner for the user.
[1344] "Means for recognizing" refers to technical means for identifying a user's emotional state using facial expressions, voice, or input data.
[1345] "Adjusting means" refers to technical means that change the layout or color tone of visually displayed information based on perceived emotions.
[1346] "System" is a general term for a series of devices and programs that include each of the above means.
[1347] "Information layout" refers to the arrangement and structure of information that is visually displayed.
[1348] "Color tone" refers to the color and brightness of the displayed information.
[1349] The system of the present invention incorporates a function for efficiently collecting user purchasing histories and visually displaying the analyzed results. It also uses an emotion engine to recognize the user's emotions and adjusts the display format of information according to those emotions, improving the user experience. A specific embodiment for implementing this system is described below.
[1350] Server Roles
[1351] Receiving purchase history
[1352] The server receives the purchase history entered by the user, which includes the names of the purchased items and the URLs of the associated web pages.
[1353] Collecting policy information
[1354] Based on the received purchase history, the server retrieves the HTML content of the relevant web page from the specified URL using an HTTP request, and then parses the retrieved HTML content using an HTML parsing library such as BeautifulSoup.
[1355] Device Role
[1356] Analysis of clause information
[1357] The terminal receives the HTML content obtained from the server and analyzes it. Product terms and conditions information is extracted from the HTML content and stored as text data in a dictionary. Specific information (e.g., return period, warranty period, usage precautions, etc.) is extracted using regular expressions during the analysis.
[1358] Visual display of information
[1359] The extracted specific information is visually displayed to the user using a GUI, allowing the user to check the required information at a glance.
[1360] Incorporating an emotion engine
[1361] Emotion Recognition in Action
[1362] The terminal further recognizes the user's emotions using an emotion engine, which analyzes the user's facial expressions to identify their emotional state.
[1363] Customized display of information
[1364] The layout and color of the visually displayed information can be adjusted based on the user's emotions. For example, if the user shows a confused expression, the device will adjust the display layout and color to make the information easier for the user to understand.
[1365] Hardware and software used
[1366] The server uses libraries (e.g., requests) to process HTTP requests and BeautifulSoup for HTML parsing, while the device uses the emotion_recognition library for emotion analysis and smart glasses (e.g., Google Glass) or other display devices for visual display of information.
[1367] Specific examples
[1368] For example, if a user purchases "Product A" and "Product B," the server collects the terms and conditions information for "Product A" and "Product B" from their respective URLs (e.g., "https: / / example.com / productA" and "https: / / example.com / productB"). The device analyzes the collected information, extracts specific information, and displays it visually. If the emotion engine recognizes dissatisfaction from the user's facial expression, it can adjust the display format to provide the user with the most appropriate information.
[1369] Prompt Sentence Examples
[1370] "Please take as input an image of the user's facial expression captured by the camera of the smart glasses and analyze its emotions. Based on the analysis results, please propose a display format that will satisfy the user. Please use the emotion_recognition library for analyzing the emotions in the image and the flask framework for proposing a layout based on the analysis results."
[1371] The flow of the specific processing in the application example 2 will be described with reference to FIG.
[1372] Step 1:
[1373] A server receives the user's purchasing history.
[1374] Specifically, the server receives purchase information entered by the user through the infotainment system (e.g., smart glasses or other devices). This information includes the name of the purchased product and the URL of the associated web page. The input is the user's operation, and the output is the purchase history data received by the server.
[1375] Step 2:
[1376] The server collects clause information from related web pages based on the purchase history.
[1377] The server uses an HTTP request to retrieve HTML content from the URL of each product included in the purchase history data. The input is the URL and the output is the HTML content. The server uses a library such as the requests library to perform this process.
[1378] Step 3:
[1379] Parse the HTML content retrieved by the server.
[1380] The server uses BeautifulSoup or another HTML parsing library to extract the terms and conditions information from the retrieved HTML content. For example, it parses HTML tags with specific class names or ID names. The input is the HTML content, and the output is the extracted terms and conditions information as text data.
[1381] Step 4:
[1382] The server transfers the policy information to the terminal.
[1383] The server sends the extracted clause information to the terminal. The input is the text data of the clause information, and the output is the data received by the terminal. This transfer uses the HTTP protocol or other data communication methods.
[1384] Step 5:
[1385] The terminal further analyzes the received terms and conditions information and extracts specific information.
[1386] The terminal analyzes the received terms and conditions information using regular expressions and extracts specific information such as the return period, warranty period, and usage precautions. The input is the text data of the terms and conditions information, and the output is the extracted specific information.
[1387] Step 6:
[1388] The device visually displays specific information extracted.
[1389] The terminal displays the extracted information in a GUI in a format that is easy for the user to understand. For example, it uses different colors depending on the type of information, or highlights important information. The input is specific information, and the output is visual information displayed on the terminal's display.
[1390] Step 7:
[1391] The device recognizes the user's emotions.
[1392] The device's camera and microphone are used to capture the user's facial expressions and voice, and the emotion_recognition library is used to analyze their emotions. The input is the user's facial expression images and voice data, and the output is the analyzed emotional data.
[1393] Step 8:
[1394] The device adjusts the visual display based on the emotion it recognizes.
[1395] The device adjusts the display layout and color tone based on the analyzed emotional data. For example, if the user shows a confused expression, the device will display information more simply. The input is emotional data, and the output is adjusted visual information.
[1396] Prompt Sentence Examples
[1397] "Please take as input an image of the user's facial expression captured by the camera of the smart glasses and analyze its emotions. Based on the analysis results, please propose a display format that will satisfy the user. Please use the emotion_recognition library for analyzing the emotions in the image and the flask framework for proposing a layout based on the analysis results."
[1398] The specific processing unit 290 transmits the result 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 result of the specific processing. The microphone 238 acquires voice indicating a user input regarding the result of the specific processing. The control unit 46A transmits voice 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 voice data.
[1399] The data generation model 58 is a so-called generative AI (Artificial Intelligence). An example of the data generation model 58 is ChatGPT (Internet Search<URL: https: / / openai.com / blog / chatgpt> ), Gemini (Internet search <url: https: gemini.google.com ?hl="ja">) and other generation AIs. The data generation model 58 is obtained by performing deep learning on a neural network. A prompt including an instruction is input to the 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. The data generation model 58 performs inference on the input inference data in accordance with the instruction indicated by the prompt, and outputs the inference result in a data format such as voice data and text data. Here, inference refers to, for example, analysis, classification, prediction, and / or summarization.
[1400] In the above embodiment, an example was given in which the specific processing is performed by the data processing device 12, but the technology of the present disclosure is not limited to this, and the specific processing may be performed by the robot 414.
[1401] The emotion identification model 59 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 FIG. 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.
[1402] FIG. 9 illustrates an emotion map 400 on which multiple emotions are mapped. In the 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 behaviors arising from a state of mind are arranged on the outer edges of the concentric circles. The concept of emotion includes both affect and mental states. Emotions generally generated from reactions occurring in the brain are arranged on the left side of the concentric circles. Emotions generally induced by situational judgment are arranged on the right side of the concentric circles. Emotions generally generated from reactions occurring in the brain and induced by situational judgment are arranged on the upper and lower sides of the concentric circles. Furthermore, the emotion of "pleasure" is arranged on the upper side of the concentric circles, and the emotion of "discomfort" is arranged on the lower side. In this way, in the emotion map 400, multiple emotions are mapped based on the structure by which emotions are generated, and emotions that tend to occur simultaneously are mapped close to each other.
[1403] These emotions are distributed in the 3 o'clock direction on emotion map 400, and typically fluctuate between relief and anxiety. In the right half of emotion map 400, situational awareness dominates over internal sensations, resulting in a sense of calm.
[1404] 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 you go outside emotion map 400, the more visible the emotions become (the more they are expressed in behavior).
[1405] Human emotions are based on various balances, such as posture and blood sugar levels. When these balances deviate from the ideal, a state of discomfort is indicated, and when they approach the ideal, a state of pleasure is indicated. Emotions can also be created for robots, automobiles, and motorcycles, based on various balances, such as posture and remaining battery life. When these balances deviate from the ideal, a state of discomfort is indicated, and when they approach the ideal, a state of pleasure is indicated. An emotion map can be generated, for example, based on Dr. Mitsuyoshi's emotion map (Research on Voice 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 belonging to the "reaction" domain, where sensation is dominant. The right half of the emotion map lists emotions belonging to the "situation" domain, where situational awareness is dominant.
[1406] The emotion map defines two emotions that promote learning. One is a negative emotion on the situation side, around the middle of "repentance" or "reflection." In other words, this occurs 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 a positive emotion on the response side, around "desire." In other words, this occurs when the robot experiences positive feelings such as "I want more" or "I want to know more."
[1407] 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 located close to each other have similar values, as in the emotion map 900 shown in FIG. 10. FIG. 10 shows an example in which multiple emotions, "relieved," "calm," and "reassuring," have similar emotion values.
[1408] The system according to the present disclosure has been described above mainly with respect to the functions of the data processing device 12, but the system according to the present disclosure is not necessarily implemented on a server. The system according to the present disclosure may be implemented as a general information processing system. The present disclosure may be implemented, for example, as a software program running on a personal computer or an application running on a smartphone, etc. The method according to the present disclosure may be provided to users in the form of SaaS (Software as a Service).
[1409] In the above embodiment, an example was given in which the specific processing is performed by one computer 22, but the technology of the present disclosure is not limited to this, and the specific processing may be distributed and performed by a plurality of computers including the computer 22. For example, the data generation model 58 may be provided in an external device of the data processing device 12, and data may be generated in the external device in accordance with input data.
[1410] In the above embodiment, an example in which the specific processing program 56 is stored in the storage 32 has been described, 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.
[1411] 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.
[1412] It is not necessary to store all of the 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 all of the specific processing program 56 in the storage 32; only a portion of the specific processing program 56 may be stored.
[1413] The hardware resource for executing a specific process can be any of the following processors: An example of a processor is a CPU, which is a general-purpose processor that functions as a hardware resource for executing a specific process by executing software, i.e., a program. Another example of a processor is a dedicated electrical circuit, such as an FPGA (Field-Programmable Gate Array), a PLD (Programmable Logic Device), or an ASIC (Application Specific Integrated Circuit), which is a processor with a circuit configuration designed specifically for executing a specific process. Each processor has built-in or connected memory, and each processor uses the memory to execute the specific process.
[1414] The hardware resource that executes the specific processing may be configured with one of these various processors, or may be configured with 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). Also, the hardware resource that executes the specific processing may be a single processor.
[1415] As an example of a system configured with a single processor, first, one processor is configured by combining one or more CPUs and software, and this processor functions as a hardware resource that executes a specific process. Second, there is a system that uses a processor that realizes the functions of an entire system including multiple hardware resources that execute a specific process on a single IC chip, as typified by SoC (System-on-a-chip). In this way, a specific process is realized using one or more of the above-mentioned various processors as hardware resources.
[1416] Furthermore, the hardware structure of these various processors can be, more specifically, an electric circuit that combines circuit elements such as semiconductor devices. The specific processing described above is merely an example. Therefore, it goes without saying that unnecessary steps may be deleted, new steps may be added, or the processing order may be rearranged, without departing from the spirit of the invention.
[1417] The above-described description 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 description 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 replacements may be made to the above-described description and illustrations within the scope of the gist 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 description 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.
[1418] All publications, patent applications, and technical standards mentioned in this specification are herein incorporated by reference to the same extent as if each individual publication, patent application, or technical standard was specifically and individually indicated to be incorporated by reference.
[1419] The following is further disclosed regarding the above embodiment.
[1420] (Claim 1)
[1421] means for receiving a purchase history of a user and collecting clause information from a related web page based on the purchase history;
[1422] A means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions);
[1423] a means for visually displaying the extracted specific information to a user;
[1424] A system including:
[1425] (Claim 2)
[1426] 2. The system according to claim 1, wherein the analysis means extracts specific information from the clause information using regular expressions.
[1427] (Claim 3)
[1428] 2. The system according to claim 1, wherein the web page analysis means analyzes the HTML structure to extract the clause information.
[1429] "Example 1"
[1430] (Claim 1)
[1431] means for receiving a purchase history of a user and collecting clause information from a related web page based on the purchase history;
[1432] A method for analyzing the collected terms and conditions information and extracting specific information (return period, warranty period, usage precautions, etc.) using regular expressions;
[1433] A means for visually displaying the analyzed specific information to the user;
[1434] A means for displaying the analysis results via a user's terminal;
[1435] A system including:
[1436] (Claim 2)
[1437] 2. The system according to claim 1, wherein the web page analysis means analyzes the HTML structure to extract the clause information.
[1438] (Claim 3)
[1439] 10. The system according to claim 1, wherein the analysis results are visually displayed in a list or table format.
[1440] "Application Example 1"
[1441] (Claim 1)
[1442] means for receiving a purchase history of a user and collecting clause information from a related web page based on the purchase history;
[1443] A means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions);
[1444] a means for visually displaying the extracted specific information to a user;
[1445] means for displaying the extracted particular information on the mobile device;
[1446] A system including:
[1447] (Claim 2)
[1448] 2. The system according to claim 1, wherein the analysis means extracts specific information from the clause information using regular expressions.
[1449] (Claim 3)
[1450] 2. The system according to claim 1, wherein the web page analysis means analyzes the HTML structure to extract the clause information.
[1451] "Example 2: Combining Emotion Engines"
[1452] (Claim 1)
[1453] means for receiving a purchase history of a user and collecting clause information from a related web page based on the purchase history;
[1454] A means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions);
[1455] a means for visually displaying the extracted specific information to a user;
[1456] a means for recognizing a user's emotion;
[1457] a means for adjusting the display of information based on the perceived emotion;
[1458] A system including:
[1459] (Claim 2)
[1460] 2. The system according to claim 1, wherein the analysis means extracts specific information from the clause information using regular expressions.
[1461] (Claim 3)
[1462] 2. The system according to claim 1, wherein the web page analysis means analyzes the HTML structure to extract the clause information.
[1463] "Application example 2 when combining emotion engines"
[1464] (Claim 1)
[1465] means for receiving a purchase history of a user and collecting clause information from a related web page based on the purchase history;
[1466] A means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions);
[1467] a means for visually displaying the extracted specific information to a user;
[1468] means for recognizing a user's emotion;
[1469] a means for adjusting the layout and color tone of the visually displayed information based on the recognized emotion;
[1470] A system including:
[1471] (Claim 2)
[1472] 2. The system according to claim 1, wherein the analysis means extracts specific information from the clause information using regular expressions.
[1473] (Claim 3)
[1474] 2. The system according to claim 1, wherein the web page analysis means analyzes the HTML structure to extract the clause information. [Explanation of symbols]
[1475] 10, 210, 310, 410 Data Processing Systems 12 Data Processing Device 14 Smart Devices 214 Smart Glasses 314 Headset-type terminal 414 Robot< / url:>
Claims
1. means for receiving a purchase history of a user and collecting clause information from a related web page based on the purchase history; A means for analyzing the collected terms and conditions information and extracting specific information (such as return period, warranty period, and usage precautions); a means for visually displaying the extracted specific information to a user; A system including:
2. 2. The system according to claim 1, wherein the analyzing means extracts specific information from the clause information using regular expressions.
3. 2. The system according to claim 1, wherein the web page analysis means analyzes the HTML structure to extract the clause information.
Citation Information
Patent Citations
Persona chatbot control method and system
JP2022180282A