Chinese patent medicine intelligent production data management method and system

By collecting and processing grinding, stirring and honey excitation data in the production process of Chinese patent medicines, the problem of insufficient utilization of production data in the existing technology is solved, and intelligent management and quality assurance of the production process of Chinese patent medicines are realized.

CN118735338APending Publication Date: 2024-10-01BEIJING TONGRENTANG CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410817184.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technology fails to effectively utilize and manage data in the production process during the production of proprietary Chinese medicines, resulting in insufficient utilization of production data and difficulty in timely adjustment and ensuring the reliability of production.

Method used

By acquiring data during the grinding and mixing process, we generate grinding temperature risk measurement values ​​and mixing qualification judgments to determine whether the honey incentive change data matches the original requirements. If not, control will be carried out to ensure data collection and processing during the production process and achieve Intelligent management of Chinese patent medicine production.

Benefits of technology

It achieves efficient management of data in the production process of Chinese patent medicines, detects and adjusts abnormalities in a timely manner, ensures the reliability and quality of production, ensures that honey meets requirements, and avoids problems due to deterioration or failure to meet requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735338A_ABST
    Figure CN118735338A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent production data acquisition, and relates to a Chinese patent medicine intelligent production data management method and system.The method comprises the steps that thermal imaging images generated when a to-be-ground raw material is ground in a preset grinding area in all sampling time periods in a preset detection time period are obtained, and a grinding temperature risk measurement value is generated; if it is judged that grinding is not abnormal, raw material stirring and mixing data are obtained, and whether stirring in the stirring tank is qualified or not is judged; if it is judged that stirring is qualified, obtaining original requirement data of to-be-fed honey, and obtaining honey excitation change data of the to-be-fed honey; and judging whether the original requirement data is matched or not, if not, generating honey requirement difference data, sending the honey difference data to a honey management main body, and performing regulation and control by the honey management main body. According to the method, the problem that the honey is deteriorated or does not meet the honey requirement due to storage can be found in time, and the reliability of subsequent pelleting is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent production data collection, and in particular to a method and system for intelligent production data management of traditional Chinese medicines. Background Art

[0002] Traditional Chinese patent medicine dosage forms include decoction, pills, paste, powder, dew, pill, wine, and tablets. Decoction and pills are the most commonly used dosage forms. As one of the most commonly used dosage forms, pills have complex production processes, particular medication, and cumbersome procedures. Therefore, data management and monitoring are crucial for the production of pills.

[0003] At present, some technologies related to the intelligent production of Chinese patent medicines are disclosed in the prior art, such as the invention patent with publication number CN117476165A, which discloses a method and system for intelligent management of Chinese patent medicines, including: iteratively splitting the clusters formed by all Chinese patent medicines by weighted distance, and uniformly managing the Chinese patent medicines in the final clusters. The present invention improves the classification accuracy of Chinese patent medicines by combining weighted distance to split the clusters. By iteratively splitting the clusters, it is possible to achieve unified management of Chinese patent medicines in the same cluster, and classify and store Chinese patent medicines with similar conditions, which is convenient for searching and storing.

[0004] Although the technical solution in the above patent document can manage data in the classification of medicinal materials, ensure that each Chinese patent medicine is in good storage conditions, and improve the management efficiency of Chinese patent medicines and medicinal materials, it is only the preparatory work before formal production and has certain limitations. It has similar problems as other solutions in the prior art, and all of them have the problem of not efficiently utilizing the data generated in the production process. Summary of the invention

[0005] Based on this, it is necessary to provide an intelligent production data management method and system for traditional Chinese medicine that can efficiently collect and process production process data, make timely adjustments to production based on the collected and processed production process data, and ensure the reliable production of traditional Chinese medicine finger pills in response to the above-mentioned technical problems.

[0006] The technical solution of the present invention is as follows:

[0007] A method for intelligent production data management of Chinese patent medicines, the method comprising:

[0008] Acquire a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, generate a grinding temperature risk measurement value according to the thermal imaging image, and determine whether the grinding is abnormal according to the grinding temperature risk measurement value, wherein there are multiple sampling time periods within the preset monitoring time period;

[0009] If it is determined that the grinding is not abnormal, then obtaining the raw material stirring and mixing data in the stirring tank at the stirring detection time point, and judging whether the stirring in the stirring tank is qualified according to the raw material stirring and mixing data;

[0010] If it is determined that the stirring in the stirring tank is qualified, the original requirement data of the honey to be put in is obtained, an external test stimulus is applied to the honey to be put in, and the honey stimulus change data of the honey to be put in is obtained;

[0011] Determine whether the honey incentive change data matches the original requirement data. If not, generate honey requirement difference data, send the honey difference data to the honey management body, and the honey management body will regulate it. If it is determined to be matched, generate a honey data qualified instruction, and instruct the production equipment to make pills according to the honey data qualified instruction.

[0012] Optionally, obtaining a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, generating a grinding temperature risk measurement value according to the thermal imaging image, and judging whether the grinding is abnormal according to the grinding temperature risk measurement value, specifically includes:

[0013] Acquire a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, wherein the preset detection time period is preset, the number of the sampling time periods is N, n sampling time points are set in each sampling time period, and the n sampling time points correspond to n thermal imaging images;

[0014] Extracting the highest imaging temperatures in n thermal imaging images corresponding to n sampling time points in N sampling time periods respectively, wherein one sampling time period corresponds to n thermal imaging images, multiple actual imaging temperatures can be detected in each thermal imaging image, one thermal imaging image corresponds to one highest imaging temperature, and the maximum temperature among the actual imaging temperatures in one thermal imaging image is the highest imaging temperature;

[0015] Filter out n sampling time periods corresponding to the sampling time periods and having the highest imaging temperatures all lower than the risky grinding temperature from each of the sampling time periods, record them as compliant sampling periods, and count the number of compliant sampling periods, record them as the number of compliant time periods, wherein the risky grinding temperature is pre-stored, and the remaining sampling time period after subtracting each of the compliant sampling periods from the N sampling time periods is the risky sampling period;

[0016] Screen out the thermal imaging images with a temperature greater than or equal to the risk grinding temperature in each of the risk sampling sections, record them as risk thermal images, and count the number of the risk thermal images, record them as the number of risk images;

[0017] Respectively delineate the risk temperature regions in the risk thermal images in each of the risk sampling segments, where the temperature is greater than the risk grinding temperature, and calculate the risk region areas of the risk temperature regions, and calculate the temperature anomaly risk parameters of each of the risk sampling segments according to the risk region areas corresponding to each of the risk thermal images, wherein the image area of ​​each of the risk thermal images is constant, and one of the risk sampling segments corresponds to one temperature anomaly risk parameter;

[0018] Filter out the temperature abnormality risk parameters that are greater than or equal to the temperature safety threshold parameter from the temperature abnormality risk parameters arranged in sequence, and whose continuous intervals reach a preset continuous number, and record them as warning temperature risk parameters Q, wherein the temperature safety threshold parameter is preset, and the number of the warning temperature risk parameters is set as the warning risk number;

[0019] According to the number of risk images, the number of sampling time periods, the number of compliance time periods, each temperature anomaly risk parameter, the number of warning risks, and each alarm temperature risk parameter, the grinding temperature risk measurement value is calculated based on the following formula:

[0020]

[0021] Wherein, Y is the grinding temperature risk measurement value; k1 is the number of risk images; N is the number of sampling time periods; C is the number of compliance time periods; α is the first proportionality coefficient; P(x) is the xth temperature anomaly risk parameter; β is the second proportionality coefficient; k2 is the number of warning risks; Q(j) is the jth warning temperature risk parameter;

[0022] And determine whether the grinding temperature risk measurement value is greater than or equal to a pre-stored standard risk measurement value. If it is determined to be yes, it is determined that grinding abnormality exists.

[0023] Optionally, the step of setting the preset detection time period specifically includes:

[0024] In response to the raw material to be ground being put into the preset grinding area, collecting a current raw material image of the raw material to be ground;

[0025] Identifying the type of the raw material to be ground according to the current raw material image;

[0026] The pre-stored risk grinding temperature ta, temperature safety threshold parameter and standard risk measurement value are obtained according to the type of raw material.

[0027] Optionally, the raw material stirring and mixing data includes:

[0028] If it is determined that the grinding is not abnormal, then the raw material stirring and mixing data in the stirring tank at the stirring detection time point is obtained, and whether the stirring in the stirring tank is qualified is determined according to the raw material stirring and mixing data; specifically including:

[0029] If it is determined that the grinding is not abnormal, the total weight of each raw material to be mixed and the mixed raw material of each raw material to be mixed put into the mixing tank is obtained;

[0030] Generate an estimated stirring time according to the raw material to be mixed and the total weight of the mixed raw material, and generate a stirring detection time point according to the estimated stirring time and a stirring detection ratio, wherein the stirring detection ratio is preset;

[0031] At the stirring detection time point, sampling detection is performed on a first detection area in the stirring tank and first stirring area data is obtained, and sampling detection is performed on a second detection area and second stirring area data is obtained, wherein the first detection area is a pre-determined tank bottom area of ​​the stirring tank, and the second detection area is a pre-determined tank middle area of ​​the stirring tank;

[0032] Generate a first raw material mixing ratio of each of the raw materials to be mixed according to the first stirring region data, and generate a second raw material mixing ratio of each of the raw materials to be mixed according to the second stirring region data;

[0033] Calculating a mixing ratio difference between the first raw material mixing ratio and the second raw material mixing ratio, and determining whether the mixing ratio difference is greater than or equal to a preset standard ratio difference;

[0034] If the judgment is yes, it is determined that the stirring in the stirring tank is unqualified, then a stirring adjustment instruction is generated and sent to the raw material stirring manager so that the stirring manager adjusts the raw materials to be mixed in the stirring tank according to the stirring adjustment instruction.

[0035] Optionally, the honey incentive change data includes actual flow rate, expected temperature of the combined honey and number of honey bubbles;

[0036] If the stirring in the stirring tank is judged to be qualified, the original required data of the honey to be put in is obtained, an external test stimulus is applied to the honey to be put in, and the honey stimulus change data of the honey to be put in is obtained; specifically including:

[0037] If the stirring in the stirring tank is judged to be qualified, the original required data of the honey to be put in is obtained, the honey to be tested in the honey to be put in is extracted, and the honey to be tested is put into the first excitation position, and the actual flow time of the honey to be tested flowing to the second excitation position is detected, wherein the first excitation position and the second excitation position are preset, and the distance from the first excitation position to the second excitation position is the preset excitation distance;

[0038] generating an actual flow velocity according to the actual flow time and the preset excitation distance;

[0039] Detecting the initial honey temperature of the honey to be tested at the first excitation position and the end point honey temperature at the second excitation position, and generating an estimated combined honey temperature according to the end point honey temperature and the initial honey temperature;

[0040] A preset honey stirring device is controlled to stir the honey to be tested for a preset stirring time, an estimated stirring image of the honey to be tested is collected, and the number of honey bubbles is extracted according to the estimated stirring image.

[0041] Optionally, the original required data includes a flow velocity range, a mixed honey temperature range, and a honey bubble quantity range;

[0042] Determine whether the honey incentive change data matches the original requirement data. If not, generate honey requirement difference data, send the honey difference data to the honey management subject, and the honey management subject regulates it; if it is determined to match, generate a honey data qualified instruction, and instruct the production equipment to make pills according to the honey data qualified instruction; specifically include:

[0043] Determine whether the actual flow speed is within the flow speed range, whether the expected mixed medicine honey temperature is within the mixed medicine honey temperature range, and whether the number of honey bubbles is within the honey bubble number range;

[0044] If the judgment is no, it is judged that there is no match, then honey requirement difference data is generated, and the honey difference data is sent to the honey management subject, and the honey management subject performs regulation;

[0045] If the judgment is yes, it is judged to be a match, then a honey data qualified instruction is generated, and the production equipment is instructed to make pills according to the honey data qualified instruction.

[0046] Optionally, a Chinese patent medicine intelligent production data management system is also provided, the system comprising:

[0047] a grinding temperature judgment module, for obtaining a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, generating a grinding temperature risk measurement value according to the thermal imaging image, and judging whether the grinding is abnormal according to the grinding temperature risk measurement value, wherein the preset monitoring time period has multiple sampling time periods;

[0048] A stirring data judgment module is used to obtain the stirring and mixing data of the raw materials in the stirring tank at the stirring detection time point if it is judged that the grinding is not abnormal, and judge whether the stirring in the stirring tank is qualified according to the raw material stirring and mixing data;

[0049] A honey incentive acquisition module is used to obtain original requirement data of the honey to be put in if it is judged that the stirring in the stirring tank is qualified, apply external test incentives to the honey to be put in, and obtain honey incentive change data of the honey to be put in;

[0050] The pill production judgment module is used to judge whether the honey incentive change data matches the original requirement data. If not, honey requirement difference data is generated, and the honey difference data is sent to the honey management body, which is then regulated by the honey management body. If it is judged to be matched, a honey data qualified instruction is generated, and the production equipment is instructed to make pills according to the honey data qualified instruction.

[0051] Optionally, the grinding temperature judgment module is also used for:

[0052] Acquire thermal imaging images of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, wherein the preset detection time period is preset, the number of the sampling time periods is N, n sampling time points are set in each sampling time period, and the n sampling time points correspond to n thermal imaging images; respectively extract the highest imaging temperatures in the n thermal imaging images corresponding to the n sampling time points in the N sampling time periods, wherein one sampling time period corresponds to n thermal imaging images, and multiple actual imaging temperatures can be detected in each thermal imaging image, one thermal imaging image corresponds to a highest imaging temperature, and the maximum temperature of the actual imaging temperatures in one thermal imaging image is the highest imaging temperature; select from each sampling time period the sampling time periods in which the n highest imaging temperatures corresponding to the sampling time period are all lower than the risk grinding temperature, record them as compliant sampling sections, and count the number of compliant sampling sections, record them as the number of compliant time periods, wherein the risk grinding temperature is pre-stored, and the sampling time periods remaining after subtracting each compliant sampling section from the N sampling time periods are risk sampling sections; select Select the thermal imaging images with a temperature greater than or equal to the risk grinding temperature in each risk sampling segment, record them as risk thermal images, and count the number of risk thermal images, record them as the number of risk images; respectively delineate the risk temperature areas in the risk thermal images in each risk sampling segment where the temperature is greater than the risk grinding temperature, calculate the risk area areas of the risk temperature areas, and calculate the temperature anomaly risk parameters of each risk sampling segment according to the areas of each risk area corresponding to each risk thermal image, wherein the image area of ​​each risk thermal image is constant, and one risk sampling segment corresponds to one temperature anomaly risk parameter; filter out the temperature anomaly risk parameters that are greater than or equal to the temperature safety threshold parameter from the temperature anomaly risk parameters arranged in sequence, and whose continuous intervals reach a preset continuous number, record them as the alarm temperature risk parameters Q, wherein the temperature safety threshold parameter is preset, and the number of the alarm temperature risk parameters is set as the number of warning risks; calculate the grinding temperature risk measurement value based on the following formula according to the number of risk images, the number of sampling time periods, the number of compliance time periods, each temperature anomaly risk parameter, the number of warning risks, and each alarm temperature risk parameter:

[0053]

[0054] Among them, Y is the grinding temperature risk measurement value; k1 is the number of risk images; N is the number of sampling time periods; C is the number of compliant time periods; α is the first proportional coefficient; P(x) is the xth temperature anomaly risk parameter; β is the second proportional coefficient; k2 is the number of warning risks; Q(j) is the jth warning temperature risk parameter; and it is determined whether the grinding temperature risk measurement value is greater than or equal to the pre-stored standard risk measurement value. If the judgment is yes, it is determined that there is a grinding abnormality.

[0055] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps described in the above-mentioned method for intelligent production data management of traditional Chinese medicine when executing the computer program.

[0056] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above-mentioned method for intelligent production data management of traditional Chinese medicines.

[0057] The technical effects achieved by the present invention are as follows:

[0058] The above-mentioned intelligent production data management method and system of Chinese patent medicine collects data in the production process of Chinese patent medicine and judges whether the current Chinese patent medicine production is met based on the collected data, thereby realizing intelligent production management of Chinese patent medicine based on production data, and realizing efficient management of data collected in the intelligent production process of Chinese patent medicine. Specifically, thermal imaging images of the raw materials to be ground in the preset grinding area in each sampling time period within the preset detection time period are first obtained, and a grinding temperature risk measurement value is generated according to the thermal imaging image, and whether the grinding is abnormal is judged according to the grinding temperature risk measurement value. The grinding temperature risk measurement value is a parameter of whether there is a temperature abnormality in each thermal imaging image in the current preset grinding area of ​​the beam. It should be understood that when the grinding temperature risk measurement value is abnormal, it indicates that the grinding work performed in the preset grinding area has a local temperature abnormality or a temperature abnormality in the entire area. At this time, it is judged that the grinding is abnormal, so a temperature abnormality indication is generated at this time, and the grinding equipment is controlled to cool down according to the temperature abnormality indication, including but not limited to shutdown and cooling operations. At the same time, after completing the current task, the grinding management personnel are instructed to repair the grinding equipment. If it is not abnormal, it means that there is no problem with the temperature of the grinding process, and there will be no problem of damaging the activity of the raw materials due to excessive temperature. The next step is to stir the environment of the raw materials. By obtaining the raw material stirring and mixing data in the stirring tank at the stirring detection time point, it is judged whether the stirring in the stirring tank is qualified according to the raw material stirring and mixing data. When it is judged to be qualified, the next step of the honey-combining process is entered. Before detecting the data in the honey-combining process, the original requirement data of the honey to be put in is first obtained, and the external test stimulus is applied to the honey to be put in and the honey stimulus change data of the honey to be put in is obtained, and then it is judged whether the honey stimulus change data matches the original requirement data. If it does not match, honey requirement difference data is generated, and the honey difference data is sent to the honey management body, and the honey management body is regulated; if it is judged to match, a honey data qualified instruction is generated, and the production equipment is instructed to make pills according to the honey data qualified instruction, so as to realize timely adjustment when it is judged that the current honey does not meet the requirements. Through this pre-use detection method, it is possible to timely discover the deterioration of honey due to storage or other problems that do not meet the honey requirements, thereby ensuring the reliability of subsequent pill making. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A schematic diagram of a process of a method for managing intelligent production data of Chinese patent medicines in one embodiment;

[0060] Figure 2 It is a structural block diagram of a Chinese patent medicine intelligent production data management system in one embodiment. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0062] In one embodiment, Figure 1 As shown, a method for intelligent production data management of Chinese patent medicines is provided, the method comprising:

[0063] Step S100: obtaining a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, generating a grinding temperature risk measurement value according to the thermal imaging image, and judging whether the grinding is abnormal according to the grinding temperature risk measurement value, wherein the preset monitoring time period has multiple sampling time periods;

[0064] Step S200: if it is determined that the grinding is not abnormal, then obtaining the raw material stirring and mixing data in the stirring tank at the stirring detection time point, and judging whether the stirring in the stirring tank is qualified according to the raw material stirring and mixing data;

[0065] Step S300: if it is determined that the stirring in the stirring tank is qualified, original requirement data of the honey to be put in is obtained, external test stimulus is applied to the honey to be put in, and honey stimulus change data of the honey to be put in is obtained;

[0066] Step S400: Determine whether the honey incentive change data matches the original requirement data. If not, generate honey requirement difference data, send the honey difference data to the honey management body, and the honey management body will regulate it. If it is determined to be matched, generate a honey data qualified instruction, and instruct the production equipment to make pills according to the honey data qualified instruction.

[0067] In this embodiment, data from the production process of Chinese patent medicines is collected and it is judged whether the current production of Chinese patent medicines is met based on the collected data, thereby realizing intelligent production management of Chinese patent medicines based on production data, and realizing efficient management of the data collected in the intelligent production process of Chinese patent medicines. Specifically, thermal imaging images of the raw materials to be ground in a preset grinding area in each sampling time period within a preset detection time period are first obtained, and a grinding temperature risk measurement value is generated based on the thermal imaging image, and whether the grinding is abnormal is judged based on the grinding temperature risk measurement value. The grinding temperature risk measurement value is a parameter for whether there is a temperature abnormality in each thermal imaging image in the current preset grinding area of ​​the beam. It should be understood that when the grinding temperature risk measurement value is abnormal, it indicates that the grinding work in the preset grinding area has a local temperature abnormality or a temperature abnormality in the entire area. At this time, it is judged that the grinding is abnormal, so a temperature abnormality indication is generated at this time, and the grinding equipment is controlled to cool down according to the temperature abnormality indication, including but not limited to shutdown and cooling operations. At the same time, after completing the current task, the grinding management personnel are instructed to repair the grinding equipment. If it is not abnormal, it means that there is no problem with the temperature of the grinding process, and there will be no problem of damaging the activity of the raw materials due to excessive temperature. The next step is to stir the environment of the raw materials. By obtaining the raw material stirring and mixing data in the stirring tank at the stirring detection time point, it is judged whether the stirring in the stirring tank is qualified according to the raw material stirring and mixing data. When it is judged to be qualified, the next step of the honey-combining process is entered. Before detecting the data in the honey-combining process, the original requirement data of the honey to be put in is first obtained, and the external test stimulus is applied to the honey to be put in and the honey stimulus change data of the honey to be put in is obtained, and then it is judged whether the honey stimulus change data matches the original requirement data. If it does not match, honey requirement difference data is generated, and the honey difference data is sent to the honey management body, and the honey management body is regulated; if it is judged to match, a honey data qualified instruction is generated, and the production equipment is instructed to make pills according to the honey data qualified instruction, so as to realize timely adjustment when it is judged that the current honey does not meet the requirements. Through this pre-use detection method, it is possible to timely discover the deterioration of honey due to storage or other problems that do not meet the honey requirements, thereby ensuring the reliability of subsequent pill making.

[0068] In one embodiment, step S100: obtaining a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, generating a grinding temperature risk measurement value according to the thermal imaging image, and judging whether the grinding is abnormal according to the grinding temperature risk measurement value, specifically includes:

[0069] Step S110: obtaining a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, wherein the preset detection time period is preset, the number of the sampling time periods is N, n sampling time points are set in each sampling time period, and the n sampling time points correspond to n thermal imaging images;

[0070] Step S120: extracting the highest imaging temperature tmax in n thermal imaging images corresponding to n sampling time points in N sampling time periods respectively, wherein one sampling time period corresponds to n thermal imaging images, multiple actual imaging temperatures can be detected in each thermal imaging image, one thermal imaging image corresponds to one highest imaging temperature, and the maximum temperature of the actual imaging temperatures in one thermal imaging image is the highest imaging temperature tmax;

[0071] Step S130: Filter out n sampling time periods corresponding to the sampling time periods, in which the highest developing temperatures tmax are all lower than the risk grinding temperature ta, from each of the sampling time periods, and record them as compliant sampling sections, and count the number of the compliant sampling sections, which is recorded as the number of compliant time periods C, wherein the risk grinding temperature ta is pre-stored, and the sampling time periods remaining after subtracting each of the compliant sampling sections from the N sampling time periods are risk sampling sections, and the number of the risk sampling sections is NC;

[0072] Step S140: screening out the thermal imaging images with a temperature greater than or equal to the risk grinding temperature ta in each of the risk sampling sections, recording them as risk thermal images, and counting the number of the risk thermal images, recording them as the number of risk images k1;

[0073] Step S150: respectively delineate risk temperature areas in which the temperature in k1 risk thermal images in the NC risk sampling segments is greater than the risk grinding temperature ta, and calculate the risk area areas Si of the risk temperature areas, and calculate the temperature anomaly risk parameters P of the NC risk sampling segments according to the risk area areas Si corresponding to the k1 risk thermal images, wherein the image area of ​​each risk thermal image is constant and is Sa, and the NC risk sampling segments correspond to NC temperature anomaly risk parameters P(x);

[0074] Step S160: Filter out the temperature abnormality risk parameters P(x) that are greater than or equal to the temperature safety threshold parameter and whose continuous interval reaches a preset continuous number from the temperature abnormality risk parameters P arranged in sequence, and record them as warning temperature risk parameters Q(j), wherein the temperature safety threshold parameter is preset, and the number of the warning temperature risk parameters is set as the warning risk number k2;

[0075] Step S170: Calculate the grinding temperature risk measurement value based on the following formula according to the number of risk images, the number of sampling time periods, the number of compliance time periods, each temperature abnormality risk parameter, the number of warning risks, and each alarm temperature risk parameter:

[0076]

[0077] Wherein, Y is the grinding temperature risk measurement value; k1 is the number of risk images; N is the number of sampling time periods; C is the number of compliance time periods; α is the first proportionality coefficient; P(x) is the xth temperature anomaly risk parameter; β is the second proportionality coefficient; k2 is the number of warning risks; Q(j) is the jth warning temperature risk parameter;

[0078] Further, the first proportionality coefficient and the second proportionality coefficient are preset, and the second proportionality coefficient is greater than the first proportionality coefficient because the risk represented by the warning temperature risk parameter is greater.

[0079] Step S180: determining whether the grinding temperature risk measurement value is greater than or equal to a pre-stored standard risk measurement value; if so, determining that grinding abnormality exists.

[0080] In this embodiment, the actual imaging temperature detected in each thermal imaging image contained in the compliant sampling segment is lower than the highest imaging temperature tmax. NC / N is the ratio of the risky time period to all time periods in the N sampling time periods. The larger the ratio, the more time periods with abnormal temperature points, the more abnormal temperature points occur during the grinding process, and the greater the risk. In this step, the sampling time periods whose temperatures are all lower than the risk grinding temperature ta are screened out by the highest imaging temperature, that is, the compliant sampling segments are screened out, and the rest are the risk sampling segments. There are two situations in each thermal imaging image in the risk sampling segment. One is that the highest imaging temperature tmax in each thermal imaging image is not lower than the risk grinding temperature ta; the other is that the highest imaging temperature tmax of a part of the thermal imaging images in the risk sampling segment is lower than the risk grinding temperature ta. k1 is the number of thermal imaging images in which the actual developing temperature of each thermal imaging image in a single risk sampling segment is greater than the risk grinding temperature ta, n-k1 is the number of thermal imaging images in which the actual developing temperature of each thermal imaging image in a single risk sampling segment is less than the risk grinding temperature ta, k1 / n is the ratio of risky images to all images in a single sampling time period. The larger the ratio, the more abnormal the temperature is in the current time period, and the greater the risk of temperature abnormality; in addition, there are k1 risk thermal images in NC risk sampling segments. In this step, the number of risky thermal images that may be at risk in a single risk sampling segment is specifically screened out, and the ratio of risk image data to the total number of thermal images can be calculated as one of the parameters to measure whether there is a risk of temperature abnormality. One risk thermal image corresponds to one risk temperature area, and k1 risk thermal images correspond to k1 risk area areas Si, where Si represents the area of ​​the risk temperature area in the i-th risk thermal image in the risk sampling segment, and the value of i is 1 to k1; if Si / Sa is calculated, the sum from 1 to k1 is the sum of the proportions of the risk area areas in the k1 risk thermal images in a risk sampling segment to the overall area of ​​the corresponding risk thermal images. The larger the proportion, the larger the area where the risk temperature exists, and the greater the risk.

[0081] Furthermore, the temperature anomaly risk parameter P is calculated as follows:

[0082]

[0083] Wherein, k1 is the number of risk images, Si is the area of ​​the risk temperature region in the i-th risk thermal image in the i-th risk sampling segment, and Sa is the constant image area of ​​the risk thermal image.

[0084] In one embodiment, in step S110, the step of setting the preset detection time period specifically includes:

[0085] Step S111: in response to a raw material to be ground being put into the preset grinding area, a current raw material image of the raw material to be ground is collected;

[0086] Step S112: identifying the type of the raw material to be ground according to the current raw material image;

[0087] Step S113: obtaining the pre-stored risk grinding temperature ta, temperature safety threshold parameter and standard risk measurement value according to the type of raw material.

[0088] In this embodiment, in order to achieve accurate production data management, it is necessary to first identify different raw materials to be ground. Specifically, in response to the raw materials to be ground being put into the preset grinding area, the current raw material image of the raw material to be ground is collected; the raw material type of the raw material to be ground is identified according to the current raw material image. During the specific identification, the raw material image in the current raw material image is obtained, and compared with the pre-stored standard raw material image, the matching standard raw material image is screened out, and the corresponding original type can be obtained. Different raw materials correspond to different parameters. Therefore, the pre-stored risk grinding temperature ta, temperature safety threshold parameter and standard risk measurement value are obtained according to the raw material type, thereby generating different parameters according to different raw materials.

[0089] In one embodiment, the raw material stirring and mixing data includes: step S200: if it is determined that the grinding is not abnormal, then obtaining the raw material stirring and mixing data in the stirring tank at the stirring detection time point, and judging whether the stirring in the stirring tank is qualified according to the raw material stirring and mixing data; specifically including:

[0090] Step S210: if it is determined that the grinding is not abnormal, obtaining the total weight of each raw material to be mixed put into the mixing tank and the mixed raw material of each raw material to be mixed;

[0091] Step S220: generating an estimated stirring time according to the raw material to be mixed and the total weight of the mixed raw material, and generating a stirring detection time point according to the estimated stirring time and a stirring detection ratio, wherein the stirring detection ratio is preset;

[0092] Step S230: performing sampling detection on a first detection area in the stirring tank at the stirring detection time point and obtaining first stirring area data, and performing sampling detection on a second detection area and obtaining second stirring area data, wherein the first detection area is a pre-determined tank bottom area of ​​the stirring tank, and the second detection area is a pre-determined tank middle area of ​​the stirring tank;

[0093] Step S240: generating a first raw material mixing ratio of each of the raw materials to be mixed according to the first stirring region data, and generating a second raw material mixing ratio of each of the raw materials to be mixed according to the second stirring region data;

[0094] Step S250: calculating a mixing ratio difference between the first raw material mixing ratio and the second raw material mixing ratio, and determining whether the mixing ratio difference is greater than or equal to a preset standard ratio difference;

[0095] Step S260: If the judgment is yes, it is determined that the stirring in the stirring tank is unqualified, then a stirring adjustment instruction is generated, and the stirring adjustment instruction is sent to the raw material stirring manager so that the stirring manager adjusts the raw materials to be mixed in the stirring tank according to the stirring adjustment instruction.

[0096] In this embodiment, if it is determined that the grinding is not abnormal, then the next raw material mixing work can be carried out, that is, each mixed raw material is loaded into the mixing tank for uniform mixing. Then, in order to perform stirring detection during the stirring process, the total weight of each raw material to be mixed and the mixed raw materials of each raw material to be mixed put into the mixing tank is first obtained. The type and total weight of the raw materials to be mixed determine the required mixing time. Therefore, the estimated stirring time can be generated by the raw materials to be mixed and the total weight of the mixed raw materials. Specifically, the types contained in different Chinese patent medicines are the same, that is, for a Chinese patent medicine, the number of raw materials to be mixed required to be mixed is the same, and in order not to damage the efficacy during mixing, the stirring time of each raw material to be mixed per unit weight is the unit stirring time. Therefore, after obtaining the total weight of each raw material to be mixed and the corresponding mixed raw material, the unit stirring time can be multiplied according to the ratio of the unit stirring time to the total weight of the mixed raw materials to obtain the estimated stirring time, and then the stirring detection time point is generated according to the estimated stirring time and the stirring detection ratio, wherein the stirring detection ratio is preset, and generally speaking, the stirring detection ratio is set to 80%.When the estimated stirring time is 10 minutes, and the stirring start time is t1, then the end time is t1+10 minutes. By setting the stirring detection ratio to 80%, it can be obtained that the stirring detection time point is t1+10*80%, specifically t1+8 minutes. When the stirring detection time point is set, it is generally in the middle and late stages of the stirring, so that the basic stirring is completed and there is still some time for stirring adjustment. Then, at the stirring detection time point, the first detection area in the stirring tank is sampled and detected, and the first stirring area data is obtained. At the same time, the second detection area is sampled and detected, and the second stirring area data is obtained. By setting the first detection area as the pre-demarcated bottom area of ​​the stirring tank, and the second detection area as the pre-demarcated middle area of ​​the stirring tank, the data of the area that is easy to stir and the area that is not easy to stir completely are detected, and then the data of each of the raw materials to be mixed is generated according to the first stirring area data. The first raw material mixing ratio of the material is calculated, and the second raw material mixing ratio of each of the raw materials to be mixed is generated according to the second stirring area data. The first raw material mixing ratio is the ratio between each of the raw materials to be mixed. If the ratios of the two areas are not much different, it means that the mixing is uniform. If the difference is large and is greater than or equal to the difference that can characterize the risk, it is determined that adjustment is required, specifically, the mixing ratio difference between the first raw material mixing ratio and the second raw material mixing ratio is calculated, and it is determined whether the mixing ratio difference is greater than or equal to the preset standard ratio difference; if it is determined to be yes, a stirring adjustment instruction is generated, and the stirring adjustment instruction is sent to the raw material stirring management personnel, so that the stirring management personnel adjusts the raw materials to be mixed in the stirring tank according to the stirring adjustment instruction; if it is determined to be no, it is determined that the stirring in the stirring tank is qualified, which means that the difference between the two is within the normal acceptable range, so no adjustment is required, and the stirring can be continued. Regarding the first raw material mixing ratio, if there are two raw materials to be mixed, namely raw material 1 to be mixed and raw material 2 to be mixed, then the first raw material mixing ratio is raw material 1 to be mixed: raw material 2 to be mixed = A1:B1, and similarly, the second raw material mixing ratio is A2:B2; at this time, A1:B1 and A2:B2 can be calculated as specific values ​​to calculate the mixing ratio difference. When the number of the raw materials to be mixed is at least 3, the difference between each ratio can also be calculated as the mixing ratio difference. If the mixing ratio of the first raw materials is: raw material 1 to be mixed: raw material 2 to be mixed: raw material 3 to be mixed: raw material 4 to be mixed = A1: B1: C1: D1; similarly, the mixing ratio of the second raw materials is: raw material 1 to be mixed: raw material 2 to be mixed: raw material 3 to be mixed: raw material 4 to be mixed = A2: B2: C2: D2, then the mixing ratio difference is: |A1-A2|+|B1-B2|+|C1-C2|+|D1-D2|, and at the same time, the standard ratio difference is set accordingly.By acquiring proportional data in different areas, accurate comparison can be achieved.

[0097] In one embodiment, the honey incentive change data includes actual flow rate, expected temperature of mixed honey and number of honey bubbles;

[0098] Step S300: if it is determined that the stirring in the stirring tank is qualified, the original requirement data of the honey to be put in is obtained, an external test stimulus is applied to the honey to be put in, and the honey stimulus change data of the honey to be put in is obtained; specifically, it includes:

[0099] Step S310: if it is determined that the stirring in the stirring tank is qualified, the original required data of the honey to be put in is obtained, the honey to be tested in the honey to be put in is extracted, and the honey to be tested is put into the first excitation position, and the actual flow time of the honey to be tested flowing to the second excitation position is detected, wherein the first excitation position and the second excitation position are preset, and the distance from the first excitation position to the second excitation position is the preset excitation distance;

[0100] Step S320: generating an actual flow velocity according to the actual flow time and the preset excitation distance;

[0101] Step S330: detecting the initial honey temperature of the honey to be tested at the first excitation position and the end point honey temperature at the second excitation position, and generating an estimated combined honey temperature according to the end point honey temperature and the initial honey temperature;

[0102] Step S340: controlling a preset honey stirring device to stir the honey to be tested for a preset stirring time, collecting an estimated stirring image of the honey to be tested, and extracting the number of honey bubbles according to the estimated stirring image.

[0103] In this embodiment, in order to determine whether the honey to be added meets the requirements for honey when the raw materials and honey are mixed in the current Chinese patent medicine preparation process, it is necessary to perform a test before use and determine whether adjustment is needed based on the test data. First, when judging that the stirring in the stirring tank is qualified, it is necessary to obtain the original requirement data of the honey to be added, and the original requirement data is the pre-set requirement of the honey required for the current stirring task. Then, external excitation is applied to test the honey to be added. Specifically, the honey to be tested in the honey to be added is first extracted. The honey to be tested is the total amount that needs to be added to the medicine powder each time during the actual production process. Such a setting better simulates the situation when honey is added and mixed. Then, the honey to be tested is added to the first excitation position, and the actual flow time of the honey to be tested flowing to the second excitation position is detected, wherein the first excitation position and the second excitation position are pre-set, and the distance from the first excitation position to the second excitation position is the preset excitation distance. The first excitation position may be a honey discharge port, and the second excitation position may be a position for mixing medicinal powder. This setting more closely simulates actual production, and then generates an actual flow velocity according to the actual flow time and the preset excitation distance. By obtaining the actual flow velocity, it is possible to determine whether the current honey is tender honey, medium honey or old honey. Then, the initial honey temperature of the honey to be tested at the first excitation position and the terminal honey temperature at the second excitation position are detected, and the estimated temperature of the mixed medicine honey is generated according to the terminal honey temperature and the initial honey temperature. Since the temperature of the mixed medicine honey is very important, if the temperature is low, the honey and the medicine powder will not be tightly combined, and if the temperature is too high, the drug components will be destroyed. Therefore, it is necessary to generate the estimated mixed medicine honey temperature according to the terminal honey temperature and the initial honey temperature to judge whether the current temperature of honey refining can meet the current pharmaceutical requirements. Finally, the preset honey stirring device is controlled to stir the honey to be tested to the preset stirring time, and the estimated stirring image of the honey to be tested is collected. The number of honey bubbles is extracted according to the estimated stirring image. According to the principle that honey will produce foam and bubbles, tender honey has more foam and small bubbles, while medium honey has moderate foam and fewer bubbles; old honey has less foam and even fewer bubbles, it can be realized by the number of bubbles to judge which kind of honey it is. Therefore, the honey excitation change data is obtained by applying excitation, so as to realize further requirements and judgments on whether the quality of honey is qualified based on the acquired data.

[0104] In one embodiment, the original required data includes a flow velocity range, a mixed honey temperature range, and a honey bubble quantity range;

[0105] Step S400: determine whether the honey incentive change data matches the original requirement data. If not, generate honey requirement difference data, send the honey difference data to the honey management subject, and the honey management subject controls it. If it is determined to match, generate a honey data qualified instruction, and instruct the production equipment to make pills according to the honey data qualified instruction. Specifically, it includes:

[0106] Step S410: determining whether the actual flow speed is within the flow speed range, whether the estimated mixed medicine honey temperature is within the mixed medicine honey temperature range, and whether the number of honey bubbles is within the honey bubble number range;

[0107] Step S420: if the judgment is no, it is judged that there is no match, then honey requirement difference data is generated, and the honey difference data is sent to the honey management subject, and the honey management subject performs regulation;

[0108] Step S430: If the judgment is yes, it is judged to be a match, then a honey data qualified instruction is generated, and the production equipment is instructed to make pills according to the honey data qualified instruction.

[0109] In this embodiment, in order to accurately determine whether honey is required for the currently produced Chinese patent medicine pills, various parameters of honey required by different Chinese patent medicines are pre-set, specifically including the flow speed range, the medicine honey temperature range and the honey bubble number range. When judging, it is determined whether the conditions that the actual flow speed belongs to the flow speed range, the expected medicine honey temperature belongs to the medicine honey temperature range and the honey bubble number belongs to the honey bubble number range are met at the same time. If the judgment is yes, it means that it matches, so a honey data qualified instruction is generated, and the production equipment is instructed to make pills according to the honey data qualified instruction. The production equipment includes equipment for mixing raw materials with honey, equipment for making pills, etc. If the conditions that the actual flow speed belongs to the flow speed range, the expected medicine honey temperature belongs to the medicine honey temperature range and the honey bubble number belongs to the honey bubble number range are not met, it is judged as no, it is judged as mismatch, and honey requirement difference data is generated, and then the honey difference data is sent to the honey management subject, and the honey management subject performs regulation, and the specific regulation includes but is not limited to adjusting the honey temperature, replacing honey, etc. Therefore, by first setting the original requirement data and then applying external incentives to the honey that is about to be used to obtain the data of the honey that is about to be used, and then making timely adjustments when it is determined that the current honey does not meet the requirements, this pre-use detection method can promptly discover problems such as honey deterioration due to storage or other problems that do not meet the honey requirements, thereby ensuring the reliability of subsequent pill making.

[0110] In one embodiment, Figure 2As shown, a Chinese patent medicine intelligent production data management system is also provided, the system comprising:

[0111] a grinding temperature judgment module, for obtaining a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, generating a grinding temperature risk measurement value according to the thermal imaging image, and judging whether the grinding is abnormal according to the grinding temperature risk measurement value, wherein the preset monitoring time period has multiple sampling time periods;

[0112] A stirring data judgment module is used to obtain the stirring and mixing data of the raw materials in the stirring tank at the stirring detection time point if it is judged that the grinding is not abnormal, and judge whether the stirring in the stirring tank is qualified according to the raw material stirring and mixing data;

[0113] A honey incentive acquisition module is used to obtain original requirement data of the honey to be put in if it is judged that the stirring in the stirring tank is qualified, apply external test incentives to the honey to be put in, and obtain honey incentive change data of the honey to be put in;

[0114] The pill production judgment module is used to judge whether the honey incentive change data matches the original requirement data. If not, honey requirement difference data is generated, and the honey difference data is sent to the honey management body, which is then regulated by the honey management body. If it is judged to be matched, a honey data qualified instruction is generated, and the production equipment is instructed to make pills according to the honey data qualified instruction.

[0115] In one embodiment, the grinding temperature determination module is further used for:

[0116] Acquire thermal imaging images of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, wherein the preset detection time period is preset, the number of the sampling time periods is N, n sampling time points are set in each sampling time period, and the n sampling time points correspond to n thermal imaging images; respectively extract the highest imaging temperatures in the n thermal imaging images corresponding to the n sampling time points in the N sampling time periods, wherein one sampling time period corresponds to n thermal imaging images, and multiple actual imaging temperatures can be detected in each thermal imaging image, one thermal imaging image corresponds to a highest imaging temperature, and the maximum temperature of the actual imaging temperatures in one thermal imaging image is the highest imaging temperature; select from each sampling time period the sampling time periods in which the n highest imaging temperatures corresponding to the sampling time period are all lower than the risk grinding temperature, record them as compliant sampling sections, and count the number of compliant sampling sections, record them as the number of compliant time periods, wherein the risk grinding temperature is pre-stored, and the sampling time periods remaining after subtracting each compliant sampling section from the N sampling time periods are risk sampling sections; select Select the thermal imaging images with a temperature greater than or equal to the risk grinding temperature in each risk sampling segment, record them as risk thermal images, and count the number of risk thermal images, record them as the number of risk images; respectively delineate the risk temperature areas in the risk thermal images in each risk sampling segment where the temperature is greater than the risk grinding temperature, calculate the risk area areas of the risk temperature areas, and calculate the temperature anomaly risk parameters of each risk sampling segment according to the areas of each risk area corresponding to each risk thermal image, wherein the image area of ​​each risk thermal image is constant, and one risk sampling segment corresponds to one temperature anomaly risk parameter; filter out the temperature anomaly risk parameters that are greater than or equal to the temperature safety threshold parameter from the temperature anomaly risk parameters arranged in sequence, and whose continuous intervals reach a preset continuous number, record them as the alarm temperature risk parameters Q, wherein the temperature safety threshold parameter is preset, and the number of the alarm temperature risk parameters is set as the number of warning risks; calculate the grinding temperature risk measurement value based on the following formula according to the number of risk images, the number of sampling time periods, the number of compliance time periods, each temperature anomaly risk parameter, the number of warning risks, and each alarm temperature risk parameter:

[0117]

[0118] Among them, Y is the grinding temperature risk measurement value; k1 is the number of risk images; N is the number of sampling time periods; C is the number of compliant time periods; α is the first proportional coefficient; P(x) is the xth temperature anomaly risk parameter; β is the second proportional coefficient; k2 is the number of warning risks; Q(j) is the jth warning temperature risk parameter; and it is determined whether the grinding temperature risk measurement value is greater than or equal to the pre-stored standard risk measurement value. If the judgment is yes, it is determined that there is a grinding abnormality.

[0119] In one embodiment, the grinding temperature judgment module is also used to: in response to the raw material to be ground being put into the preset grinding area, collect the current raw material image of the raw material to be ground; identify the type of the raw material to be ground according to the current raw material image; and obtain the pre-stored risk grinding temperature ta, temperature safety threshold parameter and standard risk measurement value according to the type of raw material.

[0120] In one embodiment, the stirring data determination module is further used for:

[0121] If it is determined that the grinding is not abnormal, the total weight of each raw material to be mixed and the mixed raw material of each raw material to be mixed put into the mixing tank is obtained; an estimated mixing time is generated according to the total weight of the raw materials to be mixed and the mixed raw materials, and a mixing detection time point is generated according to the estimated mixing time and the mixing detection ratio, wherein the mixing detection ratio is pre-set; at the mixing detection time point, a first detection area in the mixing tank is sampled and detected and first mixing area data is obtained, and at the same time, a second detection area is sampled and detected and second mixing area data is obtained, wherein the first detection area is a pre-demarcated tank bottom area of ​​the mixing tank, and the second detection area is a pre-demarcated tank bottom area. The method comprises the steps of: determining a tank area of ​​the mixing tank; generating a first raw material mixing ratio of each of the raw materials to be mixed according to the first stirring area data, and generating a second raw material mixing ratio of each of the raw materials to be mixed according to the second stirring area data; calculating a mixing ratio difference between the first raw material mixing ratio and the second raw material mixing ratio, and judging whether the mixing ratio difference is greater than or equal to a preset standard ratio difference; if the judgment is yes, it is judged that the stirring in the mixing tank is unqualified, and generating a stirring adjustment instruction, and sending the stirring adjustment instruction to the raw material stirring management personnel, so that the stirring management personnel can adjust the raw materials to be mixed in the mixing tank according to the stirring adjustment instruction.

[0122] In one embodiment, the honey incentive change data includes actual flow rate, expected temperature of the combined honey and number of honey bubbles; the honey incentive acquisition module is further used for:

[0123] If the stirring in the stirring tank is judged to be qualified, the original required data of the honey to be put in is obtained, the honey to be tested in the honey to be put in is extracted, and the honey to be tested is put into the first excitation position, and the actual flow time of the honey to be tested to flow to the second excitation position is detected, wherein the first excitation position and the second excitation position are preset, and the distance from the first excitation position to the second excitation position is the preset excitation distance; the actual flow speed is generated according to the actual flow time and the preset excitation distance; the initial honey temperature of the honey to be tested at the first excitation position and the terminal honey temperature at the second excitation position are detected, and the estimated mixed honey temperature is generated according to the terminal honey temperature and the initial honey temperature; the preset honey stirring device is controlled to stir the honey to be tested to the preset stirring time, the estimated stirring image of the honey to be tested is collected, and the number of honey bubbles is extracted according to the estimated stirring image.

[0124] In one embodiment, the original requirement data includes a flow speed range, a mixed honey temperature range and a honey bubble number range; the pill production judgment module is also used to: judge whether the actual flow speed belongs to the flow speed range, whether the expected mixed honey temperature belongs to the mixed honey temperature range and whether the honey bubble number belongs to the honey bubble number range; if the judgment is no, it is judged that there is no match, then honey requirement difference data is generated, and the honey difference data is sent to the honey management body, and the honey management body is regulated; if the judgment is yes, it is judged that there is a match, then a honey data qualified instruction is generated, and the production equipment is instructed to make pills according to the honey data qualified instruction.

[0125] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps described in the above-mentioned method for intelligent production data management of traditional Chinese medicine when executing the computer program.

[0126] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above-mentioned method for intelligent production data management of traditional Chinese medicines.

[0127] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0128] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0129] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for intelligent production data management of Chinese patent medicine, characterized in that: The method comprises: Acquire a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, generate a grinding temperature risk measurement value according to the thermal imaging image, and determine whether the grinding is abnormal according to the grinding temperature risk measurement value, wherein there are multiple sampling time periods within the preset monitoring time period; If it is determined that the grinding is not abnormal, then obtaining the raw material stirring and mixing data in the stirring tank at the stirring detection time point, and judging whether the stirring in the stirring tank is qualified according to the raw material stirring and mixing data; If it is determined that the stirring in the stirring tank is qualified, the original requirement data of the honey to be put in is obtained, an external test stimulus is applied to the honey to be put in, and the honey stimulus change data of the honey to be put in is obtained; Determine whether the honey incentive change data matches the original requirement data. If not, generate honey requirement difference data, send the honey difference data to the honey management body, and the honey management body will regulate it. If it is determined to be matched, generate a honey data qualified instruction, and instruct the production equipment to make pills according to the honey data qualified instruction.

2. The method for intelligent production data management of Chinese patent medicine according to claim 1, characterized in that: Acquiring a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, generating a grinding temperature risk measurement value according to the thermal imaging image, and judging whether the grinding is abnormal according to the grinding temperature risk measurement value, specifically including: Acquire a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, wherein the preset detection time period is preset, the number of the sampling time periods is N, n sampling time points are set in each sampling time period, and the n sampling time points correspond to n thermal imaging images; Extracting the highest imaging temperatures in n thermal imaging images corresponding to n sampling time points in N sampling time periods respectively, wherein one sampling time period corresponds to n thermal imaging images, multiple actual imaging temperatures can be detected in each thermal imaging image, one thermal imaging image corresponds to one highest imaging temperature, and the maximum temperature among the actual imaging temperatures in one thermal imaging image is the highest imaging temperature; Filter out n sampling time periods corresponding to the sampling time periods and having the highest imaging temperatures all lower than the risky grinding temperature from each of the sampling time periods, record them as compliant sampling periods, and count the number of compliant sampling periods, record them as the number of compliant time periods, wherein the risky grinding temperature is pre-stored, and the remaining sampling time period after subtracting each of the compliant sampling periods from the N sampling time periods is the risky sampling period; Screen out the thermal imaging images with a temperature greater than or equal to the risk grinding temperature in each of the risk sampling sections, record them as risk thermal images, and count the number of the risk thermal images, record them as the number of risk images; Respectively delineate the risk temperature regions in the risk thermal images in each of the risk sampling segments, where the temperature is greater than the risk grinding temperature, and calculate the risk region areas of the risk temperature regions, and calculate the temperature anomaly risk parameters of each of the risk sampling segments according to the risk region areas corresponding to each of the risk thermal images, wherein the image area of ​​each of the risk thermal images is constant, and one of the risk sampling segments corresponds to one temperature anomaly risk parameter; Filter out the temperature abnormality risk parameters that are greater than or equal to the temperature safety threshold parameter from the temperature abnormality risk parameters arranged in sequence, and whose continuous intervals reach a preset continuous number, and record them as warning temperature risk parameters Q, wherein the temperature safety threshold parameter is preset, and the number of the warning temperature risk parameters is set as the warning risk number; According to the number of risk images, the number of sampling time periods, the number of compliance time periods, each temperature anomaly risk parameter, the number of warning risks, and each alarm temperature risk parameter, the grinding temperature risk measurement value is calculated based on the following formula: Wherein, Y is the grinding temperature risk measurement value; k1 is the number of risk images; N is the number of sampling time periods; C is the number of compliance time periods; α is the first proportionality coefficient; P(x) is the xth temperature anomaly risk parameter; β is the second proportionality coefficient; k2 is the number of warning risks; Q(j) is the jth warning temperature risk parameter; And determine whether the grinding temperature risk measurement value is greater than or equal to a pre-stored standard risk measurement value. If it is determined to be yes, it is determined that grinding abnormality exists.

3. The method for intelligent production data management of Chinese patent medicine according to claim 2, characterized in that: The steps for setting the preset detection time period include: In response to the raw material to be ground being put into the preset grinding area, collecting a current raw material image of the raw material to be ground; Identifying the type of the raw material to be ground according to the current raw material image; The pre-stored risk grinding temperature ta, temperature safety threshold parameter and standard risk measurement value are obtained according to the type of raw material.

4. The method for intelligent production data management of Chinese patent medicine according to claim 3, characterized in that: The raw material stirring and mixing data includes: If it is determined that the grinding is not abnormal, then the raw material stirring and mixing data in the stirring tank at the stirring detection time point is obtained, and whether the stirring in the stirring tank is qualified is determined according to the raw material stirring and mixing data; specifically including: If it is determined that the grinding is not abnormal, the total weight of each raw material to be mixed and the mixed raw material of each raw material to be mixed put into the mixing tank is obtained; Generate an estimated stirring time according to the raw material to be mixed and the total weight of the mixed raw material, and generate a stirring detection time point according to the estimated stirring time and a stirring detection ratio, wherein the stirring detection ratio is preset; At the stirring detection time point, sampling detection is performed on a first detection area in the stirring tank and first stirring area data is obtained, and sampling detection is performed on a second detection area and second stirring area data is obtained, wherein the first detection area is a pre-determined tank bottom area of ​​the stirring tank, and the second detection area is a pre-determined tank middle area of ​​the stirring tank; Generate a first raw material mixing ratio of each of the raw materials to be mixed according to the first stirring region data, and generate a second raw material mixing ratio of each of the raw materials to be mixed according to the second stirring region data; Calculating a mixing ratio difference between the first raw material mixing ratio and the second raw material mixing ratio, and determining whether the mixing ratio difference is greater than or equal to a preset standard ratio difference; If the judgment is yes, it is determined that the stirring in the stirring tank is unqualified, then a stirring adjustment instruction is generated and sent to the raw material stirring manager so that the stirring manager adjusts the raw materials to be mixed in the stirring tank according to the stirring adjustment instruction.

5. The method for intelligent production data management of Chinese patent medicine according to claim 4, characterized in that: The honey incentive change data include actual flow rate, expected medicinal honey temperature, and honey bubble quantity; If the stirring in the stirring tank is judged to be qualified, the original required data of the honey to be put in is obtained, an external test stimulus is applied to the honey to be put in, and the honey stimulus change data of the honey to be put in is obtained; specifically including: If the stirring in the stirring tank is judged to be qualified, the original required data of the honey to be put in is obtained, the honey to be tested in the honey to be put in is extracted, and the honey to be tested is put into the first excitation position, and the actual flow time of the honey to be tested flowing to the second excitation position is detected, wherein the first excitation position and the second excitation position are preset, and the distance from the first excitation position to the second excitation position is the preset excitation distance; generating an actual flow velocity according to the actual flow time and the preset excitation distance; Detecting the initial honey temperature of the honey to be tested at the first excitation position and the end point honey temperature at the second excitation position, and generating an estimated combined honey temperature according to the end point honey temperature and the initial honey temperature; A preset honey stirring device is controlled to stir the honey to be tested for a preset stirring time, an estimated stirring image of the honey to be tested is collected, and the number of honey bubbles is extracted according to the estimated stirring image.

6. The method for intelligent production data management of Chinese patent medicine according to claim 5, characterized in that: The original required data include the flow velocity range, the mixed honey temperature range and the honey bubble quantity range; Determine whether the honey incentive change data matches the original requirement data, and if not, generate honey requirement difference data, send the honey difference data to the honey management subject, and the honey management subject regulates and controls it; If it is determined that the match is made, a honey data qualified instruction is generated, and the production equipment is instructed to make pills according to the honey data qualified instruction; specifically, the process includes: Determine whether the actual flow speed is within the flow speed range, whether the expected mixed medicine honey temperature is within the mixed medicine honey temperature range, and whether the number of honey bubbles is within the honey bubble number range; If the judgment is no, it is judged that there is no match, then honey requirement difference data is generated, and the honey difference data is sent to the honey management subject, and the honey management subject performs regulation; If the judgment is yes, it is judged to be a match, then a honey data qualified instruction is generated, and the production equipment is instructed to make pills according to the honey data qualified instruction.

7. A Chinese patent medicine intelligent production data management system, characterized in that: The system comprises: a grinding temperature judgment module, for obtaining a thermal imaging image of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, generating a grinding temperature risk measurement value according to the thermal imaging image, and judging whether the grinding is abnormal according to the grinding temperature risk measurement value, wherein the preset monitoring time period has multiple sampling time periods; A stirring data judgment module is used to obtain the stirring and mixing data of the raw materials in the stirring tank at the stirring detection time point if it is judged that the grinding is not abnormal, and judge whether the stirring in the stirring tank is qualified according to the raw material stirring and mixing data; A honey incentive acquisition module is used to obtain original requirement data of the honey to be put in if it is judged that the stirring in the stirring tank is qualified, apply external test incentives to the honey to be put in, and obtain honey incentive change data of the honey to be put in; The pill production judgment module is used to judge whether the honey incentive change data matches the original requirement data. If not, honey requirement difference data is generated, and the honey difference data is sent to the honey management body, which is then regulated by the honey management body. If it is judged to be matched, a honey data qualified instruction is generated, and the production equipment is instructed to make pills according to the honey data qualified instruction.

8. The intelligent production data management system for Chinese patent medicine according to claim 7, characterized in that: The grinding temperature judgment module is also used for: Acquire thermal imaging images of the raw material to be ground in a preset grinding area in each sampling time period within a preset detection time period, wherein the preset detection time period is preset, the number of the sampling time periods is N, n sampling time points are set in each sampling time period, and the n sampling time points correspond to n thermal imaging images; respectively extract the highest imaging temperatures in the n thermal imaging images corresponding to the n sampling time points in the N sampling time periods, wherein one sampling time period corresponds to n thermal imaging images, and multiple actual imaging temperatures can be detected in each thermal imaging image, one thermal imaging image corresponds to a highest imaging temperature, and the maximum temperature of the actual imaging temperatures in one thermal imaging image is the highest imaging temperature; select from each sampling time period the sampling time periods in which the n highest imaging temperatures corresponding to the sampling time period are all lower than the risk grinding temperature, record them as compliant sampling sections, and count the number of compliant sampling sections, record them as the number of compliant time periods, wherein the risk grinding temperature is pre-stored, and the sampling time periods remaining after subtracting each compliant sampling section from the N sampling time periods are risk sampling sections; select Select the thermal imaging images with a temperature greater than or equal to the risk grinding temperature in each risk sampling segment, record them as risk thermal images, and count the number of risk thermal images, record them as the number of risk images; respectively delineate the risk temperature areas in the risk thermal images in each risk sampling segment where the temperature is greater than the risk grinding temperature, calculate the risk area areas of the risk temperature areas, and calculate the temperature anomaly risk parameters of each risk sampling segment according to the areas of each risk area corresponding to each risk thermal image, wherein the image area of ​​each risk thermal image is constant, and one risk sampling segment corresponds to one temperature anomaly risk parameter; filter out the temperature anomaly risk parameters that are greater than or equal to the temperature safety threshold parameter from the temperature anomaly risk parameters arranged in sequence, and whose continuous intervals reach a preset continuous number, record them as the alarm temperature risk parameters Q, wherein the temperature safety threshold parameter is preset, and the number of the alarm temperature risk parameters is set as the number of warning risks; calculate the grinding temperature risk measurement value based on the following formula according to the number of risk images, the number of sampling time periods, the number of compliance time periods, each temperature anomaly risk parameter, the number of warning risks, and each alarm temperature risk parameter: Among them, Y is the grinding temperature risk measurement value; k1 is the number of risk images; N is the number of sampling time periods; C is the number of compliant time periods; α is the first proportional coefficient; P(x) is the xth temperature anomaly risk parameter; β is the second proportional coefficient; k2 is the number of warning risks; Q(j) is the jth warning temperature risk parameter; and it is determined whether the grinding temperature risk measurement value is greater than or equal to the pre-stored standard risk measurement value. If the judgment is yes, it is determined that there is a grinding abnormality.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Chinese patent medicine material intelligent management method and system

    CN117476165A