Edible oil production quality control system and method

By collecting edible oil images under red light and blue light through cameras and applying artificial intelligence and machine vision technology, it solves the problem of low intelligence of traditional detection systems, realizes intelligent quality control of the edible oil production process, and ensures product quality and Safety.

CN118624635AActive Publication Date: 2024-09-10KARAMAY REDFRUIT BIOLOGICAL PROD CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202411089218.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-09-10
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

The traditional edible oil production quality inspection and control system has low intelligence, low efficiency, high cost, and difficulty in detecting tiny impurities or foreign matter, which increases the risks of edible oil products.

Method used

A camera is used to collect images of edible oil under red light and blue light, and through image processing and analysis algorithms based on artificial intelligence and machine vision technology, visible impurities or foreign matter are identified and detected to achieve automatic light inspection.

Benefits of technology

The intelligent production quality control of the edible oil production process has been improved to ensure that the final product meets quality standards, can effectively identify tiny impurities and foreign matter, and reduce product risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118624635A
    Figure CN118624635A
Patent Text Reader

Abstract

The invention relates to an edible oil production quality control system and method. The method comprises the following steps: acquiring a first monochromatic light image and a second monochromatic light image of edible oil under the irradiation of red light and blue light through a camera, and introducing an image processing and analysis algorithm based on artificial intelligence and machine vision technology at the rear end to analyze and compare the first monochromatic light image and the second monochromatic light image; therefore, visible impurities or foreign matters in the edible oil can be identified and detected. Therefore, automatic light inspection can be carried out on abnormal conditions such as visible impurities or foreign matters in the edible oil, so that intelligent production quality control of the edible oil production process is realized, and a final product is ensured to meet the quality standard.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of edible oils, and in particular, to an edible oil production quality control system and method. Background Art

[0002] As one of the indispensable foods in daily life, the quality and safety of edible oil is directly related to people's health. However, various impurities and foreign matter may be mixed into edible oil during the production process. These impurities not only affect the appearance of the oil, but also pose a potential threat to human health. Therefore, in the production process of edible oil, it is crucial to effectively detect and control the production quality of edible oil to ensure the quality and safety of edible oil in order to protect the health of consumers.

[0003] However, the traditional edible oil production quality inspection and control system has some defects, such as relying on manual quality inspection, which has a low degree of intelligence and is prone to low efficiency and high cost. In addition, in some cases, manual inspection is difficult to detect tiny impurities or foreign matter, which increases the risk of edible oil products.

[0004] Therefore, an optimized edible oil production quality control system is desired. Summary of the invention

[0005] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0006] In a first aspect, the present application provides an edible oil production quality control system, the system comprising: a first monochromatic light image acquisition module, used to acquire a first monochromatic light image of the edible oil to be detected acquired by a camera under the irradiation of a first monochromatic light; a second monochromatic light image acquisition module, used to acquire a second monochromatic light image of the edible oil to be detected acquired by the camera under the irradiation of a second monochromatic light, wherein the first monochromatic light is red light and the second monochromatic light is blue light; an edible oil state feature extraction module under monochromatic light, used to extract features based on the state of the edible oil from the first monochromatic light image and the second monochromatic light image of the edible oil respectively to obtain a first monochromatic light image of the edible oil to be detected; A state characteristic map under monochromatic light and a state characteristic map of edible oil under second monochromatic light; an image global-significant feature enhancement module, used for inputting the state characteristic map of edible oil under first monochromatic light and the state characteristic map of edible oil under second monochromatic light into a feature characterization enhancement module based on saliency-globality to obtain a state characteristic map of enhanced edible oil under first monochromatic light and a state characteristic map of enhanced edible oil under second monochromatic light; an edible oil lamp inspection result generation module, used for calculating a differential characteristic map between the state characteristic map of enhanced edible oil under first monochromatic light and the state characteristic map of enhanced edible oil under second monochromatic light, and generating a lamp inspection result based on the differential characteristic map, wherein the lamp inspection result is used to indicate whether the edible oil has an abnormality.

[0007] Optionally, the edible oil state feature extraction module under monochromatic light is used to: respectively pass the first edible oil monochromatic light image and the second edible oil monochromatic light image through an edible oil state feature extractor based on a hole convolutional neural network model to obtain the edible oil state feature map under the first monochromatic light and the edible oil state feature map under the second monochromatic light.

[0008] Optionally, the image global-salient feature enhancement module includes: a vector expansion unit, used for vectorizing and expanding each feature matrix along the channel dimension in the edible oil first monochromatic light state feature map to obtain a sequence of edible oil first monochromatic light state feature vectors; a numerical calculation unit, used for respectively calculating the mean and maximum values ​​of each edible oil first monochromatic light state feature vector in the sequence of edible oil first monochromatic light state feature vectors to obtain a semantic global representation vector of the edible oil first monochromatic light state composed of multiple vector means and a semantic salient representation vector of the edible oil first monochromatic light state composed of multiple vector maximum values; a first feature capture and expression unit, used for feature capturing and expressing the semantic global representation vector of the edible oil first monochromatic light state to obtain a global semantic activation representation feature vector of the edible oil first monochromatic light state; a second feature capture and expression unit, used for feature capturing and expressing the semantic salient representation vector of the edible oil first monochromatic light state to obtain a semantic salient activation representation feature vector of the edible oil first monochromatic light state; vector A fusion unit is used to fuse the global semantic activation representation feature vector of the edible oil in the first monochromatic light state and the prominent semantic activation representation feature vector of the edible oil in the first monochromatic light state to obtain the global-prominent semantic association activation feature vector of the edible oil in the first monochromatic light state, and then perform nonlinear activation processing on the global-prominent semantic association activation feature vector of the edible oil in the first monochromatic light state to obtain the global-prominent semantic association weight feature vector of the edible oil in the first monochromatic light state; a position point multiplication calculation unit is used to use the global-prominent semantic association weight feature vector of the edible oil in the first monochromatic light state as the weight, perform position point multiplication on the sequence of the edible oil in the first monochromatic light state feature vectors and add the sequence of the edible oil in the first monochromatic light state feature vectors to obtain the sequence of the fortified edible oil in the first monochromatic light state feature vectors; an aggregation unit is used to aggregate the sequence of the fortified edible oil in the first monochromatic light state feature vectors in the manner of vectorization expansion of the edible oil in the first monochromatic light state feature map to obtain the fortified edible oil in the first monochromatic light state feature map.

[0009] Optionally, the first feature capture and expression unit is used to: perform one-dimensional convolution encoding on the semantic global representation vector of the edible oil state under the first monochromatic light and then The activation function is processed to obtain a global semantic representation vector of the activated expression of the state of edible oil under the first monochromatic light; the global semantic representation vector of the activated expression of the state of edible oil under the first monochromatic light is again encoded through one-dimensional convolution and then matrix multiplied with the first trainable linear transformation weight matrix to obtain a feature vector of the global semantic activation representation of the state of edible oil under the first monochromatic light.

[0010] Optionally, the second feature capture and expression unit is used to: perform one-dimensional convolution encoding on the semantic salient representation vector of the edible oil state under the first monochromatic light and then generate a new feature vector; The activation function is processed to obtain an activation expression vector for the semantically salient representation of the edible oil in the first monochromatic light state; the activation expression vector for the semantically salient representation of the edible oil in the first monochromatic light state is again encoded through one-dimensional convolution and then matrix multiplied with a second trainable linear transformation weight matrix to obtain a feature vector for the semantically salient activation representation of the edible oil in the first monochromatic light state.

[0011] Optionally, the vector fusion unit is used to: fuse the global semantic activation representation feature vector of the edible oil in the first monochromatic light state and the prominent semantic activation representation feature vector of the edible oil in the first monochromatic light state to obtain the global-prominent semantic association activation feature vector of the edible oil in the first monochromatic light state; respectively use the hyperbolic tangent function and The function activates the global-salient semantic association activation feature vector of the edible oil in the first monochromatic light state to obtain a global-salient feature hyperbolic tangent activation semantic representation vector of the edible oil in the first monochromatic light state and a global-salient feature S-type activation semantic representation vector of the edible oil in the first monochromatic light state; the global-salient feature hyperbolic tangent activation semantic representation vector of the edible oil in the first monochromatic light state and the global-salient feature S-type activation semantic representation vector of the edible oil in the first monochromatic light state are multiplied by position points to obtain a global-salient semantic association weight feature vector of the edible oil in the first monochromatic light state.

[0012] Optionally, the edible oil lamp inspection result generation module is used to: calculate the differential feature map between the state feature map of the fortified edible oil under the first monochromatic light and the state feature map of the fortified edible oil under the second monochromatic light; input the differential feature map into a classifier-based lamp inspection result generator to obtain a lamp inspection result, and the lamp inspection result is used to indicate whether there is any abnormality in the edible oil.

[0013] Optionally, it also includes a training module for training the edible oil state feature extractor based on the hole convolutional neural network model, the feature characterization enhancement module based on significance-globality, and the lamp inspection result generator based on the classifier.

[0014] Optionally, the training module includes: a first monochromatic light image acquisition unit for training, which is used to obtain a first monochromatic light image of the edible oil to be tested collected by a camera under the irradiation of a first monochromatic light, and a true value of whether the edible oil has an abnormality; a second monochromatic light image acquisition unit for training, which is used to obtain a second monochromatic light image of the edible oil to be tested collected by the camera under the irradiation of a second monochromatic light, wherein the first monochromatic light is red light and the second monochromatic light is blue light; a edible oil state feature extraction unit under training monochromatic light, which is used to extract features based on the state of the edible oil for the first monochromatic light image of the training edible oil and the second monochromatic light image of the training edible oil, respectively, to obtain a state feature map of the training edible oil under the first monochromatic light and a state feature map of the training edible oil under the second monochromatic light; a global-salient feature enhancement unit for training images, which is used to enhance the state feature map of the training edible oil under the first monochromatic light and the state feature map of the training edible oil under the second monochromatic light. The state feature map is input into the feature characterization enhancement module based on significance-globality to obtain the state feature map of the training fortified edible oil under the first monochromatic light and the state feature map of the training fortified edible oil under the second monochromatic light; the training edible oil lamp inspection result generating unit is used to calculate the training difference feature map between the state feature map of the training fortified edible oil under the first monochromatic light and the state feature map of the training fortified edible oil under the second monochromatic light; the classification loss unit is used to input the training difference feature map into the lamp inspection result generator based on the classifier to obtain the classification loss function value; the loss function calculation unit is used to calculate the predetermined loss function value for the training difference feature map; the training unit is used to train the edible oil state feature extractor based on the void convolutional neural network model, the feature characterization enhancement module based on significance-globality and the lamp inspection result generator based on the classifier with the weighted sum of the classification loss function value and the predetermined loss function value as the final loss function value.

[0015] In a second aspect, the present application provides a method for controlling the quality of edible oil production, the method comprising: obtaining a first monochromatic image of the edible oil to be tested under the irradiation of a first monochromatic light, which is collected by a camera; obtaining a second monochromatic image of the edible oil to be tested under the irradiation of a second monochromatic light, which is collected by the camera, wherein the first monochromatic light is red light and the second monochromatic light is blue light; performing feature extraction based on the state of the edible oil on the first monochromatic image of the edible oil and the second monochromatic image of the edible oil respectively to obtain a state characteristic map of the edible oil under the first monochromatic light and a state characteristic map of the edible oil under the second monochromatic light; inputting the state characteristic map of the edible oil under the first monochromatic light and the state characteristic map of the edible oil under the second monochromatic light into a feature representation enhancement module based on significance-globality to obtain a state characteristic map of the enhanced edible oil under the first monochromatic light and a state characteristic map of the enhanced edible oil under the second monochromatic light; calculating a differential feature map between the state characteristic map of the enhanced edible oil under the first monochromatic light and the state characteristic map of the enhanced edible oil under the second monochromatic light, and generating a light inspection result based on the differential feature map, the light inspection result being used to indicate whether the edible oil has an abnormality.

[0016] By adopting the above technical solution, the camera collects the first monochromatic image and the second monochromatic image of edible oil under red light and blue light, and introduces an image processing and analysis algorithm based on artificial intelligence and machine vision technology at the back end to analyze and compare the first monochromatic image and the second monochromatic image, so as to identify and detect visible impurities or foreign matter in the edible oil. In this way, the visible impurities or foreign matter in the edible oil can be automatically inspected by light, thereby realizing intelligent production quality control of the edible oil production process to ensure that the final product meets the quality standards.

[0017] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0019] In the attached picture: Figure 1 It is a block diagram of an edible oil production quality control system according to an exemplary embodiment.

[0020] Figure 2 The present invention is a flow chart of a method for controlling the production quality of edible oil according to an exemplary embodiment.

[0021] Figure 3The figure is a flow chart of a degumming process section according to an exemplary embodiment.

[0022] Figure 4 The figure is a flow chart of a decolorization process section according to an exemplary embodiment.

[0023] Figure 5 The figure is a flow chart of a dewaxing process section according to an exemplary embodiment.

[0024] Figure 6 The present invention is a flow chart of a deodorization and deacidification process section according to an exemplary embodiment.

[0025] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment.

[0026] Figure 8 It is an application scenario diagram of an edible oil production quality control system according to an exemplary embodiment. DETAILED DESCRIPTION

[0027] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.

[0028] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.

[0029] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0030] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0031] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0032] The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0033] The specific implementation of the present application is described in detail below with reference to the accompanying drawings.

[0034] Figure 1 FIG. 1 is a block diagram of an edible oil production quality control system according to an exemplary embodiment. Figure 1 As shown, the system 100 includes: a first monochromatic light image acquisition module 101, which is used to acquire a first monochromatic light image of the edible oil to be detected under the irradiation of the first monochromatic light, which is acquired by a camera.

[0035] The second monochromatic light image acquisition module 102 is used to obtain a second monochromatic light image of the edible oil to be detected under the irradiation of a second monochromatic light, which is acquired by the camera, wherein the first monochromatic light is red light and the second monochromatic light is blue light.

[0036] The edible oil state feature extraction module 103 under monochromatic light is used to extract features based on the edible oil state from the first edible oil monochromatic light image and the second edible oil monochromatic light image to obtain a first edible oil state feature map and a second edible oil state feature map under monochromatic light.

[0037] The image global-salient feature enhancement module 104 is used to input the edible oil state characteristic map under the first monochromatic light and the edible oil state characteristic map under the second monochromatic light into the feature characterization enhancement module based on saliency-globality to obtain the enhanced edible oil state characteristic map under the first monochromatic light and the enhanced edible oil state characteristic map under the second monochromatic light.

[0038] The edible oil lamp inspection result generation module 105 is used to calculate the difference characteristic diagram between the state characteristic diagram of the fortified edible oil under the first monochromatic light and the state characteristic diagram of the fortified edible oil under the second monochromatic light, and generate a lamp inspection result based on the difference characteristic diagram, and the lamp inspection result is used to indicate whether there is any abnormality in the edible oil.

[0039] In order to overcome these defects, the modern edible oil production industry has begun to adopt automated and intelligent detection technologies, among which machine vision technology has become the first choice due to its high efficiency, high accuracy and objectivity. Machine vision technology captures images of edible oil through image acquisition devices (such as cameras), and then uses image processing and pattern recognition algorithms to automatically identify and analyze impurities and foreign matter in the image. This method can improve the intelligence of the edible oil production process and quality control system, and can effectively identify tiny impurities.

[0040] Accordingly, in order to more easily and intuitively identify and detect visible impurities or foreign matter in edible oil, in the technical solution of the present application, a light inspection method is used to perform quality inspection and control during the production process of edible oil. In particular, considering that different colors of light have different wavelengths, resulting in different reflection, transmission and other characteristics of different colors of light on the surface of an object, different types of impurities or foreign matter can be highlighted. For example, red light has a longer wavelength and stronger penetration, and has better transmittance for some organic substances, as well as suspended matter and larger particle impurities in the oil, while blue light has a shorter wavelength and is more sensitive to some inorganic substances, as well as tiny impurities and foreign matter in the oil.

[0041] Based on this, the technical concept of the present application is to collect the first monochromatic image and the second monochromatic image of edible oil under red light and blue light through a camera, and introduce an image processing and analysis algorithm based on artificial intelligence and machine vision technology at the back end to analyze and compare the first monochromatic image and the second monochromatic image, so as to identify and detect visible impurities or foreign matter in the edible oil. In this way, it is possible to automatically perform light inspection on abnormalities such as visible impurities or foreign matter in the edible oil, thereby realizing intelligent production quality control of the edible oil production process to ensure that the final product meets the quality standards.

[0042] Specifically, in the technical solution of the present application, first, a first monochromatic image of the edible oil to be detected under the irradiation of a first monochromatic light is acquired by a camera, and a second monochromatic image of the edible oil to be detected under the irradiation of a second monochromatic light is acquired by the camera, wherein the first monochromatic light is red light and the second monochromatic light is blue light. Then, a deep neural network model is used to capture the hidden edible oil state feature information in the first monochromatic image of the edible oil and the second monochromatic image of the edible oil, respectively. In particular, since the hole convolution neural network model is a special convolution operation, it can reduce the number of parameters without changing the receptive field by introducing holes in the convolution kernel (i.e., inserting intervals between the elements of the convolution kernel), which helps the network capture the implicit features of the image at different scales, which is very important for identifying impurities of different sizes. For example, some small impurities may be identified within a smaller receptive field, while larger impurities may require a larger receptive field. Based on this, in the technical solution of the present application, the first monochrome light image of edible oil and the second monochrome light image of edible oil are respectively subjected to feature mining in an edible oil state feature extractor based on a hole convolutional neural network model, so as to respectively extract characteristic information representing the state of edible oil under different monochromatic lights in the first monochrome light image of edible oil and the second monochrome light image of edible oil, thereby obtaining a state feature map of edible oil under the first monochrome light and a state feature map of edible oil under the second monochrome light.

[0043] In one embodiment of the present application, the edible oil state feature extraction module under monochromatic light is used to: respectively pass the first edible oil monochrome light image and the second edible oil monochrome light image through an edible oil state feature extractor based on a hole convolutional neural network model to obtain the edible oil state feature map under the first monochromatic light and the edible oil state feature map under the second monochromatic light.

[0044] Then, since the state feature map of the edible oil under the first monochromatic light and the state feature map of the edible oil under the second monochromatic light respectively contain the implicit state and performance feature information of the edible oil under different monochromatic light illumination. And the state feature map of the edible oil under the first monochromatic light and the state feature map of the edible oil under the second monochromatic light respectively have different aspects of the edible oil state. These features contain different aspects of information about the texture, color and semantics of the edible oil state, and the different aspects of the edible oil state have different contributions to the subsequent impurity identification and edible oil anomaly detection tasks. Therefore, in order to help the system understand the overall structure and content of the image more comprehensively and effectively, thereby improving the system's ability to identify impurities, in the technical solution of the present application, the state feature map of the edible oil under the first monochromatic light and the state feature map of the edible oil under the second monochromatic light are further input into the feature representation enhancement module based on saliency-globality to obtain the enhanced state feature map of the edible oil under the first monochromatic light and the enhanced state feature map of the edible oil under the second monochromatic light. Through the processing of the saliency-global feature characterization enhancement module, it is possible to automatically learn and capture the feature information that is more relevant to the identification of impurities or foreign matter and the subsequent edible oil anomaly detection task in the multi-faceted implicit state features of edible oil under different monochromatic light illumination, and express these features prominently, removing those features that are not very helpful for impurity identification. This is conducive to perceiving the key areas of the edges or color changes corresponding to impurities in edible oil, which are crucial for identifying impurities, and helps to extract more comprehensive and robust edible oil state features, and improve the system's ability to identify visible impurities.

[0045] In one embodiment of the present application, the image global-salient feature enhancement module includes: a vector expansion unit, which is used to vectorize and expand each feature matrix along the channel dimension in the edible oil first monochromatic light state feature map to obtain a sequence of edible oil first monochromatic light state feature vectors; a numerical calculation unit, which is used to respectively calculate the mean and maximum value of each edible oil first monochromatic light state feature vector in the sequence of edible oil first monochromatic light state feature vectors to obtain a semantic global representation vector of the edible oil first monochromatic light state composed of multiple vector means and a semantic prominent representation vector of the edible oil first monochromatic light state composed of multiple vector maximum values; a first feature capture and expression unit, which is used to perform feature capture and expression on the semantic global representation vector of the edible oil first monochromatic light state to obtain a global semantic activation representation feature vector of the edible oil first monochromatic light state; and a second feature capture and expression unit, which is used to perform feature capture and expression on the semantic prominent representation vector of the edible oil first monochromatic light state to obtain a semantic prominent activation representation feature vector of the edible oil first monochromatic light state. a vector fusion unit, used for fusing the global semantic activation representation feature vector of the edible oil in the first monochromatic light state and the prominent semantic activation representation feature vector of the edible oil in the first monochromatic light state to obtain the global-prominent semantic association activation feature vector of the edible oil in the first monochromatic light state, and then performing nonlinear activation processing on the global-prominent semantic association activation feature vector of the edible oil in the first monochromatic light state to obtain the global-prominent semantic association weight feature vector of the edible oil in the first monochromatic light state; a position point multiplication calculation unit, used for taking the global-prominent semantic association weight feature vector of the edible oil in the first monochromatic light state as the weight, performing position point multiplication on the sequence of the edible oil in the first monochromatic light state feature vectors and adding the sequence of the edible oil in the first monochromatic light state feature vectors to obtain the sequence of the fortified edible oil in the first monochromatic light state feature vectors; and an aggregation unit, used for aggregating the sequence of the fortified edible oil in the first monochromatic light state feature vectors in the manner of vectorized expansion of the edible oil in the first monochromatic light state feature map to obtain the fortified edible oil in the first monochromatic light state feature map.

[0046] Furthermore, since the state characteristic map of the fortified edible oil under the first monochromatic light and the state characteristic map of the fortified edible oil under the second monochromatic light respectively contain implicit characteristic information about the state performance of the edible oil under different monochromatic light after being expressed through global and significant feature enhancement. Therefore, in order to be able to compare the characteristic maps under two different monochromatic lights, thereby highlighting the parts that change under different lighting conditions, these changes are likely to be caused by impurities. In the technical solution of the present application, the differential characteristic map between the state characteristic map of the fortified edible oil under the first monochromatic light and the state characteristic map of the fortified edible oil under the second monochromatic light is further calculated. By calculating the differential characteristic map, the features of those edible oil states that change significantly under different lighting conditions can be enhanced. These features may be indicators of impurities, which help to improve the recognition rate of impurities.

[0047] In one embodiment of the present application, the first feature capture and expression unit is used to: perform one-dimensional convolution encoding on the semantic global representation vector of the edible oil state under the first monochromatic light, and then The activation function is processed to obtain a global semantic representation vector of the activated expression of the state of edible oil under the first monochromatic light; the global semantic representation vector of the activated expression of the state of edible oil under the first monochromatic light is again encoded through one-dimensional convolution and then matrix multiplied with the first trainable linear transformation weight matrix to obtain a feature vector of the global semantic activation representation of the state of edible oil under the first monochromatic light.

[0048] Furthermore, in one embodiment of the present application, the second feature capture and expression unit is used to: perform one-dimensional convolution encoding on the semantic salient representation vector of the edible oil state under the first monochromatic light and then generate a new feature vector; The activation function is processed to obtain an activation expression vector for the semantically salient representation of the edible oil in the first monochromatic light state; the activation expression vector for the semantically salient representation of the edible oil in the first monochromatic light state is again encoded through one-dimensional convolution and then matrix multiplied with a second trainable linear transformation weight matrix to obtain a feature vector for the semantically salient activation representation of the edible oil in the first monochromatic light state.

[0049] Furthermore, in one embodiment of the present application, the vector fusion unit is used to: fuse the global semantic activation representation feature vector of the edible oil state under the first monochromatic light and the prominent semantic activation representation feature vector of the edible oil state under the first monochromatic light to obtain the global-prominent semantic association activation feature vector of the edible oil state under the first monochromatic light; respectively use the hyperbolic tangent function and The function activates the global-salient semantic association activation feature vector of the edible oil in the first monochromatic light state to obtain a global-salient feature hyperbolic tangent activation semantic representation vector of the edible oil in the first monochromatic light state and a global-salient feature S-type activation semantic representation vector of the edible oil in the first monochromatic light state; the global-salient feature hyperbolic tangent activation semantic representation vector of the edible oil in the first monochromatic light state and the global-salient feature S-type activation semantic representation vector of the edible oil in the first monochromatic light state are multiplied by position points to obtain a global-salient semantic association weight feature vector of the edible oil in the first monochromatic light state.

[0050] Specifically, the state feature map of the edible oil under the first monochromatic light is input into the feature characterization enhancement module based on saliency-globality for processing using the following saliency enhancement formula to obtain a sequence of edible oil state feature vectors under the first monochromatic light; wherein the saliency enhancement formula is: ;in, is a sequence of characteristic vectors of the state of edible oil under the first monochromatic light obtained by vectorizing and expanding each characteristic matrix along the channel dimension in the characteristic map of the state of edible oil under the first monochromatic light, represents the global mean operation in the calculation vector, Represents the maximum value operation in the vector. is the semantic mean representation vector of the state of edible oil under the first monochromatic light, is the semantic maximum representation vector of the edible oil state under the first monochromatic light, represents one-dimensional convolutional coding, express Activation function, and They represent the trainable weight matrices for linear transformation, and are the semantic global representation feature vector of edible oil under the first monochromatic light and the semantic prominent representation feature vector of edible oil under the first monochromatic light, respectively. for function, for function, It means point multiplication by position. is a sequence of state feature vectors of the fortified edible oil under the first monochromatic light; and, the sequence of state feature vectors of the fortified edible oil under the first monochromatic light is aggregated in a manner of quantized expansion of the state feature map of the edible oil under the first monochromatic light to obtain the state feature map of the fortified edible oil under the first monochromatic light.

[0051] Then, the differential feature map is input into the classifier-based light inspection result generator to obtain the light inspection result, which is used to indicate whether the edible oil has abnormalities. In other words, the visible impurities or foreign matter in the edible oil are identified and detected by using the implicit state differential representation features under different monochromatic lights. In this way, the visible impurities or foreign matter in the edible oil can be automatically inspected by light, thereby realizing intelligent production quality control of the edible oil production process to ensure that the final product meets the quality standards.

[0052] In one embodiment of the present application, the edible oil lamp inspection result generation module is used to: calculate the differential feature map between the state feature map of the fortified edible oil under the first monochromatic light and the state feature map of the fortified edible oil under the second monochromatic light; input the differential feature map into a classifier-based lamp inspection result generator to obtain a lamp inspection result, and the lamp inspection result is used to indicate whether there is an abnormality in the edible oil.

[0053] Furthermore, the edible oil production quality control system also includes a training module for training the edible oil state feature extractor based on the void convolutional neural network model, the feature representation enhancement module based on significance-globality, and the light inspection result generator based on the classifier. The training module includes: a first monochromatic light image acquisition unit for training, which is used to obtain a first monochromatic light image of the edible oil to be tested collected by a camera under the irradiation of a first monochromatic light, and a true value of whether the edible oil has an abnormality; a second monochromatic light image acquisition unit for training, which is used to obtain a second monochromatic light image of the edible oil to be tested collected by the camera under the irradiation of a second monochromatic light, wherein the first monochromatic light is red light and the second monochromatic light is blue light; a edible oil state feature extraction unit under training monochromatic light, which is used to extract features based on the state of the edible oil from the first monochromatic light image of the edible oil to train and the second monochromatic light image of the edible oil to obtain a state feature map of the edible oil to train under the first monochromatic light and a state feature map of the edible oil to train under the second monochromatic light; a global-salient feature enhancement unit for training images, which is used to extract features based on the state of the edible oil from the first monochromatic light image of the edible oil to train and the second monochromatic light image of the edible oil to train; and a global-salient feature enhancement unit for training images, which is used to enhance the state feature map of the edible oil to train and the state feature map of the edible oil to train. The feature map is input into the feature characterization enhancement module based on significance-globality to obtain the state feature map of the training fortified edible oil under the first monochromatic light and the state feature map of the training fortified edible oil under the second monochromatic light; the training edible oil lamp inspection result generation unit is used to calculate the training differential feature map between the state feature map of the training fortified edible oil under the first monochromatic light and the state feature map of the training fortified edible oil under the second monochromatic light; the classification loss unit is used to input the training differential feature map into the lamp inspection result generator based on the classifier to obtain the classification loss function value; the loss function calculation unit is used to calculate the predetermined loss function value for the training differential feature map; the training unit is used to train the edible oil state feature extractor based on the void convolutional neural network model, the feature characterization enhancement module based on significance-globality and the lamp inspection result generator based on the classifier with the weighted sum of the classification loss function value and the predetermined loss function value as the final loss function value.

[0054] Preferably, for the image semantic features of the first monochromatic image of the training edible oil and the second monochromatic image of the training edible oil respectively expressed by the feature map of the state of the training edible oil under the first monochromatic light and the feature map of the state of the training edible oil under the second monochromatic light, after the saliency-global feature enhancement, due to the difference in feature saliency-global enhancement weight distribution caused by the distribution difference in the semantic space domain of the source image, the training differential feature map will also have a complicated distribution structure due to insufficient aggregation of the semantic feature distribution of the differential image, thereby having a relatively obvious problem of insufficient classification understanding of the complex feature expression, affecting the accuracy of the classification result obtained by the classifier of the training differential feature map.

[0055] Based on this, the present application further introduces a loss function for promoting classification understanding by expressing complex features of the training differential feature map, wherein the mean and variance between the eigenvalues ​​at any two positions of the training differential feature vector after the training differential feature map is expanded are first calculated to obtain a mean weight matrix and a variance weight matrix, and then the training differential feature vector is respectively multiplied by the mean weight matrix and the variance weight matrix in a query manner, and the autocorrelation matrix of the two eigenvectors is calculated. norm, and subtract the autocorrelation matrix of the training differential eigenvector The predetermined loss function value is obtained by multiplying the norm by the weight as a hyperparameter.

[0056] For example, represented as: ;in, represents the training differential feature vector after the training differential feature map is expanded, is the mean weight matrix, is the variance weight matrix, represents the transpose of a vector, represents the matrix multiplication operation, is the weight as a hyperparameter, Represents the matrix norm, represents the predetermined loss function value, and as described above: ;in, represents the training differential feature vector eigenvalues, represents the training differential feature vector eigenvalues, represents the mean weight matrix The eigenvalues ​​of the positions, represents the variance weight matrix The eigenvalue of the location.

[0057] That is, the predetermined loss function value, on the basis of determining the overall distributed structural bottleneck of the training differential feature vector through the multi-dimensional interaction of the detail group of the training differential feature vector, associatively simulates the correlation between the structural details of the training differential feature vector and the macro-structured feature representation behavior through the low-rank structured reasoning of the training differential feature vector. In this way, by training the classifier with the predetermined loss function value, the structural detail dependency relative to the macro-complexity can be modeled in the classification scenario, thereby promoting the understanding of the macro-complex feature expression of the training differential feature vector based on the structural details and improving the accuracy of the classification results.

[0058] Based on this, the applicant of the present application takes the training differential feature map as a feature set, wherein the semantic representation of changes in units of the feature value of the training differential feature map, in order to dynamically aggregate the semantic set composed of different change semantics of the training differential feature map as a whole without ignoring the individual semantic change information, the individual features of the training differential feature map and the collective expression of their aggregation scale are used as the feature full amplitude and half amplitude, and the low-rank negative correlation of different dimensions of the overall semantics of the feature set of the training differential feature map is used as the phase and scaled to dynamically adjust the change relationship of the semantic content of the training differential feature map, thereby improving the aggregation of the overall semantic information expression of the feature set of the training differential feature map, and improving the classification convergence efficiency of the training differential feature map through the classifier, that is, improving the efficiency of classification training and the accuracy of classification results. In this way, more effective automatic optical inspection of abnormalities such as visible impurities or foreign matter in edible oil can be carried out, thereby realizing intelligent production quality control of the edible oil production process to ensure that the final product meets the quality standards.

[0059] In summary, the above scheme is adopted to collect the first monochromatic image and the second monochromatic image of edible oil under red light and blue light through the camera, and introduce the image processing and analysis algorithm based on artificial intelligence and machine vision technology at the back end to analyze and compare the first monochromatic image and the second monochromatic image, so as to identify and detect visible impurities or foreign matter in edible oil. In this way, the visible impurities or foreign matter in edible oil can be automatically inspected by light, thereby realizing the intelligent production quality control of the edible oil production process to ensure that the final product meets the quality standards.

[0060] Figure 2 is a flow chart of a method for controlling the quality of edible oil production according to an exemplary embodiment. Figure 2 As shown, the method includes: step S201, obtaining a first monochromatic image of the edible oil to be detected under the irradiation of a first monochromatic light, which is collected by a camera.

[0061] Step S202: acquiring a second monochromatic image of the edible oil to be detected under irradiation with a second monochromatic light, collected by the camera, wherein the first monochromatic light is red light and the second monochromatic light is blue light.

[0062] Step S203, performing feature extraction based on the state of edible oil on the first monochromatic light image of edible oil and the second monochromatic light image of edible oil respectively to obtain a state feature map of edible oil under the first monochromatic light and a state feature map of edible oil under the second monochromatic light.

[0063] Step S204: input the edible oil state characteristic map under the first monochromatic light and the edible oil state characteristic map under the second monochromatic light into a saliency-globality-based feature characterization enhancement module to obtain a fortified edible oil state characteristic map under the first monochromatic light and a fortified edible oil state characteristic map under the second monochromatic light.

[0064] Step S205, calculating a differential characteristic graph between the state characteristic graph of the fortified edible oil under the first monochromatic light and the state characteristic graph of the fortified edible oil under the second monochromatic light, and generating a light inspection result based on the differential characteristic graph, wherein the light inspection result is used to indicate whether the edible oil is abnormal.

[0065] Furthermore, in this application, a production process and product quality control method is provided, the purpose of which is to provide a basis for workshop cost assessment and to ensure the quality of workshop products.

[0066] Applicable scope: refining workshop, packaging workshop, bulk oil depot.

[0067] Among them, in the refining workshop, 1. Before the crude oil enters the workshop, the bulk oil depot pipe starts measuring and notifies the laboratory to take samples for inspection. The laboratory technicians conduct color value and bleached sample inspections on the mixed sample once per shift. 2. The time for the crude oil to enter the pre-bleaching tank is counted. After one hour, samples are taken to inspect the color value of the pre-bleached oil. After that, the color value of the pre-bleached oil is inspected every hour. The pre-bleaching tank is emptied, and the workshop must notify the laboratory in time. After 2 hours, the color value of the bleached oil is inspected. After that, the color value of the bleached oil is inspected every hour. After 2 hours, the color value of the finished oil is inspected. After that, the color value of the finished oil is inspected every 2 hours. The day shift conducts 6 inspections to inspect the color, acid value, and peroxide value of the finished oil; the night shift conducts 6 inspections to inspect the color, acid value, and peroxide value of the finished oil. Inform the workshop operator promptly after the test is completed.

[0068] The workshop production index control standards are shown in Table 1 below:

[0069] The color value of finished oil is based on the indicators tested by the Quality Inspection Department. The above control standards are for reference only, as the quality and variety of crude oil vary.

[0070] In the packaging workshop (workshop self-inspection and random inspection by quality inspectors), there are no foreign objects, odors or water marks in the barrel.

[0071] The quality of PET bottle blow molding includes: 1. Appearance: a. The bottle body is transparent, smooth and bright; b. The bottle mouth is straight and flat, the thread is full and smooth, without chipping, overflow and burrs; c. The bottle body is not allowed to have bubbles or accumulation; foggy whitening and deformation are not allowed; the joints are smooth without burrs, impurities, stains or cracks; the wall thickness is uniform and there is no obvious weak part. 2. Inside the bottle: no dust, impurities, foreign matter or odor. 3. Drop performance: Fill the oil pot with water of nominal capacity, and let it fall vertically with the bottom facing down to a flat cement floor. The drop height is 1.2m, the number of drops is 1, and the number of samples is 3. Then check, if there is no cracking, no popping of the lid, and the handle does not fall off, it is qualified. 4. Sealing performance: Fill the oil pot with water, tighten the lid and turn it upside down for 4 hours without leakage, 3 samples.

[0072] Filling quality includes: 1. Container mouth: no deformation, full and smooth. 2. Container body: clean, no cracks, collapse and serious abrasion. 3. Inside the container: no odor, no water marks, no foreign matter. 4. Label: the pasting position is correct, there is no warping around, and the pasting is correct. 5. Capping: the bottle cap should be pressed in place, not loose, and no leakage. 6. The inkjet code should be firm, the position should be correct, and it should clearly reflect the qualified and production date: year-month-day. 7. Light inspection: no visible impurities or foreign matter are allowed in the oil. 8. Inspection of finished products before packing: no oil stains on the bottle body, no pollution on the label, clear inkjet code, correct production date, bottle cap and handle are intact, and there are no visible impurities or foreign matter in the bottle. 9. Net content: according to the different specifications of filling, the filling station will make adjustments, and filling will start after the measurement scale is compared and correct. Re-inspection will be done every 2 hours, and timely adjustment will be made if the error exceeds the range. 10. Leakage test: Fill the oil pot with oil, tighten the lid and turn it upside down for 2 hours without leakage. 2 samples, 3 times a day.

[0073] The filling station is responsible for the full inspection of (1, 2, and 3); the labeling station is responsible for the full inspection of (4), and the packaging station is responsible for the full inspection of automatic labeling; the capping station is responsible for the full inspection of (5 and 7); and the packaging station is responsible for the full inspection of (6, 8, and 9).

[0074] Furthermore, if the container is damaged and needs to be repackaged, it must be packaged under the supervision of the quality inspector. The quality inspection department conducts irregular inspections of the production line.

[0075] The bulk oil depot includes: 1. According to the production schedule, plan the production tasks for the day, and the order of oiling and filling is from deep to shallow, or from shallow to deep. 2. According to the task list of the day, the oil is pumped into the temporary storage tank of the packaging workshop. 3. After each item is completed, flush the pipeline with the next oil product for 5-10 minutes. After the temporary storage tank of the packaging workshop is drained, pump about 200kg of the next item of oil into the pipeline, and then flush the pipeline with the oil to be filled for 5-10 minutes. The packaging workshop returns this oil to the bulk oil depot for use as blending oil, and then starts filling the next oil product. 4. When filling blending oil, adjust the order of oiling so that the last oil product in the ingredients is as similar as possible to the next item. 5. The laboratory technician takes samples from the high-level box, and filling can only be carried out after passing the inspection.

[0076] In the finished oil packaging standards, the inspection methods include: car skin inspection.

[0077] Inspection in the packaging workshop, for example, the bulk oil depot fills oil according to production requirements, and the laboratory technician takes samples of the canned oil products from the bulk oil depot for testing, and informs the bulk oil depot manager of the inspection results; the laboratory will issue an inspection report in duplicate for the oil products that meet the filling requirements. The filling workshop can only fill after the laboratory inspector, the head of the quality inspection department, and the director of the filling workshop sign; during the filling period, the laboratory takes samples to test the color value. If it does not meet the standards, the filling workshop will be notified in time to stop packaging.

[0078] Net content sampling, for example, net content of 20kg package: 20kg±40g; net content of 5L package: 5L±20ml, the net content shall not be less than 4.70kg; net content of 4L package: 4L±15ml, the net content shall not be less than 3.85kg; net content of 2.5L package: 2.5L±10ml, the net content shall not be less than 2.40kg; net content of 1.8L package: 1.8L±10ml, the net content shall not be less than 1.74kg; net content of 1.5L package: 1.5L±10ml, the net content shall not be less than 1.45kg; net content of 20L package: 20L±40ml, the net content shall not be less than 18.6kg; one day is one inspection batch, and the quality inspectors shall conduct random inspections every day, and no less than 4 barrels each time.

[0079] In the calculation of net content, the mass of the empty barrel is sampled and the mass of the empty barrel filled with oil is taken to calculate the net content of the oil.

[0080] Sampling location, tanker truck sampling: Sampling can be done directly within 10 minutes after the tanker truck stops in the factory. Before sampling, check whether the lead seal of the tanker truck is intact. If the lead seal is intact, sampling can be done immediately. If the tanker truck stays in the factory for more than 10 minutes, take samples from the upper, middle and lower parts respectively. The samples can be inspected only after the oil samples are evenly mixed. Only when all indicators of the oil samples meet the requirements can the relevant production personnel in charge be notified to proceed to the next step.

[0081] In one embodiment of the present application, the degumming process section flow chart is as follows Figure 3 As shown, the key operations include: 1. Inject soft water into the hot water tank and open the direct steam valve to heat it to 90-95°C.

[0082] 2. Heat the crude oil to 60℃-70℃ and determine the flow rate. According to the flow rate of crude oil processed per hour, add 3%-5% hot water of the oil weight and mix it through a centrifugal pump, then let it enter the neutralization delay device to react for at least 30 minutes and set aside.

[0083] 3. Press the start button of the DHZ470 centrifuge. When it reaches full speed (full speed time is generally 7 minutes), start the hot water pump and open the hot water valve. The water volume should not be too large. Operate the water pump to adjust the outlet pressure to control it at 0.3MPa.

[0084] 4. Turn on the delayed oil pump and adjust the steam valve of the delayed oil heater in front of the centrifuge to keep the oil inlet temperature at 85℃--90℃. Open the oil inlet valve of the centrifuge (the valve should be opened slowly and should not be opened too much, generally about 1 / 4), and then start to adjust the outlet pressure of the centrifuge to control it at 0.15--0.18mpa.

[0085] 5. Heat the degummed oil to about 105℃--130℃ through a heater and transport it to a drying tower (vacuum degree -0.09mpa ---- -0.096mpa) for dehydration. After passing the test, it is transported to the finished oil tank and is ready to enter the next stage of decolorization process.

[0086] The shutdown steps include: 1. First stop the crude oil pump, stop the oil supply, and then stop the centrifugal mixing pump. After the oil is completely drained, rinse the centrifuge with hot water, turn off the hot water pump and operating water pump, then turn off other valves on the centrifuge and press the stop button.

[0087] 2. After the oil in the drying tower is evacuated, close the steam preheating valve, stop the oil extraction pump and water jet vacuum pump. Close the remaining valves and wait for the next startup.

[0088] The decolorization process flow chart is as follows: Figure 4 As shown, the preparations before starting include: 1. White clay: Pour the white clay into the white clay feeding tank, start the white clay suction device, and allow the white clay to be smoothly transported from the feeding tank to the white clay box on the upper part of the white clay quantitative device.

[0089] 2. Calculation: Determine the oil flow rate and mixing ratio.

[0090] Amount of white clay: Determined according to the quality of the oil, generally less than 3% of the oil volume.

[0091] 3. Turn on the vacuum pump, the bleaching tower forms a negative pressure of -0.09MPa, the cooling water outlet temperature of the water jet pump is 30℃, and the maximum does not exceed 40℃.

[0092] 4. Check and adjust the valve to determine which leaf filter to use.

[0093] The starting steps include: 1. Start the oil pump, open the oil pipeline valve, and adjust the flow.

[0094] 2. Open the heater steam valve and control the temperature at 100-125℃.

[0095] 3. Open the steam valve of the bleaching tower jacket and control the temperature to 90-125℃.

[0096] 4. Start the clay dosing device and add a certain amount of clay according to the decolorization test provided by the laboratory.

[0097] 5. When the clay premix tank and bleaching tower reach a certain liquid level, start steam mixing. When the oil level in the bleaching tower reaches a certain height, start the bleaching tower extraction pump, adjust the outlet valve and inlet valve to make the flow rate appropriate, so that the oil enters the filter (for filter operation, see the filter operation instructions).

[0098] After circulation in the filter, the oil becomes clear. After passing the inspection, the oil is led to the safety filter to produce the decolorized finished oil.

[0099] 7. During operation, check the following parameters regularly: (1) oil quality; (2) flow rate; (3) bleaching tower liquid level; (4) vacuum degree; (5) clay box material level; (6) pump operation (not idling); (7) temperature; (8) clay metering system condition; (9) check the filter pressure gauge pressure, and determine whether to replace the filter based on the pressure and usage time.

[0100] The shutdown steps include: 1. Close the oil inlet pump and related valves in the pipeline, and stop the supply of white clay.

[0101] 2. Close the heater steam valve.

[0102] 3. Evacuate the oil-clay mixture in the bleaching tower, then turn off the extraction pump, the stirring of the bleaching tower and the mixer, and the steam injection pump.

[0103] 4. Shutdown, dry, and unload the leaf filter according to the filter operating instructions.

[0104] 5. Clean the pipes to prevent white clay from clogging them.

[0105] Among them, the oil inlet and outlet operations of the filter include: 1. First check that the filter discharge bottom valve and other valves must be in the closed state.

[0106] 2. When adding oil, open the overflow valve first, then open the oil inlet valve to add oil.

[0107] 3. Observe the overflow sight glass. When oil flows out, open the circulation valve first and then close the overflow valve. The filter is in circulation state at this time.

[0108] 4. After observing that the oil in the circulating sight glass is clear, open the oil outlet valve first, then close the circulating valve and start normal oil discharge.

[0109] Filter purging operation (when the currently used filter reaches a certain amount of white clay filtration (240kg--300kg), purging is required): Take the purge of filter A to filter B as an example, first control the liquid level of the decolorization tower to below the sight glass, and when the computer liquid level is displayed in red, switch filter A to the circulation state and prepare for purging; first open the overflow valve of filter B (check the unloading valve of filter B before opening the valve, which must be in the closed state), and then open the oil pressure valve; open the steam valve of filter A, and at the same time close the oil inlet valve of filter A and open the oil pressure valve of filter A. Then open the oil inlet valve of filter B; adjust the handwheel steam valve to control the pressure of filter A and keep it at 0.28mpa---0.3mpa; pay attention to the circulation sight glass of filter A. If half of the oil flows and a large number of bubbles appear, open the purge valve first, and then close the circulation valve. Keep the pressure unchanged; observe filter B. When oil flows out of the overflow sight glass, open the circulation valve first, and then close the overflow valve. At the same time, open the decolorizing tower oil pressure valve and close the B filter oil pressure valve. At this time, the B filter is in a circulating state; when the A filter oil pressure sight glass shows no oil flowing out, quickly turn off the oil pressure valve. Keep the filter pressure unchanged. At this time, the A filter is in a purging state, and the general purging time is 2400s---3600s (the duration is determined according to the amount of white clay added); when the A filter is purged to the time, close the steam valve. When the filter pressure drops to 0mpa, close the purging valve. Open the A filter soil unloading bottom valve, start the vibration for 3s, stop for about 10s, and stop after starting the vibration for 5s, close the soil unloading bottom valve and open it again, and move it. Then turn on the vibration a few more times, and when no waste residue is discharged from the discharge port, the soil unloading is completed. Close the soil unloading bottom valve for next use.

[0110] The dewaxing process flow chart is as follows: Figure 5 As shown in the figure, the preparations before starting the machine include: the concentration of ethylene glycol in the refrigerant is adjusted to about 25%, the freezer is tested to run normally, and the filter aid is fully prepared.

[0111] The starting steps include: 1. Before adding oil, the refrigerant is circulated and the refrigerator is running. The set temperature of the refrigerant is generally controlled at around 4°C.

[0112] 2. The decolorized oil is cooled to about 35℃ and enters the pre-mixing tank, and perlite filter aid is added quantitatively.

[0113] 3. The mixed oil first flows into the first crystallization tank (temperature 26℃, 20℃), and then overflows into the second crystallization tank (temperature 15℃, 10℃), and the third crystal tank (temperature 8℃). When the liquid level in the third crystal tank reaches 2 / 3, start to feed oil to the filter.

[0114] 4. First open the overflow valve of the dewaxing filter, then open the oil inlet valve, and at the same time open the crystal tank extraction pump to supply oil to the filter. The pump outlet pressure is generally adjusted to 0.4 MPa.

[0115] 5. When oil flows out of the filter overflow sight glass, open the circulation valve first and then close the overflow valve.

[0116] 6. When the oil in the circulating sight glass is clear and transparent (generally circulates for 40-60 minutes), open the oil outlet valve and then close the circulation valve. At this time, the filter is in the oil outlet state.

[0117] Deodorization and deacidification process flow Figure 6 As shown, the preparations before starting include: 1. Steam: The pressure must not be lower than 0.6Mpa.

[0118] 2. Water: The cooling water temperature shall not be higher than 30℃.

[0119] 3. Vacuum: Turn on the steam jet pump to evacuate the deodorization tower, deacidification and gas analyzer to make the vacuum degree reach a residual pressure below 300 mmHg.

[0120] 4. Heat transfer oil system: According to the operating procedures of the heat transfer oil furnace system, the furnace should be heated in advance. At this time, the oil does not pass through the heater and is short-circuited until the heat transfer oil temperature reaches 250-265℃ for standby use.

[0121] 5. After completing the above preparations, close the vent valve at the bottom of each layer of the deodorization tower and wait for oil to enter.

[0122] The startup steps include: 1. Supply oil to the gas analyzer system: open the oil inlet pipeline valve and adjust the size to allow the decolorized oil to enter the heater through the rotor flowmeter. At this time, open the steam valve of the heater and raise the oil temperature to 130-160℃ before entering the gas analyzer. When the oil level in the gas analyzer rises to a certain level, start the extraction pump.

[0123] 2. Filling the heat exchanger: The oil that has passed through the gasifier is extracted and pumped into the heat exchanger to exchange with the hot oil coming out of the deodorization tower (when the oil in the deodorization tower is extracted).

[0124] 3. Entering the thermal oil heater: The gasified oil absorbs the heat of the hot oil from the deodorizer when passing through the heat exchanger, and the temperature rises to about 200°C. At this time, it enters the thermal oil heater and is heated to 230-240°C by the thermal oil heater.

[0125] 4. Entering the deodorization tower: The oil reaching the deodorization temperature enters the deodorization tower and enters the first layer first. When the first layer is full of oil, open the direct steam of the first layer, observe the pressure gauge, and adjust the valve size. Then overflow to the second layer in turn. At the same time, open the direct steam valve and adjust the valve size downward. When the oil level of the last layer reaches a certain height, open the deodorization tower oil pump. The deodorized oil is transferred to the deacidification tower.

[0126] 5. The oil extracted from the deodorization tower is heated to about 240℃ by the heat transfer oil heat exchanger and enters the deacidification tower. Then the direct steam of the deacidification tower is turned on to remove fatty acids. When the deacidification tower has a certain liquid level, the deacidification tower oil pump is turned on and the circulation valve is opened. The oil inlet valve and oil pump of the gasification tower and the oil outlet valve of the gasification tower are closed. At this time, the deodorization system is in a circulation state.

[0127] 6. When the outlet oil temperature of the deacidification tower reaches 240-245℃ (the outlet oil temperature varies for different oil products, refer to Chapter 3), open the outlet oil valve of the deacidification tower, close the inlet oil valve, and start to discharge finished oil. At this time, open the inlet and outlet oil valves of the gasification tower, start the oil pump of the gasification tower to start normal oil inflow to the deodorization tower, and the whole system is in normal production state.

[0128] 7. The oil from the deacidification tower enters the water cooler to be cooled to about 35°C, and then enters the polishing filter for filtration (it must be tested and qualified by the laboratory at this time. If it fails, it will continue to circulate and be tested), and finally the first-grade finished oil is obtained.

[0129] Reference below Figure 7 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present application. The terminal device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0130] like Figure 7 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0131] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0132] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present application are executed.

[0133] It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0134] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0135] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0136] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0137] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0138] The modules involved in the embodiments described in this application can be implemented by software or hardware. The name of the module does not limit the module itself in some cases. For example, the test parameter acquisition module can also be described as a "module for acquiring device test parameters corresponding to the target device".

[0139] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0140] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0141] Figure 8 FIG. 1 is an application scenario diagram of an edible oil production quality control system according to an exemplary embodiment. Figure 8 As shown, in this application scenario, first, a first monochromatic image of the edible oil to be detected under the irradiation of the first monochromatic light is obtained by a camera (for example, Figure 8 C1 as shown in the figure); obtaining a second monochromatic image of the edible oil to be detected under the irradiation of the second monochromatic light collected by the camera (for example, Figure 8 Then, the acquired first monochromatic image of edible oil and the second monochromatic image of edible oil are input to a server (for example, Figure 8 In S) shown in , the server is capable of processing the first monochrome light image of the edible oil and the second monochrome light image of the edible oil based on the edible oil production quality control algorithm to generate a light inspection result, and the light inspection result is used to indicate whether there is an abnormality in the edible oil.

[0142] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

[0143] In addition, although each operation is described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or to be performed in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the application. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0144] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. An edible oil production quality control system, characterized in that: include: A first monochromatic light image acquisition module, used for acquiring a first monochromatic light image of the edible oil to be tested under the irradiation of the first monochromatic light, acquired by a camera; A second monochromatic image acquisition module, used for acquiring a second monochromatic image of the edible oil to be detected under the irradiation of a second monochromatic light, acquired by the camera, wherein the first monochromatic light is red light and the second monochromatic light is blue light; a monochromatic light edible oil state feature extraction module, used for performing feature extraction based on the edible oil state on the first monochromatic image of the edible oil and the second monochromatic image of the edible oil, respectively, to obtain a state feature map of the edible oil under the first monochromatic light and a state feature map of the edible oil under the second monochromatic light; The image global-significant feature enhancement module is used to input the state feature map of the edible oil under the first monochromatic light and the state feature map of the edible oil under the second monochromatic light into the feature characterization enhancement module based on significance-globality to obtain the state feature map of the enhanced edible oil under the first monochromatic light and the state feature map of the enhanced edible oil under the second monochromatic light; the edible oil lamp inspection result generation module is used to calculate the differential feature map between the state feature map of the enhanced edible oil under the first monochromatic light and the state feature map of the enhanced edible oil under the second monochromatic light, and generate the lamp inspection result based on the differential feature map, wherein the lamp inspection result is used to indicate whether the edible oil has abnormality.

2. The edible oil production quality control system according to claim 1, characterized in that: The edible oil state feature extraction module under monochromatic light is used to: respectively pass the first edible oil monochromatic light image and the second edible oil monochromatic light image through an edible oil state feature extractor based on a hole convolutional neural network model to obtain the edible oil state feature map under the first monochromatic light and the edible oil state feature map under the second monochromatic light.

3. The edible oil production quality control system according to claim 2, characterized in that: The image global-salient feature enhancement module includes: a vector expansion unit, which is used to vectorize and expand each feature matrix along the channel dimension in the edible oil first monochromatic light state feature map to obtain a sequence of edible oil first monochromatic light state feature vectors; a numerical calculation unit, which is used to respectively calculate the mean and maximum value of each edible oil first monochromatic light state feature vector in the sequence of edible oil first monochromatic light state feature vectors to obtain a semantic global representation vector of the edible oil first monochromatic light state composed of multiple vector means and a semantic prominent representation vector of the edible oil first monochromatic light state composed of multiple vector maximum values; a first feature capture and expression unit, which is used to perform feature capture and expression on the semantic global representation vector of the edible oil first monochromatic light state to obtain a global semantic activation representation feature vector of the edible oil first monochromatic light state; a second feature capture and expression unit, which is used to perform feature capture and expression on the semantic prominent representation vector of the edible oil first monochromatic light state to obtain a semantic prominent activation representation feature vector of the edible oil first monochromatic light state; a vector fusion unit; A unit is used for fusing the global semantic activation representation feature vector of the edible oil in the first monochromatic light state and the prominent semantic activation representation feature vector of the edible oil in the first monochromatic light state to obtain the global-prominent semantic association activation feature vector of the edible oil in the first monochromatic light state, and then performing nonlinear activation processing on the global-prominent semantic association activation feature vector of the edible oil in the first monochromatic light state to obtain the global-prominent semantic association weight feature vector of the edible oil in the first monochromatic light state; a position point multiplication calculation unit is used for taking the global-prominent semantic association weight feature vector of the edible oil in the first monochromatic light state as the weight, performing position point multiplication on the sequence of the edible oil in the first monochromatic light state feature vectors and adding the sequence of the edible oil in the first monochromatic light state feature vectors to obtain the sequence of the fortified edible oil in the first monochromatic light state feature vectors; an aggregation unit is used for aggregating the sequence of the fortified edible oil in the first monochromatic light state feature vectors in the manner of vectorization expansion of the edible oil in the first monochromatic light state feature map to obtain the fortified edible oil in the first monochromatic light state feature map.

4. The edible oil production quality control system according to claim 3, characterized in that: The first feature capture and expression unit is used to: perform one-dimensional convolution encoding on the semantic global representation vector of the edible oil state under the first monochromatic light, and then The activation function is used to process to obtain a global representation vector of the semantics of the activation expression state of the edible oil under the first monochromatic light; The global semantic representation vector expressing the activation state of the edible oil under the first monochromatic light is again encoded through one-dimensional convolution and then matrix-multiplied with the first trainable linear transformation weight matrix to obtain the global semantic activation representation feature vector of the edible oil under the first monochromatic light state.

5. The edible oil production quality control system according to claim 4, characterized in that: The second feature capture and expression unit is used to: perform one-dimensional convolution encoding on the semantic salient representation vector of the edible oil state under the first monochromatic light, and then The activation function is used to process to obtain the activation expression semantic salient representation vector of the state of the edible oil under the first monochromatic light; The semantically salient representation vector of the activation expression of the edible oil state under the first monochromatic light is again encoded through one-dimensional convolution and then matrix-multiplied with the second trainable linear transformation weight matrix to obtain the semantically salient activation representation feature vector of the edible oil state under the first monochromatic light.

6. The edible oil production quality control system according to claim 5, characterized in that: The vector fusion unit is used to: fuse the global semantic activation representation feature vector of the edible oil state under the first monochromatic light and the prominent semantic activation representation feature vector of the edible oil state under the first monochromatic light to obtain the global-prominent semantic association activation feature vector of the edible oil state under the first monochromatic light; respectively use the hyperbolic tangent function and The function activates the global-salient semantic association activation feature vector of the edible oil in the first monochromatic light state to obtain a global-salient feature hyperbolic tangent activation semantic representation vector of the edible oil in the first monochromatic light state and a global-salient feature S-type activation semantic representation vector of the edible oil in the first monochromatic light state; the global-salient feature hyperbolic tangent activation semantic representation vector of the edible oil in the first monochromatic light state and the global-salient feature S-type activation semantic representation vector of the edible oil in the first monochromatic light state are multiplied by position points to obtain a global-salient semantic association weight feature vector of the edible oil in the first monochromatic light state.

7. The edible oil production quality control system according to claim 6, characterized in that: The edible oil lamp inspection result generation module is used to: calculate the difference characteristic diagram between the state characteristic diagram of the fortified edible oil under the first monochromatic light and the state characteristic diagram of the fortified edible oil under the second monochromatic light; The differential feature map is input into a light inspection result generator based on a classifier to obtain a light inspection result, and the light inspection result is used to indicate whether the edible oil has an abnormality.

8. The edible oil production quality control system according to claim 7, characterized in that: It also includes a training module for training the edible oil state feature extractor based on the hole convolutional neural network model, the feature characterization enhancement module based on significance-globality, and the lamp inspection result generator based on the classifier.

9. The edible oil production quality control system according to claim 8, characterized in that: The training module includes: a first monochromatic light image acquisition unit for training, which is used to obtain a first monochromatic light image of the edible oil to be tested collected by a camera under the irradiation of a first monochromatic light, and a true value of whether the edible oil has an abnormality; a second monochromatic light image acquisition unit for training, which is used to obtain a second monochromatic light image of the edible oil to be tested collected by the camera under the irradiation of a second monochromatic light, wherein the first monochromatic light is red light and the second monochromatic light is blue light; a edible oil state feature extraction unit under training monochromatic light, which is used to extract features based on the state of the edible oil from the first monochromatic light image of the edible oil to train and the second monochromatic light image of the edible oil to obtain a state feature map of the edible oil to train under the first monochromatic light and a state feature map of the edible oil to train under the second monochromatic light; a global-salient feature enhancement unit for training images, which is used to extract features based on the state of the edible oil from the first monochromatic light image of the edible oil to train and the second monochromatic light image of the edible oil to train; and a global-salient feature enhancement unit for training images, which is used to enhance the state feature map of the edible oil to train and the state feature map of the edible oil to train. The feature map is input into the feature characterization enhancement module based on significance-globality to obtain the state feature map of the training fortified edible oil under the first monochromatic light and the state feature map of the training fortified edible oil under the second monochromatic light; the training edible oil lamp inspection result generation unit is used to calculate the training differential feature map between the state feature map of the training fortified edible oil under the first monochromatic light and the state feature map of the training fortified edible oil under the second monochromatic light; the classification loss unit is used to input the training differential feature map into the lamp inspection result generator based on the classifier to obtain the classification loss function value; the loss function calculation unit is used to calculate the predetermined loss function value for the training differential feature map; the training unit is used to train the edible oil state feature extractor based on the void convolutional neural network model, the feature characterization enhancement module based on significance-globality and the lamp inspection result generator based on the classifier with the weighted sum of the classification loss function value and the predetermined loss function value as the final loss function value.

10. A method for controlling the quality of edible oil production, characterized in that: include: A first monochromatic image of the edible oil to be detected collected by a camera under the irradiation of a first monochromatic light is obtained; a second monochromatic image of the edible oil to be detected collected by the camera under the irradiation of a second monochromatic light is obtained, wherein the first monochromatic light is red light and the second monochromatic light is blue light; feature extraction based on the state of the edible oil is performed on the first monochromatic image of the edible oil and the second monochromatic image of the edible oil respectively to obtain a state feature map of the edible oil under the first monochromatic light and a state feature map of the edible oil under the second monochromatic light; the state feature map of the edible oil under the first monochromatic light and the state feature map of the edible oil under the second monochromatic light are input into a feature characterization enhancement module based on saliency-globality to obtain a state feature map of the enhanced edible oil under the first monochromatic light and a state feature map of the enhanced edible oil under the second monochromatic light; a differential feature map between the state feature map of the enhanced edible oil under the first monochromatic light and the state feature map of the enhanced edible oil under the second monochromatic light is calculated, and a light inspection result is generated based on the differential feature map, and the light inspection result is used to indicate whether the edible oil has an abnormality.

Citation Information

Patent Citations

  • Edible oil quality fast identification method and identification device based on three-dimensional fluorescence spectrum

    CN104749150A

  • Pole piece quality monitoring system and method in lithium battery preparation

    CN115561243A

  • Lamp bead defect detection method and system

    CN116523905A

  • Food safety detection system and method thereof

    CN116858789A

  • Intelligent carton production management system and method

    CN117196227A