A potato starch food mapping labeling system and food coding method
By generating return isolation identifier codes and bit-by-bit matching of anti-penetration bit array identifiers, the problem of identifying and isolating abnormal products in potato starch food storage management is solved, realizing automated inventory screening and replenishment scheduling, and improving management efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- INNER MONGOLIA SANLIAN STARCH PROD
- Filing Date
- 2026-03-27
- Publication Date
- 2026-06-23
Smart Images

Figure CN122264696A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of identification and coding technology, and in particular to a potato starch food mapping and labeling system and a food coding method. Background Technology
[0002] Identification and coding technology is a fundamental technology system that involves uniquely identifying, classifying, managing, and associating information about items, data, or objects. By assigning a structured coding form to the target object, it enables rapid identification, storage indexing, transmission verification, and status tracking of information.
[0003] Existing technologies, while focusing on unique identification, classification management, and information association, typically concentrate on code generation, information linking, and basic querying. In practice, these technologies are well-suited for item identification, ledger indexing, and flow recording. However, they are less capable of handling the continuously changing business states behind the identifiers, especially in continuous scenarios such as returned goods being mixed in, inventory anomalies, outbound screening, and replenishment linkage. The encoded content often only indicates who an object is, which category it belongs to, and which record it corresponds to, making it difficult to further explain whether there are quality anomalies, whether it should be isolated, whether it has affected subsequent outbound shipments, or whether procurement scheduling needs to be triggered. This easily leads to situations where the code is identifiable but the business cannot be determined. For example, when normal potato starch products and damp, clumped returned goods coexist in the same warehouse node, existing technologies, while able to record corresponding identifiers, lack an endogenous mechanism to continue anomaly screening along the outbound chain. This forces managers to rely on subsequent manual verification to determine which inventory should not be shipped normally, increasing the verification burden and potentially allowing abnormal products to enter the circulation process due to human error. Therefore, improvements are needed. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of existing technologies and to propose a potato starch food mapping and labeling system and food coding method.
[0005] To achieve the above objectives, the present invention adopts the following technical solution: a potato starch food mapping and labeling system comprising: The starch return coding mapping module is used to read the starch packaging identification barcode and the moisture-induced clumping return character of potato starch food according to the input parameters of the storage node, obtain the return isolation identification code, call the set hash function to perform hash mapping operation on the return isolation identification code, and obtain the anti-penetration bit array identifier; The starch order matching and verification module is used to read the outbound identifier parameter of the current node according to the starch outbound batch, perform a bit-by-bit matching comparison operation between the outbound identifier parameter and the anti-penetration bit array identifier, obtain an abnormal inventory screening list, and merge the outbound identifier parameters that are not in the abnormal inventory screening list to generate a normal outbound sequence. The starch consumption rate determination module is used to read the normal outbound sequence, obtain the depletion calculation base, and calculate the buffer depletion crisis value based on the depletion calculation base. The starch procurement trigger allocation module is used to extract the stockout identifier parameter to generate an emergency procurement scheduling instruction when the buffer depletion crisis value is less than or equal to the safety response critical coefficient, and to obtain the pre-allocated replenishment mapping table according to the emergency procurement scheduling instruction.
[0006] Preferably, the step of obtaining the anti-penetration bit array identifier is as follows: The system locates the potato starch food record corresponding to the input parameters of the storage node, reads the starch packaging identification barcode in the potato starch food record, reads the moisture-induced clumping return character in the potato starch food record, and connects the starch packaging identification barcode to the front or back of the moisture-induced clumping return character according to the preset splicing order to form a return isolation identification code. Extract each character from the return isolation identifier code, record the character position of each character in the return isolation identifier code, and convert the character value, character position, and node identifier in the warehouse node input parameter into index values in sequence to form a specific position coordinate parameter; Retrieve the initial bit array corresponding to the input parameters of the storage node, verify the landing position of the specific position coordinate parameter in the initial bit array one by one, write the associated identifier bit value corresponding to the preset constant for each landing position, retain the position state in the initial bit array that has not been written with the preset constant, and aggregate and combine the preset constant and the initial bit array according to the writing result of the specific position coordinate parameter to form the anti-penetration bit array identifier.
[0007] Preferably, the step of obtaining the abnormal inventory removal list is as follows: Read the outbound identifier parameter corresponding to the current node of each outbound record in the starch outbound batch one by one, extract each identifier character in the outbound identifier parameter of the current node, extract each associated identifier bit value in the anti-penetration bit array identifier, compare the identifier character of the outbound identifier parameter of the current node with the associated identifier bit value of the anti-penetration bit array identifier bit by bit according to the same bit order, record the outbound identifier parameter of the current node whose associated identifier bit value is matched, and form the hit verification outbound identifier parameter; Extract the character content from the hit verification outbound identifier parameter one by one, extract the corresponding character content from the return isolation identifier code one by one, perform character consistency verification according to the unified character position order, mark the character positions in the hit verification outbound identifier parameter that are the same as the return isolation identifier code, summarize the hit verification outbound identifier parameter segments corresponding to consecutive identical character positions, extract the hit verification outbound identifier parameters with overlapping character segments, and form an abnormal inventory screening list.
[0008] Preferably, the step of obtaining the normal outbound sequence is as follows: Each starch outbound batch is compared to see if the outbound identifier parameter of the current node exists in the abnormal inventory removal list. The outbound identifier parameters of the current node that exist in the abnormal inventory removal list are deleted, and the outbound identifier parameters of the current node that do not exist in the abnormal inventory removal list are retained. The retained outbound identifier parameters of the current node are then sequentially assembled and arranged according to the original outbound order in the starch outbound batch to form a normal outbound sequence.
[0009] Preferably, the step of obtaining the exhaustion calculation baseline is as follows: According to the normal outbound sequence, the outbound timestamp and starch consumption value corresponding to each outbound record are read one by one, and the records are rearranged according to the order of the outbound timestamps. Outbound records with duplicate outbound timestamps are filtered out, and the connection relationship of starch consumption values corresponding to missing outbound timestamps is corrected to form an outbound consumption time sequence group. Based on the outbound consumption time series, extract the outbound timestamp difference of consecutive positions, extract the starch consumption value difference of consecutive positions, calculate the current and historical first derivative operation values, extract the historical smoothed second derivative operation values, extract the absolute inventory, parse the supplier delivery date code and convert it into the estimated delivery time, and organize the historical first derivative operation values, historical smoothed second derivative operation values, absolute inventory and estimated delivery time in the order of outbound timestamp position to form the depletion calculation base quantity.
[0010] Preferably, the step of obtaining the buffer exhaustion crisis value is as follows: Based on the exhaustion calculation baseline, the absolute inventory, estimated delivery time, current first derivative calculation value, previous period first derivative calculation value, previous period smoothed second derivative calculation value, and response time constant are extracted to calculate the buffer exhaustion crisis value.
[0011] Preferably, the step of obtaining the emergency procurement dispatch instruction is as follows: Read the regular replenishment trigger instruction sending queue corresponding to the normal waiting-to-outbound sequence, extract the safety response critical coefficient, compare the size relationship between the buffer exhaustion crisis value and the safety response critical coefficient one by one, locate the normal waiting-to-outbound sequence that satisfies the relationship of less than or equal to, freeze the regular replenishment trigger instruction sending status corresponding to the normal waiting-to-outbound sequence that satisfies the relationship of less than or equal to, write the stop sending flag and stop sending time flag, and form the replenishment stop sending execution result; Based on the replenishment stop execution result, extract the normal pending outbound sequence with the stop sending mark, parse the outbound identifier parameter, pending outbound quantity mark, inventory occupancy mark and node position mark in the normal pending outbound sequence one by one, filter outbound identifier parameters where the pending outbound quantity mark is greater than the inventory occupancy mark, extract the gap position and gap quantity corresponding to the outbound identifier parameter, organize the out-of-stock identifier parameter according to the node position mark and the gap sequence, and generate an emergency procurement scheduling instruction.
[0012] Preferably, the step of obtaining the pre-allocated replenishment mapping table is as follows: The node location marker, stockout indicator parameter, shortage quantity, replenishment arrival location, and scheduling order marker in the emergency procurement scheduling instruction are analyzed one by one. The node location marker is written into the warehouse node field of the mapping table, the stockout indicator parameter is written into the stockout object field of the mapping table, the shortage quantity is written into the replenishment quantity field of the mapping table, the replenishment arrival location is written into the receiving location field of the mapping table, and the scheduling order marker is written into the pre-allocation order field of the mapping table to form a pre-allocation replenishment mapping table.
[0013] This invention also provides a food coding method, comprising the following steps: Based on the input parameters of the storage node, read the starch packaging identification barcode and the character for returning goods due to moisture and clumping on the potato starch food, obtain the return isolation identification code, call the set hash function to perform a hash mapping operation on the return isolation identification code, and obtain the anti-penetration bit array identifier; Based on the starch outbound batch, read the outbound identifier parameter of the current node, perform a bit-by-bit matching comparison operation with the anti-penetration bit array identifier, obtain the abnormal inventory removal list, and merge the outbound identifier parameters that are not in the abnormal inventory removal list to generate a normal outbound sequence. Read the normal outbound sequence, obtain the exhaustion calculation base, and calculate the buffer exhaustion crisis value based on the exhaustion calculation base. When the buffer exhaustion crisis value is less than or equal to the safety response critical coefficient, the stockout identifier parameter is extracted to generate an emergency procurement scheduling instruction, and the pre-allocated replenishment mapping table is obtained according to the emergency procurement scheduling instruction.
[0014] Compared with the prior art, the advantages and positive effects of the present invention are as follows: In this invention, a return isolation identifier code is formed by reading the starch packaging identification barcode and the "moisture-caking return" character. Then, a hash-mapped, anti-penetration bit array identifier is used to carry out subsequent bit-by-bit matching. This allows the return characteristics to move beyond a static identification level and enter a dynamic discrimination level that allows for screening, isolation, and interception. A progressively layered relationship is formed between the abnormal inventory screening list, the normal outbound sequence, the depletion calculation base quantity, the buffer depletion crisis value, the emergency procurement scheduling instruction, and the pre-allocated replenishment mapping table. This allows the coding result to directly participate in inventory purification, outbound verification, consumption determination, and procurement triggering, reducing the problem of simple coding only serving as an identification index. Simultaneously, the "moisture-caking return" character... This quality anomaly indicator, along with the starch packaging identification barcode, is incorporated into the coding source, giving the label both identity and risk attributes. In actual circulation, it can prevent abnormal inventory from being mixed into the normal outbound sequence in advance, avoiding returned, damp, or suspected damaged goods from re-entering the outbound process. Furthermore, by combining the outbound timestamp, starch consumption value, absolute inventory quantity, and supplier delivery date code to form a continuous calculation relationship, it can identify buffer depletion trends before actual supply disruptions occur, shifting replenishment actions from passive to proactive responses. The shortage indicator parameter is directly transcribed into the pointing information in the pre-allocated replenishment mapping table, enhancing the accuracy of the correspondence between procurement targets, replenishment locations, and scheduling priorities. Attached Figure Description
[0015] Figure 1 This is a system flowchart of the present invention; Figure 2 Calculate a three-dimensional thermodynamic surface plot to buffer the depletion crisis value; Figure 3 The phase diagram of the time series of outbound consumption and the evolution of the first derivative; Figure 4 To prevent penetration of the bit array identifier sparse mapping point cloud map. Detailed Implementation
[0016] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0017] Please see Figure 1-4 This invention provides a technical solution: a potato starch food mapping and labeling system comprising: The starch return coding mapping module is used to read the starch packaging identification barcode and the moisture-induced clumping return character of potato starch food according to the input parameters of the storage node, obtain the return isolation identification code, call the set hash function to perform hash mapping operation on the return isolation identification code, and obtain the anti-penetration bit array identifier; The starch order matching and verification module is used to read the outbound identifier parameter of the current node according to the starch outbound batch, perform bit-by-bit matching and comparison calculation between the outbound identifier parameter and the anti-penetration bit array identifier, obtain the abnormal inventory screening list, and merge the outbound identifier parameters that are not in the abnormal inventory screening list to generate a normal outbound sequence. The starch consumption rate determination module is used to read the normal outbound sequence, obtain the depletion calculation base, and calculate the buffer depletion crisis value based on the depletion calculation base. The starch procurement trigger allocation module is used to extract the stockout flag parameter and generate an emergency procurement scheduling instruction when the buffer depletion crisis value is less than or equal to the safety response critical coefficient, and obtain the pre-allocated replenishment mapping table based on the emergency procurement scheduling instruction.
[0018] The steps to obtain the anti-penetration bit array identifier are as follows: The system locates the potato starch food record corresponding to the input parameters of the storage node, reads the starch packaging identification barcode in the potato starch food record, reads the moisture-induced clumping return character in the potato starch food record, and connects the starch packaging identification barcode to the front or back of the moisture-induced clumping return character according to the preset splicing order to form a return isolation identification code. Extract each character from the return isolation identifier code, record the character position of each character in the return isolation identifier code, and convert the character value, character position, and node identifier in the warehouse node input parameter into index values in sequence to form a specific location coordinate parameter; Retrieve the initial bit array corresponding to the input parameters of the storage node, verify the landing position of the specific position coordinate parameter in the initial bit array one by one, write the associated identifier bit value corresponding to the preset constant for each landing position, retain the position state of the initial bit array that has not been written with the preset constant, and aggregate and combine the preset constant and the initial bit array according to the writing result of the specific position coordinate parameter to form the anti-penetration bit array identifier.
[0019] Specifically, the process involves locating the potato starch food record corresponding to the input parameters of the warehousing node. Based on the warehouse physical number and inbound timestamp included in the input parameters, the system filters and matches business data rows from the backend database record table that were inbound within the corresponding time period and subsequently triggered a return process. This matching data row is then extracted as the potato starch food record. The data structure of the potato starch food record is parsed, and the 13-digit numeric product code affixed to the outer packaging is extracted from the product information field of the record as the starch packaging identification barcode. For example, the starch packaging identification barcode read is... 6901234567890, retrieves the "Moisture-induced Clumping Return Character" manually entered by quality inspectors during the inspection process from the quality inspection remarks field of the potato starch food record. This "Moisture-induced Clumping Return Character" contains letters representing the reason for return and numbers representing the volume of the moisture-induced clumps. For example, if the retrieved "Moisture-induced Clumping Return Character" is "RCM02", then a specific judgment method for the preset splicing order is set. The last numerical part of the "Moisture-induced Clumping Return Character" is extracted to calculate the percentage of the moisture-induced clump volume. The percentage of the moisture-induced clump volume is compared with a preset volume percentage threshold. The volume percentage threshold is obtained by statistically analyzing and averaging the return data of damp and spoiled potato starch over the past three years. For example, if the calculated volume percentage threshold is 25%, and the current volume percentage of damp lumps is greater than the previously obtained volume percentage threshold of 25%, it is determined that the current batch of potato starch has caused significant cross-contamination of surrounding intact inventory. The first combination rule is then used, where the previously read starch packaging identification barcode is appended as a prefix to the characters for "damp lumps return". If the current volume percentage of damp lumps is less than or equal to the previously obtained volume percentage threshold... The value is 25%, indicating that the degree of cross-contamination is still shallow. The second combination rule is adopted, and the previously read starch packaging identification barcode is appended as a suffix to the previously read moisture-caking return character. For example, RCM02, which contains the number 02, represents that the volume of moisture-caking is 20%, which is within the range of less than or equal to 25%. According to the rule, the starch packaging identification barcode 6901234567890 is appended to the moisture-caking return character RCM02 to form a complete comprehensive string sequence, forming a return isolation identification code.
[0020] Extract each character from the previously obtained return isolation code. Disassemble and separate the English letters and Arabic numerals from the code one by one, reading from left to right. Place the separated symbols into a linear list to obtain a set containing multiple independent characters. Assign each independent character a positive integer starting from 1, based on its order of appearance in the original return isolation code. Record the one-to-one mapping of character position information for each character in the set by traversing the linear list. Then, call the built-in standard information exchange code lookup table data dictionary to map the text representation of each character to its corresponding decimal value as the specific character value. For example, the English character R is converted to 82, the English character C to 67, and the Arabic numeral 6 to 54. Simultaneously, extract the node identifier data from the warehouse node input parameters. This node identifier data represents the physical storage area code of the warehouse where the potato starch return transaction occurred. Following preset string truncation rules, uniformly remove the area type letter prefix, retaining only the pure numeric suffix as the node identifier value. For example... If the original node identifier WH05 is extracted and converted to a constant value of 5, then the previously obtained character values, character positions, and node identifier values are subjected to a fusion mathematical aggregation operation. The specific index value conversion steps are as follows: multiply the current character value by its corresponding character position obtained earlier to obtain an intermediate position product, and then add the intermediate position product to the previously obtained node identifier value to obtain the character-specific numerical result as a single-point index value. In this way, the multi-dimensional attributes of the character are compressed into a specific number. For example, for the character R in the first position, its corresponding character value is 82, and its corresponding previously obtained node identifier value is 5. The converted single-point index value is 82 multiplied by 1 and added to 5 to get 87. Continue to traverse all the independent characters in the previously obtained set and repeat this fixed multiplication and addition operation process to calculate the single-point index value corresponding to each character in the return isolation identifier code. All the calculated single-point index values are sorted and rearranged according to the original character position and integrated to form a 1-dimensional numerical array containing multiple discrete coordinate points, forming a specific position coordinate parameter.
[0021] The initial bit array corresponding to the input parameters of the warehouse node is retrieved. Based on the current warehouse building scale level configuration parameters contained in the warehouse node input parameters, a fixed-length contiguous data storage space is allocated in the server's running memory. The length and capacity of this contiguous data storage space are calculated based on the maximum daily average concurrent inbound stacking quantity when the warehouse node stores potato starch food products over the past 5 years. The calculated maximum daily average concurrent inbound stacking quantity is multiplied by a capacity redundancy factor of 1.5 to obtain the final length and capacity value. For example, if the maximum daily average concurrent inbound stacking quantity is 10,000 pieces, multiplying by 1.5 yields 150. If 0 is specified, the length of the contiguous data storage space is set to 15000. A linear 1D array containing 15000 Boolean elements, all initialized to 0 by default, is generated within the allocated space as the initial bit array. Then, the single-point index values from the previously obtained specific position coordinate parameters are extracted one by one. Each extracted single-point index value is divided by the length of the initial bit array, 15000, and the remainder is calculated. For example, if the single-point index value 87 is divided by 15000, the remainder is 87. This remainder is then designated as the single-point index value. Within the initial bit array structure, the specific landing positions are verified one by one using a unified modulo-remainder method. All associated landing positions of the previously obtained specific position coordinate parameters within the initial bit array are calculated and verified. The specific numerical indices of these landing positions are collected. Based on this, a preset constant, excluding 0, is defined as the associated identifier value. This preset constant is fixed at the number 1, representing that the corresponding array index position has a specific isolation mapping relationship related to dampness and return. The system iterates along the numerical indices of the previously collected landing positions. For each landing position encountered, the original 0 in the initial bit array is erased, and the value is rewritten and... Write the associated identifier value corresponding to the preset constant 1 obtained earlier. After all the landing positions corresponding to the single-point index values have completed the writing operation of 1, stop the traversal writing process, and retain the state of other free positions in the initial bit array that have not been written with the preset constant 1. That is, let these unindexed positions continue to maintain the state of the initially generated number 0. Finally, according to the state distribution of the writing result triggered by the specific position coordinate parameter obtained earlier, pack and compress the preset constant 1 scattered in the array and the remaining 0 in the initial bit array, and aggregate and combine them to form a fixed-length binary number sequence string, forming the anti-penetration bit array identifier.
[0022] The steps to obtain the abnormal inventory removal list are as follows: Read the outbound identifier parameter of the current node corresponding to each outbound record in the starch outbound batch one by one, extract each identifier character in the outbound identifier parameter of the current node, extract each associated identifier value in the anti-penetration bit array identifier, compare the identifier character of the outbound identifier parameter of the current node with the associated identifier value of the anti-penetration bit array identifier bit by bit according to the same position, record the outbound identifier parameter of the current node whose associated identifier value matches, and form the hit verification outbound identifier parameter; Extract the character content from the hit verification outbound identifier parameter one by one, extract the corresponding character content from the return isolation identifier code one by one, perform character consistency verification according to the unified character position order, mark the character positions in the hit verification outbound identifier parameter that are the same as the return isolation identifier code, summarize the hit verification outbound identifier parameter segments corresponding to consecutive identical character positions, extract the hit verification outbound identifier parameters with overlapping character segments, and form an abnormal inventory screening list.
[0023] Specifically, the process reads the outbound identifier parameter corresponding to the current node for each outbound record within a starch outbound batch, parses the data packet corresponding to that starch outbound batch, and obtains all outbound detail entries contained therein. For each outbound record, the outbound identifier parameter of the current node, which serves as the unique traceability basis, is extracted. This parameter is composed of letters and numbers; for example, if the outbound identifier parameter of a certain current node is CK8273645, then a positional reading cursor is set. Using this cursor, each independent character in the outbound identifier parameter of the current node is peeled off from left to right, obtaining the corresponding single character set and the specific numerical position of each character in this parameter. For example, the position of character C is 1, the position of character K is 2, and the position of number 8 is 3. Simultaneously, the previously obtained anti-penetration bit array identifier is retrieved. This anti-penetration bit array identifier is a fixed-length binary string composed of a preset constant 1 and an initial number 0. Using the previously obtained positional reading cursor, the characters with the same positional order as those extracted earlier are extracted from the anti-penetration bit array identifier according to the synchronously increasing index order. The binary number at the corresponding position is used as the value of each associated identifier bit. Then, a comparison process is executed. The identifier character of the current node's outbound identifier parameter is compared with the associated identifier bit value of the anti-penetration bit array identifier bit by bit according to the same bit order. The judgment rule is to check whether the associated identifier bit value corresponding to the bit order is equal to the preset constant 1 representing the abnormal mapping. For example, when extracting the 3rd character 8 of the current node's outbound identifier parameter CK8273645, the data of the 3rd bit of the anti-penetration bit array identifier is read simultaneously. If the read associated identifier bit value is 1, it is determined that the character bit is hit. If it is 0, it is determined that it is not hit. As long as any character in the current node's outbound identifier parameter is hit by the previously obtained preset constant 1, the complete current node's outbound identifier parameter corresponding to the outbound record is extracted and stored in an independent cache queue. By traversing all records in the starch outbound batch, all current node's outbound identifier parameters that are hit at least once by the associated identifier bit value are recorded to form the hit verification outbound identifier parameter.
[0024] The process involves extracting the character content from the previously obtained hit checkout identifier parameters one by one. A hit checkout identifier parameter is then retrieved sequentially from the previously constructed cache queue and decomposed into an independent single-character sequence. Simultaneously, the previously obtained return isolation identifier is retrieved, and its corresponding character content is extracted character by character using the same string decomposition method. This constructs a baseline character sequence for comparison. A sliding comparison window is then set up, and the hit checkout identifier parameter and the return isolation identifier are aligned and checked for character consistency according to a uniform character position order starting from 1. The ASCII code values of two characters in the same position are compared to see if they are completely equal. For example, when comparing the first position, if the character in the hit checkout identifier parameter is 6 and the character in the return isolation identifier is also 6, then they are considered consistent. When a match is found, a special asterisk placeholder is generated as a marker and appended to the attribute information of the corresponding position of the hit checkout identifier parameter, thus marking the previously obtained hit checkout... After comparing all positions of the same character in the identifier parameter that corresponds to the return isolation identifier code, the system iterates through the positions marked with asterisks to find consecutive intervals with adjacent positions and asterisks. It then summarizes the hit checkout identifier parameter fragments corresponding to consecutive identical character positions and records the character length of these consecutive identical fragments. The extracted character length is compared with a pre-set overlap length threshold, which is obtained by statistically analyzing the minimum number of characters in the average repeated part of the identifier code in erroneous return cases over the past 24 months. For example, if the calculated overlap length threshold is 4 characters, and for a consecutive identical fragment summarized from a comparison, if it contains 5 consecutive equal characters, and the length 5 is greater than the previously obtained overlap length threshold 4, then the fragment is determined to be a high-risk obfuscation feature. Thus, the hit checkout identifier parameters with such overlapping character fragments are extracted, and their complete strings are appended to a specific removal array list. After iterating through and processing all cached parameters, an abnormal inventory removal list is formed.
[0025] The steps for obtaining a normal outbound sequence are as follows: Each starch outbound batch is compared to see if the outbound identifier parameter of the current node exists in the abnormal inventory removal list. The outbound identifier parameters of the current node that exist in the abnormal inventory removal list are deleted, and the outbound identifier parameters of the current node that do not exist in the abnormal inventory removal list are retained. The retained outbound identifier parameters of the current node are then sequentially spliced and arranged according to the original outbound order in the starch outbound batch to form a normal outbound sequence.
[0026] Specifically, the process involves comparing each starch outbound batch to ensure that the outbound identifier parameter for the current node exists within the previously obtained abnormal inventory removal list. All initial outbound data for that batch is reloaded, and the outbound identifier parameter for the current node bound to each outbound record is extracted. A global search loop with an exact matching algorithm is initiated, using the extracted outbound identifier parameter as a search keyword. This keyword is then input into the removal array of the previously obtained abnormal inventory removal list for existence comparison. If a completely matching item is found in the removal array, it is determined that the keyword exists within the abnormal inventory removal list. In cases where it is determined to exist, a memory data cleanup command is triggered, completely removing the successfully matched outbound identifier parameter and its associated pending outbound details from the batch sending queue. In other words, the outbound identifier parameter for the current node existing within the previously obtained abnormal inventory removal list is deleted. Conversely, if no matching item is found after traversing and comparing the removal array, it is determined that the keyword does not exist. Bypassing the deletion process, retain the outbound identifier parameters of the current node that are not present in the previously obtained abnormal inventory screening list. For example, if the batch contains identifiers CK001, CK002, and CK003, and CK002 is found to be in the abnormal inventory screening list, then delete CK002 and retain only CK001 and CK003. Subsequently, read the entry timestamps of these retained outbound identifier parameters of the current node that were initially entered as the basis for the original outbound order within the starch outbound batch. According to the ascending order of the entry timestamps from earliest to latest, reorder the retained outbound identifier parameters of the current node, and insert specific underscores as separators between adjacent parameter strings to perform string concatenation and combination operations. That is, concatenate and organize the retained outbound identifier parameters of the current node according to the original outbound order within the starch outbound batch. For example, the retained CK001 and CK003 are combined according to time sequence into a coherent text form of CK001_CK003, forming a normal outbound sequence.
[0027] The steps for obtaining the baseline quantity for exhaustion calculation are as follows: Based on the normal outbound sequence, read the outbound timestamp and starch consumption value corresponding to each outbound record one by one, rearrange them according to the order of the outbound timestamps, filter out outbound records with duplicate outbound timestamps, correct the connection relationship of starch consumption values corresponding to missing outbound timestamps, and form an outbound consumption time sequence group. Based on the outbound consumption time series, extract the outbound timestamp difference of consecutive positions, extract the starch consumption value difference of consecutive positions, calculate the current and historical first derivative operation values, extract the historical smoothed second derivative operation values, extract the absolute inventory, parse the supplier delivery date code and convert it into the estimated delivery time, and organize the historical first derivative operation values, historical smoothed second derivative operation values, absolute inventory and estimated delivery time in the order of outbound timestamp position to form the depletion calculation base quantity.
[0028] Specifically, based on the previously formed normal outbound sequence, each business record corresponding to a specific outbound operation is extracted sequentially. The corresponding outbound timestamp and starch consumption value representing the actual usage are extracted from the attribute fields of each business record. For example, if a record has an outbound timestamp of time series value 1630000000 and a starch consumption value of 50 kg, all extracted outbound records are placed in a temporary data queue. For this temporary data queue, all records are rearranged in ascending order of outbound timestamps. After rearrangement, a comparison cursor is set to traverse adjacent record items, comparing whether the outbound timestamps of consecutive items are completely equal. If the difference between two consecutive outbound timestamps is 0, it indicates that they are duplicate records submitted concurrently at the same time. In this case, only the first record read is retained, and the remaining outbound records with duplicate timestamps are filtered out and discarded from the queue. Then, a baseline judgment value for a normal time interval is set. The gap value is obtained by retrieving tens of thousands of time interval records of adjacent outbound actions from the warehouse outbound historical archive table over the past 30 normal operating days, adding these interval values, and then dividing by the number of records to calculate the average. For example, by collecting the total time consumption of the previous month, adding them, and dividing by the total number of operations, the average time interval is calculated to be 3600 seconds. This 3600 seconds is used as the benchmark judgment value. Then, the difference between two adjacent outbound timestamps in the current queue is checked. If the difference is found to be greater than twice the benchmark judgment value, i.e., 7200 seconds, it is determined that there is a data gap caused by network packet loss. A virtual timestamp based on the midpoint of the previous and next timestamps is added to the missing position using linear interpolation. The starch consumption values of the previous and next timestamps are extracted and averaged as the virtual starch consumption value for the missing position. This interpolation filling method corrects the connection relationship of the starch consumption values corresponding to the missing outbound timestamps. Finally, these sequence data structures after deduplication filtering and gap filling are summarized to form an outbound consumption time series group.
[0029] Based on the previously obtained outbound consumption time series, a sliding read window is set up to traverse all discrete data nodes containing specific times within the time series from beginning to end. In each step of the traversal process, the data packet records of two consecutive adjacent positions are extracted. The outbound timestamp of the later position is subtracted from the outbound timestamp of the earlier position to obtain the outbound timestamp difference representing the time span. Simultaneously, the starch consumption value of the later position is subtracted from the starch consumption value of the earlier position to obtain the starch consumption value difference representing the incremental consumption value. The starch consumption value difference calculated earlier is divided by the outbound timestamp difference calculated earlier to obtain a division result representing the consumption rate per unit time. The division result corresponding to the current time node and the division results corresponding to all past historical time nodes are recorded. The first derivative values for the current and historical data are then calculated. Finally, the second derivative result, pre-calculated using a fixed smoothing filtering algorithm and stored in a dedicated field in the background database, is retrieved, and the value in that field is read. The system extracts historical smoothed second derivative values and then sends an asynchronous query request to the hardware sensor control interface at the warehouse management level to read the cumulative weight data in kilograms from the pallet weight sensors of all locations in the warehouse. This collected weight data is then used as the absolute inventory level. Next, the system reads the supplier delivery date code representing the supply cycle from the supplier registration table. This code consists of a pre-defined combination of a letter prefix and a number suffix. The system extracts the number at the end of the code string. For example, when encountering the code D05, the number 5 representing the number of days is extracted. This number is then used as the number of days, retaining the order of magnitude of days, and the estimated delivery time is calculated. Finally, a multi-dimensional data set object is set up. The data indicators obtained from the previous steps—historical first derivative values, historical smoothed second derivative values, absolute inventory level, and estimated delivery time—are aligned and bound according to the original order of their corresponding outbound timestamps. The bound related data structures are then summarized, packaged, and saved as a basic data reference table, forming the exhaustion calculation baseline.
[0030] The steps to obtain the buffer exhaustion crisis value are as follows: Based on the depletion calculation baseline, the absolute inventory level, estimated delivery time, current first derivative value, previous period's first derivative value, previous period's smoothed second derivative value, and response time constant are extracted to calculate the buffer depletion crisis value. The calculation formula is as follows: ; and , , , ,in, To buffer the exhaustion crisis value, This refers to absolute inventory levels. To estimate delivery time, Let be the value of the first derivative operation at time point t. This represents the value of the first derivative of the previous period corresponding to the (t-1)th time point. Let be the value of the smoothed second derivative at time point t. The value of the smoothed second derivative of the previous period corresponding to the (t-1)th time point. Let be the dynamic smoothing adjustment coefficient corresponding to the t-th time point. This represents the starch consumption value at time point t. This represents the starch consumption value at time point t-1. This represents the starch consumption value at time point t-2. Let t be the timestamp of the outbound shipment at the t-th time point. This is the outbound timestamp corresponding to the (t-1)th time point. This is the outbound timestamp corresponding to the (t-2)th time point. For the response time constant, This is the position number at the current time point. This is the position number at the previous time point. These are the position numbers of the two previous time points.
[0031] Specifically, the formula for calculating the buffer depletion crisis value reflects the dynamic decay of potato starch under historical consumption and current trends by introducing a combination of dynamic smoothing adjustment coefficients and first and second derivatives. It integrates the rate of change in weight consumption, the acceleration of change, and the supplier's delayed replenishment time into a single mathematical framework. By superimposing a smoothing second derivative and a product factor of delivery time into the denominator, the internal denominator... It perfectly matches the time span of the two first derivative center points, ensuring the accuracy of the acceleration dimension and amplifying the crisis warning level when accelerating consumption in advance, avoiding triggering replenishment actions only when inventory is depleted. Absolute inventory The acquisition process involves real-time collection of gravity sensor data from the bottom of all shelves storing potato starch in the warehouse via a background IoT weighing network. This process collects the current load-bearing weight (in kilograms) of all shelves, sums these values, and then subtracts the unusable weight (either locked or pre-ordered for other production lines) from the warehouse ledger. This yields the net weight that can be used for subsequent normal outbound operations. For example, if the total collected weight is 5200 kg, and 200 kg is found to be unusable due to loss or being locked, subtracting 200 kg from 5200 kg gives 5000 kg. This is used to obtain the final absolute inventory level. It is 5000, and its dimensionless unit is kilogram; Estimated delivery time The steps for obtaining this information are as follows: First, the delivery date code field from the supplier basic information table in the enterprise's supply chain materials management backend is retrieved from the specified starch supplier's file. Then, using preset character truncation rules, the letter prefix is removed from the code, retaining only the subsequent numerical portion. The extracted pure numerical portion is considered as the unit of days representing the supply cycle. To maintain consistency with the time unit within the unified calculation framework, this number of days is used as the base value for the delivery duration. For example, if a supplier's delivery date code is D05, removing the letter D representing the grade classification and retaining the pure number 05, converting it to an integer, gives 5. This is used to ultimately determine the estimated delivery duration. It is 5, and its unit of measurement is day; The current first derivative operation value The steps to obtain the value are as follows: extract the difference in total starch consumption between the current time point and the previous time point, divide it by the number of natural days between these two time points, and thus calculate the average daily consumption rate within the current period. For example, if the query shows that the consumption increase between the current time point and the previous time point is 150 kg, and the interval between these two time points is 1 day, then dividing 150 kg by 1 day gives the current rate value of 150. This value is used to determine the current first derivative calculation value. It is 150, and its unit of measurement is kilograms per day; The numerical value of the first derivative operation in the previous period The steps for obtaining the first derivative are as follows: using the same differentiation logic as for obtaining the current first derivative, for example, if the record shows that the consumption increase between the previous two time points is 100 kg, and the time interval is also 1 day, then dividing 100 kg by 1 day gives the historical rate value of 100. This value is then used to determine the first derivative value for the previous period. It is 100, and its dimensionless unit is kilograms per day; Numerical operation of smooth second derivative The steps for obtaining the rough acceleration are as follows: Based on the difference between the calculated value of the current first derivative and the value of the first derivative in the previous period, divide the difference by the time span between these two rate center points to obtain the current rough acceleration. Then, use the dynamic smoothing adjustment coefficient to perform a weighted fusion calculation on this rough acceleration and the historically inherited smoothed second derivative. For example, if the current rough acceleration is 50, multiply it by the adjustment coefficient 0.4 to get 20, add the historical smoothing result of 20 and multiply it by the residual weight 0.6 to get 12, and add the two to get 32. This determines the value of the smoothed second derivative. It is 32; The numerical value of the smoothed second derivative in the previous period The steps to obtain the value are as follows: access the second derivative smoothing value field stored in the historical calculation cache database of the business backend at the end of the previous calculation cycle. For example, if the historical record table is read and the acceleration smoothing value stored in the previous calculation cycle is found to be 20, the smoothing second derivative calculation value of the previous cycle can be determined. It is 20; Dynamic smoothing adjustment coefficient The steps for obtaining the weighting factor are as follows: Extract the difference between the current outbound timestamp and the previous outbound timestamp; divide this difference by the set response time constant; negate the result and substitute it into the natural exponential function for calculation; finally, subtract the result of the natural exponential function from the number 1 to obtain a dimensionless weighting percentage between 0 and 1. For example, if the timestamp difference is 1 and the constant is 2, the division and negation result is -0.5, which is approximately 0.6065 after the exponential function calculation. Subtracting 0.6065 from 1 yields 0.3935, approximately 0.4, which is used to determine the dynamic smoothing adjustment coefficient. It is 0.4; Starch consumption value at time point t The steps for obtaining the data are as follows: In the previously obtained outbound consumption time series group, search for the associated cumulative starch consumption weight index data according to the position number of the current time point. Retrieve the historical cumulative total weight of shipments at the end of the current time period from the warehouse outbound flow statistics table. For example, if the log records show that at the end of the current day, with the accumulation of outbound operations, the historical cumulative outbound total reached 1250 kg, then extract and determine the starch consumption value corresponding to the t-th time point. It is 1250, and its dimensionless unit is kilogram; Starch consumption value at time point t-1 The steps for obtaining the data are as follows: In the outbound consumption time series group, backtrack by the position number of the previous time point to find the corresponding historical cumulative starch consumption weight data. For example, if the record shows that at the end of the previous working day, the system's historical cumulative outbound total was 1100 kg, then extract and determine the starch consumption value corresponding to the (t-1)th time point. It is 1100, and its dimensionless unit is kilogram; Starch consumption value at time point t-2 The steps for obtaining the data are as follows: Continue tracing back through the outbound consumption time series group according to the position number of the two previous time points to find the corresponding historical cumulative starch consumption weight data. For example, by checking earlier ledger records, it can be found that the historical cumulative outbound volume at the end of that earlier working day was 1000 kg. Based on this, the starch consumption value corresponding to the (t-2)th time point can be extracted and determined. It is 1000, and its dimensionless unit is kilogram; The outbound timestamp corresponding to the t-th time point The steps for obtaining the data are as follows: read the time marker information bound within the outbound consumption time series group. For example, if the current outbound cycle is exactly the 10th day of continuous operation this month, then extract the number 10 as the current measurement time coordinate, and use this to determine the outbound timestamp corresponding to the t-th time point. It is 10, and its unit of measurement is day; The outbound timestamp corresponding to the (t-1)th time point The steps for obtaining the data are as follows: First, read the time stamp information bound within the outbound consumption time series group. Then, trace back to the corresponding natural day number recorded by the log system when the previous outbound action occurred. For example, if the current operation is on day 10, and the previous outbound record occurred on day 9, then extract the number 9 as the previous measurement time coordinate to determine the outbound timestamp corresponding to the (t-1)th time point. It is 9, and its unit of measurement is day; Response time constant The steps to obtain this data are as follows: Retrieve internal workflow and approval time data from the initiation of a purchase request to the supplier's actual confirmation of shipment when the company faces a material shortage warning over the past 12 months. Calculate the total time spent on all replenishment approval processes and divide it by the number of transactions to obtain the average delay in days. Use this average delay in days as a fixed constant to measure the degree of procurement response lag. For example, by summing and averaging the processing times of the past 100 purchase requests, the average approval delay is found to be 2 days, thus directly determining the response time constant. It is 2, and its unit of measurement is day; Calculations based on parameters: Substitute the previously obtained parameters into the final calculation formula in sequence for deduction; The first step is to calculate the additional second-order penalty term within the denominator and substitute it into... 32 kg / day 2 as well as For 5 days, get kg / day; The second step is to calculate the sum of the velocity and acceleration penalty terms within the parentheses, and then apply the first derivative to the calculated value. Adding the previously calculated 80 kg / day to 150 kg / day, we get... kg / day; The third step is to calculate the overall denominator to obtain the estimated total consumption during the delivery period, and then calculate the estimated delivery time. Multiplying 5 days by the sum in parentheses (230 kg / day) gives the result. kilogram; The fourth step is to calculate the final buffer depletion crisis value, taking the absolute inventory level as an example. Dividing 5000 kg by the previously obtained overall denominator of 1150 kg, we get... ; The results indicate that the current remaining absolute inventory of potato starch, considering the combined effects of accelerated future consumption and delayed supplier deliveries, can theoretically support a safe operating cycle multiple of 4.348. A value greater than the safe operating threshold of 1.0 indicates that the current inventory is still in a healthy range with sufficient reserves and little risk of supply disruption, and there is no need to immediately initiate an emergency procurement process. However, if this value continues to decline with a sharp increase in outbound consumption or an extension of the replenishment cycle, or even falls below or equal to the safe operating threshold of 1.0, it means that the buffer inventory is about to be completely depleted, and an automatic procurement alarm must be triggered immediately to prevent a production stoppage.
[0032] The steps to obtain an emergency procurement dispatch order are as follows: Read the regular replenishment trigger instruction sending queue corresponding to the normal waiting-to-outbound sequence, extract the safety response critical coefficient, compare the buffer exhaustion crisis value with the safety response critical coefficient one by one, locate the normal waiting-to-outbound sequence that meets the less than or equal to relationship, freeze the regular replenishment trigger instruction sending status corresponding to the normal waiting-to-outbound sequence that meets the less than or equal to relationship, write the stop sending flag and stop sending time flag, and form the replenishment stop sending execution result; Based on the replenishment suspension execution results, extract the normal pending outbound sequence with the stop sending mark, and parse the outbound identifier parameter, pending outbound quantity mark, inventory occupancy mark and node position mark in the normal pending outbound sequence one by one. Filter outbound identifier parameters where the pending outbound quantity mark is greater than the inventory occupancy mark, extract the gap position and gap quantity corresponding to the outbound identifier parameter, organize the out-of-stock identifier parameters according to the node position mark and the gap sequence, and generate an emergency procurement scheduling instruction.
[0033] Specifically, the system reads the regular replenishment trigger command sending queue corresponding to the normal outbound sequence, retrieves the set of regular replenishment commands currently in the queue waiting to be sent from the backend database. This set contains the initial replenishment requests bound to each outbound task. A safety response critical coefficient is extracted. This critical coefficient is calculated by collecting 50 historical critical values from the day before a potato starch supply disruption or production stoppage at the storage center over the past 36 months. The sum of these 50 historical critical values is then divided by the total number of records (50) to obtain the average value. For example, if the sum is 60, dividing by 50 gives an average of 1.2. This average of 1.2 is used as the safety response critical coefficient. A loop read logic is set up to extract the previously obtained buffer exhaustion crisis values and compare each buffer exhaustion crisis value with the calculated safety response critical coefficient of 1.2 to determine if the specific value of the buffer exhaustion crisis value is less than or equal to 1. .2. For example, if the calculated buffer exhaustion crisis value is 1.1, then 1.1 is less than 1.2, and the condition judgment is true. At this time, locate the normal outbound sequence that satisfies the less than or equal to relationship, extract the memory address pointer of the sequence in the sending queue, and call the process control interface to perform a suspension operation on the task sending thread pointed to by the memory address pointer. That is, freeze the regular replenishment trigger instruction sending status corresponding to the normal outbound sequence that satisfies the less than or equal to relationship, so that it no longer pushes ordinary purchase orders to suppliers according to the normal logic. After the freezing is completed, write a specific stop sending flag consisting of the letters STOP into the attribute field of the sequence, call the underlying operating system clock interface to obtain the current timestamp accurate to the second, for example, if the timestamp is obtained as 1650000000, append this number as the stop sending time flag and store it after the above stop sending flag. Summarize all processed sequence attribute data to form the replenishment stop sending execution result.
[0034] Based on the previously generated replenishment stop execution result, iterate through all memory queue items associated with this execution result, check whether the attribute field of each item contains the previously written STOP flag, extract the normal pending outbound sequence with the stop sending flag, and put these intercepted sequences into a dedicated emergency processing buffer. Parse each normal pending outbound sequence in this buffer, extracting the outbound identifier parameter as a unique identification code through string decomposition, reading the pending outbound quantity flag representing the total weight required by the customer's current order, reading the inventory occupancy flag representing the pre-allocated weight that can be allocated to this order in the current warehouse, and reading the node location flag representing the physical code of the warehouse where this transaction occurred. For example, if the parsed outbound identifier parameter is CK998, the pending outbound quantity flag is 3000 kg, the inventory occupancy flag is 1000 kg, and the node location flag is WH02, then... The quantity marker and the inventory occupancy marker are compared numerically. The outbound identifier parameter is selected if the quantity marker is greater than the inventory occupancy marker. For example, if 3000 kg is greater than 1000 kg, the parameter CK998 is selected. For the selected items, the gap position corresponding to the outbound identifier parameter is extracted. That is, the node position marker WH02 read earlier is used as the gap position. The difference between the quantity marker to be shipped and the inventory occupancy marker is calculated. This difference is used as the gap quantity. For example, 3000 minus 1000 gives a gap quantity of 2000 kg. Then, the nodes are grouped according to the first letter of the node position markers read earlier. Within the same group, the gaps are sorted in descending order of the gap quantity as the gap priority order. The outbound identifier parameters selected earlier are organized as the stockout identifier parameters. The organized records are packaged and spliced into a continuous message text with a specific operation terminal to generate an emergency procurement scheduling instruction.
[0035] The steps to obtain the pre-allocation replenishment mapping table are as follows: The node location marker, stockout indicator parameter, shortage quantity, replenishment arrival location, and scheduling order marker in each emergency procurement scheduling instruction are analyzed one by one. The node location marker is written into the warehouse node field of the mapping table, the stockout indicator parameter is written into the stockout object field of the mapping table, the shortage quantity is written into the replenishment quantity field of the mapping table, the replenishment arrival location is written into the receiving location field of the mapping table, and the scheduling order marker is written into the pre-allocation order field of the mapping table to form a pre-allocation replenishment mapping table.
[0036] Specifically, the process involves parsing each node location marker, stockout indicator parameter, shortage quantity, replenishment arrival location, and scheduling priority marker in the previously generated emergency procurement scheduling instructions. It reads each line of data from the previously generated message text, dividing each line into multiple independent data blocks according to the preset comma separator. From these blocks, it extracts the node location marker representing the warehouse area number, extracts the stockout indicator parameter representing the specific stockout order number, obtains the shortage quantity representing the shortage weight, parses the supplier unloading platform code specified in the text as the replenishment arrival location, and reads the previously sorted integer sequence number as the scheduling priority marker. For example, if the node location marker is WH02, the stockout indicator parameter is CK998, the shortage quantity is 2000, the replenishment arrival location is GATE05, and the scheduling priority marker is... Let's denote it as 1. Create a brand new blank two-dimensional data table in the relational database, define the corresponding column names, write the node position marker WH02 obtained from the previous parsing into the warehouse node field of the mapping table in text format, write the stockout identifier parameter CK998 obtained from the previous parsing into the stockout object field of the mapping table, write the gap quantity 2000 obtained from the previous parsing into the replenishment quantity field of the mapping table in floating-point format, write the replenishment arrival location GATE05 obtained from the previous parsing into the receiving location field of the mapping table, and write the scheduling order marker 1 obtained from the previous parsing into the pre-allocation order field of the mapping table in integer format. Traverse all data rows in the instruction and repeat the above row and column mapping writing operation to ensure that each parameter in the instruction is placed in the corresponding data list cell, forming a pre-allocation replenishment mapping table.
Claims
1. A potato starch food mapping and labeling system, characterized in that, The system includes: The starch return coding mapping module is used to read the starch packaging identification barcode and the moisture-induced clumping return character of potato starch food according to the input parameters of the storage node, obtain the return isolation identification code, call the set hash function to perform hash mapping operation on the return isolation identification code, and obtain the anti-penetration bit array identifier; The starch order matching and verification module is used to read the outbound identifier parameter of the current node according to the starch outbound batch, perform a bit-by-bit matching comparison operation between the outbound identifier parameter and the anti-penetration bit array identifier, obtain an abnormal inventory screening list, and merge the outbound identifier parameters that are not in the abnormal inventory screening list to generate a normal outbound sequence. The starch consumption rate determination module is used to read the normal outbound sequence, obtain the depletion calculation base, and calculate the buffer depletion crisis value based on the depletion calculation base. The starch procurement trigger allocation module is used to extract the stockout identifier parameter to generate an emergency procurement scheduling instruction when the buffer depletion crisis value is less than or equal to the safety response critical coefficient, and to obtain the pre-allocated replenishment mapping table according to the emergency procurement scheduling instruction.
2. The potato starch food mapping and labeling system according to claim 1, characterized in that, The steps for obtaining the anti-penetration bit array identifier are as follows: The system locates the potato starch food record corresponding to the input parameters of the storage node, reads the starch packaging identification barcode in the potato starch food record, reads the moisture-induced clumping return character in the potato starch food record, and connects the starch packaging identification barcode to the front or back of the moisture-induced clumping return character according to the preset splicing order to form a return isolation identification code. Extract each character from the return isolation identifier code, record the character position of each character in the return isolation identifier code, and convert the character value, character position, and node identifier in the warehouse node input parameter into index values in sequence to form a specific position coordinate parameter; Retrieve the initial bit array corresponding to the input parameters of the storage node, verify the landing position of the specific position coordinate parameter in the initial bit array one by one, write the associated identifier bit value corresponding to the preset constant for each landing position, retain the position state in the initial bit array that has not been written with the preset constant, and aggregate and combine the preset constant and the initial bit array according to the writing result of the specific position coordinate parameter to form the anti-penetration bit array identifier.
3. The potato starch food mapping and labeling system according to claim 1, characterized in that, The steps for obtaining the abnormal inventory removal list are as follows: Read the outbound identifier parameter corresponding to the current node of each outbound record in the starch outbound batch one by one, extract each identifier character in the outbound identifier parameter of the current node, extract each associated identifier bit value in the anti-penetration bit array identifier, compare the identifier character of the outbound identifier parameter of the current node with the associated identifier bit value of the anti-penetration bit array identifier bit by bit according to the same bit order, record the outbound identifier parameter of the current node whose associated identifier bit value is matched, and form the hit verification outbound identifier parameter; Extract the character content from the hit verification outbound identifier parameter one by one, extract the corresponding character content from the return isolation identifier code one by one, perform character consistency verification according to the unified character position order, mark the character positions in the hit verification outbound identifier parameter that are the same as the return isolation identifier code, summarize the hit verification outbound identifier parameter segments corresponding to consecutive identical character positions, extract the hit verification outbound identifier parameters with overlapping character segments, and form an abnormal inventory screening list.
4. The potato starch food mapping and labeling system according to claim 1, characterized in that, The steps for obtaining the normal outbound sequence are as follows: Each starch outbound batch is compared to see if the outbound identifier parameter of the current node exists in the abnormal inventory removal list. The outbound identifier parameters of the current node that exist in the abnormal inventory removal list are deleted, and the outbound identifier parameters of the current node that do not exist in the abnormal inventory removal list are retained. The retained outbound identifier parameters of the current node are then sequentially assembled and arranged according to the original outbound order in the starch outbound batch to form a normal outbound sequence.
5. The potato starch food mapping and labeling system according to claim 1, characterized in that, The steps for obtaining the exhaustion calculation baseline are as follows: According to the normal outbound sequence, the outbound timestamp and starch consumption value corresponding to each outbound record are read one by one, and the records are rearranged according to the order of the outbound timestamps. Outbound records with duplicate outbound timestamps are filtered out, and the connection relationship of starch consumption values corresponding to missing outbound timestamps is corrected to form an outbound consumption time sequence group. Based on the outbound consumption time series, extract the outbound timestamp difference of consecutive positions, extract the starch consumption value difference of consecutive positions, calculate the current and historical first derivative operation values, extract the historical smoothed second derivative operation values, extract the absolute inventory, parse the supplier delivery date code and convert it into the estimated delivery time, and organize the historical first derivative operation values, historical smoothed second derivative operation values, absolute inventory and estimated delivery time in the order of outbound timestamp position to form the depletion calculation base quantity.
6. The potato starch food mapping and labeling system according to claim 1, characterized in that, The steps for obtaining the buffer exhaustion crisis value are as follows: Based on the exhaustion calculation baseline, the absolute inventory, estimated delivery time, current first derivative calculation value, previous period first derivative calculation value, previous period smoothed second derivative calculation value, and response time constant are extracted to calculate the buffer exhaustion crisis value.
7. The potato starch food mapping and labeling system according to claim 1, characterized in that, The steps for obtaining the emergency procurement dispatch instruction are as follows: Read the regular replenishment trigger instruction sending queue corresponding to the normal waiting-to-outbound sequence, extract the safety response critical coefficient, compare the size relationship between the buffer exhaustion crisis value and the safety response critical coefficient one by one, locate the normal waiting-to-outbound sequence that satisfies the relationship of less than or equal to, freeze the regular replenishment trigger instruction sending status corresponding to the normal waiting-to-outbound sequence that satisfies the relationship of less than or equal to, write the stop sending flag and stop sending time flag, and form the replenishment stop sending execution result; Based on the replenishment stop execution result, extract the normal pending outbound sequence with the stop sending mark, parse the outbound identifier parameter, pending outbound quantity mark, inventory occupancy mark and node position mark in the normal pending outbound sequence one by one, filter outbound identifier parameters where the pending outbound quantity mark is greater than the inventory occupancy mark, extract the gap position and gap quantity corresponding to the outbound identifier parameter, organize the out-of-stock identifier parameter according to the node position mark and the gap sequence, and generate an emergency procurement scheduling instruction.
8. The potato starch food mapping and labeling system according to claim 1, characterized in that, The steps for obtaining the pre-allocated replenishment mapping table are as follows: The node location marker, stockout indicator parameter, shortage quantity, replenishment arrival location, and scheduling order marker in the emergency procurement scheduling instruction are analyzed one by one. The node location marker is written into the warehouse node field of the mapping table, the stockout indicator parameter is written into the stockout object field of the mapping table, the shortage quantity is written into the replenishment quantity field of the mapping table, the replenishment arrival location is written into the receiving location field of the mapping table, and the scheduling order marker is written into the pre-allocation order field of the mapping table to form a pre-allocation replenishment mapping table.
9. The food coding method of the potato starch food mapping and labeling system according to any one of claims 1-8, characterized in that, Includes the following steps: Based on the input parameters of the storage node, read the starch packaging identification barcode and the character for returning goods due to moisture and clumping on the potato starch food, obtain the return isolation identification code, call the set hash function to perform a hash mapping operation on the return isolation identification code, and obtain the anti-penetration bit array identifier; Based on the starch outbound batch, read the outbound identifier parameter of the current node, perform a bit-by-bit matching comparison operation with the anti-penetration bit array identifier, obtain the abnormal inventory removal list, and merge the outbound identifier parameters that are not in the abnormal inventory removal list to generate a normal outbound sequence. Read the normal outbound sequence, obtain the exhaustion calculation base, and calculate the buffer exhaustion crisis value based on the exhaustion calculation base. When the buffer exhaustion crisis value is less than or equal to the safety response critical coefficient, the stockout identifier parameter is extracted to generate an emergency procurement scheduling instruction, and the pre-allocated replenishment mapping table is obtained according to the emergency procurement scheduling instruction.