Veterinary laboratory sample tracing system
By designing a sample traceability system in a veterinary laboratory, using convolutional neural network and EfficientNet for sample identification and classification, the problem of messy sample management is solved, efficient management and tracking of samples is achieved, and work efficiency is improved.
Patent Information
- Application Number
- CN202411229130.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The sample management in the veterinary laboratory is messy, making it difficult to find samples and affecting the progress of work.
A veterinary laboratory sample traceability system was designed, including a control unit, a sample receiving unit, a sample storage unit and a sample traceability unit. The convolutional neural network and EfficientNet are used to identify and classify samples, and combined with cosine similarity calculations, the samples are efficient. Manage and track.
Through systematic management and high-precision identification, the samples are ensured to be orderly, the monitoring efficiency and work efficiency are improved, and the sample query and use time is reduced.
Smart Images

Figure CN119048117A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of laboratory management, and in particular relates to a veterinary laboratory sample tracing system. Background Art
[0002] Veterinary laboratories are institutions that specialize in the diagnosis, research, and treatment of animal diseases. The veterinary laboratory of the Ningxia Animal Disease Prevention and Control Center collects 130,000 samples each year, including 70,000 samples for etiology and 50,000 samples for serology. These samples mainly come from centralized monitoring in spring and autumn, major animal disease monitoring, animal disease purification and disease-free community construction sampling, national fixed monitoring sampling, veterinary laboratory comparison, and daily monitoring.
[0003] Every year, there are many types, categories and tasks of monitoring samples, and their storage is messy. As a result, some veterinary laboratory samples are often not found, and experiments cannot be carried out when verification is needed in emergencies, which indirectly affects the progress of work. Summary of the invention
[0004] The object of the present invention is to provide a veterinary laboratory sample tracing system to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A veterinary laboratory sample tracing system comprises a control unit, and a sample receiving unit, a sample storage unit, a sample recording unit and a sample tracing unit connected to the control unit;
[0007] Control unit, used for overall system control and data processing;
[0008] A sample receiving unit, used to identify samples in the laboratory;
[0009] A sample storage unit, used to store the identified and entered samples separately;
[0010] The sample traceability unit is used to record each time of sample collection, placement and testing;
[0011] The data statistics unit is used to count the sample data and generate statistical reports.
[0012] Preferably, the control unit comprises a control module, a storage module and a communication module;
[0013] Control module, used for data and overall control of system data;
[0014] A storage module, used to store sample information data and sample image data to form a database;
[0015] The communication module is used to communicate data with mobile devices.
[0016] Preferably, the sample receiving unit comprises a visual recognition module, a number generation module and an allocation module;
[0017] A visual recognition module, used for performing visual recognition detection on the samples to be received;
[0018] A number generation module is used to generate a unique number for the sample after the test is completed;
[0019] The allocation module is used to allocate storage locations for samples.
[0020] Preferably, the sample storage unit comprises a plurality of sample storage modules, a guide module and a position detection module;
[0021] A sample storage module, used for storing and placing samples;
[0022] A guidance module is used to guide personnel when they need to store or retrieve samples;
[0023] The position detection module is used to perform self-detection on the position of the sample to ensure that the sample is in its storage position.
[0024] Preferably, the sample tracing unit includes a personnel information entry module, a timing module, a sample status update module and a query module;
[0025] Personnel information entry module, used to enter the personnel information of accessing and testing samples;
[0026] A timing module is used to record the current time when accessing and testing samples;
[0027] The sample status update module is used to update the status of the same sample after access and detection, and retain the previous status;
[0028] The query module is used by personnel to query the location, past information and current status of a sample based on the sample's unique number.
[0029] Preferably, the sample receiving unit combines a convolutional neural network with EfficientNet to identify the sample, and the specific steps are as follows:
[0030] S1. Image preprocessing: adjust the sample image recognized by the data recognition module to the resolution required by EfficientNet and perform normalization;
[0031] S2, feature extraction: use convolutional layers to extract low-level features of the image;
[0032] S3, Effi c ientNet processing: The extracted features are input into the Effi cientNet model, and Effi ic ientNet processes them through a composite scaling strategy;
[0033] S4, classification and output: Use the fully connected layer of Effici entNet to map the processed features to category probabilities for final classification;
[0034] S5. Sample identification: Calculate the similarity between the current sample and the samples in the database and determine the sample type.
[0035] Preferably, the calculation formula for feature extraction in step S2 is as follows:
[0036]
[0037] Among them, I is the input image, K is the convolution kernel, and O is the output feature map.
[0038] Preferably, the calculation formula of the EffectiveNet processing in step S3 is as follows:
[0039] d=α k , w=β k , r = γ k
[0040] Among them, α, β, γ are scaling coefficients, k is the scaling factor, d is the network depth, w is the network width, and r is the input resolution.
[0041] Preferably, the calculation formula for classification and output in step S4 is as follows:
[0042] y=softmax(Wx+b)
[0043] Among them, W is the weight matrix, x is the input feature, b is the bias, and y is the output probability.
[0044] Preferably, the specific steps of calculating the similarity between samples in step S5 are as follows:
[0045] S5.1, Feature matching: Match the processed and classified features with the sample features stored in the database;
[0046] S5.2, Sample type identification: Calculate the similarity between the sample and the samples in the database based on the matching results to determine whether they are samples of the same type;
[0047] S5.3. Specific sample identification: Calculate the similarity between the sample and the stored sample based on the matching results to determine whether they are the same sample.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] (1) The present invention can detect the remaining storage positions, stored positions, and total number of samples in the laboratory through the position storage module, and the corresponding storage positions of different samples can be obtained through the allocation module. Combined with the storage module, the number of samples that have been tested, the number of samples that have not been tested, changes in appearance status, and information on the test results of previous samples can be obtained, so that the samples retained in the laboratory are in order, and the problems of disorderly and difficult storage locations of veterinary laboratory samples are effectively solved, thereby improving the monitoring efficiency of veterinary laboratories.
[0050] (2) The present invention extracts low-level features of the image through convolution operations, and then optimizes the grid structure through a composite scaling strategy to further process the extracted features, improve the accuracy and efficiency of the model, and reduce the amount of calculation. The processed features are then mapped to category probabilities to achieve high-precision sample recognition and classification. By combining convolutional neural networks with EfficientNet, the accuracy and speed of sample recognition by the visual recognition module can be significantly improved, ensuring efficient management and tracking of samples.
[0051] (3) The present invention can accurately determine the type of sample by using cosine similarity to calculate the similarity between the sample and the sample in the database, so as to classify the samples of the same type in adjacent positions, which is convenient for personnel to quickly find the sample location when taking it for testing, thereby improving work efficiency. Subsequently, the cosine similarity is used to calculate the similarity between the sample and the stored sample to determine whether the sample is a previously stored sample. The personnel can directly take the sample from the storage module and then use the visual recognition module to identify and query it without manually entering the number query, thereby improving the query speed. At the same time, it is convenient for personnel to query the past information of the sample without knowing the sample number, which is convenient for personnel to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0053] Figure 1 is a block diagram of a system unit of the present invention;
[0054] Figure 2 It is a block diagram of a unit module of the present invention;
[0055] Figure 3 A flowchart of the sample identification step of the present invention;
[0056] Figure 4It is a flowchart of the similarity calculation steps of the present invention;
[0057] Figure 5 is a flow chart of the sample storage unit of the present invention;
[0058] Figure 6 This is a flow chart of the sample tracing unit of the present invention. DETAILED DESCRIPTION
[0059] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0060] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0061] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0062] As attached Figure 1 To Attachment Figure 6 As shown:
[0063] Embodiment 1: This embodiment provides a veterinary laboratory sample tracing system, including a control unit, and a sample receiving unit, a sample storage unit, a sample recording unit and a sample tracing unit connected to the control unit;
[0064] Control unit, used for overall system control and data processing;
[0065] A sample receiving unit, used to identify samples in the laboratory;
[0066] A sample storage unit, used to store the identified and entered samples separately;
[0067] The sample traceability unit is used to record each time the sample is taken, placed, and tested;
[0068] The data statistics unit is used to count the sample data and generate statistical reports.
[0069] Specifically, the control unit includes a control module, a storage module and a communication module;
[0070] Control module, used for data and overall control of system data;
[0071] A storage module, used to store sample information data and sample image data to form a database;
[0072] The communication module is used to communicate data with mobile devices.
[0073] Specifically, the sample receiving unit includes a visual recognition module, a number generation module and an allocation module;
[0074] A visual recognition module, used for performing visual recognition detection on the samples to be received;
[0075] A number generation module is used to generate a unique number for the sample after the test is completed;
[0076] The allocation module is used to allocate storage locations for samples.
[0077] Specifically, the sample storage unit includes a number of sample storage modules, a guidance module and a position detection module;
[0078] A sample storage module, used for storing and placing samples;
[0079] A guidance module is used to guide personnel when they need to store or retrieve samples;
[0080] The position detection module is used to perform self-detection on the position of the sample to ensure that the sample is in its storage position.
[0081] Specifically, the sample tracing unit includes a personnel information entry module, a timing module, a sample status update module and a query module;
[0082] Personnel information entry module, used to enter the personnel information of accessing and testing samples;
[0083] A timing module is used to record the current time when accessing and testing samples;
[0084] The sample status update module is used to update the status of the same sample after access and detection, and retain the previous status;
[0085] The query module is used by personnel to query the location, past information and current status of a sample based on the sample's unique number.
[0086] As can be seen from the above, when a new sample enters the laboratory, the visual recognition module is first used to identify and enter the appearance of the sample. After the identification and entry are completed, the number generation module is used to generate a unique number for the sample. Then, the personnel information entry module is used to enter the identity information of the person. After storing the data in the data storage module, the storage module where the sample is located is allocated through the allocation module, and then the guidance module is used to guide the personnel to facilitate the personnel to quickly find the storage location. After placing it in the corresponding storage location, the position detection module will detect the storage status of the sample. When the sample is not in the designated storage location, the staff will be prompted to avoid the wrong storage location of the sample, or not putting it back within the specified time after taking it, which will lead to the wrong storage location. The sample storage rules are orderly and the monitoring efficiency of the laboratory is improved. In addition, the total number of samples currently stored can be detected through the position detection module;
[0087] When a staff needs to take out a sample from the sample storage module for testing, he / she first enters the staff's identity information through the staff information entry module, and then searches for the number data of the sample to be used through the query module. He / she can also enter the query after knowing the number data in advance, and then obtain the storage time and past access status of the sample. The timing module can record the sample removal time, sample testing time and re-storage time after testing, and the visual recognition module can identify the current appearance status of the sample, and then store the data in the data storage module to update the status information of the sample, so that the staff can check the storage time, testing time and appearance status changes of the sample when querying the sample again.
[0088] Laboratory personnel can always check the veterinary laboratory's sample storage location, remaining storage location, total number of samples, number of samples tested, number of samples not tested, and previous sample test results, so that the laboratory's retained samples are in order, effectively solve the problem of disorganized veterinary laboratory retained samples and difficult storage locations, and improve the monitoring efficiency of veterinary laboratories.
[0089] Embodiment 2: This embodiment is basically the same as the previous embodiment, except that the sample receiving unit combines the convolutional neural network with EfficientNet to identify the sample. The specific steps are as follows:
[0090] S1. Image preprocessing: adjust the sample image recognized by the data recognition module to the resolution required by EfficientNet and perform normalization;
[0091] S2, feature extraction: use convolutional layers to extract low-level features of the image;
[0092] S3, Effi c ientNet processing: The extracted features are input into the Effi cientNet model, and Effi cientNet processes them through a composite scaling strategy;
[0093] S4, classification and output: Use the fully connected layer of EfficientNet to map the processed features to category probabilities for final classification;
[0094] S5. Sample identification: Calculate the similarity between the current sample and the samples in the database and determine the sample type.
[0095] Specifically, the calculation formula for feature extraction in step S2 is as follows:
[0096]
[0097] Among them, I is the input image, K is the convolution kernel, O is the output feature map, and O i,j is the value of O at position (i, j), I i +m, j+n is the pixel value of I at position (i+m, j+n), K m,n is the weight of K at position (m,n).
[0098] Specifically, the calculation formula for EfficientNet processing in step S3 is as follows:
[0099] d=α k , w=β k , r = γ k
[0100] Among them, α, β, γ are scaling coefficients, k is the scaling factor, d is the network depth, w is the network width, and r is the input resolution.
[0101] Specifically, the calculation formula for classification and output in step S4 is as follows:
[0102] y=softmax(Wx+b)
[0103] Among them, W is the weight matrix, x is the input feature, b is the bias, and y is the output probability.
[0104] From the above, we can see that by adjusting the input image collected by the visual recognition module to the resolution required by EfficientNet and performing normalization processing, the consistency of the input image can be ensured, and the training and reasoning efficiency of the model can be improved. The low-level features of the image are extracted through convolution operations, which can capture local information in the image and provide a basis for subsequent processing. Subsequently, the grid structure is optimized through a composite scaling strategy, and the extracted features are further processed to improve the accuracy and efficiency of the model and reduce the amount of calculation. The processed features are then mapped to category probabilities to achieve high-precision sample recognition and classification, which can significantly improve the accuracy and speed of sample recognition by the visual recognition module and ensure efficient management and tracking of samples.
[0105] Embodiment 3: This embodiment is basically the same as the previous embodiment, except that the specific steps of calculating the similarity between samples in step S5 are as follows:
[0106] S5.1, Feature matching: Match the processed and classified features with the sample features stored in the database;
[0107] S5.2, Sample type identification: Calculate the similarity between the sample and the samples in the database based on the matching results to determine whether they are samples of the same type;
[0108] S5.3. Specific sample identification: Calculate the similarity between the sample and the stored sample based on the matching results to determine whether they are the same sample.
[0109] As can be seen from the above, after the visual recognition module collects the sample appearance image, the similarity between the sample and the sample in the database is calculated using cosine similarity, so that the type of the sample can be accurately determined. When allocating storage locations, the allocation module is used to allocate its storage location next to the storage module of the same type of sample, so that the samples of the same type are classified in adjacent locations, which is convenient for personnel to quickly find the sample location when taking it for testing, thereby improving work efficiency.
[0110] After identifying the type of sample, the cosine similarity is used to calculate the similarity between the sample and the stored samples to determine whether the sample is a previously stored sample. If it is not a previously stored sample, it is identified as a new sample and allocated for storage. If it is a previously stored sample, the previous storage time information and detection time information of the sample will be automatically displayed. Personnel can directly take the sample in the storage module, and then use the visual recognition module to identify and query, without manually entering the number query, thereby improving the query speed. At the same time, it is convenient for personnel to query the past information of the sample without knowing the sample number, which is convenient for personnel to use.
[0111] Importantly, it should be noted that the construction and arrangement of the present application shown in a plurality of different exemplary embodiments are only exemplary. Although only a few embodiments are described in detail in this disclosure, it should be readily understood by those who refer to this disclosure that many modifications are possible (e.g., the size, scale, structure, shape and proportion of various elements, and parameter values (e.g., temperature, pressure, etc.), installation arrangement, use of materials, color, directional changes, etc.) without substantially departing from the novel teachings and advantages of the subject matter described in the application. For example, the element shown as integrally formed can be composed of multiple parts or elements, the position of the element can be inverted or otherwise changed, and the nature or number or position of the discrete element can be changed or changed. Therefore, all such modifications are intended to be included in the scope of the present invention. The order or sequence of any process or method steps can be changed or reordered according to alternative embodiments. In the claims, any "device plus function" clause is intended to cover the structure of performing the function described herein, and is not only structurally equivalent but also equivalent structure. Without departing from the scope of the present invention, other replacements, modifications, changes and omissions can be made in the design, operating conditions and arrangement of the exemplary embodiments. Therefore, the invention is not limited to a specific embodiment, but extends to numerous modifications still falling within the scope of the appended claims.
[0112] Additionally, in order to provide a concise description of exemplary embodiments, all features of an actual embodiment (ie, those features that are not relevant to the best mode presently contemplated for carrying out the invention or those that are not relevant to implementing the invention) may not be described.
[0113] It will be appreciated that in the development of any actual implementation, as in any engineering or design project, numerous implementation-specific decisions may be made. Such a development effort may be complex and time-consuming, but will be a routine task of design, fabrication, and production for those of ordinary skill having the benefit of this disclosure without undue experimentation.
[0114] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A veterinary laboratory sample traceability system, It is characterized in that It includes a control unit, and a sample receiving unit, a sample storage unit, a sample recording unit and a sample tracing unit connected to the control unit; Control unit, used for overall system control and data processing; A sample receiving unit, used to identify samples in the laboratory; A sample storage unit, used to store the identified and entered samples separately; The sample traceability unit is used to record each time the sample is taken, placed, and tested; The data statistics unit is used to count the sample data and generate statistical reports.
2. A veterinary laboratory sample traceability system according to claim 1, Features: The control unit includes a control module, a storage module and a communication module; Control module, used for data and overall control of system data; A storage module, used to store sample information data and sample image data to form a database; The communication module is used to communicate data with mobile devices.
3. A veterinary laboratory sample traceability system according to claim 2, Features: The sample receiving unit includes a visual recognition module, a number generation module and an allocation module; A visual recognition module, used for performing visual recognition detection on the samples to be received; A number generation module is used to generate a unique number for the sample after the test is completed; The allocation module is used to allocate storage locations for samples.
4. A veterinary laboratory sample traceability system according to claim 3, Features: The sample storage unit includes a plurality of sample storage modules, a guide module and a position detection module; A sample storage module, used for storing and placing samples; A guidance module is used to guide personnel when they need to store or retrieve samples; The position detection module is used to perform self-detection on the position of the sample to ensure that the sample is in its storage position.
5. A veterinary laboratory sample traceability system according to claim 4, Features: The sample tracing unit includes a personnel information entry module, a timing module, a sample status update module and a query module; Personnel information entry module, used to enter the personnel information of accessing and testing samples; A timing module is used to record the current time when accessing and testing samples; The sample status update module is used to update the status of the same sample after access and detection, and retain the previous status; The query module is used by personnel to query the location, past information and current status of a sample based on the sample's unique number.
6. A veterinary laboratory sample traceability system according to claim 3, Features: The sample receiving unit combines the convolutional neural network with EfficientNet to identify the sample. The specific steps are as follows: S1. Image preprocessing: adjust the sample image recognized by the data recognition module to the resolution required by EfficientNet and perform normalization; S2, feature extraction: use convolutional layers to extract low-level features of the image; S3, EfficientNet processing: The extracted features are input into the EfficientNet model, and EfficientNet processes them through a compound scaling strategy; S4, classification and output: Use the fully connected layer of EfficientNet to map the processed features to category probabilities for final classification; S5. Sample identification: Calculate the similarity between the current sample and the samples in the database and determine the sample type.
7. A veterinary laboratory sample traceability system according to claim 6, Features: The calculation formula for feature extraction in step S2 is as follows: Among them, I is the input image, K is the convolution kernel, and O is the output feature map.
8. A veterinary laboratory sample traceability system according to claim 6, Features: The calculation formula of the EfficientNet processing in the S3 step is as follows: d=a k ,w=β k ,r=γ k Among them, α, β, γ are scaling coefficients, k is the scaling factor, d is the network depth, w is the network width, and r is the input resolution.
9. A veterinary laboratory sample traceability system according to claim 6, Features: The calculation formula for classification and output in the S4 step is as follows: y=softmax(Wx+b) Among them, W is the weight matrix, x is the input feature, b is the bias, and y is the output probability.
10. A veterinary laboratory sample traceability system according to claim 6, Features: The specific steps of calculating the similarity between samples in step S5 are as follows: S5.1, Feature matching: Match the processed and classified features with the sample features stored in the database; S5.2, Sample type identification: Calculate the similarity between the sample and the samples in the database based on the matching results to determine whether they are samples of the same type; S5.
3. Specific sample identification: Calculate the similarity between the sample and the stored sample based on the matching results to determine whether they are the same sample.
