A method and system for recommending oxygen selling goods
Patent Information
- Application Number
- CN202611198803.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-08
- Publication Date
- 2026-10-27
AI Technical Summary
[0004]本发明的目的是为了解决现有技术中存在的难以识别相邻档位在连续短程吸气情况下的衔接能力的缺点,而提出的一种氧气售卖商品的推荐方法及系统
1、按照商品编号归集在售氧气商品信息并按档位编号排列,形成氧气商品档位清册,并依据吸气起点、吸气终点和吸气间隔建立用户短程吸气序列,使各脉冲供氧档位具有一致的商品来源与吸气时序基础,减少仅凭概括性档位说明选择商品产生的匹配偏差。
Smart Images

Figure CN122989257A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of reinforcement learning technology, and in particular to a method and system for recommending oxygen for sale. Background Technology
[0002] In self-service vending scenarios where oxygen vending terminals are set up, oxygen vending platforms typically register the type of oxygen products for sale, oxygen supply method, level number, level release instructions, and level application instructions. Before purchasing, users can view the product and level information through the terminal and complete the selection. Pulsed oxygen products release oxygen intermittently according to the inhalation process. However, different users have different inhalation start and end positions, adjacent inhalation intervals, and continuous rapid breathing states within a short period of time. A single product may also contain multiple release levels. Therefore, the selection of product levels needs to take into account both the product information and the user's actual inhalation rhythm before purchasing.
[0003] The technical problem that existing self-service oxygen vending methods need to solve is how to determine the recommended product that matches the user's continuous short-range inhalation rhythm from multiple pulse oxygen supply product levels. Existing technologies usually rely on pre-registered instructions for each level or the user's own judgment to make the selection. The textual instructions for general use fail to reflect the user's current inhalation start point, inhalation end point, and the interval between adjacent inhalations. They also fail to establish a continuously verifiable correspondence between the user's inhalation process before purchase and the release instructions for each level. Therefore, it is difficult to identify the connection ability of adjacent levels in continuous short-range inhalation, and the recommendation results are prone to deviating from the user's actual inhalation process. Summary of the Invention
[0004] The purpose of this invention is to address the shortcomings of existing technologies that make it difficult to identify the connection ability of adjacent gears under continuous short-range inhalation, and to propose a method and system for recommending oxygen sales products.
[0005] To address the problems existing in the prior art, the present invention adopts the following technical solution: A recommended method for selling oxygen includes: S1. Based on the oxygen product information available on the oxygen sales platform, obtain the grade number sequence corresponding to the product number; establish grade fields according to the grade number sequence, and summarize the grade records to obtain an oxygen product grade list. S2. Based on the user's pre-sale inhalation record, determine the inhalation start and end points of the short-range inhalation segment; determine the inhalation interval based on two adjacent short-range inhalation segments; arrange the inhalation segment records corresponding to the inhalation start, inhalation end, and inhalation interval to obtain the user's short-range inhalation sequence. S3. Based on the oxygen product range list and the user's short-range inhalation sequence, obtain the range inhalation unfolding page; arrange the swallowing segments corresponding to the range inhalation unfolding page to obtain the rapid panting swallowing segment sequence; S4. Classify the rapid breathing swallowing segment sequence to obtain the adjacent position correspondence; based on the adjacent position correspondence, obtain the swallowing write-back pages, and summarize the swallowing write-back pages to obtain the swallowing write-back position list. S5. Based on the inventory list, obtain the recommended product record; based on the recommended product record, recommend oxygen products for sale.
[0006] Preferably, an oxygen product price list is obtained, including: Obtain information on oxygen products available for sale on oxygen sales platforms; this information includes product number, product type, oxygen supply method, level number, level release instructions, and level application instructions. Based on the product number, information on oxygen products for sale is collected to obtain product tier information; In the product tier information, the tier numbers are arranged to obtain the tier number sequence corresponding to the product number; Create a gear position field for each gear position number based on the gear position number sequence; Write the product type, oxygen supply method, release instructions, and applicable instructions for each gear number into the corresponding gear field to obtain the gear record for each product number. The records of each product number corresponding to the grade are summarized to obtain a list of oxygen product grades.
[0007] Preferably, determining the inspiratory start and end points of the short-range inspiratory segment includes: Obtain the user's pre-sale inhalation records collected by the inhalation collection component in the oxygen vending terminal; wherein, the user's pre-sale inhalation records include the collection time sequence; Determine the airflow entry segment from the user's pre-sale inhalation record; Based on the collection sequence, the airflow entry section is segmented to obtain multiple short-range inhalation segments; Extract the segment start position from the short-range inspiratory segment and use it as the inspiratory start point of the short-range inspiratory segment; Extract the end position of the short-range inspiratory segment and use it as the inspiratory endpoint of the short-range inspiratory segment.
[0008] Preferably, the user's short-range inhalation sequence includes: Identify two adjacent short-range inspiratory segments from a plurality of short-range inspiratory segments; The preceding short-range inspiratory segment in two adjacent short-range inspiratory segments is taken as the previous short-range inspiratory segment. The short inspiratory segment that occurs later in two adjacent short inspiratory segments is taken as the next short inspiratory segment. The interval between the end of the inhalation of the previous short-range inhalation segment and the beginning of the inhalation of the next short-range inhalation segment is taken as the inhalation interval of the next short-range inhalation segment. Write the inhalation start point, inhalation end point, and inhalation interval corresponding to the short-range inhalation segment into the same inhalation segment record; According to the acquisition time sequence, all inhalation segment records are arranged to obtain the user's short-range inhalation sequence.
[0009] Preferably, the gear intake unfolding page includes: Select the oxygen product tiers from the oxygen product tier list that use pulse oxygen supply mode to obtain pulse oxygen supply tier records; Based on the gear number in the pulse oxygen supply gear record, create a gear expansion page and write the gear release instructions into the corresponding gear expansion page; According to the arrangement order of short-range inhalation segments in the user's short-range inhalation sequence, multiple short-range inhalation segments are written into the gear position expansion page to obtain the gear position inhalation expansion page.
[0010] Preferably, the obtained rapid panting swallowing fragment sequence includes: Obtain the arrangement of short-range inhalation segments in the gear inhalation display page; Based on the arrangement of short-range inhalation segments in the gear inhalation expansion page, multiple short-range inhalation segments that follow the same gear release instructions are combined into a gear swallowing segment. Based on the pulse oxygen supply level records, multiple swallowing segments were arranged to obtain a rapid breathing swallowing segment sequence.
[0011] Preferably, obtaining the adjacent correspondence includes: Based on the product number, the rapid panting swallowing fragment sequence is classified to obtain a swallowing fragment set; Sort the set of swallowed segments according to the gear number to obtain the swallowed segment arrangement; The swallowed segments are arranged in a staggered manner to obtain the adjacent correspondence relationship.
[0012] Preferably, the list of file write-back locations is obtained, including: Distinguish between two gears in the adjacent position correspondence to obtain the high gear and the low gear; Determine the target position of the high-gear swallowing segment within the low-gear swallowing segment; By using reinforcement learning, the corresponding position of the target is iteratively updated to obtain the gear shift position corresponding to the lower gear. Write the high-level bit swallowing segment to the low-level bit receiving position to obtain the bit swallowing write-back page. The product number, slot number, swallowed segment, slot receiving position, and write-back release content in the swallowed slot write-back page are summarized to obtain a swallowed slot write-back slot list.
[0013] Preferably, recommendations are made for oxygen products for sale, including: Based on the gear position, extract the corresponding gear number from the gear position list to obtain the recommended gear position; Extract the product number, product type, oxygen supply method, and write-back release content corresponding to the recommended receiving position from the swallowing and writing position list to obtain the recommended product record; Arrange multiple recommended product records to obtain a sequence of recommended product records; Write the product number, product type, oxygen supply method, gear number, and write-back release content from the recommended product record sequence into the recommended list to obtain the oxygen sales product recommendation list; Based on the order of the oxygen-selling product recommendation list, oxygen products are recommended.
[0014] To address the above problems, the present invention also provides a recommendation system for selling oxygen products, the system comprising: The tier list module obtains the tier number sequence corresponding to the product number based on the oxygen product information on the oxygen sales platform; it then creates tier fields based on the tier number sequence and summarizes the tier records to obtain an oxygen product tier list. The inhalation sequence module determines the inhalation start and end points of short-range inhalation segments based on the user's pre-sale inhalation records; determines the inhalation interval based on two adjacent short-range inhalation segments; and arranges the inhalation segment records corresponding to the inhalation start, inhalation end, and inhalation interval to obtain the user's short-range inhalation sequence. The swallowing interval analysis module, based on the oxygen product interval list and the user's short-range inhalation sequence, obtains an interval inhalation unfolding page; and arranges the swallowing interval segments corresponding to the interval inhalation unfolding page to obtain a rapid panting swallowing interval segment sequence; The swallowing file write-back module categorizes the rapid panting swallowing file segment sequences to obtain adjacent correspondences; based on the adjacent correspondences, it obtains the swallowing file write-back pages and summarizes the swallowing file write-back pages to obtain a swallowing file write-back file list; The product recommendation module obtains recommended product records based on the swallowed file write-back file list; and recommends oxygen products based on the recommended product records.
[0015] Compared with the prior art, the beneficial effects of the present invention are: 1. Collect information on oxygen products for sale according to product number and arrange them according to grade number to form an oxygen product grade list. Establish a short-range inhalation sequence for users based on the inhalation start point, inhalation end point and inhalation interval, so that each pulse oxygen supply grade has a consistent product source and inhalation timing basis, reducing the matching deviation caused by selecting products based solely on general grade descriptions.
[0016] 2. Write the user's short-range inhalation sequence into each pulse oxygen supply level, and combine short-range inhalation segments that continuously receive the release instructions of the same level into swallowing segments. Then, establish the correspondence between adjacent levels according to the product number and level number, so that the differences in the reception of the same user's rapid breathing process by different levels can be compared item by item, avoiding the disconnect between level selection and continuous short-range inhalation rhythm.
[0017] 3. Compare the number of pairs of swallowing segments corresponding to the higher level and the difference in inhalation intervals between swallowing segments corresponding to the lower level, iteratively determine the position of the lower level, write back the swallowing segments corresponding to the higher level and form a list of oxygen products for sale, so that the terminal recommends products for sale in sequence, thereby improving the problem of inconsistency between the recommendation results and the user's inhalation process. Attached Figure Description
[0018] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings: Figure 1 This is a flowchart illustrating a method for recommending oxygen as a product according to an embodiment of the present invention. Detailed Implementation
[0019] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0020] This embodiment provides a recommended method for selling oxygen as a product; see [link to relevant documentation]. Figure 1 ,include: S1. Based on the oxygen product information available on the oxygen sales platform, obtain the grade number sequence corresponding to the product number; establish grade fields according to the grade number sequence, and summarize the grade records to obtain an oxygen product grade list. In an embodiment of the present invention, an oxygen product tier list is obtained, including: The oxygen product tier list is a structured list of oxygen products sold on the oxygen sales platform, organized according to product number and tier number. Each record in the list corresponds to a tier number under a product number and includes product type, oxygen supply method, tier release instructions, and tier application instructions, which are used to form the source for screening pulse oxygen supply product tiers.
[0021] Obtain information on oxygen products available for sale on oxygen sales platforms; this information includes product number, product type, oxygen supply method, level number, level release instructions, and level application instructions. An oxygen sales platform is an information processing platform that registers and provides information on the sale of oxygen products. It maintains product data when a product is available for sale. The information on oxygen products available for sale is a data set obtained from oxygen product entries that are currently available on the platform. The product number is an identification code assigned to each oxygen product by the platform, used to group different price levels belonging to the same product. The product type is a category field registered on the platform, used to distinguish different product forms or uses. The oxygen supply method is the supply method used when releasing oxygen, used to filter product price levels that use pulsed oxygen supply. The price level number is a code used to distinguish different oxygen release levels under the same product number. The price level release description is text describing the oxygen release method and status of the corresponding price level. The price level application description is text describing the applicable objects or situations for the corresponding price level.
[0022] The oxygen sales platform checks each oxygen product item listed as "on sale" on the platform. From each oxygen product item, it retrieves the product number, product type, oxygen supply method, tier number, tier release instructions, and tier application instructions registered by the platform. This ensures that all fields within the same oxygen product item remain linked. If a field is missing, the missing field and its corresponding product number are retained. The above fields of each oxygen product item are then combined according to the product number to obtain the information on oxygen products currently on sale.
[0023] Based on the product number, information on oxygen products for sale is collected to obtain product tier information; Product grade information is a set of grade data formed by using product number as the collection basis. Each set retains the grade number under the same product number and its corresponding product type, oxygen supply method, grade release instructions and grade application instructions, which are used to arrange grade numbers within the same product range.
[0024] According to the information on oxygen products for sale, check the product number of each oxygen product item one by one. Group oxygen product items with the same product number into the same group and separate oxygen product items with different product numbers into different groups. Oxygen product items with empty product numbers are formed into a separate product number vacancy group. In each group, retain the original product number, product type, oxygen supply method, level number, level release instructions and level application instructions of each oxygen product item. Combine the correspondence between each group and the fields within the group to form the product level information.
[0025] In the product tier information, the tier numbers are arranged to obtain the tier number sequence corresponding to the product number; The sequence of gear numbers corresponding to the product number is ordered data formed by arranging the gear numbers under the same product number according to the order of the gears they represent. Each gear number in the sequence maintains a correspondence with the original product type, oxygen supply method, gear release instructions, and gear application instructions, and is used to establish gear fields item by item.
[0026] For all tier numbers belonging to the same product number in the product tier information, identify the tier order represented by each tier number. For tier numbers in numerical form, arrange them in ascending order of value. For tier numbers in non-numerical form, arrange them in the tier order registered on the oxygen sales platform. If tier numbers are the same, retain one tier number and continue to associate it with the original product type, oxygen supply method, tier release instructions, and tier application instructions. If the tier number is empty, do not write it into the arrangement result. Bind the arranged tier numbers to the corresponding product number to obtain the tier number sequence corresponding to the product number.
[0027] The tier numbers under the same product number represent the different tiers of the oxygen product. The tier numbers are compared and arranged according to the unified tier order registered on the oxygen sales platform. This can form a sequence of tier numbers corresponding to product numbers with a definite order while preserving the correspondence between each tier number and the product field.
[0028] Create a gear position field for each gear position number based on the gear position number sequence; The gear position field is a data storage location established with a gear position number under a product number as an index. It is bound to the product number and the gear position number and is used to write the corresponding product type, oxygen supply method, gear release instructions and gear application instructions.
[0029] Each gear number is obtained sequentially along the gear number sequence corresponding to the product number. Under each gear number, a data position is set to accommodate the product type, oxygen supply method, gear release instructions, and gear application instructions. The data position is bound to the current product number and gear number. No data position is set when the gear number sequence corresponding to the product number is empty. Through the binding relationship between all product numbers, gear numbers, and data positions, a gear field is established for each gear number.
[0030] Write the product type, oxygen supply method, release instructions, and applicable instructions for each gear number into the corresponding gear field to obtain the gear record for each product number. Each product number corresponds to a grade number, which is a separate data record formed according to the product number. Each data record corresponds to a grade number and includes the product type, oxygen supply method, grade release instructions, and grade application instructions, which are used to compile an oxygen product grade list.
[0031] Based on the product number and gear number bound to each gear number field, locate the product type, oxygen supply method, gear release instructions, and gear application instructions associated with that gear number from the product gear information. Write the located product type, oxygen supply method, gear release instructions, and gear application instructions into the corresponding gear number fields. If any field is empty, keep that field empty in the corresponding gear number field while retaining its correspondence with the product number and gear number. Combine the gear number fields with completed field writing according to their respective product numbers to obtain the gear number records corresponding to each product number.
[0032] The records of each product number corresponding to the grade are summarized to obtain a list of oxygen product grades.
[0033] Collect the tier records corresponding to each product number, distinguish the tier records of different product numbers according to the registration relationship of the product number in the oxygen sales platform, and arrange the tier records under each product number according to the tier number sequence corresponding to the product number. Make sure that the product number, product type, oxygen supply method, tier number, tier release instructions and tier application instructions in each tier record are consistent. The tier records in the product number vacancy group retain the product number vacancy status and are arranged separately from the tier records with product numbers. Compile all the arranged tier records to form an oxygen product tier list.
[0034] S2. Based on the user's pre-sale inhalation record, determine the inhalation start and end points of the short-range inhalation segment; determine the inhalation interval based on two adjacent short-range inhalation segments; arrange the inhalation segment records corresponding to the inhalation start, inhalation end, and inhalation interval to obtain the user's short-range inhalation sequence. In embodiments of the present invention, determining the inspiratory start point and inspiratory end point of a short-range inspiratory segment includes: A short-range inhalation segment is a single continuous inhalation data segment divided according to the collection time sequence from the airflow entry section recorded before the user's purchase. The inhalation start point is the position where the airflow entry state begins in the short-range inhalation segment during the collection time sequence, used to determine the starting boundary of the short-range inhalation segment. The inhalation end point is the position where the airflow entry state ends in the short-range inhalation segment during the collection time sequence, used to determine the ending boundary of the short-range inhalation segment.
[0035] Obtain the user's pre-sale inhalation records collected by the inhalation collection component in the oxygen vending terminal; wherein, the user's pre-sale inhalation records include the collection time sequence; An oxygen vending terminal is a device that allows users to select oxygen products and perform the vending operation. The terminal communicates with the oxygen vending platform and is equipped with an inhalation collection component. The inhalation collection component is a component installed on the oxygen vending terminal to collect the user's inhalation process and the time and location of the collection. The user's pre-vending inhalation record is the user's inhalation data collected by the inhalation collection component before the oxygen product vending operation is completed and organized according to the time and location. The collection sequence is the chronological relationship of the various inhalation data in the user's pre-vending inhalation record according to the time of collection, used to determine the airflow entry segment and the order between each short-range inhalation segment.
[0036] When a user enters the oxygen product selection stage but the sales operation is not yet completed, the oxygen vending terminal activates the inhalation collection component. The inhalation collection component collects the airflow data formed by the user's inhalation according to its own continuous collection rhythm, and writes the time position of each airflow data point. The airflow data points are arranged from front to back according to their time positions to form the collection sequence. When no airflow is detected, the corresponding time position and the "not entered" state are retained. The airflow data, the "not entered" state, and the collection sequence are combined according to the same time position to obtain the user's inhalation record before the sale.
[0037] Determine the airflow entry segment from the user's pre-sale inhalation record; The airflow entry segment is the collection location and time range detected by the airflow acquisition component in the inhalation record before the user's sale, where the airflow is directed towards the inhalation acquisition component. The segment boundary is defined by the start and end positions of the airflow entry state in the collection time sequence, and is used to divide multiple short-range inhalation segments.
[0038] The airflow state recorded when the inhalation acquisition component did not detect the user's inhalation was selected from the user's pre-sale inhalation records and determined as the control state. The airflow direction at each time position was compared with the control state according to the collection time sequence. The time position where the airflow direction was from the user towards the inhalation acquisition component and was different from the control state was marked as the airflow entry position. The other time positions were marked as the airflow non-entry position. The time positions with missing airflow direction were treated as the airflow non-entry position. The first airflow entry position and the last airflow entry position were used to limit the range and the entry marks of each time position within the range were retained to determine the airflow entry segment in the user's pre-sale inhalation records.
[0039] Based on the collection sequence, the airflow entry section is segmented to obtain multiple short-range inhalation segments; Starting from the beginning of the airflow entry segment, the entry markers of adjacent time positions are checked sequentially along the acquisition time sequence. The current segment ends when the entry marker changes from the airflow entry position to the airflow non-entry position, and the next segment begins when the entry marker changes from the airflow non-entry position to the airflow entry position. The airflow data continuously marked as airflow entry positions from the beginning to the end of each segment are retained in the same segment. No segment is formed when there is no airflow entry position in the airflow entry segment. The sequential relationship between each segment is maintained according to the acquisition time sequence to obtain multiple short-range inhalation segments.
[0040] Extract the segment start position from the short-range inspiratory segment and use it as the inspiratory start point of the short-range inspiratory segment; The segment start position is the first airflow to enter the sampling position in the short-range inspiratory segment according to the sampling sequence. This position corresponds to the short-range inspiratory segment to which it belongs and is used to determine the inspiratory start point of the short-range inspiratory segment.
[0041] For each short-range inhalation segment, the time positions within it are checked from front to back along the acquisition time sequence. The first time position that is in the airflow entry state and belongs to the short-range inhalation segment is determined as the segment start position. If the short-range inhalation segment is empty, the position is not extracted. The segment start position is bound to the short-range inhalation segment to which it belongs and is used to define the start boundary of the short-range inhalation segment in the acquisition time sequence, as the inhalation start point of the short-range inhalation segment.
[0042] Extract the end position of the short-range inspiratory segment and use it as the inspiratory endpoint of the short-range inspiratory segment.
[0043] The segment end position is the location where the final airflow in the short-range inhalation segment enters the sampling position according to the sampling sequence. This position corresponds to the short-range inhalation segment it belongs to and is used to determine the inhalation end point of the short-range inhalation segment.
[0044] For each short-range inhalation segment, the time positions within it are checked from front to back along the acquisition time sequence. The time position where the airflow enters and there is no subsequent airflow entry position within the short-range inhalation segment is determined as the segment end position. If the short-range inhalation segment is empty, the position is not extracted. The segment end position is bound to the short-range inhalation segment to which it belongs and is used to define the end boundary of the short-range inhalation segment in the acquisition time sequence, as the inhalation end point of the short-range inhalation segment.
[0045] In an embodiment of the present invention, a short-range inhalation sequence for the user is obtained, including: The user short-range inhalation sequence is an ordered set of records formed by arranging the inhalation segments in the user's pre-sale inhalation record according to the collection time sequence. Each inhalation segment record contains the inhalation start point, inhalation end point and inhalation interval of the corresponding short-range inhalation segment, which is used to provide the gear selection page with short-range inhalation segments arranged in the order of inhalation.
[0046] Identify two adjacent short-range inspiratory segments from a plurality of short-range inspiratory segments; Two adjacent short-range inspiratory segments are a pair of short-range inspiratory segments that are consecutive in the acquisition sequence and have no other short-range inspiratory segments between them. They are used to identify the preceding short-range inspiratory segment and the following short-range inspiratory segment, respectively.
[0047] The inhalation start and end points of each of the multiple short-range inhalation segments are checked sequentially in the time sequence of the acquisition. When the inhalation end point of one short-range inhalation segment is before the inhalation start point of another short-range inhalation segment and there is no third short-range inhalation segment between them, the two short-range inhalation segments are retained. When there is a third short-range inhalation segment between them, the combination is not retained. If there are fewer than two short-range inhalation segments, no combination is formed. Each pair of two short-range inhalation segments that satisfy the sequential relationship is determined as two adjacent short-range inhalation segments.
[0048] The preceding short-range inspiratory segment in two adjacent short-range inspiratory segments is taken as the previous short-range inspiratory segment. The preceding short-range inhalation segment is the short-range inhalation segment whose inhalation start and end points are located before the acquisition time sequence among two adjacent short-range inhalation segments. Its inhalation end point is used to determine the inhalation interval of the following short-range inhalation segment.
[0049] The inhalation start and end points of each of two adjacent short-range inhalation segments are obtained. The time positions of the two inhalation start points are compared according to the acquisition time sequence. The short-range inhalation segment whose inhalation start point is earlier in the acquisition time sequence is selected. If the two inhalation start points are at the same time position, the two inhalation end points are compared and the short-range inhalation segment whose inhalation end point is earlier in the acquisition time sequence is selected. If both the two inhalation start points and the two inhalation end points are at the same time position, the original record sequence in the inhalation acquisition component is used, and the selected short-range inhalation segment is taken as the previous short-range inhalation segment.
[0050] The short inspiratory segment that occurs later in two adjacent short inspiratory segments is taken as the next short inspiratory segment. The next short-range inhalation segment is a short-range inhalation segment whose inhalation start and end points are located after the acquisition time sequence between two adjacent short-range inhalation segments. Its inhalation start point and the inhalation end point of the previous short-range inhalation segment together define the inhalation interval.
[0051] The determined preceding short-range inhalation segment is matched with each of the two adjacent short-range inhalation segments. The short-range inhalation segments that do not correspond to the preceding short-range inhalation segment are retained. When the preceding short-range inhalation segment cannot correspond to either of the two adjacent short-range inhalation segments, the processing of this group is stopped, and the retained short-range inhalation segment is used as the next short-range inhalation segment.
[0052] The interval between the end of the inhalation of the previous short-range inhalation segment and the beginning of the inhalation of the next short-range inhalation segment is taken as the inhalation interval of the next short-range inhalation segment. The inspiratory interval of the next short inspiratory segment is the time interval between the end of the inspiratory phase of the previous short inspiratory segment and the beginning of the inspiratory phase of the next short inspiratory segment. This time interval corresponds to the next short inspiratory segment and is used to form the inspiratory segment record.
[0053] The endpoint time value corresponding to the inhalation endpoint of the preceding short-range inhalation segment and the start time value corresponding to the inhalation start point of the following short-range inhalation segment are obtained from the acquisition time sequence. The start time value and the endpoint time value are unified to the time unit used in the acquisition time sequence. The interval time difference is obtained by subtracting the endpoint time value from the start time value. When the start time value equals the endpoint time value, the interval time difference is recorded as 0. When any time value is missing, the interval processing of the two adjacent short-range inhalation segments in that group is stopped. The time range jointly defined by the interval time difference and the inhalation endpoint of the preceding short-range inhalation segment and the inhalation start point of the following short-range inhalation segment is used as the inhalation interval of the following short-range inhalation segment.
[0054] The inhalation end point of the preceding short-range inhalation segment and the inhalation start point of the following short-range inhalation segment define the start and end boundaries between two adjacent inhalations, respectively. By subtracting the end point time value from the start time value using a uniform time unit, the resulting time difference directly represents the duration between these two boundaries, thus forming the inhalation interval of the following short-range inhalation segment.
[0055] Write the inhalation start point, inhalation end point, and inhalation interval corresponding to the short-range inhalation segment into the same inhalation segment record; An inhalation segment record is a record formed by taking a short inhalation segment as the recording object and writing the inhalation start point, inhalation end point and inhalation interval of the short inhalation segment into the same data structure. It is used to form a user short inhalation sequence according to the acquisition time sequence.
[0056] Establish a record position according to the relationship of each short-range inhalation segment in the inhalation record before the user's sale. Write the inhalation start point, inhalation end point and inhalation interval corresponding to the same short-range inhalation segment into the record position in sequence. If the inhalation interval does not exist, retain the empty state of the inhalation interval field and maintain the correspondence between the inhalation start point and inhalation end point and the short-range inhalation segment. Write the record position and the short-range inhalation segment, inhalation start point, inhalation end point and inhalation interval in it into the same inhalation segment record.
[0057] According to the acquisition time sequence, all inhalation segment records are arranged to obtain the user's short-range inhalation sequence.
[0058] The inhalation start point is obtained from each inhalation segment record. The inhalation segment records are arranged from front to back according to the relationship of the inhalation start point in the acquisition time sequence. When the inhalation start points are at the same time position, they are arranged from front to back according to the relationship of the inhalation end point in the acquisition time sequence. When the inhalation start point and the inhalation end point are at the same time position, the original record sequence relationship in the inhalation acquisition component is used. This ensures that each inhalation segment record after arrangement continues to maintain the correspondence between short-range inhalation segment, inhalation start point, inhalation end point and inhalation interval. All the arranged inhalation segment records are continuously arranged to obtain the user's short-range inhalation sequence.
[0059] The inhalation start point indicates the starting position of each short-range inhalation segment in the acquisition time sequence. Using the inhalation start point as the main comparison data and handling the case where the time position is the same with the inhalation end point and the original record sequence, it can keep the recording of each inhalation segment consistent with the actual inhalation sequence. Therefore, the arrangement result constitutes the user's short-range inhalation sequence.
[0060] By determining the inhalation start and end points of each short-range inhalation segment from the user's inhalation records before purchase, calculating the inhalation interval between adjacent short-range inhalation segments, and forming the user's short-range inhalation sequence according to the actual occurrence order, the system can completely preserve the time boundaries, interval changes, and sequential relationships during the user's continuous inhalation process before purchase. This provides a continuously verifiable temporal basis for subsequent comparisons of how each pulse oxygen supply level supports the user's inhalation rhythm, improving upon the problem in existing technologies where product selection based solely on the level's applicable instructions fails to reflect the user's actual inhalation process.
[0061] S3. Based on the oxygen product range list and the user's short-range inhalation sequence, obtain the range inhalation unfolding page; arrange the swallowing segments corresponding to the range inhalation unfolding page to obtain the rapid panting swallowing segment sequence; In an embodiment of the present invention, a gear-positioned intake unfolding page is obtained, comprising: The pulse oxygen supply level expansion page is a data page formed by associating the level number and level release instructions in the pulse oxygen supply level record with multiple short-range inhalation segments in the user's short-range inhalation sequence. Each data page corresponds to a pulse oxygen supply level and retains the arrangement order of the short-range inhalation segments, which is used to determine the situation of the short-range inhalation segment following the level release instructions.
[0062] Select the oxygen product tiers from the oxygen product tier list that use pulse oxygen supply mode to obtain pulse oxygen supply tier records; Pulse oxygen supply is an oxygen supply method in which oxygen products release oxygen intermittently during the user's inhalation process. The oxygen supply method field in the oxygen product tier list is used to indicate whether the product tier uses this oxygen supply method. The pulse oxygen supply tier record is a record formed by retaining the product tiers with pulse oxygen supply method from the oxygen product tier list. The record includes the corresponding product number, product type, oxygen supply method, tier number, tier release description, and tier application description, and is used to create a tier expansion page.
[0063] Verify the oxygen supply method for each item in the oxygen product tier list. Retain product tiers with the oxygen supply method field set to pulse oxygen supply method, exclude product tiers with other oxygen supply methods, and exclude product tiers with an empty oxygen supply method field. Ensure that the retained product number, product type, oxygen supply method, tier number, tier release instructions, and tier application instructions maintain their original correspondence. Combine the retained product tiers and their fields to form a pulse oxygen supply tier record.
[0064] Based on the gear number in the pulse oxygen supply gear record, create a gear expansion page and write the gear release instructions into the corresponding gear expansion page; The gear expansion page is a data page created according to the gear number in the pulse oxygen supply gear record. The data page corresponds to the product number and gear number and contains the corresponding gear release instructions. It is used to carry multiple short-range inhalation segments arranged according to the user's short-range inhalation sequence.
[0065] Retrieve the gear number from each pulse oxygen supply gear record, create a data page for each gear number, set a gear release area bound to the gear number in the data page, locate the gear release description from the same pulse oxygen supply gear record based on the current gear number, write the located gear release description into the gear release area, retain the empty state of the gear release area when the gear release description is empty and maintain the binding relationship between the gear number and the gear release area, arrange the gear number and gear release area together to form the corresponding gear expansion page.
[0066] According to the arrangement order of short-range inhalation segments in the user's short-range inhalation sequence, multiple short-range inhalation segments are written into the gear position expansion page to obtain the gear position inhalation expansion page.
[0067] For each gear position expansion page, obtain the short-range inhalation segments in the user's short-range inhalation sequence, along with their inhalation start point, inhalation end point, and inhalation interval. Set the writing positions sequentially in the gear position expansion page according to the existing arrangement of the user's short-range inhalation sequence, ensuring that the writing position corresponding to the earlier short-range inhalation segment is before the writing position corresponding to the later short-range inhalation segment. Write each short-range inhalation segment, its inhalation start point, inhalation end point, and inhalation interval to the corresponding writing position and associate it with the gear position number and gear release instructions. When the user's short-range inhalation sequence is empty, retain the gear position number and gear release instructions, but do not set the writing positions for the short-range inhalation segments. The gear position expansion page that completes the writing of the short-range inhalation segments is determined as the gear position inhalation expansion page.
[0068] In an embodiment of the present invention, a rapid breathing and swallowing segment sequence is obtained, including: Rapid breathing refers to the continuous inhalation state of multiple short-range inhalation segments in the user's pre-sale inhalation record, arranged in the order of collection time. The rapid breathing swallowing segment sequence is an ordered data formed by organizing multiple swallowing segments according to the pulse oxygen supply level record. The sequence retains the product number, level number, level release description and arrangement position of the swallowing segment, and is used to classify according to the product number and sort according to the level number.
[0069] Obtain the arrangement of short-range inhalation segments in the gear inhalation display page; The arrangement of short-stroke inhalation segments in the gear inhalation expansion page is the sequential positional relationship formed after each short-stroke inhalation segment is written into the gear inhalation expansion page according to the user's short-stroke inhalation sequence. This relationship records the adjacent short-stroke inhalation segments, the gear number to which each short-stroke inhalation segment belongs, and the gear release instructions that it follows, which are used to combine gear swallowing segments.
[0070] The short-range suction segments are checked sequentially according to their writing positions on the gear suction display page. The short-range suction segments directly adjacent to each other before and after each short-range suction segment are recorded. Each short-range suction segment is associated with its product number, gear number, and gear release instructions. When there are no short-range suction segments on the gear suction display page, the empty arrangement is retained. When there is only one short-range suction segment, it is recorded as having no adjacent short-range suction segments. The front and back positions of each short-range suction segment, adjacent short-range suction segments, and gear information together form the arrangement relationship of the short-range suction segments on the gear suction display page.
[0071] Based on the arrangement of short-range inhalation segments in the gear inhalation expansion page, multiple short-range inhalation segments that follow the same gear release instructions are combined into a gear swallowing segment. "Following the same gear release instructions" means that multiple short-range inhalation segments correspond to the gear release instructions under the same gear number on the same gear inhalation unfolding page. "Gear swallowing segments" are data segments formed by combining multiple short-range inhalation segments that are arranged consecutively and follow the same gear release instructions according to their arrangement relationship. The "gear swallowing segments" retain the product number, gear number, gear release instructions, and the arrangement order of each short-range inhalation segment, and are used to form a rapid panting "gear swallowing segment" sequence.
[0072] According to the arrangement of short-range intake segments in the gear intake expansion page, continuously check the gear number and gear release description of each short-range intake segment. Short-range intake segments with the same gear number and gear release description and located in the continuous writing position are grouped into the same group. When the gear number changes, the gear release description changes, or the continuous writing position is interrupted, the current group ends and a new group begins. When a single short-range intake segment does not have an adjacent and identical gear release description, it forms a separate group. Connect the short-range intake segments in each group according to the original arrangement and retain the product number, gear number, and gear release description to form a swallowed segment.
[0073] Based on the pulse oxygen supply level records, multiple swallowing segments were arranged to obtain a rapid breathing swallowing segment sequence.
[0074] The "Quick Breath Swallowing" mode is used when a user creates multiple short-range inhalation segments in a short period of time. Some of these short-range inhalation segments cannot be continuously received by the current pulse oxygen supply level. This indicates that the short-range inhalation segments that are not received by the current level need to be combined according to the original inhalation sequence and then transferred to the receiving position of the adjacent level. This mode is used to determine the swallowing segment write-back relationship between adjacent levels and the recommended receiving level that matches the user's actual inhalation rhythm.
[0075] Retrieve each pulse oxygen supply level record, along with its product number, level number, and record order. Locate the swallowing segment with the same product number and level number as the current pulse oxygen supply level record from multiple swallowing segments. Arrange the swallowing segments corresponding to different product levels according to the record order of the pulse oxygen supply level records. When the same pulse oxygen supply level record corresponds to multiple swallowing segments, arrange them from front to back according to the position of the first short-range inhalation segment in each swallowing segment on the level inhalation expansion page. Pulse oxygen supply level records without corresponding swallowing segments are not written into the arrangement results. This ensures that each swallowing segment continues to be associated with its original product number, level number, and level release instructions. Continuously arrange all the swallowing segments that have been arranged to obtain the rapid breathing swallowing segment sequence.
[0076] The product number and level number in the pulse oxygen supply level record define the product level to which the swallowing segment belongs. The order of recording defines the arrangement position between different product levels. The writing position in the level inhalation expansion page defines the sequential relationship between swallowing segments under the same product level. By comparing these data in sequence, a rapid breathing swallowing segment sequence can be formed while maintaining the level attribution of swallowing segments.
[0077] S4. Classify the rapid breathing swallowing segment sequence to obtain the adjacent position correspondence; based on the adjacent position correspondence, obtain the swallowing write-back pages, and summarize the swallowing write-back pages to obtain the swallowing write-back position list. In embodiments of the present invention, obtaining the adjacent correspondence relationship includes: The adjacent correspondence relationship is the correspondence between two adjacent product tiers arranged according to the tier number under the same product number. Each relationship retains the tier number, swallowed segment, and tier release description of each product tier, which is used to distinguish between high and low tiers and determine the write-back direction of swallowed segments.
[0078] Based on the product number, the rapid panting swallowing fragment sequence is classified to obtain a swallowing fragment set; The swallowing segment set is a data set formed by classifying the swallowing segments in the rapid panting swallowing segment sequence into their corresponding product ranges according to the product number. Each set contains the swallowing segments corresponding to each position number under the same product number, position release instructions, and arrangement positions, and is used to sort them according to position number within the same product range.
[0079] Obtain the product number associated with each swallowing segment in the rapid breathing swallowing segment sequence one by one. Swallowing segments with the same product number are grouped into the same group, while swallowing segments with different product numbers are placed into different groups. Swallowing segments with empty product numbers are placed into the product number empty group. Within each group, retain the original position number, position release instructions, short-range inhalation segment and its arrangement position of the swallowing segment, so that each field continues to correspond with its respective swallowing segment. Combine the group corresponding to each product number and its swallowing segments to form a swallowing segment set.
[0080] Sort the set of swallowed segments according to the gear number to obtain the swallowed segment arrangement; The swallowed segment arrangement is an ordered data formed by arranging swallowed segments in the same swallowed segment set according to the order of the slot number. Each swallowed segment in the arrangement continues to maintain the correspondence with the product number, slot number and slot release instructions, which is used to establish the correspondence between adjacent slots through position offset.
[0081] Each swallowing segment in each swallowing segment set is checked for its associated slot number. For numerical slot numbers, the slot order is determined by ascending numerical values. For non-numerical slot numbers, the slot order is determined by the slot order registered on the oxygen sales platform. The corresponding swallowing segments are arranged along the determined slot order. When slot numbers are the same, the original arrangement position in the rapid breathing swallowing segment sequence is used. Swallowing segments with empty slot numbers are arranged after swallowing segments with slot numbers according to the original arrangement position in the rapid breathing swallowing segment sequence. This allows the arranged swallowing segments to continue to be associated with the product number, slot number, and slot release instructions, resulting in the swallowing segment arrangement.
[0082] The product number specifies the oxygen product to which the swallowed segment belongs, and the segment number indicates the segment order within the same oxygen product. The segment number is compared uniformly using numerical order or the segment order registered on the oxygen sales platform, which can maintain the product affiliation of the swallowed segment and form a swallowed segment arrangement for adjacent segments.
[0083] The swallowed segments are arranged in a staggered manner to obtain the adjacent correspondence relationship.
[0084] Misaligned correspondence involves pairing the swallowed gear segments with the swallowed gear segments that have been shifted one position along the gear order, so that the swallowed gear segments in the original position correspond to the swallowed gear segments in their adjacent positions, thus forming a neighboring correspondence that does not cross intermediate gear positions.
[0085] Copy the swallowed segment arrangement corresponding to the same product number, shift the copied swallowed segment arrangement one position backward along the position order, align the first unshifted position with the second shifted position, and continue position by position along the arrangement direction. Form a correspondence between the two swallowed segments in each aligned position and their respective product number, position number, and position release description. Arrangement positions located at the arrangement boundary and without adjacent swallowed segments do not form a correspondence. When there are less than two swallowed segments in the swallowed segment arrangement, an empty correspondence result is formed. All correspondence groups formed by adjacent arrangement positions are combined to form an adjacent correspondence relationship.
[0086] After shifting the same batch of product segments by one position and pairing them up bit by bit, only two consecutive batch segments in the original arrangement will be connected. They will not cross product segments located between them. Therefore, all pairing results constitute adjacent correspondence.
[0087] In an embodiment of the present invention, a list of file write-back positions is obtained, including: The swallowed file write-back slot list is a structured list formed by summarizing swallowed file write-back pages. Each slot record contains at least the product number, slot number, swallowed file segment, slot receiving position, and write-back release content. It also retains the source of the association between product type and oxygen supply method, which is used to determine the recommended receiving slot and form the recommended product record.
[0088] Distinguish between two gears in the adjacent position correspondence to obtain the high gear and the low gear; The higher-end position is the product position that is later in the position sequence in the adjacent position correspondence relationship. The swallowing segment corresponding to the higher-end position is used to write back to the adjacent product position. The lower-end position is the product position that is earlier in the position sequence in the adjacent position correspondence relationship. The swallowing segment corresponding to the lower-end position is used to provide the target corresponding position and the position receiving position.
[0089] Check the order of the two gear numbers in the gear segment arrangement in the adjacent correspondence for each group. Determine the gear number and its gear segment that are later in the gear order as the high gear, and the gear number and its gear segment that are earlier in the gear order as the low gear. When the two gear numbers are in numerical form, check the values at the same time. Determine the gear with the value greater than the other gear number as the high gear and the gear with the value less than the other gear number as the low gear. If the gear numbers are the same or either gear number is empty, do not include the adjacent correspondence in the write-back. Maintain the correspondence between each high and low gear and the original product number and gear segment to obtain the high and low gears.
[0090] The gear segments are arranged in a unified direction according to the gear number. In this unified direction, the gear located at the back corresponds to the gear sequence that is further back, and the gear located at the front corresponds to the gear sequence that is further forward. Based on this, the high gear and the low gear can be determined by comparing the two gears in the adjacent correspondence relationship.
[0091] Determine the target position of the high-gear swallowing segment within the low-gear swallowing segment; The target corresponding position is the initial position selected from the writable positions of the swallowing segment corresponding to the low gear, based on the difference in the number of short-range inhalation segments and the inhalation interval between the swallowing segments corresponding to the high gear and the swallowing segments corresponding to the low gear. This initial position is used as the starting position for reinforcement learning iteration.
[0092] The short-range inhalation segments corresponding to the high-end and low-end positions are obtained separately, recorded according to their original arrangement. Each short-range inhalation segment in the low-end position is recorded as a candidate position. Starting from each candidate position, the short-range inhalation segments corresponding to the low-end and high-end positions are paired one by one along the arrangement direction. The number of short-range inhalation segments that can be continuously paired at each candidate position is recorded, and the candidate position with the maximum number of pairs is retained. For each retained candidate position, the inhalation interval of the two short-range inhalation segments is obtained and standardized to the time unit used in the inhalation record before the user's sale. The low-end inhalation interval is subtracted from the high-end inhalation interval in each pair of inhalation intervals, and the absolute value is taken to obtain the pair interval difference. The total interval difference is obtained by summing all pairs of interval differences at the same candidate position. If any pair of inhalation intervals is missing, the pair of data is not included in the total interval difference. If all pairs of inhalation intervals are missing, the total interval difference is recorded as empty. The candidate position with the minimum total interval difference is retained from the candidate positions with non-empty total interval difference. If there are multiple minimum values, the candidate position at the front of the arrangement is retained. If all total interval difference is empty, the candidate position with the maximum number of pairs and at the front of the arrangement is retained. If there is no short-range inhalation segment in the swallowing segment corresponding to the low gear, the starting write position of the gear expansion page corresponding to the low gear is registered as a candidate position. The retained candidate position is determined as the target corresponding position of the swallowing segment corresponding to the high gear in the swallowing segment corresponding to the low gear.
[0093] The number of consecutive pairs indicates the number of high-level short-range inhalation segments that can be received starting from the candidate position. The total interval difference indicates the difference in inhalation rhythm of the short-range inhalation segments that have completed the pairing. First, the candidate position with the maximum number of consecutive pairs is retained, and then the candidate position with the minimum total interval difference is retained. This allows us to determine the target corresponding position of the high-level swallowing segment from the swallowing segments corresponding to the low-level position.
[0094] By using reinforcement learning, the corresponding position of the target is iteratively updated to obtain the gear shift position corresponding to the lower gear. Reinforcement learning starts from the target position and performs forward, backward, or hold actions among a limited number of candidate positions for the low-gear swallowing segment. It generates feedback based on the changes in the number of short-range inhalation segments matched and the difference in inhalation intervals after the actions are completed, and then uses the feedback to update the position selection results in an iterative process. Iterative update is to repeatedly execute candidate position selection, action execution, feedback generation, and position selection result correction until all candidate positions have been evaluated. The gear receiving position is the writing position determined from the low-gear swallowing segment after the reinforcement learning completes the iteration, which is used to receive the high-gear swallowing segment.
[0095] The target position corresponding to the high-gear swallowing segment within the low-gear swallowing segment is registered as the initial position. Each write position within the low-gear swallowing segment is registered as a candidate position. For each candidate position, three actions are set: moving one write position forward, moving one write position backward, and maintaining the current position. The action is canceled when it reaches outside the swallowing segment boundary. After each available action is executed, the high-gear swallowing segment is paired item by item with the low-gear swallowing segment starting from the position reached by the action, thus re-forming the sum of the short-range inhalation segment pairings and interval differences. When the short-range inhalation segment reaches the position... Positive feedback is formed when the number of short-range inhalation segment pairs at the position before the action is executed is greater than the number of short-range inhalation segment pairs at the position before the action is executed. Positive feedback is formed when the number of short-range inhalation segment pairs at the two positions is equal, the sum of the interval differences between the two positions is not empty, and the sum of the interval differences at the position reached by the action is less than the sum of the interval differences at the position before the action is executed. Holding feedback is formed when the number of short-range inhalation segment pairs at the two positions is equal and the sum of the interval differences at either position is empty. Holding feedback is formed when the number of short-range inhalation segment pairs is equal, the sum of the interval differences between the two positions is not empty, and the sum of the interval differences between the two positions is equal. All other cases form negative feedback. Write the feedback type, action arrival position, and corresponding action into the position selection record and update the action arrival position to the current candidate position. Continue to select available actions that have not yet been evaluated in the order of positive feedback taking precedence over hold feedback and hold feedback taking precedence over negative feedback, until all candidate positions are reached and available actions for each candidate position are written into the position selection record. From the position selection record, retain the candidate positions where the number of short-range inhalation segment pairs reaches the maximum value and the total interval difference reaches the minimum value. When all the total interval differences are empty, only retain the candidate positions where the number of short-range inhalation segment pairs reaches the maximum value. When there are multiple candidate positions, retain the candidate positions where the difference in the number of arrangement positions between the candidate position and the initial position reaches the minimum value. When the difference in the number of arrangement positions is the same, retain the candidate positions located at the front of the arrangement. When there are no candidate positions in the swallowing segment corresponding to the low gear, retain the initial position. Determine the retained candidate positions as the gear receiving positions corresponding to the low gear.
[0096] The movement between candidate positions covers all writable positions in the swallowing segment corresponding to the low gear. The number of short-range inhalation segment pairs and the total interval difference are used to evaluate the difference in the number of possible positions and the inhalation rhythm. By repeatedly updating the current position and traversing all candidate positions using motion feedback, the target position can be converged to the gear receiving position corresponding to the low gear.
[0097] For example, suppose the high-gear shift segment contains 3 short-range inhalation segments with adjacent inhalation intervals of 0.8 seconds and 0.7 seconds, respectively. The low-gear shift segment has 4 candidate positions (1 to 4), with the target position being candidate position 2. Starting from candidate position 1, 3 short-range inhalation segments can be paired consecutively, with corresponding inhalation intervals of 1.1 seconds and 0.9 seconds, and a total interval difference of 0.3 seconds plus 0.2 seconds equaling 0.5 seconds. Starting from candidate position 2, 3 short-range inhalation segments can be paired consecutively, with corresponding inhalation intervals of 0.9 seconds and 0.8 seconds, and a total interval difference of 0.1 seconds plus 0.1 seconds equaling 0.2 seconds. Starting from candidate position 3... Initially, only two short-range inhalation segments can be paired consecutively. Starting from the fourth candidate position, only one short-range inhalation segment can be paired. When performing the action of moving forward from the second candidate position to the first candidate position, the total interval difference increases due to the same number of pairs, forming a negative feedback. When performing the action of moving backward to the third candidate position, the number of pairs decreases, forming a negative feedback. When performing the hold action, positive feedback is formed by maintaining the minimum total interval difference of 0.2 seconds for 3 pairs. After evaluating all candidate positions, the second candidate position with 3 pairs and the minimum total interval difference is retained. Thus, the second candidate position is determined as the gear shift position corresponding to the lower gear.
[0098] Write the high-level bit swallowing segment to the low-level bit receiving position to obtain the bit swallowing write-back page. The swallowed slot write-back page is a data page formed after the swallowed slot fragment corresponding to the high-level slot is written into the slot expansion page corresponding to the low-level slot according to the slot continuation position. The page records the product number, the slot number of the low-level slot, the swallowed slot fragment corresponding to the high-level slot, the slot continuation position, and the write-back release content formed by the slot release instructions of the high-level slot. It is used to summarize the swallowed slot write-back slot list.
[0099] Based on the product number and the gear number of the lower gear in the adjacent correspondence, locate the gear expansion page corresponding to the lower gear. Then, based on the gear succession position corresponding to the lower gear, locate the write position in the gear expansion page. Write the gear swallowing segment and its short-range suction segment corresponding to the higher gear to the write position according to the original arrangement, and make the original short-range suction segment corresponding to the lower gear continue along the rear of the arrangement. When the gear succession position corresponding to the lower gear is at the end of the gear expansion page, the gear swallowing segment corresponding to the higher gear is continued to be written to the end. When the gear swallowing segment corresponding to the higher gear is empty, the write position is reserved and no short-range suction segment is written. Write the gear release description associated with the gear swallowing segment corresponding to the higher gear to the write-back release field of the write position to form the write-back release content. Write the product number, the gear number of the lower gear, the gear swallowing segment corresponding to the higher gear, the gear succession position corresponding to the lower gear, and the write-back release content to the same data page to obtain the gear swallowing write-back page.
[0100] The product number, slot number, swallowed segment, slot receiving position, and write-back release content in the swallowed slot write-back page are summarized to obtain a swallowed slot write-back slot list.
[0101] The write-back release content is the release description content obtained from the release description of the high-level position and bound to the write position when the swallowing segment corresponding to the high-level position is written to the position receiving position corresponding to the low-level position. It is used to explain the oxygen release method corresponding to the recommended receiving position when recommending products.
[0102] Retrieve the product number, the lower gear number, the higher gear segment, the lower gear receiving position, and the write-back release content from each write-back page. Based on the product number and the lower gear number, locate the corresponding product type and oxygen supply method from the oxygen product gear list, ensuring that the product type and oxygen supply method are associated with the fields in the same write-back page. If any field in a write-back page is empty, retain the empty state of that field and maintain the correspondence of the other fields. Write the fields of each write-back page into the list record according to the product number and the lower gear number. Collect all the list records and maintain the correspondence between the product number, gear number, write-back segment, gear receiving position, write-back release content, product type, and oxygen supply method to obtain the write-back gear list.
[0103] S5. Based on the inventory list, obtain the recommended product record; based on the recommended product record, recommend oxygen products for sale.
[0104] In embodiments of the present invention, recommending oxygen for sale includes: The oxygen vending product recommendation is based on the order of the oxygen vending product recommendation list. The product type, oxygen supply method, level number, and write-back release content corresponding to the product number are sent to the oxygen vending terminal and displayed according to the arrangement position, thereby providing users with oxygen vending product information corresponding to their short-range inhalation.
[0105] Based on the gear position, extract the corresponding gear number from the gear position list to obtain the recommended gear position; The recommended receiving position is the position number located and extracted from the position list of swallowed positions based on the receiving position position. This position number indicates the lower position that can receive the swallowed segment corresponding to the higher position, and is used to extract the corresponding product information.
[0106] The process involves obtaining the corresponding positions of each neighboring position through reinforcement learning to form the position receiving position for the lower-level position. Each position receiving position in the position receiving list is then checked against the corresponding position in the file swallowing and writing-back list. The position receiving position corresponding to the lower-level position is then matched with the position receiving position in each list record by identifying its location and its associated product number. List records with the same location identification and associated product number are retained, while those with different location identification or associated product number are excluded. The position number of the lower-level position is extracted from the retained list records. If multiple matching list records exist, the position number is extracted according to the order of the records in the file swallowing and writing-back list. If no matching list record exists, no position number is generated for the position receiving position corresponding to the lower-level position. The extracted position number is then bound to the corresponding position receiving position of the lower-level position to obtain the recommended receiving position.
[0107] Extract the product number, product type, oxygen supply method, and write-back release content corresponding to the recommended receiving position from the swallowing and writing position list to obtain the recommended product record; A recommended product record is a data record formed around a recommended tier. The record includes the corresponding product number, product type, oxygen supply method, tier number, and write-back release content, and is used to be arranged together with other recommended product records.
[0108] Based on the gear number and gear location bound to the recommended gear position, locate the corresponding record in the gear list for write-back. Extract the product number, product type, oxygen supply method, and write-back release content from the corresponding record. Simultaneously, write the gear number corresponding to the recommended gear position into the gear number field. If any field is empty, retain the empty state of that field and maintain the correspondence between the other fields and the recommended gear position. Write the product number, product type, oxygen supply method, gear number, and write-back release content corresponding to the same recommended gear position into a data record to obtain the recommended product record.
[0109] Arrange multiple recommended product records to obtain a sequence of recommended product records; The recommended product record sequence is an ordered set of records formed by arranging multiple recommended product records according to their order of priority in the write-back list. Each record maintains the correspondence between the product field and the write-back release content, and is used to write the oxygen sales product recommendation list.
[0110] Each recommended product record is retrieved along with its associated recommended tier and its position in the write-back tier list. The corresponding recommended product records are arranged in order of their positions from front to back. If the positions are the same, they are arranged according to the tier order of the recommended tier. If the recommended tiers are also the same, they are arranged according to the registration order of the product number on the oxygen sales platform. Recommended product records with empty product numbers are placed after recommended product records with product numbers under the same recommended tier. This ensures that the product number, product type, oxygen supply method, tier number, and write-back release content in each recommended product record correspond. All the arranged recommended product records are then continuously arranged to obtain a recommended product record sequence.
[0111] The record positions in the file swallowing and writing back file list have preserved the formation order of the recommended receiving file position and the receiving file position. The same sorted data are processed in sequence by record position, file position order and product number registration order, which can maintain the source relationship of recommended product records and form a recommended product record sequence with a definite order.
[0112] Write the product number, product type, oxygen supply method, gear number, and write-back release content from the recommended product record sequence into the recommended list to obtain the oxygen sales product recommendation list; The recommendation list is a data list used to contain and organize the various product fields in the recommended product record sequence; the oxygen sales product recommendation list is an ordered list formed by writing the product number, product type, oxygen supply method, gear number and write-back release content in the recommended product record sequence into the recommendation list in the original order, and is used to drive the oxygen sales terminal to perform product recommendations.
[0113] According to the order of the recommended product record sequence, obtain the product number, product type, oxygen supply method, gear number, and write-back release content for each recommended product record. Create list entries in the recommended list in the same order, and write the product number, product type, oxygen supply method, gear number, and write-back release content from the same recommended product record into the same list entry. If any field is empty, retain the empty state of the corresponding field and do not change the order of other list entries, so that the order of all list entries is the same as the order of the recommended product record sequence. Combine all list entries with completed field writing into the oxygen sales product recommended list.
[0114] Based on the order of the oxygen-selling product recommendation list, oxygen products are recommended.
[0115] The oxygen sales platform sends the product number, product type, oxygen supply method, tier number, and write-back release content to the oxygen sales terminal one by one according to the order of the oxygen sales product recommendation list. The oxygen sales terminal creates product display positions in the recommendation interface in the order of receiving the information, and displays the list items that are listed first before the list items that are listed later. Before sending, the platform checks the availability status of the product number in the oxygen sales platform. If the product number is still available, the platform displays the product type, oxygen supply method, tier number, and write-back release content of the list item in the corresponding product display position. If the product number is not available or the product number is empty, the platform does not create a product display position for that list item and continues to send the next list item. If the oxygen sales product recommendation list is empty, the recommendation interface remains empty. Through the orderly display of all valid list items, oxygen sales products are recommended.
[0116] For example, the oxygen product recommendation list is arranged according to items 1 through 3. Item 1 includes product number A101, product type: portable oxygen cylinder, oxygen supply method: pulse oxygen supply, speed setting 2, and write-back release information: oxygen releases for 0.6 seconds per inhalation. Item 2 includes product number A205, product type: desktop oxygen concentrator, oxygen supply method: pulse oxygen supply, speed setting 3, and write-back release information: oxygen releases for 0.8 seconds per inhalation. Item 3 includes product number A309, product type: portable oxygen bag, oxygen supply method: continuous oxygen supply, speed setting 1, and write-back release information: continuous oxygen release. The platform sequentially checks the availability of the three product numbers. The results show that A101 and A309 are available for sale, while A205 has been discontinued. The oxygen sales platform first sends the information corresponding to A101 to the oxygen sales terminal and displays portable oxygen cylinder, pulse oxygen supply, level 2, and oxygen release for 0.6 seconds per inhalation in the first product display position on the recommendation interface. Then, it skips A205 and continues to send the information corresponding to A309, displaying portable oxygen bag, continuous oxygen supply, level 1, and continuous oxygen release in the second product display position. This completes the recommendation of oxygen products that are still available for sale according to the original recommendation order.
[0117] This invention determines the recommended intake level based on the intake level assignment position in the intake level assignment list and extracts the corresponding product number, product type, oxygen supply method, and write-back release content to form a recommended product record. This allows each recommended product to retain the intake level source and oxygen release information for the user's short-range inhalation rhythm. Then, the products that are still available for sale are displayed to the oxygen vending terminal according to the order of the recommended product record. This ensures that the user's actual inhalation process before purchase is reflected in the specific product recommendation result, thus improving the problem of inconsistency between recommended products and the user's actual inhalation process caused by the reliance on general intake level assignment instructions in the prior art.
[0118] An embodiment of the present invention also provides a recommendation system for oxygen sales products.
[0119] In this embodiment, the functions of each module / unit are as follows: The tier list module obtains the tier number sequence corresponding to the product number based on the oxygen product information on the oxygen sales platform; it then creates tier fields based on the tier number sequence and summarizes the tier records to obtain an oxygen product tier list. The inhalation sequence module determines the inhalation start and end points of short-range inhalation segments based on the user's pre-sale inhalation records; determines the inhalation interval based on two adjacent short-range inhalation segments; and arranges the inhalation segment records corresponding to the inhalation start, inhalation end, and inhalation interval to obtain the user's short-range inhalation sequence. The swallowing interval analysis module, based on the oxygen product interval list and the user's short-range inhalation sequence, obtains an interval inhalation unfolding page; and arranges the swallowing interval segments corresponding to the interval inhalation unfolding page to obtain a rapid panting swallowing interval segment sequence; The swallowing file write-back module categorizes the rapid panting swallowing file segment sequences to obtain adjacent correspondences; based on the adjacent correspondences, it obtains the swallowing file write-back pages and summarizes the swallowing file write-back pages to obtain a swallowing file write-back file list; The product recommendation module obtains recommended product records based on the swallowed file write-back file list; and recommends oxygen products based on the recommended product records.
[0120] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for recommending oxygen as a product for sale, characterized in that, Includes the following steps: S1. Based on the oxygen product information available on the oxygen sales platform, obtain the grade number sequence corresponding to the product number; establish grade fields according to the grade number sequence, and summarize the grade records to obtain an oxygen product grade list. S2. Based on the user's pre-sale inhalation record, determine the inhalation start and end points of the short-range inhalation segment; determine the inhalation interval based on two adjacent short-range inhalation segments. Arrange the inhalation segment records corresponding to the inhalation start point, inhalation end point, and inhalation interval to obtain the user's short-range inhalation sequence; S3. Based on the oxygen product range list and the user's short-range inhalation sequence, obtain the range inhalation unfolding page; arrange the swallowing segments corresponding to the range inhalation unfolding page to obtain the rapid panting swallowing segment sequence; S4. Classify the rapid breathing and swallowing segment sequences to obtain the adjacent correspondence relationship; Based on the adjacent correspondence, the swallowed file write-back pages are obtained, and the swallowed file write-back pages are summarized to obtain the swallowed file write-back file list; S5. Based on the file swallowing and writing back the file list, obtain the recommended product record; Based on the recommended product records, oxygen products are recommended for sale.
2. The method for recommending oxygen for sale according to claim 1, characterized in that, Obtain a list of oxygen product tiers, including: Obtain information on oxygen products available for sale on oxygen sales platforms; this information includes product number, product type, oxygen supply method, level number, level release instructions, and level application instructions. Based on the product number, information on oxygen products for sale is collected to obtain product tier information; In the product tier information, the tier numbers are arranged to obtain the tier number sequence corresponding to the product number; Create a gear position field for each gear position number based on the gear position number sequence; Write the product type, oxygen supply method, release instructions, and applicable instructions for each gear number into the corresponding gear field to obtain the gear record for each product number. The records of each product number corresponding to the grade are summarized to obtain a list of oxygen product grades.
3. The method for recommending oxygen for sale according to claim 1, characterized in that, Determine the inspiratory initiation and inspiratory end points of the short-range inspiratory segment, including: Obtain the user's pre-sale inhalation records collected by the inhalation collection component in the oxygen vending terminal; wherein, the user's pre-sale inhalation records include the collection time sequence; Determine the airflow entry segment from the user's pre-sale inhalation record; Based on the collection sequence, the airflow entry section is segmented to obtain multiple short-range inhalation segments; Extract the segment start position from the short-range inspiratory segment and use it as the inspiratory start point of the short-range inspiratory segment; Extract the end position of the short-range inspiratory segment and use it as the inspiratory endpoint of the short-range inspiratory segment.
4. The method for recommending oxygen for sale according to claim 1, characterized in that, The user's short-range inhalation sequence is obtained, including: Identify two adjacent short-range inspiratory segments from a plurality of short-range inspiratory segments; The preceding short-range inspiratory segment in two adjacent short-range inspiratory segments is taken as the previous short-range inspiratory segment. The short inspiratory segment that occurs later in two adjacent short inspiratory segments is taken as the next short inspiratory segment. The interval between the end of the inhalation of the previous short-range inhalation segment and the beginning of the inhalation of the next short-range inhalation segment is taken as the inhalation interval of the next short-range inhalation segment. Write the inhalation start point, inhalation end point, and inhalation interval corresponding to the short-range inhalation segment into the same inhalation segment record; According to the acquisition time sequence, all inhalation segment records are arranged to obtain the user's short-range inhalation sequence.
5. The method for recommending oxygen for sale according to claim 1, characterized in that, The gear selector's intake maneuver page includes: Select the oxygen product tiers from the oxygen product tier list that use pulse oxygen supply mode to obtain pulse oxygen supply tier records; Based on the gear number in the pulse oxygen supply gear record, create a gear expansion page and write the gear release instructions into the corresponding gear expansion page; According to the arrangement order of short-range inhalation segments in the user's short-range inhalation sequence, multiple short-range inhalation segments are written into the gear position expansion page to obtain the gear position inhalation expansion page.
6. The method for recommending oxygen for sale according to claim 2, characterized in that, The sequence of rapid panting and swallowing segments was obtained, including: Obtain the arrangement of short-range inhalation segments in the gear inhalation display page; Based on the arrangement of short-range inhalation segments in the gear inhalation expansion page, multiple short-range inhalation segments that follow the same gear release instructions are combined into a gear swallowing segment. Based on the pulse oxygen supply level records, multiple swallowing segments were arranged to obtain a rapid breathing swallowing segment sequence.
7. The method for recommending oxygen for sale according to claim 2, characterized in that, Obtain the adjacent correspondence relationship, including: Based on the product number, the rapid panting swallowing fragment sequence is classified to obtain a swallowing fragment set; Sort the set of swallowed segments according to the gear number to obtain the swallowed segment arrangement; The swallowed segments are arranged in a staggered manner to obtain the adjacent correspondence relationship.
8. The method for recommending oxygen for sale according to claim 1, characterized in that, Obtain the list of file swallowing and write-back locations, including: Distinguish between two gears in the adjacent position correspondence to obtain the high gear and the low gear; Determine the target position of the high-gear swallowing segment within the low-gear swallowing segment; By using reinforcement learning, the corresponding position of the target is iteratively updated to obtain the gear shift position corresponding to the lower gear. Write the high-level bit swallowing segment to the low-level bit receiving position to obtain the bit swallowing write-back page. The product number, slot number, swallowed segment, slot receiving position, and write-back release content in the swallowed slot write-back page are summarized to obtain a swallowed slot write-back slot list.
9. The method for recommending oxygen as a product according to claim 8, characterized in that, Recommendations for oxygen products, including: Based on the gear position, extract the corresponding gear number from the gear position list to obtain the recommended gear position; Extract the product number, product type, oxygen supply method, and write-back release content corresponding to the recommended receiving position from the swallowing and writing position list to obtain the recommended product record; Arrange multiple recommended product records to obtain a sequence of recommended product records; Write the product number, product type, oxygen supply method, gear number, and write-back release content from the recommended product record sequence into the recommended list to obtain the oxygen sales product recommendation list; Based on the order of the oxygen-selling product recommendation list, oxygen products are recommended.
10. A system for recommending an oxygen sales product as described in any one of claims 1-9, characterized in that, The system includes: The tier list module obtains the tier number sequence corresponding to the product number based on the oxygen product information on the oxygen sales platform; it then creates tier fields based on the tier number sequence and summarizes the tier records to obtain an oxygen product tier list. The inhalation sequence module determines the inhalation start and end points of short-range inhalation segments based on the user's pre-sale inhalation records; determines the inhalation interval based on two adjacent short-range inhalation segments; and arranges the inhalation segment records corresponding to the inhalation start, inhalation end, and inhalation interval to obtain the user's short-range inhalation sequence. The swallowing interval analysis module, based on the oxygen product interval list and the user's short-range inhalation sequence, obtains an interval inhalation unfolding page; and arranges the swallowing interval segments corresponding to the interval inhalation unfolding page to obtain a rapid panting swallowing interval segment sequence; The swallowing file write-back module categorizes the rapid panting swallowing file segment sequences to obtain adjacent correspondences; based on the adjacent correspondences, it obtains the swallowing file write-back pages and summarizes the swallowing file write-back pages to obtain a swallowing file write-back file list; The product recommendation module obtains recommended product records based on the swallowed file write-back file list; and recommends oxygen products based on the recommended product records.
