A device for distributing consumables in hospitals based on real-time positioning method

Through wireless network technology and kernel k-means clustering, combined with Hamming distance and Gaussian logarithmic distance matching, the positioning problem of consumables distribution in the hospital is solved, real-time and accurate positioning of consumables is achieved, costs are reduced and management efficiency is improved.

CN114554418BActive Publication Date: 2024-09-06湖南德荣医疗健康产业有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210126747.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-11
Publication Date
2024-09-06
Estimated Expiration
2042-02-11

AI Technical Summary

Technical Problem

The logistics management of consumables distribution in hospitals lacks effective trajectory monitoring and high-precision positioning technology, resulting in unclear delivery locations of consumables, and the existing indoor positioning technology has high investment costs and is difficult to promote.

Method used

A real-time positioning method based on wireless network technology is used to divide the internal fingerprint map of the hospital through kernel k-means clustering, and Hamming distance and Gaussian logarithmic distance matching technology are used to achieve real-time positioning of consumables.

Benefits of technology

It simplifies the computational complexity of consumable positioning in the hospital, reduces costs, improves the monitoring accuracy of consumable transportation trajectories, and realizes real-time location tracking of consumables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure QLYQS_5
    Figure QLYQS_5
  • Figure QLYQS_12
    Figure QLYQS_12
  • Figure QLYQS_22
    Figure QLYQS_22
Patent Text Reader

Abstract

The present invention relates to the field of logistics distribution positioning technology, and discloses an in-hospital consumables distribution device based on a real-time positioning method, including: collecting location fingerprints inside the hospital, clustering the collected location fingerprints using the kernel k-means method; performing Hamming distance matching on the location fingerprint of the device to be positioned and the location fingerprint in the sub-region, and taking the sub-region with the matching result within a preset distance threshold as the set of regions where the device to be positioned may be located; calculating the Gaussian logarithmic distance between the location fingerprint of the device to be positioned and the location fingerprint in each possible region; calculating the membership degree of each possible region, and taking the position vector mean of the location fingerprint in the region with the minimum membership degree as the position of the device to be positioned. The present invention determines the internal fingerprint map of the hospital by using wireless network technology, and performs location fingerprint matching on the consumables to be positioned, and the position vector mean of the optimal location fingerprint obtained by matching is the position of the consumables to be positioned, thereby realizing real-time positioning of consumables in the hospital.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of logistics distribution positioning, and in particular to an in-hospital consumables distribution device based on a real-time positioning method. Background Art

[0002] At present, hospitals generally only record accounts for the management of the circulation of consumables within the hospital, and provide weak support for the logistics management of consumable distribution, especially for the monitoring of the delivery trajectory of consumables. They cannot give a clear answer as to where the consumables are sent and when they can be delivered to the pharmacy or department.

[0003] At present, indoor positioning technologies mostly achieve positioning through indoor wireless sensor networks. The construction of wireless sensor networks requires a large number of sensor devices. In order to reduce the impact of the indoor environment and achieve high-precision positioning requirements, other signal auxiliary processing equipment is usually required. As a result, in actual applications, this type of positioning technology has a high investment cost and is not worth promoting.

[0004] In view of this, the present invention proposes an in-hospital consumables distribution device based on a real-time positioning method, which determines the internal fingerprint map of the hospital by utilizing wireless network technology, and performs position fingerprint matching on the consumables to be located. The position vector mean of the optimal position fingerprint obtained by matching is the position of the consumables to be located, thereby realizing real-time positioning of consumables in the hospital. Summary of the invention

[0005] The present invention provides an in-hospital consumables distribution device based on a real-time positioning method, the purpose of which is to (1) establish a fingerprint map inside the hospital based on wireless network technology; and (2) locate consumables in the hospital in real time.

[0006] To achieve the above purpose, the present invention provides an in-hospital consumables distribution device based on a real-time positioning method, including the following in-hospital consumables distribution positioning process:

[0007] S1: Collect the location fingerprints inside the hospital, and use the kernel k-means method to cluster the collected location fingerprints to divide the fingerprint map inside the hospital into multiple sub-areas;

[0008] S2: Perform Hamming distance matching on the location fingerprint of the device to be located and the location fingerprint in the sub-region, and take the sub-region with the matching result within a preset distance threshold as the set of regions where the device to be located may be located;

[0009] S3: Calculate the Gaussian logarithmic distance between the location fingerprint of the device to be located and each location fingerprint in each possible area;

[0010] S4: The average value of the first w smallest Gaussian logarithmic distances in each possible area is used as the membership degree of the device to be located in the area. The possible area with the smallest membership degree is the area where the device to be located is located, and the position vector average of the position fingerprint corresponding to the first w smallest Gaussian logarithmic distances is used as the position of the device to be located.

[0011] As a further improvement method of the present invention:

[0012] In step S1, the location fingerprints inside the hospital are collected to obtain a set of location fingerprints inside the hospital, including:

[0013] Set up N wireless access points AP in the hospital = {AP1, AP2, ..., AP k ,…,AP N}, each wireless access point AP k Record the signal strength RSSI received from nearby wireless devices k,i , where RSSI k,i Indicates the signal strength received by wireless access point k from wireless device i;

[0014] Construct a location fingerprint for each wireless access point:

[0015] R k =[mac k :RSSI k ]

[0016] in:

[0017] R k Wireless access point AP k Location fingerprint;

[0018] RSSI k Wireless access point AP k The received signal strength;

[0019] Mac k Wireless access point AP k MAC address;

[0020] Then the hospital internal location fingerprint set is:

[0021] R={R1,R2,…,R k ,…,R N}

[0022] in:

[0023] R is the set of internal location fingerprints of the hospital.

[0024] In step S1, the location fingerprints are clustered using the kernel k-means method according to the hospital internal location fingerprint set, including:

[0025] According to the hospital internal location fingerprint set R = {R1, R2, ..., R k ,…,R N}, use the kernel k-means method to cluster the location fingerprints in the location fingerprint set, and divide the internal fingerprint map of the hospital composed of the location fingerprints into multiple sub-areas according to the clustering results. The process of the kernel k-means method is as follows:

[0026] 1) The fingerprint set R in the hospital is R = {R1, R2, ..., R k ,…,R N} Randomly select cluster centers {r1,r2,…,r M}, where M represents the number of clusters;

[0027] 2) Using the kernel function K(R i ,R j ) Take any location fingerprint R in the internal location fingerprint set i and R j Mapping to data g(R i ) and g(R j ), the mapping formula is:

[0028] K(R i ,R j )=g(R i ) T g(R j )

[0029] The resulting mapping data set is {g(R1),g(R2),…,g(R N )};

[0030] 3) Establish the objective function of the kernel k-means method:

[0031]

[0032] in:

[0033] M is the number of clusters;

[0034] g(r i ) represents the mapping data of the class center;

[0035] μ m is the mean of the mth class after clustering;

[0036] 4) Adjust the cluster center;

[0037] 5) Repeat steps 2)-4) until the objective function converges. The cluster center finally converged is the cluster result center. Merge the position fingerprints adjacent to the cluster center into the cluster cluster of the cluster center. The cluster result is

[0038] {Q1,Q2,…,Q j ,…,Q M}, where Q j Represents the cluster center r j The cluster centered on

[0039] Any cluster Q j The area where the fingerprint of the middle position is located is taken as the sub-area P of the hospital internal fingerprint map j .

[0040] In the step S2, the location fingerprint of the device to be located and the location fingerprint in the sub-area are matched by Hamming distance, including:

[0041] Calculate any sub-region P j MAC address collection:

[0042]

[0043] in:

[0044] N j Represents sub-region P j The number of position fingerprints within;

[0045] Represents sub-region P j The k-th position fingerprint;

[0046] mac(·) means obtaining the MAC address in the location fingerprint;

[0047] Get the location fingerprint x of the device to be located and the MAC address set P x , the MAC address set of the device to be located and any sub-area P j The MAC address set is subjected to Hamming distance matching, and the Hamming distance matching result for:

[0048]

[0049] in:

[0050] P x Represents the MAC address set of the device to be located;

[0051] represents any sub-region P inside the hospital j A set of MAC addresses.

[0052] In a specific embodiment of the present invention, the device to be positioned is a consumable in a hospital.

[0053] In step S2, the corresponding sub-areas of the matching results within the preset distance threshold are taken as a set of areas where the device to be located may be located, including:

[0054] Matching result sets based on Hamming distance The sub-region set whose Hamming distance matching result is greater than the preset threshold δ is taken as the region set {P′1,P′2,…,P′ u ,…P′ s}, where s means there are s possible areas for the device to be located, P′ u Indicates the uth possible area of ​​the device to be located.

[0055] The step S3 calculates the Gaussian logarithmic distance between the location fingerprint of the device to be located and each location fingerprint in each possible area, including:

[0056] Calculate the location fingerprint x of the device to be located in each possible area The Gaussian logarithmic distance of Represents any possible region P′ u The calculation formula of the Gaussian logarithmic distance for the k-th position fingerprint within is:

[0057]

[0058] in:

[0059] RSSI(·) represents the signal strength in obtaining the location fingerprint;

[0060] σ represents the standard deviation of the received signal strength of the wireless access points within the hospital.

[0061] In the step S4, the degree of membership of each possible area is calculated, and the possible area with the smallest degree of membership is the area where the device to be located is located, and the position vector mean of the signal fingerprint corresponding to the first w minimum Gaussian logarithmic distances is used as the position of the device to be located, including:

[0062] The average value of the first w smallest Gaussian logarithmic distances in each possible area is taken as the degree of membership of the device to be located in the area, and the possible area with the smallest degree of membership is the area where the device to be located is located;

[0063] The position vector average of the signal fingerprint corresponding to the first w minimum Gaussian logarithmic distances is used as the position of the device to be located;

[0064] In a specific embodiment of the present invention, w is set to 3.

[0065] The present invention provides an in-hospital consumables distribution device based on a real-time positioning method, characterized in that the device comprises:

[0066] Wireless access point for location fingerprint of consumables to be located;

[0067] A data processor is used to perform Hamming distance matching between the location fingerprint of the device to be located and the location fingerprint in the sub-area, and use the sub-area with the matching result within a preset distance threshold as a set of areas where the device to be located may be located; calculate the Gaussian logarithm distance between the location fingerprint of the device to be located and each location fingerprint in each possible area;

[0068] The consumables positioning device is used to take the average value of the first w smallest Gaussian logarithmic distances in each possible area as the membership of the device to be positioned to the area, the possible area with the smallest membership is the area where the device to be positioned is located, and the position vector average of the position fingerprint corresponding to the first w smallest Gaussian logarithmic distances is taken as the position of the device to be positioned.

[0069] As a non-limiting example, this also includes consumable material transportation vehicles.

[0070] The present invention also provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores consumables positioning program instructions, and the consumables positioning program instructions can be executed by one or more processors to implement the steps of the in-hospital consumables distribution implementation method based on real-time positioning as described above.

[0071] Compared with the prior art, the present invention proposes an intra-hospital consumables distribution device based on a real-time positioning method, which has the following advantages:

[0072] First, this scheme is based on the hospital internal location fingerprint set R = {R1, R2, ..., R k ,…,R N}, the location fingerprints in the location fingerprint set are clustered using the kernel k-means method, and the internal fingerprint map of the hospital composed of the location fingerprints is divided into multiple sub-areas according to the clustering results. The kernel k-means method process is as follows: in the internal hospital location fingerprint set R = {R1, R2, …, R k ,…,R N} Randomly select cluster centers {r1,r2,…,r M}, where M represents the number of clusters; using the kernel function K(R i ,R j ) Take any location fingerprint R in the internal location fingerprint set i and R j Mapping to data g(R i ) and g(R j), the mapping formula is:

[0073] K(R i ,R j )=g(R i ) T g(R j )

[0074] The resulting mapping data set is {g(R1),g(R2),…,g(R N )}; Establish the objective function of the kernel k-means method:

[0075]

[0076] Where: M is the number of clusters; g(r i ) represents the mapping data of the class center; μ m is the mean of the mth class after clustering; adjust the cluster center; repeat the above steps until the objective function converges, and the cluster center finally converged is the cluster result center; merge the position fingerprints adjacent to the cluster center into the cluster cluster of the cluster center, and the cluster result is

[0077] {Q1,Q2,…,Q j ,…,Q M}, where Q j Represents the cluster center r j centered cluster; any cluster Q j The area where the fingerprint of the middle position is located is taken as the sub-area P of the hospital internal fingerprint map j , thereby realizing the division of internal areas of the hospital. Subsequently, the area to which the in-hospital consumables belong can be determined first, and then the position vector calculation is performed, which simplifies the calculation complexity of the real-time positioning of the in-hospital consumables.

[0078] At the same time, this scheme uses two distance matching methods to calculate the real-time location of the device to be located. The device to be located is a consumable in the hospital. The location fingerprint x of the device to be located is obtained, and the MAC address set is obtained as P x , the MAC address set of the device to be located and any sub-area P j The MAC address set is subjected to Hamming distance matching, and the Hamming distance matching result for:

[0079]

[0080] Where: P x Represents the MAC address set of the device to be located; represents any sub-region P inside the hospital j The MAC address set. Match the result set based on the Hamming distance The sub-region set whose Hamming distance matching result is greater than the preset threshold δ is taken as the region set {P′1,P′2,…,P′ u ,…P′ s}, where s means there are s possible areas for the device to be located, P′ u Represents the uth possible area of ​​the device to be located. Calculate the location fingerprint x of the device to be located in each possible area. The Gaussian logarithmic distance of Represents any possible region P′ u The calculation formula of the Gaussian logarithmic distance for the k-th position fingerprint within is:

[0081]

[0082] Where: RSSI(·) represents the signal strength in the acquired location fingerprint; σ represents the standard deviation of the received signal strength of the wireless access point within the hospital. The average value of the first w smallest Gaussian logarithmic distances in each possible area is taken as the membership of the device to be located in the area, and the possible area with the smallest membership is the area where the device to be located is located; and the position vector mean of the signal fingerprint corresponding to the first w smallest Gaussian logarithmic distances is taken as the location of the device to be located. Compared with the traditional scheme, this scheme first uses the Hamming distance matching method to obtain several neighboring areas of the device to be located as the possible area where the device to be located may be located, further simplifying the computational complexity of real-time positioning of in-hospital consumables, so as to use the Gaussian logarithmic distance method to calculate the precise location of in-hospital consumables faster according to the possible area. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] Figure 1 A schematic diagram of a process flow of an in-hospital consumables distribution device based on a real-time positioning method provided by an embodiment of the present invention;

[0084] Figure 2 A schematic diagram of the structure of an in-hospital consumables distribution device based on a real-time positioning method provided by an embodiment of the present invention;

[0085] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0086] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0087] S1: Collect the location fingerprints inside the hospital, and use the kernel k-means method to cluster the collected location fingerprints to divide the internal fingerprint map of the hospital into multiple sub-areas.

[0088] In step S1, the location fingerprints inside the hospital are collected to obtain a set of location fingerprints inside the hospital, including:

[0089] Set up N wireless access points AP in the hospital = {AP1, AP2, ..., AP k ,…,AP N}, each wireless access point AP k Record the signal strength RSSI received from nearby wireless devices k,i , where RSSI k,i Indicates the signal strength received by wireless access point k from wireless device i;

[0090] Construct a location fingerprint for each wireless access point:

[0091] R k =[mac k :RSSI k ]

[0092] in:

[0093] R k Wireless access point AP k Location fingerprint;

[0094] RSSI k Wireless access point AP k The received signal strength;

[0095] Mac k Wireless access point AP k MAC address;

[0096] Then the hospital internal location fingerprint set is:

[0097] R={R1,R2,…,R k ,…,R N}

[0098] in:

[0099] R is the set of internal location fingerprints of the hospital.

[0100] In step S1, the location fingerprints are clustered using the kernel k-means method according to the hospital internal location fingerprint set, including:

[0101] According to the hospital internal location fingerprint set R = {R1, R2, ..., R k ,…,R N}, use the kernel k-means method to cluster the location fingerprints in the location fingerprint set, and divide the internal fingerprint map of the hospital composed of the location fingerprints into multiple sub-areas according to the clustering results. The process of the kernel k-means method is as follows:

[0102] 1) The fingerprint set R in the hospital is R = {R1, R2, ..., R k ,…,R N} Randomly select cluster centers {r1,r2,…,r M}, where M represents the number of clusters;

[0103] 2) Using the kernel function K(R i ,R j ) Take any location fingerprint R in the internal location fingerprint set i and R j Mapping to data g(R i ) and g(R j ), the mapping formula is:

[0104] K(R i ,R j )=g(R i ) T g(R j )

[0105] The resulting mapping data set is {g(R1),g(R2),…,g(R N )};

[0106] 3) Establish the objective function of the kernel k-means method:

[0107]

[0108] in:

[0109] M is the number of clusters;

[0110] g(r i ) represents the mapping data of the class center;

[0111] μ m is the mean of the mth class after clustering;

[0112] 4) Adjust the cluster center;

[0113] 5) Repeat steps 2)-4) until the objective function converges. The cluster center finally converged is the cluster result center. The position fingerprints adjacent to the cluster center are merged into the cluster cluster of the cluster center. The cluster result is {Q1,Q2,…,Q j ,…,Q M}, where Q j Represents the cluster center r j The cluster centered on

[0114] Any cluster Q j The area where the fingerprint of the middle position is located is taken as the sub-area P of the hospital internal fingerprint mapj .

[0115] S2: Perform Hamming distance matching on the location fingerprint of the device to be located and the location fingerprint in the sub-region, and use the sub-regions with matching results within a preset distance threshold as a set of regions where the device to be located may be located.

[0116] In the step S2, the location fingerprint of the device to be located and the location fingerprint in the sub-area are matched by Hamming distance, including:

[0117] Calculate any sub-region P j MAC address collection:

[0118]

[0119] in:

[0120] N j Represents sub-region P j The number of position fingerprints within;

[0121] Represents sub-region P j The k-th position fingerprint;

[0122] mac(·) means obtaining the MAC address in the location fingerprint;

[0123] Get the location fingerprint x of the device to be located and the MAC address set P x , the MAC address set of the device to be located and any sub-area P j The MAC address set is subjected to Hamming distance matching, and the Hamming distance matching result for:

[0124]

[0125] in:

[0126] P x Represents the MAC address set of the device to be located;

[0127] represents any sub-region P inside the hospital j A set of MAC addresses.

[0128] In a specific embodiment of the present invention, the device to be positioned is a consumable in a hospital.

[0129] In step S2, the corresponding sub-areas of the matching results within the preset distance threshold are taken as a set of areas where the device to be located may be located, including:

[0130] Matching result sets based on Hamming distance The sub-region set whose Hamming distance matching result is greater than the preset threshold δ is taken as the region set {P′1,P′2,…,P′ u ,…P′ s}, where s means there are s possible areas for the device to be located, P′ u Indicates the uth possible area of ​​the device to be located.

[0131] S3: Calculate the Gaussian logarithmic distance between the location fingerprint of the device to be located and each location fingerprint in each possible area.

[0132] The step S3 calculates the Gaussian logarithmic distance between the location fingerprint of the device to be located and each location fingerprint in each possible area, including:

[0133] Calculate the location fingerprint x of the device to be located in each possible area The Gaussian logarithmic distance of Represents any possible region P′ u The calculation formula of the Gaussian logarithmic distance for the k-th position fingerprint within is:

[0134]

[0135] in:

[0136] RSSI(·) represents the signal strength in obtaining the location fingerprint;

[0137] σ represents the standard deviation of the received signal strength of the wireless access points within the hospital.

[0138] S4: The average value of the first w smallest Gaussian logarithmic distances in each possible area is used as the membership degree of the device to be located in the area. The possible area with the smallest membership degree is the area where the device to be located is located, and the position vector average of the position fingerprint corresponding to the first w smallest Gaussian logarithmic distances is used as the position of the device to be located.

[0139] In the step S4, the degree of membership of each possible area is calculated, and the possible area with the smallest degree of membership is the area where the device to be located is located, and the position vector mean of the signal fingerprint corresponding to the first w minimum Gaussian logarithmic distances is used as the position of the device to be located, including:

[0140] The average value of the first w smallest Gaussian logarithmic distances in each possible area is taken as the degree of membership of the device to be located in the area, and the possible area with the smallest degree of membership is the area where the device to be located is located;

[0141] The position vector average of the signal fingerprint corresponding to the first w minimum Gaussian logarithmic distances is used as the position of the device to be located;

[0142] In a specific embodiment of the present invention, w is set to 3.

[0143] In this embodiment, the in-hospital consumables distribution device 1 at least includes a wireless access point 11 , a data processor 12 , a consumables positioning device 13 , a communication bus 14 , and a network interface 15 .

[0144] The data processor 12 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the data processor 12 can be an internal storage unit of the in-hospital consumables distribution device 1, such as a hard disk of the in-hospital consumables distribution device 1. In other embodiments, the data processor 12 can also be an external storage device of the in-hospital consumables distribution device 1, such as a plug-in hard disk equipped on the in-hospital consumables distribution device 1, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the data processor 12 can also include both an internal storage unit and an external storage device of the in-hospital consumables distribution device 1. The data processor 12 can not only be used to store application software and various types of data installed in the in-hospital consumables distribution device 1, but also be used to temporarily store data that has been output or is to be output.

[0145] In some embodiments, the consumable positioning device 13 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, including a monitoring unit, for running the program code or processing data stored in the data processor 12, such as the consumable positioning program instructions 16, etc.

[0146] The communication bus 14 is used to realize the connection and communication between these components.

[0147] The network interface 15 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is generally used to establish a communication connection between the device 1 and other electronic devices.

[0148] Figure 2 Only components 11-15 and the in-hospital consumables delivery device 1 are shown, and those skilled in the art can understand that Figure 2 The structure shown does not constitute a limitation on the in-hospital consumables delivery device 1, and may include fewer or more components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0149] exist Figure 2In the embodiment of the in-hospital consumables distribution device 1 shown, the data processor 12 stores consumables positioning program instructions 16; the consumables positioning device 13 executes the steps of the consumables positioning program instructions 16 stored in the data processor 12, which is the same as the implementation method of real-time positioning of in-hospital consumables distribution, and will not be described here.

[0150] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which consumables positioning program instructions are stored, and the consumables positioning program instructions can be executed by one or more processors.

[0151] It should be noted that the serial numbers of the above-mentioned embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or device. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or device including the element.

[0152] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment device can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the device described in each embodiment of the present invention.

[0153] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for implementing in-hospital consumables distribution based on real-time positioning method, characterized in that: The method comprises: S1: Collect the location fingerprints inside the hospital, and use the kernel k-means method to cluster the collected location fingerprints to divide the fingerprint map inside the hospital into multiple sub-areas; Collect the location fingerprint inside the hospital to obtain the location fingerprint set inside the hospital, including: Set up N wireless access points within the hospital , each wireless access point Records the signal strength received from nearby wireless devices ,in Indicates the signal strength received by wireless access point k from wireless device i; Construct a location fingerprint for each wireless access point: ; in: For wireless access points Location fingerprint; For wireless access points The received signal strength; For wireless access points MAC address; Then the hospital internal location fingerprint set is: ; in: It is a collection of internal hospital location fingerprints; Based on the internal location fingerprint set of the hospital, the location fingerprints are clustered using the kernel k-means method, including: Based on the hospital internal location fingerprint collection , the location fingerprints in the location fingerprint set are clustered using the kernel k-means method, and according to the clustering results, the internal fingerprint map of the hospital composed of the location fingerprints is divided into multiple sub-areas. The process of the kernel k-means method is as follows: S11: Fingerprint collection inside the hospital Randomly select cluster centers , where M represents the number of clusters; S12: Using kernel functions Any location fingerprint in the internal location fingerprint collection and Mapping to data and , then the mapping formula is: The resulting mapping dataset is ; S13: Establish the objective function of the kernel k-means method: ; in: M is the number of clusters; Mapping data representing class centers; is the mean of the mth class after clustering; S14: adjust cluster center; S15: Repeat steps S12-S14 until the objective function converges. The cluster center finally converged is the cluster result center. The position fingerprints adjacent to the cluster center are merged into the cluster cluster of the cluster center. The cluster result is ,in Represents cluster center The cluster centered on Any cluster The area where the fingerprint is located is used as a sub-area of ​​the hospital internal fingerprint map ; S2: Perform Hamming distance matching on the location fingerprint of the device to be located and the location fingerprint in the sub-region, and take the sub-region with the matching result within a preset distance threshold as the set of regions where the device to be located may be located; S3: Calculate the Gaussian logarithmic distance between the location fingerprint of the device to be located and each location fingerprint in each possible area; S4: Calculate the membership of each possible area, and take the average of the first w smallest Gaussian logarithmic distances in each possible area as the membership of the device to be located in the area. The possible area with the smallest membership is the area where the device to be located is located, and take the position vector average of the position fingerprint corresponding to the first w smallest Gaussian logarithmic distances as the position of the device to be located.

2. A method for implementing in-hospital consumables distribution based on a real-time positioning method as claimed in claim 1, characterized in that: In the step S2, the location fingerprint of the device to be located and the location fingerprint in the sub-area are matched by Hamming distance, including: Calculate any sub-region MAC address collection: ; in: Indicates sub-area The number of position fingerprints within; Indicates sub-area The k-th position fingerprint; Indicates obtaining the MAC address in the location fingerprint; Get the location fingerprint x of the device to be located and the MAC address set as , the MAC address set of the device to be located and any sub-area The MAC address set is subjected to Hamming distance matching, and the Hamming distance matching result for: ; in: Represents the MAC address set of the device to be located; represents any sub-area within the hospital A set of MAC addresses.

3. A method for implementing in-hospital consumables distribution based on real-time positioning method as claimed in claim 2, characterized in that: In the step S2, the corresponding sub-areas of the matching results within the preset distance threshold are taken as a set of areas where the device to be located may be located, including: Matching result sets based on Hamming distance , the Hamming distance matching result is greater than the preset threshold The sub-area set of the device to be located may be located in the area set , where s means there are s possible areas for the device to be located. Indicates the uth possible area of ​​the device to be located.

4. A method for implementing in-hospital consumables distribution based on a real-time positioning method as claimed in claim 3, characterized in that: In the step S3, the Gaussian logarithmic distance between the location fingerprint of the device to be located and each location fingerprint in each possible area is calculated, including: Calculate the location fingerprint x of the device to be located in each possible area The Gaussian logarithmic distance of Represents any possible area The calculation formula of the Gaussian logarithmic distance for the k-th position fingerprint within is: ; in: Indicates the signal strength in obtaining the location fingerprint; Represents the standard deviation of the received signal strength of wireless access points within the hospital.

5. A method for implementing in-hospital consumables distribution based on real-time positioning method as claimed in claim 4, characterized in that: In the step S4, the degree of membership of each possible area is calculated, and the possible area with the smallest degree of membership is the area where the device to be located is located, and the position vector mean of the signal fingerprint corresponding to the first w minimum Gaussian logarithmic distances is used as the position of the device to be located, including: The average value of the first w smallest Gaussian logarithmic distances in each possible area is taken as the degree of membership of the device to be located in the area, and the possible area with the smallest degree of membership is the area where the device to be located is located; The position vector average of the signal fingerprints corresponding to the first w minimum Gaussian logarithmic distances is taken as the position of the device to be located.

6. A device for distributing consumables in a hospital based on a real-time positioning method, to implement a method for distributing consumables in a hospital based on a real-time positioning method as claimed in claim 1, characterized in that: The device comprises: Wireless access point for location fingerprint of consumables to be located; A data processor is used to perform Hamming distance matching between the location fingerprint of the device to be located and the location fingerprint in the sub-area, and use the sub-area with the matching result within a preset distance threshold as a set of areas where the device to be located may be located; calculate the Gaussian logarithm distance between the location fingerprint of the device to be located and each location fingerprint in each possible area; The consumables positioning device is used to take the average value of the first w smallest Gaussian logarithmic distances in each possible area as the membership of the device to be positioned to the area, the possible area with the smallest membership is the area where the device to be positioned is located, and the position vector average of the position fingerprint corresponding to the first w smallest Gaussian logarithmic distances is taken as the position of the device to be positioned.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores consumables positioning program instructions, which can be executed by one or more processors to implement the steps of a method for implementing in-hospital consumables distribution based on real-time positioning as described in any one of claims 1-5.