WO2023202499A1 - Data transmission method and related device - Google Patents

Data transmission method and related device Download PDF

Info

Publication number
WO2023202499A1
WO2023202499A1 PCT/CN2023/088550 CN2023088550W WO2023202499A1 WO 2023202499 A1 WO2023202499 A1 WO 2023202499A1 CN 2023088550 W CN2023088550 W CN 2023088550W WO 2023202499 A1 WO2023202499 A1 WO 2023202499A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
distance
row
column
identified
Prior art date
Application number
PCT/CN2023/088550
Other languages
French (fr)
Chinese (zh)
Inventor
杜雨晴
马梦瑶
杨讯
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023202499A1 publication Critical patent/WO2023202499A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information

Definitions

  • the present application relates to the field of communication technology, and in particular, to a data transmission method and related devices.
  • the data collected by the second device often needs to be transmitted to the first device, and the first device uses the data for classification and identification.
  • the data transmitted by the second device to the first device is high-dimensional information extracted after performing principal component analysis on the collected data.
  • the high-dimensional information may be a high-dimensional matrix.
  • the number of rows of the high-dimensional matrix may range from hundreds of thousands or even millions, and the transmission of the high-dimensional matrix has considerable communication overhead.
  • a low-precision quantizer can be used to quantize and transmit the high-dimensional matrix.
  • the errors before and after quantization will affect the accuracy of the recognition results.
  • This application provides a data transmission method and related devices, which can improve the accuracy of identification results.
  • the present application provides a data transmission method, which can be executed by a first communication device.
  • the first communication device can be a communication device or a communication device, such as a chip, that can support the communication device to implement the functions required by the method.
  • the first communication device is a receiver, or a chip provided in the cloud for implementing the functions of the receiver, or other components for implementing the functions of the receiver.
  • the receiver is used as the execution subject as an example.
  • the receiver determines the distance between each data in the database and the first data, which is the received data to be identified or a matrix composed of received rows or columns in the data to be identified.
  • the shortest distance between each data and the first data is the first distance
  • the shortest distance other than the first distance is the second distance
  • the distance between the judgment database and the first data is the first distance.
  • this application uses the shortest distance principle to not only select the second data with the shortest distance from the first data from the database, but also determine based on the number of second data and the absolute difference between the first distance and the second distance.
  • the accuracy of the identification result represented by the second data is used to determine whether to send the identification result represented by the second data.
  • This data transmission method can also be called the feedback principle based on classification accuracy, which can improve the accuracy of the recognition results.
  • the method before the receiver determines the distance between each data in the database and the first data, the method further includes: the receiver sends a transmission instruction, the transmission instruction is used to indicate the currently requested transmission to be identified.
  • the receiver can request the sender to send elements of partial columns or partial rows through transmission instructions for matching identification, thereby reducing the data that needs to be transmitted as much as possible, which is beneficial to reducing communication overhead and reducing communication time. extension.
  • the receiver can Perform the step of sending a transmission instruction again until the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, or until all columns or all rows in the data to be identified All have been transmitted, and the recognition result represented by the second data is sent.
  • the transmission instruction when making a matching judgment based on the rows or columns that have been transmitted and the data in the database, if it is judged that the matching conditions are not met, the transmission instruction can be used again to request the transmitter to send elements of other rows or columns, using the updated The first data is matched again. Therefore, it is beneficial to reduce the data that needs to be transmitted as much as possible, reduce the communication overhead, and reduce the communication delay.
  • the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the column or row currently requested to be transmitted; the transmission parameters include the length of each block into which the column or row is divided, and the length of each block into which the column or row is divided.
  • the method before the receiver determines the distance between each data in the database and the first data, the method further includes: the receiver sends a transmission instruction, the transmission instruction is used to request transmission of the data to be identified. Data; receiving the data to be identified as the first data.
  • the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the data to be identified that are requested to be transmitted; the transmission parameters include the length of each block divided into each column or row of the data to be identified, and the Each block is quantized with codebook information used; the received data to be identified is obtained by decompressing the compressed and transmitted data to be identified based on the transmission parameters. Therefore, it is beneficial to reduce the data that needs to be transmitted, thereby reducing communication overhead.
  • the receiver can send a retransmission instruction, and the retransmission instruction is used to Indicate the row index or column index of the row currently requested to be retransmitted in the data to be identified; receive the element of the row corresponding to the row index or the element of the column corresponding to the column index; update the first data using the elements of the row or the elements of the column, And perform the step of determining the distance between each data in the database and the first data again until the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value , or all columns or all rows in the data to be identified have been retransmitted, and the identification results represented by the second data are sent.
  • this implementation method can solve the problem of large communication data volume in the existing method and reduce the communication delay to a great extent through partial row/column compression and retransmission based on the classification accuracy feedback criterion.
  • the retransmission instruction is also used to indicate the transmission parameters used for compressed retransmission of the row or column currently requested to be retransmitted; the transmission parameters include the length of each block into which the column or row is divided, and the quantization of each block.
  • the codebook information used; the element of the column corresponding to the received column index is obtained by decompressing the element of the column corresponding to the column index of the compressed transmission based on the transmission parameter, or the element of the row corresponding to the received row index is based on
  • the transmission parameters are obtained by decompressing the elements of the row corresponding to the row index of the compressed retransmission. Therefore, it is beneficial to reduce the amount of data transmitted by retransmission.
  • the quantization precision used for compressed retransmission of the row or column currently requested by the receiver to be retransmitted is higher than the quantization precision used for compressed transmission of the data to be identified that the receiver requests transmission. Therefore, the communication overhead and communication delay caused by using a high-precision quantizer for the first transmission of the data to be identified is avoided.
  • the receiver uses the received data to be identified to perform matching judgment, if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not is greater than the preset value, send a plurality of fourth data, the plurality of fourth data are a plurality of second data in the database, or the second data in the database and the distance between the database and the first data is the second The third data of distance.
  • the present application provides a data transmission method, which can be executed by a second communication device.
  • the second communication device can be a communication device or a communication device, such as a chip, that can support the communication device to implement the functions required by the method.
  • the second communication device is a transmitter, or a chip provided in the sensor to implement the function of the transmitter, or other components used to implement the function of the transmitter.
  • the sender is used as the execution subject as an example.
  • the transmitter sends a task request, which is used to request an identification task.
  • the task request includes the number N of rows and the number M of columns of data to be identified in the identification task;
  • the transmitter receives a transmission instruction, which is used to Indicates the column index of the column or the row index of the row currently requested to be transmitted in the data to be identified;
  • the sender sends the element of the column corresponding to the column index or the element of the row corresponding to the row index.
  • the task request is sent to the receiver in the embodiment of the present application, it can be transmitted in rows or columns according to the transmission instructions sent by the receiver for identification by the receiver, thereby helping to reduce communication overhead.
  • the transmitter receives the recognition result represented by the second data.
  • the second data is data whose distance from the first data in the database of the device responding to the recognition task is a first distance.
  • a distance is the shortest distance between each data in the database and the first data, which is composed of elements of rows or columns that have been sent in the data to be identified. It can be seen that compared with the method of uploading all the data to be identified using a high-precision quantizer, this data transmission method can reduce communication overhead while ensuring the accuracy of the identification results.
  • the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the column or row currently requested to be transmitted; the transmission parameters include the length of each block into which the column or row is divided, and the length of each block into which the column or row is divided.
  • the parameter is obtained by compressing the elements of the row corresponding to the row index. It can be seen that this implementation method is beneficial to further reducing communication overhead.
  • the present application also provides a data transmission method, which can be executed by a second communication device.
  • the second communication device can be a communication device or a communication device, such as a chip, that can support the communication device to implement the functions required by the method.
  • the second communication device is a transmitter, or a chip provided in the sensor to implement the function of the transmitter, or other components used to implement the function of the transmitter.
  • the sender is used as the execution subject as an example.
  • the transmitter receives a transmission instruction, which is used to request the transmission of data to be identified in the identification task; sends the data to be identified; in addition, the transmitter can also receive a retransmission instruction, which is used to indicate that the data to be identified is to be transmitted.
  • the transmitter after the transmitter sends the data to be identified, it can also retransmit the elements of some rows or columns based on the retransmission instruction to update the data to be identified, which is conducive to using a compression transmission scheme with lower quantization accuracy for transmission.
  • the data is to be identified, which in turn helps reduce communication overhead.
  • the method further includes: receiving a recognition result represented by second data, where the distance between the second data and the first data in the database in the device responding to the recognition task is a first distance.
  • data the first distance is the shortest distance between each data in the database and the first data.
  • the first data is updated data based on the elements of the row or column that have been retransmitted. It can be seen that in this embodiment, the transmitter can enable the receiver to determine the recognition result based on the updated data to be recognized, thereby reducing communication overhead while ensuring the accuracy of the recognition result.
  • the transmission instruction is also used to indicate the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted; the transmission parameters include the data of each block divided into each column or row in the data to be identified. length, and the codebook information used to quantize each block; accordingly, the data to be identified sent above is obtained by compressing the data to be identified based on the transmission parameters.
  • the retransmission instruction is also used to indicate the transmission parameters used for compressed retransmission of the row or column currently requested to be retransmitted;
  • the transmission parameters indicated by the retransmission instruction include each of the columns or rows divided into The length of the block, and the codebook information used to quantize each block; accordingly, the elements of the column corresponding to the column index sent above are obtained by compressing the elements of the column corresponding to the column index based on the transmission parameters, or, The elements of the row corresponding to the sent row index are obtained by compressing the elements of the row corresponding to the row index based on the transmission parameters indicated by the retransmission instruction.
  • the quantization precision used for compressed retransmission of the row or column currently requested to be retransmitted is higher than the quantization precision used for compressed transmission of the data to be identified that is requested to be transmitted. In this way, communication overhead can be reduced as much as possible while ensuring the accuracy of the recognition results.
  • the present application provides a data transmission method, which can be executed by a second communication device.
  • the second communication device can be a communication device or a communication device, such as a chip, that can support the communication device to implement the functions required by the method.
  • the second communication device is a transmitter, or a chip provided in the sensor to implement the function of the transmitter, or other components used to implement the function of the transmitter.
  • the sender is used as the execution subject as an example.
  • the transmitter receives a transmission instruction, which is used to request the transmission of the data to be identified in the identification task; sends the data to be identified; receives a plurality of fourth data; and determines the difference between each received fourth data and the data to be identified. distance between them; determine whether the number of fifth data among the plurality of fourth data that is the third distance from the data to be identified is one or more; if the number of fifth data is one and the third The absolute difference between the distance and the fourth distance is greater than the preset value, and the recognition result represented by the fifth data is output.
  • the plurality of fourth data are the second data in the database, or the second data in the database and the third data in the database.
  • the second data is data in the database of the device that identifies the task, and the distance between it and the first data is the first distance
  • the third data is the data in the database of the device that identifies the task, and the distance between it and the first data is the second distance.
  • distance data is the shortest distance between each data in the database and the first data.
  • the shortest distance other than the first distance is the second distance.
  • the first data is data to be identified received by the device; wherein the shortest distance between each fourth data in the plurality of fourth data and the data to be identified is the third distance, and the shortest distance other than the third distance is The distance is the fourth distance.
  • the transmission instruction is also used to indicate the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted; the transmission parameters include the data of each block divided into each column or row in the data to be identified. length, and the codebook information used to quantize each block; accordingly, the data to be identified sent above is obtained by compressing the data to be identified based on the transmission parameters.
  • prompt information is output. Used to indicate that the data to be identified failed to match.
  • the present application provides a communication device.
  • the communication device may be a receiver or a chip in the receiver.
  • the communication device includes a processor and a transceiver.
  • the processor is used to determine the distance between each data in the database and the first data distance, the first data is the received data to be identified or a matrix composed of received rows or columns in the data to be identified; the shortest distance between each data and the first data is the first distance, except for the first The shortest distance outside the distance is the second distance; and it is judged whether the number of second data in the database that is the first distance from the first data is one or more; the transceiver is used to determine if the first data is the second data. If the number of two pieces of data is one, and the absolute difference between the first distance and the second distance is greater than a preset value, the identification result represented by the second data is sent.
  • the communication device further includes a memory, the memory is used to store a computer program, and the computer program includes program instructions.
  • the present application provides a communication device.
  • the communication device may be a transmitter or a chip in the transmitter.
  • the communication device includes a transceiver.
  • the transceiver is used to send a task request.
  • the task request is used to request an identification task.
  • the task request includes the number N of rows and the number M of columns of data to be identified in the identification task; receiving the transmission instruction,
  • the transfer instruction is used to indicate the column index of the column or the row index of the row currently requested to be transferred in the data to be identified; send the element of the column corresponding to the column index or the element of the row corresponding to the row index.
  • the transceiver is used to receive a transmission instruction, which is used to request the transmission of data to be identified in the identification task; to send the data to be identified; and to receive a retransmission instruction, which is used to indicate The row index of the row or column index of the column currently requested to be retransmitted in the data to be identified; the element of the column corresponding to the retransmitted column index or the element of the row corresponding to the row index.
  • the communication device further includes a processor, the receiver is used to receive a transmission instruction, the transmission instruction is used to request the transmission of data to be identified in the identification task; to send the data to be identified; and to receive a plurality of third Four data, the plurality of fourth data is the second data in the database, or the second data and the third data in the database; the second data is the same as the first data in the database of the device responding to the recognition task.
  • the distance between the data is the data of the first distance
  • the third data is the data in the database whose distance from the first data is the second distance.
  • the shortest distance between each data in the database and the first data is the first distance
  • the shortest distance other than the first distance is the second distance.
  • the first data is data received by the device to be identified.
  • the processor is used to determine the distance between each received fourth data and the data to be identified; the shortest distance between each fourth data in the plurality of fourth data and the data to be identified is the third distance. , the shortest distance other than the third distance is the fourth distance; and determining whether the number of fifth data among the plurality of fourth data that is the third distance from the data to be identified is one or more;
  • the receiver is configured to output a recognition result represented by the fifth data if the number of the fifth data is one and the absolute difference between the third distance and the fourth distance is greater than a preset value.
  • the communication device further includes a memory, the memory is used to store a computer program, and the computer program includes program instructions.
  • embodiments of the present application provide a communication device, which is implemented in the form of a chip product and includes a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor uses The code instructions are executed to execute the data transmission method described in the first aspect or any possible implementation of the first aspect.
  • the communication device further includes a memory, and the memory is connected to the processor through a circuit.
  • the processor and the memory may be physically independent units, or the memory may be integrated with the processor.
  • embodiments of the present application provide a communication device, which is implemented in the form of a chip product and includes a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor uses Running the code instructions to execute the above second aspect or any possible implementation of the above second aspect, or the above third aspect or any possible implementation of the above third aspect, or the fourth aspect or the third aspect Any possible realization of the four aspects
  • the communication device further includes a memory, and the memory is connected to the processor through a circuit.
  • the processor and the memory may be physically independent units, or the memory may be integrated with the processor.
  • embodiments of the present application provide a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program includes program instructions. When the program instructions are run on a computer, they cause the computer to execute the above.
  • embodiments of the present application provide a computer program product that, when run on a computer, causes the computer to execute the data transmission method described in any one of the above-mentioned first to fourth aspects.
  • embodiments of the present application provide a communication system, which includes the receiver described in the above first aspect or any possible implementation manner of the above first aspect, and the above second to third aspects.
  • Figure 1 is a schematic architectural diagram of a data transmission system provided by an embodiment of the present application.
  • FIG. 2 is an architectural schematic diagram of another data transmission system provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of a "cutting" operation provided by an embodiment of the present application.
  • Figure 4 is a schematic flowchart of the data transmission method 100 provided by the embodiment of the present application.
  • FIG. 5 is a schematic flowchart of the data transmission method 200 provided by the embodiment of the present application.
  • Figure 6 is a schematic flowchart of the data transmission method 300 provided by the embodiment of the present application.
  • FIG. 7 is a schematic flowchart of the data transmission method 400 provided by the embodiment of the present application.
  • Figure 8 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • Figure 9 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • the receiver In order for the receiver to use the data received from the transmitter to better reconstruct the data to be identified.
  • the transmitter compresses and transmits the data to be identified, it needs to make the minimum mean square error of the signals before and after quantization as small as possible to compress the original data to be identified.
  • a high-precision quantizer is needed, which will result in a large amount of compressed data.
  • the transmitter based on the feedback retransmission mechanism, after all the compressed data to be identified is uploaded to the cloud, if an error at the bit or symbol level is detected, the transmitter will be required to retransmit the data. This results in huge communication overhead.
  • FIGS 1 and 2 are respectively schematic architectural diagrams of a data transmission system provided by embodiments of the present application. It should be understood that the system architecture described in this application is to more clearly illustrate the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided by the embodiments of this application.
  • the data transmission system includes a transmitter and a receiver.
  • the transmitter can send part or all of the data to be identified to the receiver.
  • the receiver After the receiver receives all or part of the data to be identified, it can use the data in the database to judge and match. If the recognition result is obtained, the recognition result can be sent to the transmitter.
  • data can be transmitted between the transmitter and the receiver through a wireless link.
  • the data to be identified is transmitted through compression, which involves mapping, cutting, and blocking. Encoding and entropy coding operations; for the receiver, the data to be identified is obtained through decompression, which involves entropy decoding, block decoding, and inverse mapping operations. Further, the receiver can perform relevant operations based on the classification accuracy feedback principle through judgment operations, and feed back the recognition results to the transmitter when the recognition result feedback conditions are met. When the recognition result feedback conditions are not met, the receiver can send the recognition results to the transmitter. Transfer instructions, or retransmit instructions, or second data in the database.
  • the data transmission method please refer to the data transmission method 100 to the data transmission method 400 described below.
  • the transmitter may be a wireless communication chip, a wireless sensor or a wireless communication terminal that has the ability to collect or extract data but does not have the function of data identification or classification.
  • support narrowband communication functions including but not limited to 802.11ax next-generation wireless fidelity (Wi-Fi) protocol, such as 802.11be, Wi-Fi 7 or extremely high throughput (EHT), and then Such as 802.11be next generation, Wi-Fi 8 and other systems, Bluetooth, Zigbee) and/or user terminals and user devices that support cellular communications (including but not limited to 2G, 3G, 4G, 5G and future new generation communications), access Device, subscriber station, subscriber unit, mobile station, user agent, user equipment, wherein the user terminal can include various handheld devices, vehicle-mounted devices, wearable devices, and Internet of Things (IoT) devices with wireless communication functions , computing equipment or other processing equipment connected to a wireless modem, and various forms of user equipment (UE), mobile station (MS), terminal, terminal equipment (termin
  • the receiver may be a cloud with data identification or classification capabilities, a server in the cloud, or other devices that are remote from the sender.
  • the database in the receiver may store data for matching with the data to be identified, so as to obtain the identification result represented by the data to be identified.
  • the receiver may include but is not limited to: evolved Node B (eNB), radio network controller (RNC), Node B (Node B, NB), base station controller (BSC) ), base transceiver station (BTS), home base station (e.g., home evolved NodeB, or homeNode B, HNB), baseband unit (BBU), wireless fidelity (WiFi) system Access point (AP), wireless relay node, wireless backhaul node, transmission point (TP) or transmission and reception point (TRP), etc.
  • eNB evolved Node B
  • RNC radio network controller
  • Node B Node B
  • BSC base station controller
  • BBU base transceiver station
  • home base station e.g., home evolved NodeB, or homeNode B, HNB
  • BBU baseband unit
  • WiFi wireless fidelity
  • AP wireless relay node
  • TP transmission point
  • TRP transmission and reception point
  • 5G such as NR, A gNB in the system, or a transmission point (T
  • the data to be identified can also be called the data to be classified, which is the data transmitted from the transmitter to the receiver for matching judgment.
  • the data described in this article are data that have been stored in the database of the receiver and are used to make matching judgments in conjunction with the data to be identified.
  • the data to be identified can be one or more of the following data collected or extracted by various sensors used to collect biometric characteristics, such as fingerprint image sensors, face image sensors, iris image sensors, etc. : Such as face, fingerprint, iris and other biometric features; or, it can be various sensors used to collect environmental features, such as wireless ranging sensors, radars, cameras, etc., to collect or extract information about the surrounding environment and vehicles; or, It can be gestures, actions and other motor behavior characteristics.
  • the data to be identified is data in which principal components are extracted from the original data using principal component analysis (PCA).
  • PCA principal component analysis
  • the raw data can be data collected by the various sensors mentioned above.
  • the data to be identified can also be called information to be classified or source signals.
  • the data in the database of the receiver can be called signals in the library.
  • the first data may be the data to be identified received by the receiver, data that has been compressed and suffered compression loss on the basis of the data to be identified on the transmitter side, or it may be the part of the data to be identified that is received by the receiver.
  • Row or column data optionally, there is a compression loss in the data to be identified received by the receiver compared with the data in the row or column of the data to be identified on the transmitter side.
  • the first data may be the current data to be identified by the receiver, such as the data to be identified received after the receiver sends a transmission instruction, or the data to be identified updated using the received row or column elements after the receiver sends a retransmission instruction, Or, the elements of some rows or columns in the data to be identified are received after the receiver sends the transmission instruction.
  • the transmitter sends the data to be identified to the receiver.
  • the data to be identified needs to be compressed and transmitted.
  • the receiver After the receiver receives the compressed and transmitted data to be identified, it decompresses and reconstructs the data to be identified.
  • compression involves the operations of mapping, cutting, block coding, and entropy coding; for the receiver, decompression involves the operations of entropy decoding, block decoding, and inverse mapping.
  • decompression involves the operations of entropy decoding, block decoding, and inverse mapping.
  • mapping The main function of mapping is dimensionality reduction, which can also be called spatial mapping.
  • the data to be identified is a matrix with a high number of rows and/or columns, referred to as a high-dimensional matrix. Therefore, the high-dimensional matrix needs to be dimensionally reduced.
  • the dimensionally reduced matrix X′ has the same number of rows as the high-dimensional matrix X, but the number of columns is reduced; or, the dimensionally reduced matrix Compared with the high-dimensional matrix X, the dimensionally reduced matrix .
  • Cutting refers to cutting each column of the matrix into small segments, called "chunks".
  • the M-column matrix assumes that each column has 50 rows, that is, each column is a 50 ⁇ 1 column vector.
  • the column vector can be cut into 5 "blocks", and each "block” is 10 ⁇ subvector of 1.
  • each column vector can be cut into multiple sub-vectors, and the complexity of designing a codebook and performing quantized encoding for each sub-vector will be reduced.
  • a vector codebook (quantizer) with specified precision can be used to quantize the "block” according to the length of the "block” to obtain a codeword number sequence. Specifically, based on the distance between the "block” and each codeword in the vector codebook, the codeword corresponding to the shortest distance is found. Optionally, one is to use the codeword corresponding to the shortest distance as the quantized signal of the "block”, and the other is to use the number of the codeword in the vector codebook as the quantized signal of the "block”.
  • Entropy coding can compress the number of the codeword corresponding to each "block" in the vector codebook.
  • the entropy coding method can be: Huffman, arithmetic coding, etc., which is not limited in this application.
  • the receiver can use the decoder to perform entropy decoding on the received data to obtain the number of the codeword corresponding to each "block" in the vector codebook.
  • Inverse mapping is used to estimate the received block after decoding Perform estimation recovery to obtain a high-dimensional matrix.
  • F for estimation recovery is as follows:
  • the transmitter compresses the high-dimensional matrix X and transmits it to the receiver.
  • the high-dimensional matrix obtained by the receiver through the above decompression operation There are differences from the high-dimensional matrix X.
  • the data to be identified described in this application is, for the transmitter, the above-mentioned original data to be identified, for example, the high-dimensional matrix Identify data, e.g., high-dimensional matrices
  • distance refers to the distance between different matrices.
  • the distance between two matrices is the sum of the angles between the hyperplanes represented by the two matrices.
  • the angle between matrix U and matrix S can be calculated as follows:
  • the shortest distance refers to calculating the distance between each data separately based on the above distance calculation method, where the distance with the minimum value is the shortest distance or the shortest distance.
  • This application provides a data transmission method 100, which can use the shortest distance principle to select the second data with the shortest distance from the first data from the database, and according to the number of second data and the distance between the first distance and the second distance
  • the absolute difference determines the accuracy of the recognition result of the second data representation, and determines whether to send the recognition result of the second data representation.
  • the data transmission method 100 can also be called a feedback mechanism based on classification accuracy, thereby reducing communication overhead as much as possible while ensuring recognition accuracy.
  • This application also provides a data transmission method 200, which is an incremental transmission mechanism based on classification accuracy.
  • the receiver makes a matching judgment based on the rows or columns that have been transmitted and the data in the database. If the judgment does not meet the recognition result feedback conditions, it can be processed again.
  • the transmitter is requested to send elements of other rows or columns, and the updated first data is used to perform matching judgment again. Therefore, on the premise of ensuring recognition accuracy, the data to be transmitted can be reduced as much as possible and the communication overhead can be reduced.
  • This application also provides a data transmission method 300, which is a row-by-row or column-by-column retransmission mechanism based on classification accuracy.
  • a data transmission method 300 which is a row-by-row or column-by-column retransmission mechanism based on classification accuracy.
  • This application also provides a data transmission method 400, which is a library signal feedback mechanism based on the principle of classification accuracy feedback.
  • a data transmission method 400 which is a library signal feedback mechanism based on the principle of classification accuracy feedback.
  • the receiver makes a matching judgment based on the transmitted data to be identified, if it is judged that the identification result feedback conditions are not met, the database can be Part of the data is sent to the transmitter. It can be seen that on the premise of improving the recognition accuracy, this implementation method can reduce the amount of data transmitted in the uplink and reduce the communication delay by feeding back part of the data in the database downlink.
  • Figure 4 is a schematic flow chart of the data transmission method 100 provided by the embodiment of the present application. As shown in Figure 4, the data transmission method 100 includes but is not limited to the following steps:
  • the receiver determines the distance between each data in the database and the first data, which is the received data to be identified or a matrix composed of received rows or columns in the data to be identified;
  • the shortest distance between each data and the first data is the first distance
  • the shortest distance other than the first distance is the second distance.
  • the database includes data 1, data 2, and data 3.
  • the distances between the three data and the first data are d1, d2, and d3 respectively; among them, d1 is the shortest distance among the three distances, and d2 is the shortest distance among the three distances.
  • the shortest distance among the three distances except the shortest distance d1 can also be called the second shortest distance among the three distances. In this way, the first distance is d1 and the second distance is d2.
  • each data, the first data, the second data, the third data to be described below, etc. are all data in matrix form, so the distance between the data can be based on the distance described above.
  • the calculation method is calculated and will not be described in detail here.
  • the first data may be part or all elements of the data to be identified.
  • the receiver may obtain the first data by: receiving it from a remote device, or by continuously transmitting it in rows or columns as described in the data transmission method 200, or by transmitting it for the first time as described in the data transmission method 300. Updates are obtained by retransmitting rows or columns after transmission.
  • the receiver determines whether the number of second data in the database that is a first distance away from the first data is one or more;
  • the receiver sends the recognition result represented by the second data.
  • the preset value may be set in advance, or may be an empirical value that meets certain accuracy requirements through offline verification.
  • the recognition result of the second data representation may be user information or permission granting information corresponding to the data to be recognized, which is not limited in this application.
  • the receiver can output prompt information.
  • the prompt information Used to indicate that the data to be identified failed to match.
  • the receiver can perform the data transmission method 200 as shown in The sending of the transmission instruction instructs the transmitter to continue transmission in rows or columns, or it can also be the sending of a retransmission instruction as described in the data transmission method 300 to retransmit in rows or columns to update the first data, etc.
  • the operation may also be an operation such as sending part of the data in the database to the sender as described in the data transmission method 400.
  • the data transmission method 100 performs feedback transmission based on the principle of classification accuracy. That is, after using the first data to make a matching judgment with the data in the database, the second data that meets the first distance is classified as a certain type of "confidence" signal, and then, when the number of second data is one and only one And when the absolute difference between the first distance and the second distance is greater than the preset value, the signal accuracy of this type of "confidence level” is determined to be high, and the recognition result can be fed back to the transmitter; otherwise, the "confidence level” of this type is determined.
  • the signal accuracy is low, the recognition result is not fed back, but the transmission instruction (such as data transmission method 200) is continued to be sent to the transmitter, or the Send instructions (such as data transmission method 300), or issue library signals (such as data transmission method 400). Therefore, it is possible to reduce communication overhead as much as possible while ensuring the accuracy of the recognition results.
  • Figure 5 is a schematic flowchart of the data transmission method 200 provided by the embodiment of the present application.
  • the difference between the data transmission method 200 and the data transmission method 100 is that in the data transmission method 200, the first data is sent by the transmitter in rows or columns. Therefore, if the elements of the sent rows or columns are constituted During the matching judgment of the first data, if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, then the receiver can send the transmission to the transmitter again Instruction to obtain elements of other rows or columns and then perform matching judgment after updating the first data.
  • the data transmission method 200 includes but is not limited to the following steps:
  • the transmitter sends a task request, and the receiver receives the task request.
  • the task request is used to request a recognition task.
  • the task request includes the number of rows N and the number of columns M of the data to be recognized in the recognition task;
  • step S202 can be executed.
  • the task request may also include other information.
  • the receiver sends a transmission instruction, and accordingly, the transmitter receives the transmission instruction; the transmission instruction is used to indicate the column index of the column or the row index of the row in the data to be identified that is currently requested to be transmitted;
  • the transmitter sends the element of the column corresponding to the column index or the element of the row corresponding to the row index; accordingly, the receiver receives the element of the column corresponding to the column index or the element of the row corresponding to the row index, and uses the received column or row
  • the elements construct the first data
  • the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the column or row currently requested to be transmitted; the transmission parameters include the length of each block into which the column or row is divided, and the length of each block.
  • the codebook information used for quantization correspondingly, the elements of the column corresponding to the column index received by the receiver are obtained by decompressing the elements of the column corresponding to the column index of compressed transmission based on the transmission parameters, or the elements of the row corresponding to the row index received by the receiver are obtained based on the transmission parameters.
  • the parameter is obtained by decompressing the element of the row corresponding to the row index of the compressed transmission.
  • the transmission parameters at least include but are not limited to the following information:
  • the receiver determines that there may be multiple block lengths indicated by the block division configuration in the transmission parameters.
  • L 1 mod(N,L 0 ) and L 1 is the length of the last “block” of each column.
  • the length of the last "block” of each column is set to the remainder of N divided by L 0 , that is, L 1 .
  • "blocks" of the same length can be quantized using codebooks with the same quantization accuracy, and "blocks" of different lengths can be quantized using different codebooks to meet the need to adjust the compression rate.
  • the specific operation of the transmitter using the information (12) to block the column or row currently requested for transmission can be found in the above description and will not be described in detail here.
  • the transmitter uses information (13) to quantize the divided "blocks”. Please refer to the above description of the compression operation, which will not be described in detail here.
  • the transmission parameters for the first transmission may also include:
  • mapping reference information configuration used to indicate mapping information; optionally, the mapping information may include the compression matrix as described above;
  • entropy coding configuration is used to indicate the entropy coding method; optionally, the entropy coding method may be arithmetic coding or Huffman coding as mentioned above.
  • the transmission parameters of other sub-transmissions may not include information (14) and information (15).
  • the elements of the rows or columns of other transmissions can use the mapping information and entropy coding method indicated by the mapping reference information configuration in the transmission parameters of the first transmission, and the block length indicated by the block division configuration in the transmission parameters of this transmission. and codebook information for compressed transmission.
  • the elements of the column corresponding to the column index or the elements of the row corresponding to the row index sent by the transmitter each time are based on the information (11) to information (13) indicated by the corresponding transmission parameters and the information in the transmission parameters of the first transmission. (14) and information (15) are compressed and transmitted.
  • the elements of the column corresponding to the column index received by the receiver are obtained by decompressing the elements of the column corresponding to the column index of compressed transmission based on the transmission parameters, or the elements of the row corresponding to the row index received by the receiver are obtained based on the transmission parameters.
  • the parameter is obtained by decompressing the element of the row corresponding to the row index of the compressed transmission.
  • the transmission parameters may also include : Information (16) resource configuration, used to indicate the resources used by the sender to transmit data.
  • the transmitter can send the compressed element of the column corresponding to the column index or the element of the row corresponding to the row index on the indicated resource.
  • the receiver can receive the element of the column or row corresponding to the column index on the indicated resource. The element of the row corresponding to the index.
  • the receiver determines the distance between each data in the database and the first data
  • the receiver also needs to determine the above-mentioned first distance and second distance from the distance between each data in the database and the first data.
  • step S205 The receiver determines whether the number of second data in the database that is a first distance from the first data is one or more; if the number of second data is one and the first distance is the same as the second distance, If the absolute difference between them is greater than the preset value, step S206 is executed; if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, execution continues. Steps S202 to S205, until if the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, or all columns in the data to be identified have been transmitted, then step S206 is executed. .
  • the receiver sends the identification result represented by the second data.
  • the transmitter can receive the identification result represented by the second data.
  • the transmitter can also output the identification result of the second data representation.
  • the receiver can perform step S204; the receiver receives the element of the column corresponding to the column index in a non-first loop. After the element of the row corresponding to the row index or the row index is retrieved, the first data needs to be updated, and then step S204 is executed.
  • the column index of the column currently requested to be transferred or the row index of the row indicated by each transfer instruction may be continuous.
  • the column index indicated by the transmission instruction sent for the first time is the first column from the left in the data to be transmitted; if the number of second data is multiple, or the distance between the first distance and the second distance is If the absolute difference is greater than the preset value, step S202 is continued, that is, the column index indicated by the second transmission instruction is the second column from the left in the data to be transmitted, and so on, until if the If the number of the second data is one, and the absolute difference between the first distance and the second distance is greater than the preset value, or all columns in the data to be recognized have been transmitted, the recognition result represented by the second data is sent.
  • the column index of the column currently requested to be transferred or the row index of the row indicated by each transfer instruction may be discontinuous.
  • the column index indicated by the transmission instruction sent for the first time is the first column from the left in the data to be transmitted; if the number of second data is multiple, or the distance between the first distance and the second distance is If the absolute difference is greater than the preset value, step S202 is continued, that is, the column index indicated by the second transmission instruction is the third column from the left in the data to be transmitted, and so on, until the second The number of data is one, and the distance between the first distance and the second distance The absolute difference is greater than the preset value, or all columns in the data to be recognized have been transmitted, and the recognition result represented by the second data is sent.
  • the data transmission method 200 is an incremental transmission mechanism based on the classification accuracy feedback principle. That is, the data to be identified is partially transmitted by rows or columns. Once the classification accuracy feedback principle is met, the transmission is stopped and the identification results are fed back. Therefore, the elements of columns or rows in the data to be identified need to be transmitted as much as possible, which greatly reduces the communication delay caused by the large amount of communication data.
  • the feedback principle of classification accuracy is also used to ensure the feedback results. accuracy.
  • FIG. 6 is a schematic flowchart of a data transmission method 300 provided by an embodiment of the present application.
  • the difference between the data transmission method 300 and the data transmission method 100 is that in the data transmission method 300, the first data is sent by the transmitter for the first time, or is updated by using retransmitted row or column elements. Therefore, If the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, then the receiver can send a retransmission instruction to obtain the updated element of the row or column. After receiving the data, the matching judgment will be made. Detailed description will be given below. As shown in Figure 6, the data transmission method 300 includes but is not limited to the following steps:
  • the transmitter sends a task request, and the receiver receives the task request.
  • the task request is used to request a recognition task.
  • the task request includes the number of rows N and the number of columns M of the data to be recognized in the recognition task;
  • step S301 please refer to the above description of S201, and will not be described in detail here.
  • the receiver sends a transmission instruction, and accordingly, the transmitter receives the transmission instruction; the transmission instruction is used to request the transmission of the data to be identified in the identification task;
  • the transmitter sends the data to be identified, and accordingly, the receiver receives the data to be identified and obtains the first data;
  • the transmission instruction is also used to indicate the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted; the transmission parameters include the length of each block divided into each column or row of the data to be identified. , and the codebook information used by each block to be quantized.
  • the data to be identified sent by the transmitter is obtained by compressing the data to be identified based on the transmission parameters.
  • the transmission parameters at least include but are not limited to the following information:
  • the block partitioning configuration may indicate the length of blocks into which all columns or all rows are divided.
  • the transmitter uses the information (22) to perform the specific operation of block division of all columns or rows, and the transmitter uses the information (23) to quantize the divided "blocks". Please refer to the explanation of the above compression operation, here No more details.
  • the transmission parameters may also include:
  • mapping reference information configuration used to indicate mapping information; optionally, the mapping information can be a compression matrix as described above;
  • entropy coding configuration is used to indicate the entropy coding method; optionally, the entropy coding method may be arithmetic coding or Huffman coding as mentioned above.
  • the transmission parameters may also include : Information (26) resource configuration, used to indicate the resources used by the sender to transmit data.
  • Information (26) resource configuration used to indicate the resources used by the sender to transmit data.
  • the receiver determines the distance between each data in the database and the first data
  • the receiver also needs to determine the first distance and the second distance based on the distance between each data in the database and the first data.
  • the shortest distance between each data and the first data is the first distance, except for the first distance
  • the shortest distance is the second distance.
  • the receiver determines whether the number of second data in the database that is a first distance from the first data is one or more; if the number of second data is one and the first distance is the same as the second distance, If the absolute difference between them is greater than the preset value, step S306 is executed; if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, execution continues. Step S307;
  • the receiver sends the identification result represented by the second data.
  • the transmitter can receive the identification result represented by the second data.
  • the receiver sends a retransmission instruction.
  • the sender can receive the retransmission instruction.
  • the retransmission instruction is used to indicate the row index or column index of the row currently requested to be retransmitted in the data to be identified;
  • the transmitter retransmits the element of the column corresponding to the column index or the element of the row corresponding to the row index.
  • the receiver receives the element of the column corresponding to the column index or the element of the row corresponding to the row index, and uses The received column or row elements update the first data, and perform steps S304 to S305 again until if the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, Or if all columns or rows in the data to be identified have been retransmitted, step S306 is executed.
  • the retransmission instruction is also used to indicate the transmission parameters used for compressed retransmission of the row or column currently requested to be retransmitted; the transmission parameters include the length of each block into which the column or row is divided, and the length of each block.
  • the transmission parameters indicated by the retransmission instruction at least include but are not limited to the following information:
  • the length of the blocks indicated by the block division configuration in the information (32) may be multiple.
  • the transmitter uses the information (32) to perform the specific operation of dividing the column or row currently requested to be transmitted into blocks, and the transmitter uses the information (33) to quantify the divided "blocks". Please refer to the explanation of the above compression operation. No further details will be given here.
  • the transmission indicated by the retransmission instruction may also include: information (34) resource configuration, used to instruct the transmitter to retransmit the resources of the row or column.
  • the transmitter can send the compressed element of the column corresponding to the column index or the element of the row corresponding to the row index on the indicated resource.
  • the receiver can receive the element of the column or row corresponding to the column index on the indicated resource. The element of the row corresponding to the index.
  • the retransmission instruction includes two parts, one part is used to indicate the position of the retransmitted row or column, that is, information (31), and the other part is used to indicate the quantization accuracy of the retransmitted row or column, that is, information (32) , information (33); or, the retransmission instruction includes three parts, that is, the retransmission instruction also includes a part used to indicate the resources of the row or column to be retransmitted.
  • the quantization precision used for compressed retransmission of the row or column currently requested to be retransmitted is higher than the quantization precision used for compressed transmission of the data to be identified that is requested to be transmitted. That is to say, the codebook information of information (33) has higher quantization accuracy than the codebook information of information (23).
  • the data transmission method 300 is a row-by-row or column-by-column retransmission mechanism based on classification accuracy. That is, after the identification data is transmitted, once the classification accuracy feedback principle is not met, partial retransmission will be performed by row or column. In this way, the transmission of the data to be identified can be quantized using low-precision quantization parameters. When the classification accuracy feedback principle is not met, high-precision quantization parameters can be used to retransmit rows or columns to correct the data to be identified. thereby reducing the amount of data transmission required as much as possible, The communication delay is reduced to a great extent, and the accuracy of the feedback results is also ensured by using the classification accuracy feedback principle.
  • Figure 7 is a schematic flowchart of the data transmission method 400 provided by the embodiment of the present application.
  • the difference between the data transmission method 400 and the data transmission method 100 is that in the data transmission method 400, if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than Default value, then the receiver can send part of the data in the database, and the sender itself makes a matching judgment.
  • the data transmission method 400 includes but is not limited to the following steps:
  • the transmitter sends a task request, and the receiver receives the task request.
  • the task request is used to request a recognition task.
  • the task request includes the number of rows N and the number of columns M of the data to be recognized in the recognition task;
  • step S401 please refer to the above description of S201, which will not be described in detail here.
  • the receiver sends a transmission instruction, and accordingly, the transmitter receives the transmission instruction; the transmission instruction is used to request the transmission of the data to be identified in the identification task;
  • the transmitter sends the data to be identified, and accordingly, the receiver receives the data to be identified and obtains the first data;
  • steps S402 and S403 please refer to the relevant description of the above steps S302 and S303, which will not be described in detail here.
  • the receiver determines the distance between each data in the database and the first data
  • the receiver also needs to determine the first distance and the second distance based on the distance between each data in the database and the first data.
  • the shortest distance between each data and the first data is the first distance
  • the shortest distance other than the first distance is the second distance.
  • the receiver determines whether the number of second data in the database that is a first distance from the first data is one or more; if the number of second data is one and the first distance is the same as the second distance, If the absolute difference between them is greater than the preset value, step S406 is executed; if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, execution continues. Step S407;
  • the receiver sends the identification result represented by the second data.
  • the transmitter can receive the identification result represented by the second data.
  • the receiver sends a plurality of fourth data, and accordingly, the transmitter can receive the plurality of fourth data;
  • the plurality of fourth data are a plurality of second data in the database, or the second data in the database and the third data in the database whose distance from the first data is a second distance. data.
  • the receiver may send all the second data in the database that are at a first distance from the first data to the transmitter. If the absolute difference between the first distance and the second distance is not greater than the preset value, that is, the second data corresponding to the first distance is one but the absolute difference is not greater than the preset value, then the receiver can store the corresponding data in the database. Data at the shortest two distances are sent to the transmitter, that is, the second data corresponding to the first distance and the third data corresponding to the second distance.
  • the transmitter determines the distance between each received fourth data and the data to be identified;
  • the shortest distance between the one or more second data and the data to be identified is the third distance
  • the shortest distance other than the third distance is the fourth distance
  • the distance determined by the transmitter is the distance between each fifth data and the data to be identified
  • the distance determined by the receiver in step S404 is the distance between each data in the database and the first data. That is to say, the first data is the data to be identified received by the receiver, which is compressed and transmitted. Compared with the data to be identified on the sender side, there is a partial loss. Therefore, the receiver can send part of the data in the database. , the transmitter uses the uncompressed and transmitted data to be identified to determine the matching operation.
  • step S410 determines whether there is one or more fifth data among the plurality of fourth data whose distance from the data to be identified is the third distance; if the number of fifth data is one and the third distance If the absolute difference from the fourth distance is greater than the preset value, then step S410 is executed; otherwise, step S411 is executed;
  • step S411 is performed.
  • step S409 is for the transmitter to perform an operation based on the feedback principle of accurate classification based on the source signal (ie, the data to be identified) and the library signal (ie, a plurality of fourth data) sent by the receiver.
  • the transmitter outputs the recognition result represented by the fifth data.
  • the transmitter outputs prompt information, which is used to indicate that the data to be identified fails to match.
  • the data transmission method 400 is a library signal feedback mechanism based on the classification accuracy feedback principle. That is, after the identification data is transmitted, once the classification accuracy feedback principle is not satisfied, the receiver will send the second data in the library, or the second data and the third data, to the transmitter, and the transmitter will based on the classification accuracy feedback principle. Make matching judgments. In this way, the transmission of the data to be identified can be quantized using low-precision quantization parameters, and library signals are sent when the classification accuracy feedback principle is not met, thereby reducing the amount of data transmission required for uplink transmission as much as possible, and greatly reducing Communication delay, the use of classification accuracy feedback principle also ensures the accuracy of feedback results.
  • At least one of a, b, or c can represent: a, b, c; a and b; a and c; b and c; or a, b, and c.
  • a, b, c can be single or multiple.
  • a corresponds to B means that A and B have a corresponding relationship, and B can be determined based on A. But it should also be understood that determining (or generating) B based on (or based on) A does not mean solely based on (or based on) A To determine (or generate) B, B may also be determined (or generated) according to (or based on) A and/or other information.
  • the transmitter and the receiver may respectively include a hardware structure and a software module, and may be implemented in the form of a hardware structure, a software module, or a hardware structure plus a software module.
  • a certain function among the above functions can be executed by a hardware structure, a software module, or a hardware structure plus a software module.
  • Figures 8 and 9 are schematic structural diagrams of possible communication devices provided by embodiments of the present application. These communication devices can be used to implement the functions of the receiver or transmitter in the above method embodiments, and therefore can also achieve the beneficial effects of the above method embodiments.
  • the communication device shown in FIG. 8 may include a communication unit 801.
  • the communication unit 801 may include a sending unit and a receiving unit.
  • the sending unit is used to implement the sending function
  • the receiving unit is used to implement the receiving function.
  • the communication unit 801 may implement the sending function and/or the receiving function.
  • the communication unit can also be described as a transceiver unit.
  • the communication device shown in Figure 8 may be a receiver or a device in the receiver.
  • the communication device can implement the related operations of the receiver in the above data transmission method 100.
  • the communication unit 801 is used to receive data to be identified or elements of rows or columns in the data to be identified; the processing unit 802 is used to determine the distance between each data in the database and the first data, and the first data is
  • the received data to be identified may be a matrix composed of received rows or columns in the data to be identified; the shortest distance between each data in the database and the first data is the first distance, except for the first distance.
  • the shortest distance outside is the second distance; and determine whether the number of second data in the database that is the first distance from the first data is one or more; if the number of second data is one, and the If the absolute difference between the first distance and the second distance is greater than the preset value, the recognition result represented by the second data is sent.
  • processing unit 802 and the communication unit 801 please refer to the relevant descriptions in the above method embodiments.
  • the communication device may implement the related operations of the receiver in the above data transmission method 200.
  • the communication unit 801 is used to send a transmission instruction; the transmission instruction is used to indicate the column index of the column or the row index of the row currently requested to be transmitted in the data to be identified; and receive the element of the column corresponding to the column index or the row index corresponding to elements of the row, and uses the received elements of the column or row to construct the first data;
  • the processing unit 802 is used to determine the distance between each data in the database and the first data; the receiver determines the distance between the database and the first data Is the number of second data whose distance is the first distance one or more?
  • the communication unit 801 sends the recognition result represented by the second data; if the number of second data is multiple, or the absolute difference between the first distance and the second distance is greater than the preset value, the communication unit 801 can be triggered to execute the process again.
  • the above-mentioned operation of sending a transmission instruction is performed until if the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, or all columns in the data to be identified have been transmitted.
  • processing unit 802 and the communication unit 801 please refer to the relevant descriptions in the above method embodiments.
  • the communication device can implement the related operations of the receiver in the above data transmission method 300.
  • the communication unit 801 is used to send a transmission instruction, which is used to request the transmission of data to be identified in the identification task; and to receive the data to be identified and obtain the first data;
  • the processing unit 802 is used to determine the relationship between each data in the database and The distance between the first data, and whether the number of second data in the database that is the first distance is one or more; if the number of second data is one, and the first The absolute difference between the distance and the second distance is greater than the preset value, triggering the communication unit 801 to send the recognition result represented by the second data; if the number of second data is multiple, or the sum of the first distance and the second distance is If the absolute difference between the two is greater than the preset value, the communication unit 801 is triggered to send a retransmission instruction.
  • the retransmission instruction is used to indicate the row index or column index of the row currently requested to be retransmitted in the data to be identified; and receive the column index.
  • the element of the corresponding column or row indexes the element of the corresponding row, and updates the first data using the received element of the column or row; furthermore, the processing unit 802 can execute again to determine the distance between each data in the database and the first data. The operation is performed until if the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, or all columns or rows in the data to be identified have been retransmitted.
  • processing unit 802 and the communication unit 801 please refer to the relevant descriptions in the above method embodiments.
  • the communication device can implement the related operations of the receiver in the above data transmission method 400.
  • the communication unit 801 is used to send a transmission instruction, which is used to request the transmission of data to be identified in the identification task; and to receive the data to be identified and obtain the first data;
  • the processing unit 802 is used to determine each data in the database distance from the first data, and determine whether the number of second data in the database that is the first distance from the first data is one or more; if the number of second data is one, and the If the absolute difference between the first distance and the second distance is greater than the preset value, the communication unit 801 is triggered to send the identification result represented by the second data; if the number of second data is multiple, or the first distance and the second distance If the absolute difference between them is greater than the preset value, the communication unit 801 is triggered to send a plurality of fourth data.
  • the plurality of fourth data are a plurality of second data in the database, or the second data in the database and the said The distance between the third data and the
  • processing unit 802 and the communication unit 801 please refer to the relevant descriptions in the above method embodiments.
  • the communication device shown in FIG. 8 may be a transmitter, or may be a device in the transmitter.
  • the communication device can perform related operations of the transmitter in the above data transmission method 200.
  • the communication unit 801 is used to send a task request, which is used to request an identification task.
  • the task request includes the number N of rows and the number M of columns of data to be identified in the identification task; and to receive a transmission instruction, which is used Indicates the column index of the column or the row index of the row currently requested to be transmitted in the data to be identified; and sends the element of the column corresponding to the column index or the element of the row corresponding to the row index.
  • the communication device can perform related operations of the transmitter in the above data transmission method 300.
  • the communication unit 801 is used to receive a transmission instruction, which is used to request the transmission of the data to be identified in the identification task; to send the data to be identified; and to receive a retransmission instruction, which is used to indicate the current data in the data to be identified.
  • the row index of the row or the column index of the column that is requested to be retransmitted, and the element of the column corresponding to the column index or the element of the row corresponding to the row index is retransmitted.
  • the communication device can perform related operations of the transmitter in the above data transmission method 400.
  • the communication unit 801 is used to receive a transmission instruction, which is used to request the transmission of data to be identified in the identification task; to send the data to be identified; and to receive a plurality of fourth data;
  • the processing unit 802 is used to determine the received The distance between each fourth data and the data to be identified; determine the distance between the plurality of fourth data and the data to be identified as the third distance
  • the number of the fifth data is one or more; if the number of the fifth data is one and the absolute difference between the third distance and the fourth distance is greater than the preset value, the communication unit 801 is triggered to output the third distance. Five data representation identification results.
  • the plurality of fourth data are the second data in the database of the device that identifies the task, or the second data in the database and the third data in the database.
  • the second data is the data in the database whose distance from the first data is the first distance
  • the third data is the data in the database whose distance from the first data is the second distance.
  • the shortest distance between each data in the database and the first data is the first distance
  • the shortest distance other than the first distance is the second distance.
  • the first data is data to be identified received by the device; wherein the shortest distance between each fourth data in the plurality of fourth data and the data to be identified is the third distance, and the shortest distance other than the third distance is The distance is the fourth distance.
  • processing unit 802 and the communication unit 801 please refer to the relevant descriptions in the above method embodiments.
  • the communication device shown in FIG. 9 may include a processor 901 and an interface circuit 902.
  • the processor 901 and the interface circuit 902 are coupled to each other.
  • the interface circuit 902 may be an interface circuit or an input-output interface.
  • the communication device shown in FIG. 9 may also include a memory 903 for storing instructions executed by the processor 901 or input data required for the processor 901 to run the instructions or data generated after the processor 901 executes the instructions.
  • the communication device is a receiver or a device in a receiver: the processor 901 can execute S101 to S103 in Figure 4; or the interface circuit 902 can execute S201 to S203 and S206 in Figure 5, and the processor 901 can execute S204 in Figure 5 , S205; or, the interface circuit 902 executes S301 to S303, S306 to S308 in Fig. 6, and the processor 901 can execute S304, S305 in Fig. 6; or, the interface circuit 902 executes S401 to S403, S406 to S407 in Fig. 7, and the processing The processor 901 can execute S404 and S405 in Figure 7.
  • the communication device is a transmitter or a device in the transmitter: the interface circuit 902 executes S201 to S203 and S206 in Figure 5; or the interface circuit 902 executes S301 to S303 and S306 to S308 in Figure 6; or the interface circuit 902 executes In S401 to S403 and S406 to S407 in Figure 7 , the processor 901 can execute S408 to S411 in Figure 7 .
  • processors mentioned in the embodiments of this application can be a CPU, or other general-purpose processor, digital signal processor (digital signal processor, DSP), application specific integrated circuit (ASIC), off-the-shelf processor Field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA Field programmable gate array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • non-volatile memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
  • non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase electrically programmable read-only memory (EPROM, EEPROM) or flash memory.
  • Volatile memory can be random access memory (RAM), which is used as an external cache.
  • RAM static random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate SDRAM double data rate SDRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • direct rambus RAM direct rambus RAM
  • the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component
  • the memory storage module
  • the size of the sequence numbers of the above-mentioned processes does not mean the order of execution.
  • the execution order of each process should be determined by its functions and internal logic, and should not be used in the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • the disclosed communication methods and devices can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • the modules described as separate components may or may not be physically separated.
  • the components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
  • this function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the computer software product is stored in a storage medium and includes a number of instructions to A computer device (which may be a personal computer, a server, or a network device, etc.) is caused to execute all or part of the steps of the method in each embodiment of the present application.
  • the aforementioned computer-readable storage medium can be any available medium that can be accessed by a computer.
  • computer-readable media may include random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (electrically erasable programmable) read only memory (EEPROM), compact disc read-only memory (CD-ROM), universal serial bus flash disk (universal serial bus flash disk), mobile hard disk, or other optical disk storage, magnetic disk storage media or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures that can be accessed by a computer.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM compact disc read-only memory
  • universal serial bus flash disk universal serial bus flash disk
  • mobile hard disk or other optical disk storage
  • magnetic disk storage media or other magnetic storage device or any other medium that can be used to carry or store desired program code in the form of instructions or data structures that can be accessed by a computer.

Abstract

The present application relates to a remote identification or classification scene, and in particular, to a data transmission method and a related device. In the method, a receiver determines a distance between each piece of data in a database and first data, selects second data with the shortest distance from the first data from the database, and determines whether to send an identification result represented by the second data according to the number of the second data and an absolute difference between a first distance and a second distance, wherein the first distance is the shortest distance in the distance between each piece of data in the database and the first data, and the second distance is the shortest distance except the first distance. The data transmission method is based on a feedback principle of classification accuracy, and can improve the accuracy of the identification result. The application field of the present application includes but is not limited to systems supporting next generation WIFI protocol of 802.11ax, e.g. 802.11be, Wi-Fi 7 or EHT, or next generation of 802.11be, i.e., Wi-Fi 8, etc.

Description

数据传输方法及相关装置Data transmission method and related device
本申请要求于2022年04月22日提交中国专利局、申请号为202210427681.4、申请名称为“数据传输方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on April 22, 2022, with the application number 202210427681.4 and the application title "Data transmission method and related devices", the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种数据传输方法及相关装置。The present application relates to the field of communication technology, and in particular, to a data transmission method and related devices.
背景技术Background technique
在远程识别的场景下,第二设备采集的数据往往需要传输给第一设备,由第一设备利用这些数据进行分类识别。其中,第二设备传输给第一设备的数据是对采集的数据进行主成分分析后提取的高维信息,该高维信息可以是高维矩阵。该高维矩阵的行数可能达到几十万甚至几百万不等,高维矩阵的传输具有相当大的通信开销。为了降低通信开销,可采用低精度的量化器对高维矩阵进行量化传输,然而,量化前后的误差又会影响识别结果的准确度。In the scenario of remote identification, the data collected by the second device often needs to be transmitted to the first device, and the first device uses the data for classification and identification. The data transmitted by the second device to the first device is high-dimensional information extracted after performing principal component analysis on the collected data. The high-dimensional information may be a high-dimensional matrix. The number of rows of the high-dimensional matrix may range from hundreds of thousands or even millions, and the transmission of the high-dimensional matrix has considerable communication overhead. In order to reduce communication overhead, a low-precision quantizer can be used to quantize and transmit the high-dimensional matrix. However, the errors before and after quantization will affect the accuracy of the recognition results.
因此,如何提升识别结果的准确度是一个亟待解决的问题。Therefore, how to improve the accuracy of recognition results is an urgent problem to be solved.
发明内容Contents of the invention
本申请提供一种数据传输方法及相关装置,能够提升识别结果的准确度。This application provides a data transmission method and related devices, which can improve the accuracy of identification results.
以下从不同的方面介绍本申请,应理解的是,不同方面的实施方式和有益效果可以互相参考。The present application is introduced from different aspects below, and it should be understood that the implementation modes and beneficial effects of different aspects can be referred to each other.
第一方面,本申请提供了一种数据传输方法,该方法可由第一通信装置执行,第一通信装置可以是通信设备或能够支持通信设备实现该方法所需的功能的通信装置,例如芯片。示例性地,该第一通信装置为接收机,或者为设置在云端中的用于实现接收机的功能的芯片,或者为用于实现接收机的功能的其他部件。在下文的介绍过程中,以接收机作为执行主体为例进行阐述。In a first aspect, the present application provides a data transmission method, which can be executed by a first communication device. The first communication device can be a communication device or a communication device, such as a chip, that can support the communication device to implement the functions required by the method. For example, the first communication device is a receiver, or a chip provided in the cloud for implementing the functions of the receiver, or other components for implementing the functions of the receiver. In the following introduction process, the receiver is used as the execution subject as an example.
该方法中,接收机确定数据库中每个数据与第一数据之间的距离,该第一数据是接收的待识别数据或是待识别数据中已接收的行或列构成的矩阵。其中,每个数据与第一数据之间的距离中最短的距离为第一距离,除第一距离之外最短的距离为第二距离;判断数据库中与第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;如果第二数据的个数是一个且第一距离与第二距离之间的绝对差值大于预设值,发送第二数据表征的识别结果。In this method, the receiver determines the distance between each data in the database and the first data, which is the received data to be identified or a matrix composed of received rows or columns in the data to be identified. Among them, the shortest distance between each data and the first data is the first distance, and the shortest distance other than the first distance is the second distance; the distance between the judgment database and the first data is the first distance. Whether the number of the second data of the distance is one or more; if the number of the second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, send the recognition result represented by the second data .
可见,本申请利用最短距离原则,不仅从数据库中选择与第一数据之间距离最短的第二数据,而且根据第二数据的个数以及第一距离与第二距离之间的绝对差值确定第二数据表征的识别结果的准确度,以确定是否发送第二数据表征的识别结果。该数据传输方法也可以称为基于分类准确度的反馈原则,能够提升识别结果的准确度。It can be seen that this application uses the shortest distance principle to not only select the second data with the shortest distance from the first data from the database, but also determine based on the number of second data and the absolute difference between the first distance and the second distance. The accuracy of the identification result represented by the second data is used to determine whether to send the identification result represented by the second data. This data transmission method can also be called the feedback principle based on classification accuracy, which can improve the accuracy of the recognition results.
一种可选的实施方式中,接收机确定数据库中每个数据与第一数据之间的距离之前,该方法还包括:接收机发送传输指令,该传输指令用于指示当前请求传输的待识别数据中的列的列索引或行的行索引;接收机接收列索引对应的列的元素或行索引对应的行的元素;利用接收的列的元素或行的元素,确定第一数据。可见,该实施方式中,接收机可以通过传输指令请求发送机发送部分列或部分行的元素,进行匹配识别,从而尽可能减少所需传输的数据,从而有利于降低通信开销,以及减少通信时延。 In an optional implementation, before the receiver determines the distance between each data in the database and the first data, the method further includes: the receiver sends a transmission instruction, the transmission instruction is used to indicate the currently requested transmission to be identified. The column index of the column or the row index of the row in the data; the receiver receives the element of the column corresponding to the column index or the element of the row corresponding to the row index; and determines the first data using the received column elements or row elements. It can be seen that in this embodiment, the receiver can request the sender to send elements of partial columns or partial rows through transmission instructions for matching identification, thereby reducing the data that needs to be transmitted as much as possible, which is beneficial to reducing communication overhead and reducing communication time. extension.
一种可选的实施方式中,接收机如果判断数据库中第二数据的个数是多个,或第一距离与所述第二距离之间的绝对差值不大于预设值,接收机可再次执行所述的发送传输指令的步骤,直至第二数据的个数是一个且第一距离与第二距离之间的绝对差值大于预设值,或者,待识别数据中所有列或所有行均已传输,发送第二数据表征的识别结果。可见,该实施方式在基于已经传输的行或列与数据库中数据进行匹配判断时,若判断不满足匹配条件,可再次通过传输指令,以请求发送机发送其他行或列的元素,利用更新后的第一数据再次进行匹配判断。从而,有利于尽可能减少所需传输的数据,降低通信开销,以及减少通信时延。In an optional implementation, if the receiver determines that the number of second data in the database is multiple, or the absolute difference between the first distance and the second distance is not greater than a preset value, the receiver can Perform the step of sending a transmission instruction again until the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, or until all columns or all rows in the data to be identified All have been transmitted, and the recognition result represented by the second data is sent. It can be seen that in this embodiment, when making a matching judgment based on the rows or columns that have been transmitted and the data in the database, if it is judged that the matching conditions are not met, the transmission instruction can be used again to request the transmitter to send elements of other rows or columns, using the updated The first data is matched again. Therefore, it is beneficial to reduce the data that needs to be transmitted as much as possible, reduce the communication overhead, and reduce the communication delay.
一种可选的实施方式中,传输指令还用于指示当前请求传输的列或行进行压缩传输采用的传输参数;传输参数包括列或行被划分的每个块的长度,以及每个块被量化所使用的码本信息;接收的列索引对应的列的元素是基于传输参数对压缩传输的该列索引对应的列的元素进行解压缩获得的,或接收的行索引对应的行的元素是基于传输参数对压缩传输的该行索引对应的行的元素进行解压缩获得的。从而,有利于减少所需传输的数据,进而降低通信开销。In an optional implementation, the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the column or row currently requested to be transmitted; the transmission parameters include the length of each block into which the column or row is divided, and the length of each block into which the column or row is divided. The codebook information used for quantization; the element of the column corresponding to the received column index is obtained by decompressing the element of the column corresponding to the column index of the compressed transmission based on the transmission parameters, or the element of the row corresponding to the received row index is It is obtained by decompressing the elements of the row corresponding to the row index of the compressed transmission based on the transmission parameters. Therefore, it is beneficial to reduce the data that needs to be transmitted, thereby reducing communication overhead.
另一种可选的实施方式中,接收机确定数据库中每个数据与第一数据之间的距离之前,所述方法还包括:接收机发送传输指令,所述传输指令用于请求传输待识别数据;接收所述待识别数据,作为第一数据。In another optional implementation, before the receiver determines the distance between each data in the database and the first data, the method further includes: the receiver sends a transmission instruction, the transmission instruction is used to request transmission of the data to be identified. Data; receiving the data to be identified as the first data.
可选的,传输指令还用于指示请求传输的待识别数据进行压缩传输采用的传输参数;传输参数包括所述待识别数据中每列或每行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;接收的所述待识别数据,是基于所述传输参数对压缩传输的待识别数据进行解压缩获得的。从而,有利于减少所需传输的数据,进而降低通信开销。Optionally, the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the data to be identified that are requested to be transmitted; the transmission parameters include the length of each block divided into each column or row of the data to be identified, and the Each block is quantized with codebook information used; the received data to be identified is obtained by decompressing the compressed and transmitted data to be identified based on the transmission parameters. Therefore, it is beneficial to reduce the data that needs to be transmitted, thereby reducing communication overhead.
该实施方式中,如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值不大于预设值,接收机可发送重传指令,该重传指令用于指示待识别数据中当前请求重传的行的行索引或列的列索引;接收行索引对应的行的元素或列索引对应的列的元素;利用行的元素或列的元素更新第一数据,并再次执行所述的确定数据库中每个数据与第一数据之间的距离的步骤,直至第二数据的个数是一个且第一距离与第二距离之间的绝对差值大于预设值,或者,待识别数据中所有列或所有行均已重传,发送第二数据表征的识别结果。可见,该实施方式在基于已经传输的待识别数据进行匹配判断时,若判断不满足匹配条件,可发送重传指令,以请求发送机重传部分行或列的元素,利用更新后的第一数据再次进行匹配判断。也就是说,该实施方式通过基于分类准确度反馈准则的部分按行/列压缩重传,可以解决现有方法中的通信数据量大的问题,很大程度上减少通信时延。In this implementation, if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, the receiver can send a retransmission instruction, and the retransmission instruction is used to Indicate the row index or column index of the row currently requested to be retransmitted in the data to be identified; receive the element of the row corresponding to the row index or the element of the column corresponding to the column index; update the first data using the elements of the row or the elements of the column, And perform the step of determining the distance between each data in the database and the first data again until the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value , or all columns or all rows in the data to be identified have been retransmitted, and the identification results represented by the second data are sent. It can be seen that in this embodiment, when making a matching judgment based on the transmitted data to be identified, if it is judged that the matching conditions are not met, a retransmission instruction can be sent to request the transmitter to retransmit elements of some rows or columns, using the updated first The data is matched again. That is to say, this implementation method can solve the problem of large communication data volume in the existing method and reduce the communication delay to a great extent through partial row/column compression and retransmission based on the classification accuracy feedback criterion.
可选的,重传指令还用于指示当前请求重传的行或列进行压缩重传采用的传输参数;该传输参数包括列或行被划分的每个块的长度,以及每个块被量化所使用的码本信息;接收的列索引对应的列的元素是基于传输参数对压缩传输的该列索引对应的列的元素进行解压缩获得的,或接收的行索引对应的行的元素是基于传输参数对压缩重传的该行索引对应的行的元素进行解压缩获得的。从而,有利于减少重传所传输的数据量。Optionally, the retransmission instruction is also used to indicate the transmission parameters used for compressed retransmission of the row or column currently requested to be retransmitted; the transmission parameters include the length of each block into which the column or row is divided, and the quantization of each block. The codebook information used; the element of the column corresponding to the received column index is obtained by decompressing the element of the column corresponding to the column index of the compressed transmission based on the transmission parameter, or the element of the row corresponding to the received row index is based on The transmission parameters are obtained by decompressing the elements of the row corresponding to the row index of the compressed retransmission. Therefore, it is beneficial to reduce the amount of data transmitted by retransmission.
可选的,接收机当前请求重传的行或列进行压缩重传采用的量化精度,高于接收机请求传输的待识别数据进行压缩传输采用的量化精度。从而,避免首次传输待识别数据就采用高精度的量化器所带来的通信开销和通信延时。Optionally, the quantization precision used for compressed retransmission of the row or column currently requested by the receiver to be retransmitted is higher than the quantization precision used for compressed transmission of the data to be identified that the receiver requests transmission. Therefore, the communication overhead and communication delay caused by using a high-precision quantizer for the first transmission of the data to be identified is avoided.
又一种可选的实施方式中,接收机利用接收的待识别数据进行匹配判断的情况,如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值不大于预设值,发送多个第四数据,该多个第四数据是数据库中的多个第二数据,或是数据库中的第二数据以及数据库中与第一数据之间的距离为第二距离的第三数据。可见,该实施方式在提升识别准确度的前提 下,通过下行反馈数据库中部分数据,能够解决识别场景中上行传输量大的问题,与目前重传机制相比,也减少了通信时延。In another optional implementation, when the receiver uses the received data to be identified to perform matching judgment, if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not is greater than the preset value, send a plurality of fourth data, the plurality of fourth data are a plurality of second data in the database, or the second data in the database and the distance between the database and the first data is the second The third data of distance. It can be seen that this implementation method improves the recognition accuracy on the premise of By feeding back part of the data in the database in the downlink, the problem of large uplink transmission volume in the identification scenario can be solved. Compared with the current retransmission mechanism, the communication delay is also reduced.
第二方面,本申请提供了一种数据传输方法,该方法可由第二通信装置执行,第二通信装置可以是通信设备或能够支持通信设备实现该方法所需的功能的通信装置,例如芯片。示例性地,该第二通信装置为发送机,或者为设置在传感器中的用于实现发送机的功能的芯片,或者为用于实现发送机的功能的其他部件。在下文的介绍过程中,以发送机作为执行主体为例进行阐述。In a second aspect, the present application provides a data transmission method, which can be executed by a second communication device. The second communication device can be a communication device or a communication device, such as a chip, that can support the communication device to implement the functions required by the method. For example, the second communication device is a transmitter, or a chip provided in the sensor to implement the function of the transmitter, or other components used to implement the function of the transmitter. In the following introduction process, the sender is used as the execution subject as an example.
该方法中,发送机发送任务请求,该任务请求用于请求识别任务,该任务请求中包括识别任务中待识别数据的行数N和列数M;发送机接收传输指令,该传输指令用于指示待识别数据中当前请求传输的列的列索引或行的行索引;发送机发送列索引对应的列的元素或行索引对应的行的元素。In this method, the transmitter sends a task request, which is used to request an identification task. The task request includes the number N of rows and the number M of columns of data to be identified in the identification task; the transmitter receives a transmission instruction, which is used to Indicates the column index of the column or the row index of the row currently requested to be transmitted in the data to be identified; the sender sends the element of the column corresponding to the column index or the element of the row corresponding to the row index.
可见,本申请实施例中向接收机发送任务请求后,可根据接收机发送的传输指令,按行或按列的方式传输,以供接收机进行识别,从而有利于减少通信开销。It can be seen that after the task request is sent to the receiver in the embodiment of the present application, it can be transmitted in rows or columns according to the transmission instructions sent by the receiver for identification by the receiver, thereby helping to reduce communication overhead.
一种可选的实施方式中,发送机接收第二数据表征的识别结果,该第二数据是响应识别任务的设备中数据库中与第一数据之间的距离为第一距离的数据,该第一距离是数据库中每个数据与该第一数据之间的距离中最短的距离,该第一数据是待识别数据中已发送的行或列的元素构成的。可见,与利用高精度的量化器将待识别数据全部上传的方式相比,该数据传输方法能够在确保识别结果准确性的同时,减少通信开销。In an optional implementation, the transmitter receives the recognition result represented by the second data. The second data is data whose distance from the first data in the database of the device responding to the recognition task is a first distance. A distance is the shortest distance between each data in the database and the first data, which is composed of elements of rows or columns that have been sent in the data to be identified. It can be seen that compared with the method of uploading all the data to be identified using a high-precision quantizer, this data transmission method can reduce communication overhead while ensuring the accuracy of the identification results.
一种可选的实施方式中,该传输指令还用于指示当前请求传输的列或行进行压缩传输采用的传输参数;该传输参数包括列或行被划分的每个块的长度,以及每个块被量化所使用的码本信息;发送的列索引对应的列的元素是基于传输参数对该列索引对应的列的元素进行压缩获得的,或发送的行索引对应的行的元素是基于传输参数对该行索引对应的行的元素进行压缩获得的。可见,该实施方式有利于进一步减少通信开销。In an optional implementation, the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the column or row currently requested to be transmitted; the transmission parameters include the length of each block into which the column or row is divided, and the length of each block into which the column or row is divided. The codebook information used by the block to be quantized; the elements of the column corresponding to the sent column index are obtained by compressing the elements of the column corresponding to the column index based on the transmission parameters, or the elements of the row corresponding to the sent row index are obtained based on the transmission The parameter is obtained by compressing the elements of the row corresponding to the row index. It can be seen that this implementation method is beneficial to further reducing communication overhead.
第三方面,本申请还提供一种数据传输方法,该方法可由第二通信装置执行,第二通信装置可以是通信设备或能够支持通信设备实现该方法所需的功能的通信装置,例如芯片。示例性地,该第二通信装置为发送机,或者为设置在传感器中的用于实现发送机的功能的芯片,或者为用于实现发送机的功能的其他部件。在下文的介绍过程中,以发送机作为执行主体为例进行阐述。In a third aspect, the present application also provides a data transmission method, which can be executed by a second communication device. The second communication device can be a communication device or a communication device, such as a chip, that can support the communication device to implement the functions required by the method. For example, the second communication device is a transmitter, or a chip provided in the sensor to implement the function of the transmitter, or other components used to implement the function of the transmitter. In the following introduction process, the sender is used as the execution subject as an example.
该方法中,发送机接收传输指令,该传输指令用于请求传输识别任务中的待识别数据;发送待识别数据;另外,发送机还可接收重传指令,该重传指令用于指示待识别数据中当前请求重传的行的行索引或列的列索引,进而,发送机可重传该列索引对应的列的元素或行索引对应的行的元素。In this method, the transmitter receives a transmission instruction, which is used to request the transmission of data to be identified in the identification task; sends the data to be identified; in addition, the transmitter can also receive a retransmission instruction, which is used to indicate that the data to be identified is to be transmitted. The row index of the row or the column index of the column in the data that is currently requested to be retransmitted. Then, the sender can retransmit the element of the column corresponding to the column index or the element of the row corresponding to the row index.
可见,该方法中,发送机在发送待识别数据后,还可以基于重传指令重传部分行或列的元素,以更新待识别数据,从而有利于采用量化精度较低的压缩传输方案来传输待识别数据,进而有利于减少通信开销。It can be seen that in this method, after the transmitter sends the data to be identified, it can also retransmit the elements of some rows or columns based on the retransmission instruction to update the data to be identified, which is conducive to using a compression transmission scheme with lower quantization accuracy for transmission. The data is to be identified, which in turn helps reduce communication overhead.
一种可选的实施方式中,所述方法还包括:接收第二数据表征的识别结果,第二数据是响应识别任务的设备中的数据库中与第一数据之间的距离为第一距离的数据,第一距离是数据库中每个数据与第一数据之间的距离中最短的距离。其中,第一数据是发送的待识别数据基于已重传的行或列的元素更新后的数据。可见,该实施方式中,发送机能够使得接收机基于更新后的待识别数据确定识别结果,从而能够在保证识别结果的准确性的同时,减少通信开销。 In an optional implementation, the method further includes: receiving a recognition result represented by second data, where the distance between the second data and the first data in the database in the device responding to the recognition task is a first distance. data, the first distance is the shortest distance between each data in the database and the first data. The first data is updated data based on the elements of the row or column that have been retransmitted. It can be seen that in this embodiment, the transmitter can enable the receiver to determine the recognition result based on the updated data to be recognized, thereby reducing communication overhead while ensuring the accuracy of the recognition result.
一种可选的实施方式中,该传输指令还用于指示请求传输的待识别数据进行压缩传输采用的传输参数;该传输参数包括待识别数据中每列或每行被划分的每个块的长度,以及每个块被量化所使用的码本信息;相应的,上述发送的待识别数据,是基于该传输参数对待识别数据进行压缩获得的。In an optional implementation, the transmission instruction is also used to indicate the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted; the transmission parameters include the data of each block divided into each column or row in the data to be identified. length, and the codebook information used to quantize each block; accordingly, the data to be identified sent above is obtained by compressing the data to be identified based on the transmission parameters.
一种可选的实施方式中,重传指令还用于指示当前请求重传的行或列进行压缩重传采用的传输参数;该重传指令指示的传输参数包括列或行被划分的每个块的长度,以及每个块被量化所使用的码本信息;相应的,上述发送的列索引对应的列的元素是基于传输参数对该列索引对应的列的元素进行压缩获得的,或,发送的行索引对应的行的元素是基于该重传指令指示的传输参数对行索引对应的行的元素进行压缩获得的。In an optional implementation, the retransmission instruction is also used to indicate the transmission parameters used for compressed retransmission of the row or column currently requested to be retransmitted; the transmission parameters indicated by the retransmission instruction include each of the columns or rows divided into The length of the block, and the codebook information used to quantize each block; accordingly, the elements of the column corresponding to the column index sent above are obtained by compressing the elements of the column corresponding to the column index based on the transmission parameters, or, The elements of the row corresponding to the sent row index are obtained by compressing the elements of the row corresponding to the row index based on the transmission parameters indicated by the retransmission instruction.
一种可选的实施方式中,当前请求重传的行或列进行压缩重传采用的量化精度,高于请求传输的待识别数据进行压缩传输采用的量化精度。这样,能够在保证识别结果的准确性的同时,尽可能的减少通信开销。In an optional implementation, the quantization precision used for compressed retransmission of the row or column currently requested to be retransmitted is higher than the quantization precision used for compressed transmission of the data to be identified that is requested to be transmitted. In this way, communication overhead can be reduced as much as possible while ensuring the accuracy of the recognition results.
第四方面,本申请提供一种数据传输方法,该方法可由第二通信装置执行,第二通信装置可以是通信设备或能够支持通信设备实现该方法所需的功能的通信装置,例如芯片。示例性地,该第二通信装置为发送机,或者为设置在传感器中的用于实现发送机的功能的芯片,或者为用于实现发送机的功能的其他部件。在下文的介绍过程中,以发送机作为执行主体为例进行阐述。In a fourth aspect, the present application provides a data transmission method, which can be executed by a second communication device. The second communication device can be a communication device or a communication device, such as a chip, that can support the communication device to implement the functions required by the method. For example, the second communication device is a transmitter, or a chip provided in the sensor to implement the function of the transmitter, or other components used to implement the function of the transmitter. In the following introduction process, the sender is used as the execution subject as an example.
该方法中,发送机接收传输指令,该传输指令用于请求传输识别任务中的待识别数据;发送该待识别数据;接收多个第四数据;确定接收的每个第四数据与待识别数据之间的距离;判断多个第四数据中与待识别数据之间的距离为第三距离的第五数据的个数是一个还是多个;如果第五数据的个数是一个,且第三距离与第四距离之间的绝对差值大于预设值,输出第五数据表征的识别结果。In this method, the transmitter receives a transmission instruction, which is used to request the transmission of the data to be identified in the identification task; sends the data to be identified; receives a plurality of fourth data; and determines the difference between each received fourth data and the data to be identified. distance between them; determine whether the number of fifth data among the plurality of fourth data that is the third distance from the data to be identified is one or more; if the number of fifth data is one and the third The absolute difference between the distance and the fourth distance is greater than the preset value, and the recognition result represented by the fifth data is output.
其中,多个第四数据是所述数据库中的第二数据,或是数据库中的第二数据以及数据库中的第三数据。其中,第二数据是识别任务的设备的数据库中与第一数据之间的距离为第一距离的数据,第三数据是识别任务的设备的数据库中与第一数据之间的距离为第二距离的数据。其中,数据库中每个数据与第一数据之间的距离中最短的距离是第一距离,除第一距离之外最短的距离是第二距离。第一数据是该设备接收的待识别数据;其中,多个第四数据中每个第四数据与待识别数据之间的距离中最短的距离为第三距离,除第三距离之外最短的距离为第四距离。Wherein, the plurality of fourth data are the second data in the database, or the second data in the database and the third data in the database. The second data is data in the database of the device that identifies the task, and the distance between it and the first data is the first distance, and the third data is the data in the database of the device that identifies the task, and the distance between it and the first data is the second distance. distance data. Wherein, the shortest distance between each data in the database and the first data is the first distance, and the shortest distance other than the first distance is the second distance. The first data is data to be identified received by the device; wherein the shortest distance between each fourth data in the plurality of fourth data and the data to be identified is the third distance, and the shortest distance other than the third distance is The distance is the fourth distance.
可见,该方法中,发送机发送待识别数据后,若无法获得识别结果,可接收到数据库中的部分数据,由发送机执行上述匹配判断以获得识别结果。从而,避免再次发送待识别数据,大大减少了上行传输的数据量。It can be seen that in this method, after the transmitter sends the data to be identified, if the identification result cannot be obtained, part of the data in the database can be received, and the transmitter performs the above matching judgment to obtain the identification result. This avoids sending the data to be identified again and greatly reduces the amount of data for uplink transmission.
一种可选的实施方式中,该传输指令还用于指示请求传输的待识别数据进行压缩传输采用的传输参数;该传输参数包括待识别数据中每列或每行被划分的每个块的长度,以及每个块被量化所使用的码本信息;相应的,上述发送的待识别数据,是基于传输参数对待识别数据进行压缩获得的。In an optional implementation, the transmission instruction is also used to indicate the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted; the transmission parameters include the data of each block divided into each column or row in the data to be identified. length, and the codebook information used to quantize each block; accordingly, the data to be identified sent above is obtained by compressing the data to be identified based on the transmission parameters.
一种可选的实施方式中,如果第五数据的个数是多个,或第三距离与所述第四距离之间的绝对差值不大于预设值,则输出提示信息,该提示信息用于指示待识别数据匹配失败。In an optional implementation, if the number of fifth data is multiple, or the absolute difference between the third distance and the fourth distance is not greater than a preset value, prompt information is output. Used to indicate that the data to be identified failed to match.
第五方面,本申请提供一种通信装置,该通信装置可以是接收机或接收机中的芯片,该通信装置包括处理器和收发器。该处理器,用于确定数据库中每个数据与第一数据之间的距 离,第一数据是接收的待识别数据或是待识别数据中已接收的行或列构成的矩阵;每个数据与第一数据之间的距离中最短的距离为第一距离,除第一距离之外最短的距离为第二距离;以及判断数据库中与第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;该收发器,用于如果所述第二数据的个数是一个,且所述第一距离与所述第二距离之间的绝对差值大于预设值,发送所述第二数据表征的识别结果。In a fifth aspect, the present application provides a communication device. The communication device may be a receiver or a chip in the receiver. The communication device includes a processor and a transceiver. The processor is used to determine the distance between each data in the database and the first data distance, the first data is the received data to be identified or a matrix composed of received rows or columns in the data to be identified; the shortest distance between each data and the first data is the first distance, except for the first The shortest distance outside the distance is the second distance; and it is judged whether the number of second data in the database that is the first distance from the first data is one or more; the transceiver is used to determine if the first data is the second data. If the number of two pieces of data is one, and the absolute difference between the first distance and the second distance is greater than a preset value, the identification result represented by the second data is sent.
可选的,该通信装置还包括存储器,该存储器用于存储计算机程序,该计算机程序包括程序指令。Optionally, the communication device further includes a memory, the memory is used to store a computer program, and the computer program includes program instructions.
第六方面,本申请提供一种通信装置,该通信装置可以是发送机或发送机中的芯片,该通信装置包括收发器。In a sixth aspect, the present application provides a communication device. The communication device may be a transmitter or a chip in the transmitter. The communication device includes a transceiver.
一种可选的实施方式中,该收发器,用于发送任务请求,任务请求用于请求识别任务,任务请求中包括识别任务中待识别数据的行数N和列数M;接收传输指令,传输指令用于指示待识别数据中当前请求传输的列的列索引或行的行索引;发送列索引对应的列的元素或行索引对应的行的元素。In an optional implementation, the transceiver is used to send a task request. The task request is used to request an identification task. The task request includes the number N of rows and the number M of columns of data to be identified in the identification task; receiving the transmission instruction, The transfer instruction is used to indicate the column index of the column or the row index of the row currently requested to be transferred in the data to be identified; send the element of the column corresponding to the column index or the element of the row corresponding to the row index.
另一种可选的实施方式中,该收发器,用于接收传输指令,传输指令用于请求传输识别任务中的待识别数据;发送待识别数据;接收重传指令,重传指令用于指示待识别数据中当前请求重传的行的行索引或列的列索引;重传列索引对应的列的元素或行索引对应的行的元素。In another optional implementation, the transceiver is used to receive a transmission instruction, which is used to request the transmission of data to be identified in the identification task; to send the data to be identified; and to receive a retransmission instruction, which is used to indicate The row index of the row or column index of the column currently requested to be retransmitted in the data to be identified; the element of the column corresponding to the retransmitted column index or the element of the row corresponding to the row index.
又一种可选的实施方式中,该通信装置还包括处理器,该接收器用于接收传输指令,传输指令用于请求传输识别任务中的待识别数据;发送待识别数据;以及接收多个第四数据,所述多个第四数据是所述数据库中的第二数据,或是数据库中的第二数据以及第三数据;所述第二数据是响应识别任务的设备的数据库中与第一数据之间的距离为第一距离的数据,第三数据是所述数据库中与所述第一数据之间的距离为第二距离的数据。其中,数据库中每个数据与第一数据之间的距离中最短的距离是第一距离,除第一距离之外最短的距离是第二距离。第一数据是设备接收的待识别数据。该处理器,用于确定接收的每个第四数据与待识别数据之间的距离;多个第四数据中每个第四数据与待识别数据之间的距离中最短的距离为第三距离,除第三距离之外最短的距离为第四距离;以及判断多个第四数据中,与待识别数据之间的距离为第三距离的第五数据的个数是一个还是多个;该接收器用于如果所述第五数据的个数是一个,且第三距离与第四距离之间的绝对差值大于预设值,输出第五数据表征的识别结果。In yet another optional implementation, the communication device further includes a processor, the receiver is used to receive a transmission instruction, the transmission instruction is used to request the transmission of data to be identified in the identification task; to send the data to be identified; and to receive a plurality of third Four data, the plurality of fourth data is the second data in the database, or the second data and the third data in the database; the second data is the same as the first data in the database of the device responding to the recognition task. The distance between the data is the data of the first distance, and the third data is the data in the database whose distance from the first data is the second distance. Wherein, the shortest distance between each data in the database and the first data is the first distance, and the shortest distance other than the first distance is the second distance. The first data is data received by the device to be identified. The processor is used to determine the distance between each received fourth data and the data to be identified; the shortest distance between each fourth data in the plurality of fourth data and the data to be identified is the third distance. , the shortest distance other than the third distance is the fourth distance; and determining whether the number of fifth data among the plurality of fourth data that is the third distance from the data to be identified is one or more; The receiver is configured to output a recognition result represented by the fifth data if the number of the fifth data is one and the absolute difference between the third distance and the fourth distance is greater than a preset value.
可选的,该通信装置还包括存储器,该存储器用于存储计算机程序,该计算机程序包括程序指令。Optionally, the communication device further includes a memory, the memory is used to store a computer program, and the computer program includes program instructions.
第七方面,本申请实施例提供一种通信装置,该通信装置以芯片的产品形态实现,包括处理器和接口电路;该接口电路,用于接收代码指令并传输至该处理器;该处理器用于运行该代码指令以执行上述第一方面或上述第一方面的任一种可能的实现方式所述的数据传输方法。可选的,该通信装置还包括存储器,该存储器与该处理器通过电路连接。In the seventh aspect, embodiments of the present application provide a communication device, which is implemented in the form of a chip product and includes a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor uses The code instructions are executed to execute the data transmission method described in the first aspect or any possible implementation of the first aspect. Optionally, the communication device further includes a memory, and the memory is connected to the processor through a circuit.
可选的,该处理器与存储器可以是物理上相互独立的单元,或者,存储器也可以和处理器集成在一起。Optionally, the processor and the memory may be physically independent units, or the memory may be integrated with the processor.
第八方面,本申请实施例提供一种通信装置,该通信装置以芯片的产品形态实现,包括处理器和接口电路;该接口电路,用于接收代码指令并传输至该处理器;该处理器用于运行该代码指令以执行上述第二方面或上述第二方面的任一种可能的实现方式,或者上述第三方面或上述第三方面的任一种可能的实现方式,或者第四方面或第四方面的任一种可能的实现 方式所述的数据传输方法。可选的,该通信装置还包括存储器,该存储器与该处理器通过电路连接。In an eighth aspect, embodiments of the present application provide a communication device, which is implemented in the form of a chip product and includes a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor uses Running the code instructions to execute the above second aspect or any possible implementation of the above second aspect, or the above third aspect or any possible implementation of the above third aspect, or the fourth aspect or the third aspect Any possible realization of the four aspects The data transmission method described in the method. Optionally, the communication device further includes a memory, and the memory is connected to the processor through a circuit.
可选的,该处理器与存储器可以是物理上相互独立的单元,或者,存储器也可以和处理器集成在一起。Optionally, the processor and the memory may be physically independent units, or the memory may be integrated with the processor.
第九方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,该计算机程序包括程序指令,当该程序指令在计算机上运行时,使得计算机执行上述第一方面至第四方面中任一方面所述的数据传输方法。In a ninth aspect, embodiments of the present application provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. The computer program includes program instructions. When the program instructions are run on a computer, they cause the computer to execute the above. The data transmission method described in any one of the first to fourth aspects.
第十方面,本申请实施例提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得该计算机执行上述第一方面至第四方面中任一方面所述的数据传输方法。In a tenth aspect, embodiments of the present application provide a computer program product that, when run on a computer, causes the computer to execute the data transmission method described in any one of the above-mentioned first to fourth aspects.
第十一方面,本申请实施例提供一种通信系统,该通信系统包括上述第一方面或上述第一方面中任一种可能的实施方式中所述的接收机,和上述第二方面至第四方面中任一方面或其中任一可能的实施方式中所述的发送机;或者,该通信系统包括上述第五方面所描述的通信装置,和上述第六方面中任一可能的实施方式所描述的通信装置。In an eleventh aspect, embodiments of the present application provide a communication system, which includes the receiver described in the above first aspect or any possible implementation manner of the above first aspect, and the above second to third aspects. The transmitter described in any one of the four aspects or any possible implementation manner thereof; or, the communication system includes the communication device described in the fifth aspect above, and any possible implementation manner described in the sixth aspect above. Described communication device.
附图说明Description of the drawings
图1是本申请实施例提供的一种数据传输系统的架构示意图;Figure 1 is a schematic architectural diagram of a data transmission system provided by an embodiment of the present application;
图2是本申请实施例提供的另一种数据传输系统的架构示意图;Figure 2 is an architectural schematic diagram of another data transmission system provided by an embodiment of the present application;
图3是本申请实施例提供的一种“切割”操作的示意图;Figure 3 is a schematic diagram of a "cutting" operation provided by an embodiment of the present application;
图4是本申请实施例提供的数据传输方法100的流程示意图;Figure 4 is a schematic flowchart of the data transmission method 100 provided by the embodiment of the present application;
图5是本申请实施例提供的数据传输方法200的流程示意图;Figure 5 is a schematic flowchart of the data transmission method 200 provided by the embodiment of the present application;
图6是本申请实施例提供的数据传输方法300的流程示意图;Figure 6 is a schematic flowchart of the data transmission method 300 provided by the embodiment of the present application;
图7是本申请实施例提供的数据传输方法400的流程示意图;Figure 7 is a schematic flowchart of the data transmission method 400 provided by the embodiment of the present application;
图8是本申请实施例提供的一种通信装置的结构示意图;Figure 8 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图9是本申请实施例提供的另一种通信装置的结构示意图。Figure 9 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了让接收机利用从发送机接收的数据,更好的重构出待识别数据。发送机在压缩传输该待识别数据时,需让量化前后信号最小均方误差尽可能的小,来对原始的待识别数据进行压缩。然而,为了达到重构的目的,需要用高精度的量化器,但伴随而来地是会造成压缩后的数据量很大。另外,基于反馈重传机制,压缩后的待识别数据被全部上传到云端后,若检测到比特或符号层面的错误,会需要发送机重传数据。从而导致通信开销巨大。In order for the receiver to use the data received from the transmitter to better reconstruct the data to be identified. When the transmitter compresses and transmits the data to be identified, it needs to make the minimum mean square error of the signals before and after quantization as small as possible to compress the original data to be identified. However, in order to achieve the purpose of reconstruction, a high-precision quantizer is needed, which will result in a large amount of compressed data. In addition, based on the feedback retransmission mechanism, after all the compressed data to be identified is uploaded to the cloud, if an error at the bit or symbol level is detected, the transmitter will be required to retransmit the data. This results in huge communication overhead.
因此,面对识别结果的准确度的需求以及需降低通信开销的需求,数据传输方法该如何处理是一个亟待解决的问题。本申请提供一种数据传输方法,能够在保证识别结果的准确度的同时,尽可能的降低通信开销。图1、图2分别是本申请实施例提供的数据传输系统的架构示意图。应理解的,本申请描述的系统架构是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定。Therefore, in the face of the demand for accuracy of recognition results and the need to reduce communication overhead, how to handle the data transmission method is an issue that needs to be solved urgently. This application provides a data transmission method that can reduce communication overhead as much as possible while ensuring the accuracy of recognition results. Figures 1 and 2 are respectively schematic architectural diagrams of a data transmission system provided by embodiments of the present application. It should be understood that the system architecture described in this application is to more clearly illustrate the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided by the embodiments of this application.
本申请提供的技术方案可以应用于远程识别或分类的数据传输场景中。如图1所示,该数据传输系统包括发送机和接收机。以远程识别的数据传输场景为例,发送机可发送待识别数据中的部分或全部到达接收机,接收机收到该待识别数据的全部或部分后,可利用数据库中的数据进行判断匹配,若获得识别结果,可将识别结果发送给发送机。其中,发送机与接收机之间可以通过无线链路进行数据传输。The technical solution provided by this application can be applied in remote identification or classification data transmission scenarios. As shown in Figure 1, the data transmission system includes a transmitter and a receiver. Taking the data transmission scenario of remote identification as an example, the transmitter can send part or all of the data to be identified to the receiver. After the receiver receives all or part of the data to be identified, it can use the data in the database to judge and match. If the recognition result is obtained, the recognition result can be sent to the transmitter. Among them, data can be transmitted between the transmitter and the receiver through a wireless link.
如图2所示,对于发送机来说,待识别数据是通过压缩传输的,涉及到映射、切割、块 编码以及熵编码的操作;对于接收机来说,待识别数据是通过解压缩获得的,涉及到熵解码、块解码、逆映射的操作。进一步的,接收机可通过判断操作,执行基于分类准确度反馈原则的相关操作,并在满足识别结果反馈条件时向发送机反馈识别结果,在不满足识别结果反馈条件时,可向发送机发送传输指令,或重传指令,或数据库中的第二数据。其中,该数据传输方法的进一步阐述可参见下文所述的数据传输方法100至数据传输方法400。As shown in Figure 2, for the transmitter, the data to be identified is transmitted through compression, which involves mapping, cutting, and blocking. Encoding and entropy coding operations; for the receiver, the data to be identified is obtained through decompression, which involves entropy decoding, block decoding, and inverse mapping operations. Further, the receiver can perform relevant operations based on the classification accuracy feedback principle through judgment operations, and feed back the recognition results to the transmitter when the recognition result feedback conditions are met. When the recognition result feedback conditions are not met, the receiver can send the recognition results to the transmitter. Transfer instructions, or retransmit instructions, or second data in the database. For further explanation of the data transmission method, please refer to the data transmission method 100 to the data transmission method 400 described below.
本申请实施例中,发送机可以是具有采集或提取数据能力但不具备数据识别或分类功能的无线通讯芯片、无线传感器或无线通信终端。例如,支持窄带通讯功能(包括但不限于802.11ax下一代无线保真(wireless fidelity,Wi-Fi)协议,如802.11be,Wi-Fi 7或极高吞吐量(extramely high throughput,EHT),再如802.11be下一代,Wi-Fi 8等系统、蓝牙、Zigbee)和/或支持蜂窝通信(包括但不限于2G、3G、4G、5G以及未来新一代通信)的用户终端、用户装置,接入装置,订户站,订户单元,移动站,用户代理,用户装备,其中,用户终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、物联网(internet of things,IoT)设备、计算设备或连接到无线调制解调器的其它处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端(terminal),终端设备(terminal equipment),便携式通信设备,手持机,便携式计算设备,娱乐设备,游戏设备或系统,全球定位系统设备或被配置为经由无线介质进行网络通信的任何其他合适的设备等。In the embodiment of the present application, the transmitter may be a wireless communication chip, a wireless sensor or a wireless communication terminal that has the ability to collect or extract data but does not have the function of data identification or classification. For example, support narrowband communication functions (including but not limited to 802.11ax next-generation wireless fidelity (Wi-Fi) protocol, such as 802.11be, Wi-Fi 7 or extremely high throughput (EHT), and then Such as 802.11be next generation, Wi-Fi 8 and other systems, Bluetooth, Zigbee) and/or user terminals and user devices that support cellular communications (including but not limited to 2G, 3G, 4G, 5G and future new generation communications), access Device, subscriber station, subscriber unit, mobile station, user agent, user equipment, wherein the user terminal can include various handheld devices, vehicle-mounted devices, wearable devices, and Internet of Things (IoT) devices with wireless communication functions , computing equipment or other processing equipment connected to a wireless modem, and various forms of user equipment (UE), mobile station (MS), terminal, terminal equipment (terminal equipment), portable communications device, handset, portable computing device, entertainment device, gaming device or system, global positioning system device or any other suitable device configured for network communications via a wireless medium, etc.
本申请实施例中,接收机可以是具有数据识别或分类能力的云端,或云端中的服务器,或者其他相对于发送机处于远端的设备。其中,接收机中的数据库可存储有数据,用于与待识别数据之间进行匹配判断,以获得待识别数据所表征的识别结果。接收机中可包括但不限于:演进型节点B(evolved Node B,eNB)、无线网络控制器(radio networkcontroller,RNC)、节点B(Node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved NodeB,或homeNode B,HNB)、基带单元(baseband unit,BBU),无线保真(wireless fidelity,WiFi)系统中的接入点(access point,AP)、无线中继节点、无线回传节点、传输点(transmissionpoint,TP)或者发送接收点(transmission and reception point,TRP)等,还可以为5G,如,NR,系统中的gNB,或,传输点(TRP或TP),5G系统中的基站的一个或一组(包括多个天线面板)天线面板,或者,还可以为构成gNB或传输点的网络节点,如基带单元(BBU),或,分布式单元(distributed unit,DU)等,或者未来的通信系统中的基站等。In this embodiment of the present application, the receiver may be a cloud with data identification or classification capabilities, a server in the cloud, or other devices that are remote from the sender. The database in the receiver may store data for matching with the data to be identified, so as to obtain the identification result represented by the data to be identified. The receiver may include but is not limited to: evolved Node B (eNB), radio network controller (RNC), Node B (Node B, NB), base station controller (BSC) ), base transceiver station (BTS), home base station (e.g., home evolved NodeB, or homeNode B, HNB), baseband unit (BBU), wireless fidelity (WiFi) system Access point (AP), wireless relay node, wireless backhaul node, transmission point (TP) or transmission and reception point (TRP), etc., can also be 5G, such as NR, A gNB in the system, or a transmission point (TRP or TP), one or a group (including multiple antenna panels) of antenna panels of a base station in a 5G system, or it can also be a network node that constitutes a gNB or transmission point, such as Baseband unit (BBU), or distributed unit (DU), etc., or base stations in future communication systems, etc.
下面对本申请涉及到的一些相关内容、术语或名词进行简要介绍。The following is a brief introduction to some relevant content, terms or nouns involved in this application.
一、待识别数据1. Data to be identified
待识别数据也可称为待分类数据,是发送机向接收机传输的,用于进行匹配判断的数据。本文中所述的数据是接收机的数据库中已存储的数据,用于结合待识别数据进行匹配判断的数据。The data to be identified can also be called the data to be classified, which is the data transmitted from the transmitter to the receiver for matching judgment. The data described in this article are data that have been stored in the database of the receiver and are used to make matching judgments in conjunction with the data to be identified.
一种可选的实施方式中,待识别数据可以是各种用于采集生物特征的传感器,如指纹图像传感器、人脸图像传感器、虹膜图像传感器等,采集或提取的以下一种或多种数据:如人脸、指纹、虹膜等生物特征;或者,可以是各种用于采集环境特征的传感器,如无线测距传感器、雷达、摄像头等,采集或提取的周围环境以及车辆等信息;或者,可以是手势、动作等运动行为特征。In an optional implementation, the data to be identified can be one or more of the following data collected or extracted by various sensors used to collect biometric characteristics, such as fingerprint image sensors, face image sensors, iris image sensors, etc. : Such as face, fingerprint, iris and other biometric features; or, it can be various sensors used to collect environmental features, such as wireless ranging sensors, radars, cameras, etc., to collect or extract information about the surrounding environment and vehicles; or, It can be gestures, actions and other motor behavior characteristics.
另一种可选的实施方式中,待识别数据是利用主成分分析(Principal component analysis,PCA)从原始数据中提取主成分的数据。原始数据可以是上述所述的各种传感器采集的数据。 In another optional implementation, the data to be identified is data in which principal components are extracted from the original data using principal component analysis (PCA). The raw data can be data collected by the various sensors mentioned above.
可选的,该待识别数据也可以称为待分类信息或信源信号,相应的,接收机的数据库中的数据可称为库中信号。Optionally, the data to be identified can also be called information to be classified or source signals. Correspondingly, the data in the database of the receiver can be called signals in the library.
本申请中,第一数据可以是接收机接收的待识别数据,在发送机侧的待识别数据的基础上进行过压缩处理存在压缩损失的数据,或者可以是待识别数据中接收机接收的部分行或列的数据,可选的,与发送机侧的待识别数据的该部分行或列的数据相比,接收机接收的待识别数据存在压缩损失。第一数据可以是接收机当前的待识别数据,如接收机发送传输指令后接收的待识别数据,或者接收机发送重传指令后,利用接收的行或列的元素更新后的待识别数据,或者,接收机发送传输指令后接收的待识别数据中的部分行或列的元素。In this application, the first data may be the data to be identified received by the receiver, data that has been compressed and suffered compression loss on the basis of the data to be identified on the transmitter side, or it may be the part of the data to be identified that is received by the receiver. Row or column data, optionally, there is a compression loss in the data to be identified received by the receiver compared with the data in the row or column of the data to be identified on the transmitter side. The first data may be the current data to be identified by the receiver, such as the data to be identified received after the receiver sends a transmission instruction, or the data to be identified updated using the received row or column elements after the receiver sends a retransmission instruction, Or, the elements of some rows or columns in the data to be identified are received after the receiver sends the transmission instruction.
二、压缩2. Compression
发送机将待识别数据发送给接收机,为了节省传输开销,需要将待识别数据进行压缩传输,接收机接收到压缩传输的待识别数据后,进行解压缩,重构出待识别数据。其中,如图2所示,对于发送机来说,压缩涉及到映射、切割、块编码以及熵编码的操作;对于接收机来说,解压缩涉及到熵解码、块解码、逆映射的操作。以下分别对压缩传输所涉及的几个步骤进行阐述:The transmitter sends the data to be identified to the receiver. In order to save transmission overhead, the data to be identified needs to be compressed and transmitted. After the receiver receives the compressed and transmitted data to be identified, it decompresses and reconstructs the data to be identified. Among them, as shown in Figure 2, for the transmitter, compression involves the operations of mapping, cutting, block coding, and entropy coding; for the receiver, decompression involves the operations of entropy decoding, block decoding, and inverse mapping. The steps involved in compressed transmission are described below:
(1)映射(1)Mapping
映射的主要作用是降维,也可称为空间映射。待识别数据是一个行数和/或列数很高的矩阵,简称高维矩阵,因此,需对高维矩阵进行降维。可选的,一种降维方法是压缩感知,即通过压缩矩阵F对高维矩阵进行降维,例如,假设高维矩阵X,那么,降维后的矩阵X′=FX。The main function of mapping is dimensionality reduction, which can also be called spatial mapping. The data to be identified is a matrix with a high number of rows and/or columns, referred to as a high-dimensional matrix. Therefore, the high-dimensional matrix needs to be dimensionally reduced. Alternatively, a dimensionality reduction method is compressed sensing, that is, reducing the dimensionality of a high-dimensional matrix by compressing the matrix F. For example, assuming a high-dimensional matrix X, then the dimensionally reduced matrix X′=FX.
可选的,降维后的矩阵X′与高维矩阵X的行数相同,列数减少;或者,降维后的矩阵X′与高维矩阵X的列数相同,行数减少;或者,降维后的矩阵X′与高维矩阵X相比,行数和列数均减少,本申请对映射的具体方式不做限定,相应的,对映射涉及的压缩矩阵的个数也不做限定。Optionally, the dimensionally reduced matrix X′ has the same number of rows as the high-dimensional matrix X, but the number of columns is reduced; or, the dimensionally reduced matrix Compared with the high-dimensional matrix X, the dimensionally reduced matrix .
(2)切割(2) Cutting
切割是指将矩阵的每一列切割成小段,称为“块”。如图3所示的M列矩阵,假设每一列共有50行,即每列是一个50×1的列向量,可将该列向量切割成5个“块”,每个“块”是10×1的子向量。这样,如果降维后的矩阵X′的维度仍比较大,即量化空间还是比较大,如果用矢量码本(量化器)对矩阵X′直接量化,会造成码本设计复杂度以及量化复杂度也均高的问题。因此,通过“切割”操作,可将每个列向量切割成多个子向量,针对每个子向量设计码本以及进行量化编码,复杂度均会降低。Cutting refers to cutting each column of the matrix into small segments, called "chunks". As shown in Figure 3, the M-column matrix assumes that each column has 50 rows, that is, each column is a 50×1 column vector. The column vector can be cut into 5 "blocks", and each "block" is 10× subvector of 1. In this way, if the dimensionality of the reduced matrix X′ is still relatively large, that is, the quantization space is still relatively large, if the matrix There are also high issues. Therefore, through the "cutting" operation, each column vector can be cut into multiple sub-vectors, and the complexity of designing a codebook and performing quantized encoding for each sub-vector will be reduced.
其中,每个“块”的长度是该子向量的行数。where the length of each "chunk" is the number of rows of that subvector.
(3)块编码(3) Block coding
针对每个“块”,可根据“块”的长度,采用一个指定精度的矢量码本(量化器)对该“块”进行量化,得到一个码字的编号序列。具体来说,就是基于该“块”与矢量码本中每个码字之间的距离,从中找出最短距离对应的码字。可选的,一种是将该最短距离对应的码字作为该“块”量化后的信号,另一种是将该码字在矢量码本中的编号作为该“块”量化后的信号。For each "block", a vector codebook (quantizer) with specified precision can be used to quantize the "block" according to the length of the "block" to obtain a codeword number sequence. Specifically, based on the distance between the "block" and each codeword in the vector codebook, the codeword corresponding to the shortest distance is found. Optionally, one is to use the codeword corresponding to the shortest distance as the quantized signal of the "block", and the other is to use the number of the codeword in the vector codebook as the quantized signal of the "block".
(4)熵编码(4)Entropy coding
熵编码可对每个“块”对应的码字在矢量码本中的编号进行压缩。例如,熵编码的方式可以是:哈夫曼、算数编码等,本申请不做限定。Entropy coding can compress the number of the codeword corresponding to each "block" in the vector codebook. For example, the entropy coding method can be: Huffman, arithmetic coding, etc., which is not limited in this application.
(5)熵解码(5)Entropy decoding
接收机可对接收到的数据,采用解码器进行熵解码,获得每个“块”对应的码字在矢量码本中的编号。 The receiver can use the decoder to perform entropy decoding on the received data to obtain the number of the codeword corresponding to each "block" in the vector codebook.
(6)块解码(6) Block decoding
针对每个“块”,根据编号在对应的矢量码本中找到该“块”对应的码字,进而,估计得到降维后的矩阵X′的估计 For each "block", find the codeword corresponding to the "block" in the corresponding vector codebook according to the number, and then estimate the dimensionally reduced matrix X′.
(7)逆映射(7)Inverse mapping
逆映射用于对接收的块解码后的估计进行估计恢复,获得高维矩阵。例如,利用压缩矩阵F进行估计恢复为例:
Inverse mapping is used to estimate the received block after decoding Perform estimation recovery to obtain a high-dimensional matrix. For example, using the compression matrix F for estimation recovery is as follows:
即估计左乘压缩矩阵F的逆矩阵,获得估计的高维矩阵 i.e. estimate Left multiply the inverse matrix of the compression matrix F to obtain the estimated high-dimensional matrix
由于数据压缩是存在损失的,所以,发送机对高维矩阵X经过压缩传输给接收机,接收机经过上述解压缩操作获得的高维矩阵与高维矩阵X是存在差异的。Since there is a loss in data compression, the transmitter compresses the high-dimensional matrix X and transmits it to the receiver. The high-dimensional matrix obtained by the receiver through the above decompression operation There are differences from the high-dimensional matrix X.
为便于阐述,本申请中阐述的待识别数据,对于发送机来说是上述所述的原始的待识别数据,例如,高维矩阵X;对于接收机来说是上述所述的估计获得的待识别数据,例如,高维矩阵 For ease of explanation, the data to be identified described in this application is, for the transmitter, the above-mentioned original data to be identified, for example, the high-dimensional matrix Identify data, e.g., high-dimensional matrices
三、距离3. Distance
本申请中,距离是指不同矩阵之间的距离。两个矩阵之间的距离是该两个矩阵所表示的超平面之间夹角的和。例如,矩阵U与矩阵S之间的夹角,可通过如下方式计算:In this application, distance refers to the distance between different matrices. The distance between two matrices is the sum of the angles between the hyperplanes represented by the two matrices. For example, the angle between matrix U and matrix S can be calculated as follows:
对UTS做奇异值分解,记为[U,Σ,V]=svd(UTS),其中,对角阵Σ的对角线元素为该两个矩阵所表示的超平面之间的夹角的余弦值。例如,假设对角阵Σ:
Perform singular value decomposition on U T S, recorded as [U, Σ, V] = svd (U T S), where the diagonal elements of the diagonal matrix Σ are between the hyperplanes represented by the two matrices. The cosine of the included angle. For example, consider the diagonal matrix Σ:
那么,矩阵U与矩阵S之间的距离:
d=arcos(0.8611)+arcos(0.6389)+arcos(0.3163)+arcos(0.2128)=4.0168。
Then, the distance between matrix U and matrix S:
d=arcos(0.8611)+arcos(0.6389)+arcos(0.3163)+arcos(0.2128)=4.0168.
相应的,本申请中,“距离最短”是指基于上述距离的计算方法,分别计算各个数据之间的距离,其中,最小值的距离即为距离最短或最短的距离。Correspondingly, in this application, "the shortest distance" refers to calculating the distance between each data separately based on the above distance calculation method, where the distance with the minimum value is the shortest distance or the shortest distance.
本申请提供一种数据传输方法100,可利用最短距离原则从数据库中选择与第一数据之间距离最短的第二数据,而且根据第二数据的个数以及第一距离与第二距离之间的绝对差值确定第二数据表征的识别结果的准确度,以确定是否发送第二数据表征的识别结果。该数据传输方法100也可以称为基于分类准确度的反馈机制,从而在保证识别准确度的前提下,尽可能地减少通信开销。This application provides a data transmission method 100, which can use the shortest distance principle to select the second data with the shortest distance from the first data from the database, and according to the number of second data and the distance between the first distance and the second distance The absolute difference determines the accuracy of the recognition result of the second data representation, and determines whether to send the recognition result of the second data representation. The data transmission method 100 can also be called a feedback mechanism based on classification accuracy, thereby reducing communication overhead as much as possible while ensuring recognition accuracy.
本申请还提供一种数据传输方法200,是基于分类准确度的递增式传输机制,接收机基于已经传输的行或列与数据库中数据进行匹配判断,若判断不满足识别结果反馈条件,可再次通过传输指令,以请求发送机发送其他行或列的元素,利用更新后的第一数据再次进行匹配判断。从而,在保证识别准确度的前提下,尽可能减少所需传输的数据,降低通信开销。This application also provides a data transmission method 200, which is an incremental transmission mechanism based on classification accuracy. The receiver makes a matching judgment based on the rows or columns that have been transmitted and the data in the database. If the judgment does not meet the recognition result feedback conditions, it can be processed again. Through the transmission instruction, the transmitter is requested to send elements of other rows or columns, and the updated first data is used to perform matching judgment again. Therefore, on the premise of ensuring recognition accuracy, the data to be transmitted can be reduced as much as possible and the communication overhead can be reduced.
本申请还提供一种数据传输方法300,是基于分类准确度的按行或按列重传机制,接收机基于已经传输的待识别数据进行匹配判断时,若判断不满足识别结果反馈条件,可发送重传指令,以请求发送机重传部分行或列的元素,利用更新后的第一数据再次进行匹配判断。从而,在保证识别准确度的前提下,尽可能减少所需传输的数据,降低通信开销。 This application also provides a data transmission method 300, which is a row-by-row or column-by-column retransmission mechanism based on classification accuracy. When the receiver makes a matching judgment based on the transmitted data to be identified, if the judgment does not meet the recognition result feedback conditions, it can Send a retransmission command to request the sender to retransmit elements of some rows or columns, and use the updated first data to make matching judgments again. Therefore, on the premise of ensuring recognition accuracy, the data to be transmitted can be reduced as much as possible and the communication overhead can be reduced.
本申请还提供一种数据传输方法400,是基于分类准确度反馈原则的库信号反馈机制,接收机基于已经传输的待识别数据进行匹配判断时,若判断不满足识别结果反馈条件,可将数据库中的部分数据下发给发送机。可见,该实施方式在提升识别准确度的前提下,通过下行反馈数据库中部分数据,能够降低上行传输的数据量,也减少了通信时延。This application also provides a data transmission method 400, which is a library signal feedback mechanism based on the principle of classification accuracy feedback. When the receiver makes a matching judgment based on the transmitted data to be identified, if it is judged that the identification result feedback conditions are not met, the database can be Part of the data is sent to the transmitter. It can be seen that on the premise of improving the recognition accuracy, this implementation method can reduce the amount of data transmitted in the uplink and reduce the communication delay by feeding back part of the data in the database downlink.
下面将结合更多的附图对本申请提供的技术方案进行详细说明。The technical solutions provided by this application will be described in detail below with reference to more drawings.
参见图4,图4是本申请实施例提供的数据传输方法100的示意流程图。其中,如图4所示,该数据传输方法100包括但不限于以下步骤:Referring to Figure 4, Figure 4 is a schematic flow chart of the data transmission method 100 provided by the embodiment of the present application. As shown in Figure 4, the data transmission method 100 includes but is not limited to the following steps:
S101、接收机确定数据库中每个数据与第一数据之间的距离,该第一数据是接收的待识别数据或是待识别数据中已接收的行或列构成的矩阵;S101. The receiver determines the distance between each data in the database and the first data, which is the received data to be identified or a matrix composed of received rows or columns in the data to be identified;
其中,每个数据与第一数据之间的距离中最短的距离为第一距离,除第一距离之外最短的距离为第二距离。例如,假设数据库包括数据1、数据2和数据3,该三个数据与第一数据之间的距离分别是d1、d2、d3;其中,d1是这三个距离中最短的距离,d2是这三个距离中除最短的距离d1之外最短的距离,也可以称为是这三个距离中次短的距离。这样,第一距离是d1,第二距离是d2。Wherein, the shortest distance between each data and the first data is the first distance, and the shortest distance other than the first distance is the second distance. For example, assume that the database includes data 1, data 2, and data 3. The distances between the three data and the first data are d1, d2, and d3 respectively; among them, d1 is the shortest distance among the three distances, and d2 is the shortest distance among the three distances. The shortest distance among the three distances except the shortest distance d1 can also be called the second shortest distance among the three distances. In this way, the first distance is d1 and the second distance is d2.
需要注意的是,本申请提及每个数据、第一数据以及下文待阐述的第二数据、第三数据等均为矩阵形式的数据,故数据之间的距离可采用上述所述的距离的计算方式计算获得,此处不再详述。It should be noted that this application mentions that each data, the first data, the second data, the third data to be described below, etc. are all data in matrix form, so the distance between the data can be based on the distance described above. The calculation method is calculated and will not be described in detail here.
可选的,该第一数据可以是待识别数据的部分或全部元素。接收机获得第一数据的方式可以是:从远端的设备接收,或如数据传输方法200中所述的按行或按列连续传输获得,也可以是如数据传输方法300中所述的首次传输后按行或按列重传更新获得。Optionally, the first data may be part or all elements of the data to be identified. The receiver may obtain the first data by: receiving it from a remote device, or by continuously transmitting it in rows or columns as described in the data transmission method 200, or by transmitting it for the first time as described in the data transmission method 300. Updates are obtained by retransmitting rows or columns after transmission.
S102、接收机判断数据库中与第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;S102. The receiver determines whether the number of second data in the database that is a first distance away from the first data is one or more;
S103、如果第二数据的个数是一个且第一距离与第二距离之间的绝对差值大于预设值,接收机发送第二数据表征的识别结果。S103. If the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, the receiver sends the recognition result represented by the second data.
可选的,该预设值可以是预先设置的,或者可以是通过线下验证满足一定准确度要求的经验值。Optionally, the preset value may be set in advance, or may be an empirical value that meets certain accuracy requirements through offline verification.
可选的,第二数据表征的识别结果可以是待识别数据对应的用户信息或权限授予信息等,本申请不做限定。Optionally, the recognition result of the second data representation may be user information or permission granting information corresponding to the data to be recognized, which is not limited in this application.
一种可选的实施方式,如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值不大于预设值,则接收机可输出提示信息,该提示信息用于指示待识别数据匹配失败。In an optional implementation, if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, the receiver can output prompt information. The prompt information Used to indicate that the data to be identified failed to match.
另一种可选的实施方式,如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值不大于预设值,接收机可执行如数据传输方法200中所述的发送传输指令,指示发送机按行或按列继续传输等操作,也可以是如数据传输方法300中所述的发送重传指令,按行或按列重传以更新第一数据等操作,还可以是如数据传输方法400中所述的将数据库中的部分数据下发给发送机等操作。针对该实施方式中提到的各种可能的操作在相应的实施例会一一阐述,此处暂不做详述。In another optional implementation, if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, the receiver can perform the data transmission method 200 as shown in The sending of the transmission instruction instructs the transmitter to continue transmission in rows or columns, or it can also be the sending of a retransmission instruction as described in the data transmission method 300 to retransmit in rows or columns to update the first data, etc. The operation may also be an operation such as sending part of the data in the database to the sender as described in the data transmission method 400. Various possible operations mentioned in this implementation mode will be described one by one in the corresponding embodiments, and will not be described in detail here.
该数据传输方法100是基于分类准确度原则进行反馈传输的。即利用第一数据与数据库中数据进行匹配判断后,将满足第一距离的第二数据归为某一类“自信度”的信号,进而,在第二数据的个数为有且仅有一个且第一距离与第二距离之间的绝对差值大于预设值时,判定该类“自信度”的信号准确度高,可向发送机反馈识别结果;否则,判定该类“自信度”的信号准确度低,不反馈识别结果,而是继续向发送机发送传输指令(如数据传输方法200),或重 传指令(如数据传输方法300),或下发库信号(如数据传输方法400)。从而,能够在保证识别结果的准确度的前提下,有利于尽可能的减少通信开销。The data transmission method 100 performs feedback transmission based on the principle of classification accuracy. That is, after using the first data to make a matching judgment with the data in the database, the second data that meets the first distance is classified as a certain type of "confidence" signal, and then, when the number of second data is one and only one And when the absolute difference between the first distance and the second distance is greater than the preset value, the signal accuracy of this type of "confidence level" is determined to be high, and the recognition result can be fed back to the transmitter; otherwise, the "confidence level" of this type is determined. The signal accuracy is low, the recognition result is not fed back, but the transmission instruction (such as data transmission method 200) is continued to be sent to the transmitter, or the Send instructions (such as data transmission method 300), or issue library signals (such as data transmission method 400). Therefore, it is possible to reduce communication overhead as much as possible while ensuring the accuracy of the recognition results.
参见图5,图5是本申请实施例提供的数据传输方法200的流程示意图。该数据传输方法200与数据传输方法100的不同之处在于,该数据传输方法200中,第一数据是发送机按行或按列发送的,因此,如果针对已发送的行或列的元素构成的第一数据进行匹配判断中,如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值不大于预设值,那么,接收机可向发送再次发送传输指令,以获得其他行或列的元素更新第一数据后再进行匹配判断。以下进行详细阐述,如图5所示,该数据传输方法200包括但不限于以下步骤:Referring to Figure 5, Figure 5 is a schematic flowchart of the data transmission method 200 provided by the embodiment of the present application. The difference between the data transmission method 200 and the data transmission method 100 is that in the data transmission method 200, the first data is sent by the transmitter in rows or columns. Therefore, if the elements of the sent rows or columns are constituted During the matching judgment of the first data, if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, then the receiver can send the transmission to the transmitter again Instruction to obtain elements of other rows or columns and then perform matching judgment after updating the first data. Detailed description will be given below. As shown in Figure 5, the data transmission method 200 includes but is not limited to the following steps:
S201、发送机发送任务请求,接收机接收该任务请求,该任务请求用于请求识别任务,该任务请求包括识别任务中待识别数据的行数N和列数M;S201. The transmitter sends a task request, and the receiver receives the task request. The task request is used to request a recognition task. The task request includes the number of rows N and the number of columns M of the data to be recognized in the recognition task;
一种可选的实施方式中,若接收机收到任务请求后,无法及时处理该任务请求,可向发送机发送等待指令;若接收机接收到该任务请求后,可及时处理该任务请求,则可执行步骤S202。In an optional implementation, if the receiver cannot process the task request in time after receiving the task request, it can send a waiting instruction to the sender; if the receiver can process the task request in time after receiving the task request, Then step S202 can be executed.
可选的,该任务请求除了包括待识别数据的信息,如行数N、列数M外,还可以包括其他信息。Optionally, in addition to information about the data to be identified, such as the number of rows N and the number of columns M, the task request may also include other information.
S202、接收机发送传输指令,相应的,发送机接收传输指令;该传输指令用于指示当前请求传输的待识别数据中的列的列索引或行的行索引;S202. The receiver sends a transmission instruction, and accordingly, the transmitter receives the transmission instruction; the transmission instruction is used to indicate the column index of the column or the row index of the row in the data to be identified that is currently requested to be transmitted;
S203、发送机发送列索引对应的列的元素或行索引对应的行的元素;相应的,接收机接收列索引对应的列的元素或行索引对应的行的元素,并利用接收的列或行的元素构建第一数据;S203. The transmitter sends the element of the column corresponding to the column index or the element of the row corresponding to the row index; accordingly, the receiver receives the element of the column corresponding to the column index or the element of the row corresponding to the row index, and uses the received column or row The elements construct the first data;
一种可选的实施方式中,该传输指令还用于指示当前请求传输的列或行进行压缩传输采用的传输参数;传输参数包括列或行被划分的每个块的长度,以及每个块被量化所使用的码本信息。相应的,接收机接收的列索引对应的列的元素是基于传输参数对压缩传输的列索引对应的列的元素进行解压缩获得的,或接收机接收的行索引对应的行的元素是基于传输参数对压缩传输的该行索引对应的行的元素进行解压缩获得的。In an optional implementation, the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the column or row currently requested to be transmitted; the transmission parameters include the length of each block into which the column or row is divided, and the length of each block. The codebook information used for quantization. Correspondingly, the elements of the column corresponding to the column index received by the receiver are obtained by decompressing the elements of the column corresponding to the column index of compressed transmission based on the transmission parameters, or the elements of the row corresponding to the row index received by the receiver are obtained based on the transmission parameters. The parameter is obtained by decompressing the element of the row corresponding to the row index of the compressed transmission.
也就是说,该实施方式中,该传输参数至少包括但不限于以下信息:That is to say, in this implementation, the transmission parameters at least include but are not limited to the following information:
信息(11)当前请求传输的列的列索引或行的行索引;Information (11) The column index of the column or the row index of the row currently requested to be transferred;
信息(12)块划分配置,用于指示当前请求传输的列或行被划分的每个块的长度;Information (12) block division configuration, used to indicate the length of each block into which the column or row currently requested to be transmitted is divided;
信息(13)每个块被量化所使用的码本信息。Information (13) The codebook information used by each block to be quantized.
可选的,接收机确定传输参数中块划分配置指示的块的长度可以有多个。例如,该块划分配置所指示的列被划分的块的长度为L0、L1,其中,L1=mod(N,L0),该L1是每列最后一个“块”的长度。这样,对于每列的维度N不能被L0整除的情况,把每列的最后一个“块”的长度设置为N除以L0的余数,即L1。相应的,相同长度的“块”可采用相同量化精度的码本进行量化,不同长度的“块”可设置不同的码本进行量化,以满足调整压缩率的需求。Optionally, the receiver determines that there may be multiple block lengths indicated by the block division configuration in the transmission parameters. For example, the lengths of the blocks into which the columns indicated by the block division configuration are L 0 and L 1 are L 0 and L 1 , where L 1 =mod(N,L 0 ) and L 1 is the length of the last “block” of each column. In this way, for the case where the dimension N of each column is not divisible by L 0 , the length of the last "block" of each column is set to the remainder of N divided by L 0 , that is, L 1 . Correspondingly, "blocks" of the same length can be quantized using codebooks with the same quantization accuracy, and "blocks" of different lengths can be quantized using different codebooks to meet the need to adjust the compression rate.
其中,发送机利用信息(12)对当前请求传输的列或行进行块划分的具体操作,可参见上述描述此处不再详述。相应的,发送机利用信息(13)对划分后的“块”进行量化,可参见上述压缩操作的阐述,此处不再详述。Among them, the specific operation of the transmitter using the information (12) to block the column or row currently requested for transmission can be found in the above description and will not be described in detail here. Correspondingly, the transmitter uses information (13) to quantize the divided "blocks". Please refer to the above description of the compression operation, which will not be described in detail here.
另一种可选的实施方式中,首次传输的传输参数还可以包括:In another optional implementation, the transmission parameters for the first transmission may also include:
信息(14)映射参考信息配置,用于指示映射信息;可选的,该映射信息可以包括如上所述的压缩矩阵; Information (14) mapping reference information configuration, used to indicate mapping information; optionally, the mapping information may include the compression matrix as described above;
信息(15)熵编码配置,用于指示熵编码方式;可选的,该熵编码方式可以是如上所述的算数编码或哈夫曼编码等。Information (15) entropy coding configuration is used to indicate the entropy coding method; optionally, the entropy coding method may be arithmetic coding or Huffman coding as mentioned above.
也就是说,其他次传输的传输参数中可不包括信息(14)和信息(15)。这样,其他次传输的行或列的元素可采用首次传输的传输参数中映射参考信息配置所指示的映射信息和熵编码方式,以及本次传输的传输参数中块划分配置所指示的块的长度以及码本信息进行压缩传输。其中,发送机每次发送的列索引对应的列的元素或行索引对应的行的元素是基于对应的传输参数所指示的信息(11)至信息(13)和首次传输的传输参数中的信息(14)和信息(15)进行压缩传输的。相应的,接收机接收的列索引对应的列的元素是基于传输参数对压缩传输的列索引对应的列的元素进行解压缩获得的,或接收机接收的行索引对应的行的元素是基于传输参数对压缩传输的该行索引对应的行的元素进行解压缩获得的。That is to say, the transmission parameters of other sub-transmissions may not include information (14) and information (15). In this way, the elements of the rows or columns of other transmissions can use the mapping information and entropy coding method indicated by the mapping reference information configuration in the transmission parameters of the first transmission, and the block length indicated by the block division configuration in the transmission parameters of this transmission. and codebook information for compressed transmission. Among them, the elements of the column corresponding to the column index or the elements of the row corresponding to the row index sent by the transmitter each time are based on the information (11) to information (13) indicated by the corresponding transmission parameters and the information in the transmission parameters of the first transmission. (14) and information (15) are compressed and transmitted. Correspondingly, the elements of the column corresponding to the column index received by the receiver are obtained by decompressing the elements of the column corresponding to the column index of compressed transmission based on the transmission parameters, or the elements of the row corresponding to the row index received by the receiver are obtained based on the transmission parameters. The parameter is obtained by decompressing the element of the row corresponding to the row index of the compressed transmission.
又一种可选的实施方式中,若该数据传输方法应用于支持蜂窝通信的数据传输系统中,即发送机是通过蜂窝通信向接收机发送待识别数据的,那么,该传输参数还可以包括:信息(16)资源配置,用于指示发送机传输数据的资源。这样,发送机可在指示的资源上发送压缩的列索引对应的列的元素或行索引对应的行的元素,相应的,接收机可在指示的资源上接收列索引对应的列的元素或行索引对应的行的元素。In another optional implementation, if the data transmission method is applied in a data transmission system that supports cellular communication, that is, the transmitter sends the data to be identified to the receiver through cellular communication, then the transmission parameters may also include : Information (16) resource configuration, used to indicate the resources used by the sender to transmit data. In this way, the transmitter can send the compressed element of the column corresponding to the column index or the element of the row corresponding to the row index on the indicated resource. Correspondingly, the receiver can receive the element of the column or row corresponding to the column index on the indicated resource. The element of the row corresponding to the index.
S204、接收机确定数据库中每个数据与第一数据之间的距离;S204. The receiver determines the distance between each data in the database and the first data;
相应的,接收机还需从数据库中每个数据与第一数据之间的距离,确定上述所述的第一距离和第二距离。Correspondingly, the receiver also needs to determine the above-mentioned first distance and second distance from the distance between each data in the database and the first data.
S205、接收机判断数据库中与第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,则执行步骤S206;如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值不大于预设值,则继续执行步骤S202至S205,直至如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,或待识别数据中所有列均已传输,则执行步骤S206。S205. The receiver determines whether the number of second data in the database that is a first distance from the first data is one or more; if the number of second data is one and the first distance is the same as the second distance, If the absolute difference between them is greater than the preset value, step S206 is executed; if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, execution continues. Steps S202 to S205, until if the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, or all columns in the data to be identified have been transmitted, then step S206 is executed. .
S206、接收机发送第二数据表征的识别结果,相应的,发送机可接收第二数据表征的识别结果。S206. The receiver sends the identification result represented by the second data. Correspondingly, the transmitter can receive the identification result represented by the second data.
可选的,发送机接收第二数据表征的识别结果后,还可以输出该第二数据表征的识别结果。Optionally, after receiving the identification result of the second data representation, the transmitter can also output the identification result of the second data representation.
其中,接收机在第一次循环中接收列索引对应的列的元素或行索引对应的行的元素后,可执行步骤S204;接收机在非第一次循环中接收列索引对应的列的元素或行索引对应的行的元素后,还需更新第一数据,再执行步骤S204。Among them, after the receiver receives the element of the column corresponding to the column index or the element of the row corresponding to the row index in the first loop, the receiver can perform step S204; the receiver receives the element of the column corresponding to the column index in a non-first loop. After the element of the row corresponding to the row index or the row index is retrieved, the first data needs to be updated, and then step S204 is executed.
一种可选的实施方式中,每次传输指令所指示的当前请求传输的列的列索引或行的行索引可以是连续的。例如,第一次发送的传输指令所指示的列索引是待传输数据中从左边数起的第一列;如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值大于预设值,则继续执行步骤S202,即第二次发送传输指令所指示的列索引是待传输数据中从左边数起的第二列,等等,以此类推,直至如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,或待识别数据中所有列均已传输,发送第二数据表征的识别结果。In an optional implementation, the column index of the column currently requested to be transferred or the row index of the row indicated by each transfer instruction may be continuous. For example, the column index indicated by the transmission instruction sent for the first time is the first column from the left in the data to be transmitted; if the number of second data is multiple, or the distance between the first distance and the second distance is If the absolute difference is greater than the preset value, step S202 is continued, that is, the column index indicated by the second transmission instruction is the second column from the left in the data to be transmitted, and so on, until if the If the number of the second data is one, and the absolute difference between the first distance and the second distance is greater than the preset value, or all columns in the data to be recognized have been transmitted, the recognition result represented by the second data is sent.
另一种可选的实施方式中,每次传输指令所指示的当前请求传输的列的列索引或行的行索引可以是不连续的。例如,第一次发送的传输指令所指示的列索引是待传输数据中从左边数起的第一列;如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值大于预设值,则继续执行步骤S202,即第二次发送传输指令所指示的列索引是待传输数据中从左边数起的第三列,等等,以此类推,直至第二数据的个数是一个,且第一距离与第二距离之间 的绝对差值大于预设值,或待识别数据中所有列均已传输,发送第二数据表征的识别结果。In another optional implementation, the column index of the column currently requested to be transferred or the row index of the row indicated by each transfer instruction may be discontinuous. For example, the column index indicated by the transmission instruction sent for the first time is the first column from the left in the data to be transmitted; if the number of second data is multiple, or the distance between the first distance and the second distance is If the absolute difference is greater than the preset value, step S202 is continued, that is, the column index indicated by the second transmission instruction is the third column from the left in the data to be transmitted, and so on, until the second The number of data is one, and the distance between the first distance and the second distance The absolute difference is greater than the preset value, or all columns in the data to be recognized have been transmitted, and the recognition result represented by the second data is sent.
该数据传输方法200是基于分类准确度反馈原则的递增式传输机制。即待识别数据是按行或列进行部分传输的,一旦满足分类准确度反馈原则,则停止传输并反馈识别结果。从而,尽可能的减少所需传输的待识别数据中的列或行的元素,很大程度上减少了通信的数据量大所导致的通信时延,利用分类准确度反馈原则也保证了反馈结果的准确度。The data transmission method 200 is an incremental transmission mechanism based on the classification accuracy feedback principle. That is, the data to be identified is partially transmitted by rows or columns. Once the classification accuracy feedback principle is met, the transmission is stopped and the identification results are fed back. Therefore, the elements of columns or rows in the data to be identified need to be transmitted as much as possible, which greatly reduces the communication delay caused by the large amount of communication data. The feedback principle of classification accuracy is also used to ensure the feedback results. accuracy.
参见图6,图6是本申请实施例提供的数据传输方法300的流程示意图。该数据传输方法300与数据传输方法100的不同之处在于,该数据传输方法300中,第一数据是发送机首次发送的,或利用重传的行或列的元素进行更新获得的,因此,如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值不大于预设值,那么,接收机可发送重传指令,以获得行或列的元素更新第一数据后再进行匹配判断。以下进行详细阐述,如图6所示,该数据传输方法300包括但不限于以下步骤:Referring to Figure 6, Figure 6 is a schematic flowchart of a data transmission method 300 provided by an embodiment of the present application. The difference between the data transmission method 300 and the data transmission method 100 is that in the data transmission method 300, the first data is sent by the transmitter for the first time, or is updated by using retransmitted row or column elements. Therefore, If the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, then the receiver can send a retransmission instruction to obtain the updated element of the row or column. After receiving the data, the matching judgment will be made. Detailed description will be given below. As shown in Figure 6, the data transmission method 300 includes but is not limited to the following steps:
S301、发送机发送任务请求,接收机接收该任务请求,该任务请求用于请求识别任务,该任务请求包括识别任务中待识别数据的行数N和列数M;S301. The transmitter sends a task request, and the receiver receives the task request. The task request is used to request a recognition task. The task request includes the number of rows N and the number of columns M of the data to be recognized in the recognition task;
步骤S301的相关阐述可参见上述S201的阐述,此处不再详述。For the relevant description of step S301, please refer to the above description of S201, and will not be described in detail here.
S302、接收机发送传输指令,相应的,发送机接收传输指令;该传输指令用于请求传输识别任务中的待识别数据;S302. The receiver sends a transmission instruction, and accordingly, the transmitter receives the transmission instruction; the transmission instruction is used to request the transmission of the data to be identified in the identification task;
S303、发送机发送待识别数据,相应的,接收机接收待识别数据,获得第一数据;S303. The transmitter sends the data to be identified, and accordingly, the receiver receives the data to be identified and obtains the first data;
一种可选的实施方式中,该传输指令还用于指示请求传输的待识别数据进行压缩传输采用的传输参数;传输参数包括待识别数据中每列或每行被划分的每个块的长度,以及每个块被量化所使用的码本信息。相应的,发送机发送的待识别数据,是基于传输参数对待识别数据进行压缩获得的。In an optional implementation, the transmission instruction is also used to indicate the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted; the transmission parameters include the length of each block divided into each column or row of the data to be identified. , and the codebook information used by each block to be quantized. Correspondingly, the data to be identified sent by the transmitter is obtained by compressing the data to be identified based on the transmission parameters.
也就是说,该实施方式中,该传输参数至少包括但不限于以下信息:That is to say, in this implementation, the transmission parameters at least include but are not limited to the following information:
信息(21)当前请求传输的待识别数据;Information (21) The data to be identified that is currently requested to be transmitted;
信息(22)块划分配置,用于指示待识别数据中每列或每行被划分的每个块的长度;Information (22) block division configuration, used to indicate the length of each block into which each column or row in the data to be identified is divided;
信息(23)每个块被量化所使用的码本信息。Information (23) The codebook information used by each block to be quantized.
可选的,块划分配置可以指示所有列或所有行被划分的块的长度。其中,发送机利用信息(22)对所有列或行进行块划分的具体操作,以及,发送机利用信息(23)对划分后的“块”进行量化,可参见上述压缩操作的阐述,此处不再详述。Optionally, the block partitioning configuration may indicate the length of blocks into which all columns or all rows are divided. Among them, the transmitter uses the information (22) to perform the specific operation of block division of all columns or rows, and the transmitter uses the information (23) to quantize the divided "blocks". Please refer to the explanation of the above compression operation, here No more details.
另一种可选的实施方式中,该传输参数还可以包括:In another optional implementation, the transmission parameters may also include:
信息(24)映射参考信息配置,用于指示映射信息;可选的,该映射信息可以是如上所述的压缩矩阵;Information (24) mapping reference information configuration, used to indicate mapping information; optionally, the mapping information can be a compression matrix as described above;
信息(25)熵编码配置,用于指示熵编码方式;可选的,该熵编码方式可以是如上所述的算数编码或哈夫曼编码等。Information (25) entropy coding configuration is used to indicate the entropy coding method; optionally, the entropy coding method may be arithmetic coding or Huffman coding as mentioned above.
又一种可选的实施方式中,若该数据传输方法应用于支持蜂窝通信的数据传输系统中,即发送机是通过蜂窝通信向接收机发送待识别数据的,那么,该传输参数还可以包括:信息(26)资源配置,用于指示发送机传输数据的资源。这样,发送机可在指示的资源上发送压缩的待识别数据,相应的,接收机可在指示的资源上接收压缩的待识别数据。In another optional implementation, if the data transmission method is applied in a data transmission system that supports cellular communication, that is, the transmitter sends the data to be identified to the receiver through cellular communication, then the transmission parameters may also include : Information (26) resource configuration, used to indicate the resources used by the sender to transmit data. In this way, the transmitter can send the compressed data to be identified on the indicated resource, and accordingly, the receiver can receive the compressed data to be identified on the indicated resource.
S304、接收机确定数据库中每个数据与第一数据之间的距离;S304. The receiver determines the distance between each data in the database and the first data;
相应的,接收机还需根据数据库中每个数据与第一数据之间的距离,确定第一距离和第二距离。其中,每个数据与第一数据之间的距离中最短的距离为第一距离,除第一距离之外 最短的距离为第二距离。Correspondingly, the receiver also needs to determine the first distance and the second distance based on the distance between each data in the database and the first data. Among them, the shortest distance between each data and the first data is the first distance, except for the first distance The shortest distance is the second distance.
S305、接收机判断数据库中与第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,则执行步骤S306;如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值不大于预设值,则继续执行步骤S307;S305. The receiver determines whether the number of second data in the database that is a first distance from the first data is one or more; if the number of second data is one and the first distance is the same as the second distance, If the absolute difference between them is greater than the preset value, step S306 is executed; if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, execution continues. Step S307;
S306、接收机发送第二数据表征的识别结果,相应的,发送机可接收第二数据表征的识别结果。S306. The receiver sends the identification result represented by the second data. Correspondingly, the transmitter can receive the identification result represented by the second data.
S307、接收机发送重传指令,相应的,发送机可接收该重传指令,该重传指令用于指示待识别数据中当前请求重传的行的行索引或列的列索引;S307. The receiver sends a retransmission instruction. Correspondingly, the sender can receive the retransmission instruction. The retransmission instruction is used to indicate the row index or column index of the row currently requested to be retransmitted in the data to be identified;
S308、发送机重传所述列索引对应的列的元素或所述行索引对应的行的元素,相应的,接收机接收列索引对应的列的元素或行索引对应的行的元素,并利用接收的列或行的元素更新第一数据,并再次执行步骤S304至S305,直至如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,或待识别数据中所有列或行均已重传,则执行步骤S306。S308. The transmitter retransmits the element of the column corresponding to the column index or the element of the row corresponding to the row index. Correspondingly, the receiver receives the element of the column corresponding to the column index or the element of the row corresponding to the row index, and uses The received column or row elements update the first data, and perform steps S304 to S305 again until if the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, Or if all columns or rows in the data to be identified have been retransmitted, step S306 is executed.
一种可选的实施方式中,重传指令还用于指示当前请求重传的行或列进行压缩重传采用的传输参数;传输参数包括列或行被划分的每个块的长度,以及每个块被量化所使用的码本信息;相应的,发送机重传的列索引对应的列的元素是基于传输参数对该列索引对应的列的元素进行压缩获得的,或发送机重传的行索引对应的行的元素是基于传输参数对该行索引对应的行的元素进行压缩获得的。In an optional implementation, the retransmission instruction is also used to indicate the transmission parameters used for compressed retransmission of the row or column currently requested to be retransmitted; the transmission parameters include the length of each block into which the column or row is divided, and the length of each block. The codebook information used for each block to be quantized; accordingly, the elements of the column corresponding to the column index retransmitted by the transmitter are obtained by compressing the elements of the column corresponding to the column index based on the transmission parameters, or the elements of the column retransmitted by the transmitter The elements of the row corresponding to the row index are obtained by compressing the elements of the row corresponding to the row index based on the transmission parameters.
也就是说,该实施方式中,重传指令指示的传输参数中至少包括但不限于以下信息:That is to say, in this implementation, the transmission parameters indicated by the retransmission instruction at least include but are not limited to the following information:
信息(31)当前请求重传的列的列索引或行的行索引;Information (31) The column index of the column or the row index of the row currently requested to be retransmitted;
信息(32)块划分配置,用于指示当前请求重传的列或行被划分的每个块的长度;Information (32) block division configuration, used to indicate the length of each block into which the column or row currently requested to be retransmitted is divided;
信息(33)每个块被量化所使用的码本信息。Information (33) The codebook information used by each block to be quantized.
可选的,信息(32)块划分配置指示的块的长度可以有多个。其中,发送机利用信息(32)对当前请求传输的列或行进行块划分的具体操作,以及发送机利用信息(33)对划分后的“块”进行量化,可参见上述压缩操作的阐述,此处不再详述。Optionally, the length of the blocks indicated by the block division configuration in the information (32) may be multiple. Among them, the transmitter uses the information (32) to perform the specific operation of dividing the column or row currently requested to be transmitted into blocks, and the transmitter uses the information (33) to quantify the divided "blocks". Please refer to the explanation of the above compression operation. No further details will be given here.
另一种可选的实施方式中,若该数据传输方法应用于支持蜂窝通信的数据传输系统中,即发送机是通过蜂窝通信向接收机发送待识别数据的,那么,重传指令指示的传输参数还可以包括:信息(34)资源配置,用于指示发送机重传行或列的资源。这样,发送机可在指示的资源上发送压缩的列索引对应的列的元素或行索引对应的行的元素,相应的,接收机可在指示的资源上接收列索引对应的列的元素或行索引对应的行的元素。In another optional implementation, if the data transmission method is applied in a data transmission system that supports cellular communication, that is, the transmitter sends the data to be identified to the receiver through cellular communication, then the transmission indicated by the retransmission instruction The parameters may also include: information (34) resource configuration, used to instruct the transmitter to retransmit the resources of the row or column. In this way, the transmitter can send the compressed element of the column corresponding to the column index or the element of the row corresponding to the row index on the indicated resource. Correspondingly, the receiver can receive the element of the column or row corresponding to the column index on the indicated resource. The element of the row corresponding to the index.
也就是说,重传指令包括两部分,一部分用于指示重传的行或列的位置,即信息(31),另一部分用于指示重传的行或列的量化精度,即信息(32)、信息(33);或者,重传指令包括三部分,即重传指令还包括一部分,用于指示重传的行或列的资源。That is to say, the retransmission instruction includes two parts, one part is used to indicate the position of the retransmitted row or column, that is, information (31), and the other part is used to indicate the quantization accuracy of the retransmitted row or column, that is, information (32) , information (33); or, the retransmission instruction includes three parts, that is, the retransmission instruction also includes a part used to indicate the resources of the row or column to be retransmitted.
一种可选的实施方式中,当前请求重传的行或列进行压缩重传采用的量化精度,高于请求传输的待识别数据进行压缩传输采用的量化精度。也就是说,信息(33)的码本信息比信息(23)的码本信息的量化精度高。In an optional implementation, the quantization precision used for compressed retransmission of the row or column currently requested to be retransmitted is higher than the quantization precision used for compressed transmission of the data to be identified that is requested to be transmitted. That is to say, the codebook information of information (33) has higher quantization accuracy than the codebook information of information (23).
该数据传输方法300是基于分类准确度的按行或按列重传机制。即待识别数据传输后,一旦不满足分类准确度反馈原则,则按行或按列进行部分重传。这样,待识别数据的传输能够采用低精度的量化参数进行量化,在不满足分类准确度反馈原则时,再用高精度的量化参数进行按行或按列的重传,对待识别数据进行修正,从而尽可能的减少所需的数据传输量, 很大程度上降低了通信时延,利用分类准确度反馈原则也保证了反馈结果的准确度。The data transmission method 300 is a row-by-row or column-by-column retransmission mechanism based on classification accuracy. That is, after the identification data is transmitted, once the classification accuracy feedback principle is not met, partial retransmission will be performed by row or column. In this way, the transmission of the data to be identified can be quantized using low-precision quantization parameters. When the classification accuracy feedback principle is not met, high-precision quantization parameters can be used to retransmit rows or columns to correct the data to be identified. thereby reducing the amount of data transmission required as much as possible, The communication delay is reduced to a great extent, and the accuracy of the feedback results is also ensured by using the classification accuracy feedback principle.
参见图7,图7是本申请实施例提供的数据传输方法400的流程示意图。该数据传输方法400与数据传输方法100的不同之处在于,该数据传输方法400中,如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值不大于预设值,那么,接收机可发送数据库中的部分数据,由发送机自身进行匹配判断。以下进行详细阐述,如图7所示,该数据传输方法400包括但不限于以下步骤:Referring to Figure 7, Figure 7 is a schematic flowchart of the data transmission method 400 provided by the embodiment of the present application. The difference between the data transmission method 400 and the data transmission method 100 is that in the data transmission method 400, if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than Default value, then the receiver can send part of the data in the database, and the sender itself makes a matching judgment. Detailed description will be given below. As shown in Figure 7, the data transmission method 400 includes but is not limited to the following steps:
S401、发送机发送任务请求,接收机接收该任务请求,该任务请求用于请求识别任务,该任务请求包括识别任务中待识别数据的行数N和列数M;S401. The transmitter sends a task request, and the receiver receives the task request. The task request is used to request a recognition task. The task request includes the number of rows N and the number of columns M of the data to be recognized in the recognition task;
步骤S401的相关阐述可参见上述S201的阐述,此处不再详述。For the relevant description of step S401, please refer to the above description of S201, which will not be described in detail here.
S402、接收机发送传输指令,相应的,发送机接收传输指令;该传输指令用于请求传输识别任务中的待识别数据;S402. The receiver sends a transmission instruction, and accordingly, the transmitter receives the transmission instruction; the transmission instruction is used to request the transmission of the data to be identified in the identification task;
S403、发送机发送待识别数据,相应的,接收机接收待识别数据,获得第一数据;S403. The transmitter sends the data to be identified, and accordingly, the receiver receives the data to be identified and obtains the first data;
其中,步骤S402、S403的进一步阐述可参见上述步骤S302、S303的相关阐述,此处不再详述。For further description of steps S402 and S403, please refer to the relevant description of the above steps S302 and S303, which will not be described in detail here.
S404、接收机确定数据库中每个数据与第一数据之间的距离;S404. The receiver determines the distance between each data in the database and the first data;
相应的,接收机还需根据数据库中每个数据与第一数据之间的距离,确定第一距离和第二距离。其中,每个数据与第一数据之间的距离中最短的距离为第一距离,除第一距离之外最短的距离为第二距离。Correspondingly, the receiver also needs to determine the first distance and the second distance based on the distance between each data in the database and the first data. Wherein, the shortest distance between each data and the first data is the first distance, and the shortest distance other than the first distance is the second distance.
S405、接收机判断数据库中与第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,则执行步骤S406;如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值不大于预设值,则继续执行步骤S407;S405. The receiver determines whether the number of second data in the database that is a first distance from the first data is one or more; if the number of second data is one and the first distance is the same as the second distance, If the absolute difference between them is greater than the preset value, step S406 is executed; if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, execution continues. Step S407;
S406、接收机发送第二数据表征的识别结果,相应的,发送机可接收第二数据表征的识别结果。S406. The receiver sends the identification result represented by the second data. Correspondingly, the transmitter can receive the identification result represented by the second data.
S407、接收机发送多个第四数据,相应的,发送机可接收该多个第四数据;S407. The receiver sends a plurality of fourth data, and accordingly, the transmitter can receive the plurality of fourth data;
其中,该多个第四数据是数据库中的多个第二数据,或是所述数据库中的第二数据以及所述数据库中与所述第一数据之间的距离为第二距离的第三数据。Wherein, the plurality of fourth data are a plurality of second data in the database, or the second data in the database and the third data in the database whose distance from the first data is a second distance. data.
该实施方式中,如果第二数据的个数是多个,接收机可将数据库中与第一数据之间的距离为第一距离的所有第二数据下发给发送机。如果第一距离与第二距离之间的绝对差值不大于预设值,即第一距离对应的第二数据是一个但绝对差值不大于预设值,那么,接收机可以将数据库中对应于最短的两个距离的数据下发给发送机,即第一距离对应的第二数据以及第二距离对应的第三数据。In this embodiment, if the number of second data is multiple, the receiver may send all the second data in the database that are at a first distance from the first data to the transmitter. If the absolute difference between the first distance and the second distance is not greater than the preset value, that is, the second data corresponding to the first distance is one but the absolute difference is not greater than the preset value, then the receiver can store the corresponding data in the database. Data at the shortest two distances are sent to the transmitter, that is, the second data corresponding to the first distance and the third data corresponding to the second distance.
S408、发送机确定接收的每个第四数据与待识别数据之间的距离;S408. The transmitter determines the distance between each received fourth data and the data to be identified;
其中,一个或多个第二数据与待识别数据之间的距离中最短的距离为第三距离,除第三距离之外最短的距离为第四距离。Wherein, the shortest distance between the one or more second data and the data to be identified is the third distance, and the shortest distance other than the third distance is the fourth distance.
需要注意的是,发送机确定的距离是每个第五数据与待识别数据之间的距离,步骤S404中接收机确定的距离是数据库中每个数据与第一数据之间的距离。也就是说,第一数据是接收机接收的待识别数据是经过压缩传输的,与发送机侧的待识别数据相比,是存在部分损失的,因此,接收机可将数据库中部分数据下发,由发送机利用未经压缩传输的待识别数据进行判断匹配的操作。 It should be noted that the distance determined by the transmitter is the distance between each fifth data and the data to be identified, and the distance determined by the receiver in step S404 is the distance between each data in the database and the first data. That is to say, the first data is the data to be identified received by the receiver, which is compressed and transmitted. Compared with the data to be identified on the sender side, there is a partial loss. Therefore, the receiver can send part of the data in the database. , the transmitter uses the uncompressed and transmitted data to be identified to determine the matching operation.
S409、发送机判断多个第四数据中与待识别数据之间的距离为第三距离的第五数据的个数是一个还是多个;如果第五数据的个数是一个,且第三距离与第四距离之间的绝对差值大于预设值,则执行步骤S410,否则执行步骤S411;S409. The transmitter determines whether there is one or more fifth data among the plurality of fourth data whose distance from the data to be identified is the third distance; if the number of fifth data is one and the third distance If the absolute difference from the fourth distance is greater than the preset value, then step S410 is executed; otherwise, step S411 is executed;
也就是说,如果第五数据的个数是多个,或第三距离与第四距离之间的绝对差值不大于预设值,则执行步骤S411。That is to say, if the number of fifth data is multiple, or the absolute difference between the third distance and the fourth distance is not greater than the preset value, step S411 is performed.
需要注意的是,第五数据是发送机接收的多个第四数据中的数据。也就是说,步骤S409是由发送机基于信源信号(即待识别数据)和接收机下发的库信号(即多个第四数据)进行基于分类准确的反馈原则的操作。It should be noted that the fifth data is data among the plurality of fourth data received by the transmitter. That is to say, step S409 is for the transmitter to perform an operation based on the feedback principle of accurate classification based on the source signal (ie, the data to be identified) and the library signal (ie, a plurality of fourth data) sent by the receiver.
S410、发送机输出第五数据表征的识别结果。S410. The transmitter outputs the recognition result represented by the fifth data.
S411、发送机输出提示信息,该提示信息用于指示待识别数据匹配失败。S411. The transmitter outputs prompt information, which is used to indicate that the data to be identified fails to match.
该数据传输方法400是基于分类准确度反馈原则的库信号反馈机制。即待识别数据传输后,一旦不满足分类准确度反馈原则,则接收机将库中的第二数据,或第二数据和第三数据下发给发送机,由发送机基于分类准确度反馈原则进行匹配判断。这样,待识别数据的传输能够采用低精度的量化参数进行量化,在不满足分类准确度反馈原则时下发库信号,从而尽可能的减少上行传输所需的数据传输量,很大程度上降低了通信时延,利用分类准确度反馈原则也保证了反馈结果的准确度。The data transmission method 400 is a library signal feedback mechanism based on the classification accuracy feedback principle. That is, after the identification data is transmitted, once the classification accuracy feedback principle is not satisfied, the receiver will send the second data in the library, or the second data and the third data, to the transmitter, and the transmitter will based on the classification accuracy feedback principle. Make matching judgments. In this way, the transmission of the data to be identified can be quantized using low-precision quantization parameters, and library signals are sent when the classification accuracy feedback principle is not met, thereby reducing the amount of data transmission required for uplink transmission as much as possible, and greatly reducing Communication delay, the use of classification accuracy feedback principle also ensures the accuracy of feedback results.
在本申请的描述中,除非另有说明,“/”表示“或”的意思,例如,A/B可以表示A或B。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。此外,“至少一个”是指一个或多个,“多个”是指两个或两个以上。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c;a和b;a和c;b和c;或a和b和c。其中a,b,c可以是单个,也可以是多个。In the description of this application, unless otherwise stated, "/" means "or". For example, A/B can mean A or B. "And/or" in this article is just an association relationship that describes related objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone these three situations. In addition, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one of a, b, or c can represent: a, b, c; a and b; a and c; b and c; or a, b, and c. Among them, a, b, c can be single or multiple.
在本申请的描述中,“第一”、“第二”等字样仅用于区别不同对象,并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。此外,术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备等,没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元等,或可选地还包括对于这些过程、方法、产品或设备等固有的其它步骤或单元。In the description of this application, words such as "first" and "second" are only used to distinguish different objects and do not limit the number and execution order, and words such as "first" and "second" are not limiting. It must be different. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optional It also includes other steps or units inherent to these processes, methods, products or equipment.
本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”、“举例来说”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”、“举例来说”或者“例如”等词旨在以具体方式呈现相关概念。In this application, the words "exemplary" or "such as" are used to mean examples, illustrations or explanations. Any embodiment or design described herein as "exemplary," "for example," or "such as" is not intended to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary," "for example," or "such as" is intended to present the concept in a concrete manner.
应理解,在本申请中,“当…时”、“若”以及“如果”均指在某种客观情况下装置会做出相应的处理,并非是限定时间,且也不要求装置实现时一定要有判断的动作,也不意味着存在其它限定。It should be understood that in this application, "when", "if" and "if" all mean that the device will perform corresponding processing under certain objective circumstances. They do not limit the time, nor do they require the device to be implemented. There must be an act of judgment, and it does not mean that there are other limitations.
本申请中对于使用单数表示的元素旨在用于表示“一个或多个”,而并非表示“一个且仅一个”,除非有特别说明。Elements referred to in the singular in this application are intended to mean "one or more" and not "one and only one" unless otherwise specified.
可以理解,在本申请各实施例中,“A对应的B”表示A与B存在对应关系,根据A可以确定B。但还应理解,根据(或基于)A确定(或生成)B并不意味着仅仅根据(或基于)A 确定(或生成)B,还可以根据(或基于)A和/或其它信息确定(或生成)B。It can be understood that in various embodiments of the present application, "A corresponds to B" means that A and B have a corresponding relationship, and B can be determined based on A. But it should also be understood that determining (or generating) B based on (or based on) A does not mean solely based on (or based on) A To determine (or generate) B, B may also be determined (or generated) according to (or based on) A and/or other information.
本申请中,除特殊说明外,各个实施例或实现方式之间相同或相似的部分可以互相参考。在本申请中各个实施例、以及各实施例中的各个实施方式/实施方法/实现方法中,如果没有特殊说明以及逻辑冲突,不同的实施例之间、以及各实施例中的各个实施方式/实施方法/实现方法之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例、以及各实施例中的各个实施方式/实施方法/实现方法中的技术特征根据其内在的逻辑关系可以组合形成新的实施例、实施方式、实施方法、或实现方法。以下所述的本申请实施方式并不构成对本申请保护范围的限定。In this application, unless otherwise specified, the same or similar parts between various embodiments or implementations may be referred to each other. In the various embodiments of this application and the various implementation methods/implementation methods/implementation methods in each embodiment, if there are no special instructions or logical conflicts, the differences between different embodiments and the various implementation methods/implementation methods in each embodiment will be different. The terminology and/or descriptions between implementation methods/implementation methods are consistent and can be referenced to each other. Different embodiments, as well as the technical features in each implementation method/implementation method/implementation method in each embodiment are based on their inherent Logical relationships can be combined to form new embodiments, implementations, implementation methods, or implementation methods. The embodiments of the present application described below do not constitute a limitation on the protection scope of the present application.
为了实现本申请实施例提供的各通信方法中任一方法的各功能,发送机、接收机可分别包括硬件结构、软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能可以以硬件结构、软件模块、或者硬件结构加软件模块的方式来执行。图8和图9为本申请的实施例提供的可能的通信装置的结构示意图。这些通信装置可以用于实现上述方法实施例中接收机或发送机的功能,因此也能实现上述方法实施例所具备的有益效果。In order to realize the functions of any of the communication methods provided by the embodiments of the present application, the transmitter and the receiver may respectively include a hardware structure and a software module, and may be implemented in the form of a hardware structure, a software module, or a hardware structure plus a software module. Each of the above functions. A certain function among the above functions can be executed by a hardware structure, a software module, or a hardware structure plus a software module. Figures 8 and 9 are schematic structural diagrams of possible communication devices provided by embodiments of the present application. These communication devices can be used to implement the functions of the receiver or transmitter in the above method embodiments, and therefore can also achieve the beneficial effects of the above method embodiments.
图8所示的通信装置可包括通信单元801。通信单元801可包括发送单元和接收单元,发送单元用于实现发送功能,接收单元用于实现接收功能,通信单元801可以实现发送功能和/或接收功能。通信单元也可以描述为收发单元。The communication device shown in FIG. 8 may include a communication unit 801. The communication unit 801 may include a sending unit and a receiving unit. The sending unit is used to implement the sending function, and the receiving unit is used to implement the receiving function. The communication unit 801 may implement the sending function and/or the receiving function. The communication unit can also be described as a transceiver unit.
图8所示的通信装置可以是接收机,也可以是接收机中的装置。The communication device shown in Figure 8 may be a receiver or a device in the receiver.
一种可选的实施方式中,通信装置可实施上述数据传输方法100中接收机的相关操作。例如,通信单元801,用于接收待识别数据或是待识别数据中的行或列的元素;处理单元802,用于确定数据库中每个数据与第一数据之间的距离,第一数据是接收的待识别数据或是待识别数据中已接收的行或列构成的矩阵;数据库中每个数据与所述第一数据之间的距离中最短的距离为第一距离,除第一距离之外最短的距离为第二距离;以及判断数据库中与第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,发送第二数据表征的识别结果。In an optional implementation, the communication device can implement the related operations of the receiver in the above data transmission method 100. For example, the communication unit 801 is used to receive data to be identified or elements of rows or columns in the data to be identified; the processing unit 802 is used to determine the distance between each data in the database and the first data, and the first data is The received data to be identified may be a matrix composed of received rows or columns in the data to be identified; the shortest distance between each data in the database and the first data is the first distance, except for the first distance. The shortest distance outside is the second distance; and determine whether the number of second data in the database that is the first distance from the first data is one or more; if the number of second data is one, and the If the absolute difference between the first distance and the second distance is greater than the preset value, the recognition result represented by the second data is sent.
其中,有关上述处理单元802和通信单元801更详细的描述可以参考上述方法实施例中相关描述得到。For more detailed descriptions about the processing unit 802 and the communication unit 801, please refer to the relevant descriptions in the above method embodiments.
另一种可选的实施方式中,通信装置可实施上述数据传输方法200中接收机的相关操作。例如,通信单元801,用于发送传输指令;该传输指令用于指示待识别数据中当前请求传输的列的列索引或行的行索引;以及接收列索引对应的列的元素或行索引对应的行的元素,并利用接收的列或行的元素构建第一数据;处理单元802,用于确定数据库中每个数据与第一数据之间的距离;接收机判断数据库中与第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,则触发通信单元801发送第二数据表征的识别结果;如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值大于预设值,可触发通信单元801再次执行所述的发送传输指令的操作,直至如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,或待识别数据中所有列均已传输。In another optional implementation, the communication device may implement the related operations of the receiver in the above data transmission method 200. For example, the communication unit 801 is used to send a transmission instruction; the transmission instruction is used to indicate the column index of the column or the row index of the row currently requested to be transmitted in the data to be identified; and receive the element of the column corresponding to the column index or the row index corresponding to elements of the row, and uses the received elements of the column or row to construct the first data; the processing unit 802 is used to determine the distance between each data in the database and the first data; the receiver determines the distance between the database and the first data Is the number of second data whose distance is the first distance one or more? If the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, trigger The communication unit 801 sends the recognition result represented by the second data; if the number of second data is multiple, or the absolute difference between the first distance and the second distance is greater than the preset value, the communication unit 801 can be triggered to execute the process again. The above-mentioned operation of sending a transmission instruction is performed until if the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, or all columns in the data to be identified have been transmitted.
其中,有关上述处理单元802和通信单元801更详细的描述可以参考上述方法实施例中相关描述得到。For more detailed descriptions about the processing unit 802 and the communication unit 801, please refer to the relevant descriptions in the above method embodiments.
又一种可选的实施方式中,通信装置可实施上述数据传输方法300中接收机的相关操作。 例如,通信单元801用于发送传输指令,该传输指令用于请求传输识别任务中的待识别数据;以及接收待识别数据,获得第一数据;处理单元802,用于确定数据库中每个数据与第一数据之间的距离,以及判断数据库中与第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,则触发通信单元801发送第二数据表征的识别结果;如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值大于预设值,则触发通信单元801发送重传指令,该重传指令用于指示待识别数据中当前请求重传的行的行索引或列的列索引;以及接收列索引对应的列的元素或行索引对应的行的元素,并利用接收的列或行的元素更新第一数据;进而,处理单元802可再次执行确定数据库中每个数据与第一数据之间的距离的操作,直至如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,或待识别数据中所有列或行均已重传。In yet another optional implementation, the communication device can implement the related operations of the receiver in the above data transmission method 300. For example, the communication unit 801 is used to send a transmission instruction, which is used to request the transmission of data to be identified in the identification task; and to receive the data to be identified and obtain the first data; the processing unit 802 is used to determine the relationship between each data in the database and The distance between the first data, and whether the number of second data in the database that is the first distance is one or more; if the number of second data is one, and the first The absolute difference between the distance and the second distance is greater than the preset value, triggering the communication unit 801 to send the recognition result represented by the second data; if the number of second data is multiple, or the sum of the first distance and the second distance is If the absolute difference between the two is greater than the preset value, the communication unit 801 is triggered to send a retransmission instruction. The retransmission instruction is used to indicate the row index or column index of the row currently requested to be retransmitted in the data to be identified; and receive the column index. The element of the corresponding column or row indexes the element of the corresponding row, and updates the first data using the received element of the column or row; furthermore, the processing unit 802 can execute again to determine the distance between each data in the database and the first data. The operation is performed until if the number of second data is one and the absolute difference between the first distance and the second distance is greater than the preset value, or all columns or rows in the data to be identified have been retransmitted.
其中,有关上述处理单元802和通信单元801更详细的描述可以参考上述方法实施例中相关描述得到。For more detailed descriptions about the processing unit 802 and the communication unit 801, please refer to the relevant descriptions in the above method embodiments.
又一种可选的实施方式中,通信装置可实施上述数据传输方法400中接收机的相关操作。例如,通信单元801,用于发送传输指令,该传输指令用于请求传输识别任务中的待识别数据;以及接收待识别数据,获得第一数据;处理单元802,用于确定数据库中每个数据与第一数据之间的距离,以及判断数据库中与第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;如果第二数据的个数是一个,且第一距离与第二距离之间的绝对差值大于预设值,则触发通信单元801发送第二数据表征的识别结果;如果第二数据的个数是多个,或第一距离与第二距离之间的绝对差值大于预设值,则触发通信单元801发送多个第四数据,该多个第四数据是数据库中的多个第二数据,或是数据库中的第二数据以及所述数据库中与所述第一数据之间的距离为第二距离的第三数据。In yet another optional implementation, the communication device can implement the related operations of the receiver in the above data transmission method 400. For example, the communication unit 801 is used to send a transmission instruction, which is used to request the transmission of data to be identified in the identification task; and to receive the data to be identified and obtain the first data; the processing unit 802 is used to determine each data in the database distance from the first data, and determine whether the number of second data in the database that is the first distance from the first data is one or more; if the number of second data is one, and the If the absolute difference between the first distance and the second distance is greater than the preset value, the communication unit 801 is triggered to send the identification result represented by the second data; if the number of second data is multiple, or the first distance and the second distance If the absolute difference between them is greater than the preset value, the communication unit 801 is triggered to send a plurality of fourth data. The plurality of fourth data are a plurality of second data in the database, or the second data in the database and the said The distance between the third data and the first data in the database is the second distance.
其中,有关上述处理单元802和通信单元801更详细的描述可以参考上述方法实施例中相关描述得到。For more detailed descriptions about the processing unit 802 and the communication unit 801, please refer to the relevant descriptions in the above method embodiments.
图8所示的通信装置可以是发送机,也可以发送机中的装置。The communication device shown in FIG. 8 may be a transmitter, or may be a device in the transmitter.
一种可选的实施方式中,该通信装置可执行上述数据传输方法200中发送机的相关操作。例如,通信单元801,用于发送任务请求,该任务请求用于请求识别任务,该任务请求中包括识别任务中待识别数据的行数N和列数M;以及接收传输指令,该传输指令用于指示待识别数据中当前请求传输的列的列索引或行的行索引;以及发送列索引对应的列的元素或行索引对应的行的元素。In an optional implementation, the communication device can perform related operations of the transmitter in the above data transmission method 200. For example, the communication unit 801 is used to send a task request, which is used to request an identification task. The task request includes the number N of rows and the number M of columns of data to be identified in the identification task; and to receive a transmission instruction, which is used Indicates the column index of the column or the row index of the row currently requested to be transmitted in the data to be identified; and sends the element of the column corresponding to the column index or the element of the row corresponding to the row index.
其中,有关上述通信单元801更详细的描述可以参考上述方法实施例中相关描述得到。For more detailed descriptions about the communication unit 801, please refer to the relevant descriptions in the above method embodiments.
另一种可选的实施方式中,该通信装置可执行上述数据传输方法300中发送机的相关操作。例如,通信单元801,用于接收传输指令,该传输指令用于请求传输识别任务中的待识别数据;发送待识别数据;以及接收重传指令,该重传指令用于指示待识别数据中当前请求重传的行的行索引或列的列索引,以及重传该列索引对应的列的元素或行索引对应的行的元素。In another optional implementation, the communication device can perform related operations of the transmitter in the above data transmission method 300. For example, the communication unit 801 is used to receive a transmission instruction, which is used to request the transmission of the data to be identified in the identification task; to send the data to be identified; and to receive a retransmission instruction, which is used to indicate the current data in the data to be identified. The row index of the row or the column index of the column that is requested to be retransmitted, and the element of the column corresponding to the column index or the element of the row corresponding to the row index is retransmitted.
其中,有关上述通信单元801更详细的描述可以参考上述方法实施例中相关描述得到。For more detailed descriptions about the communication unit 801, please refer to the relevant descriptions in the above method embodiments.
又一种可选的实施方式中,该通信装置可执行上述数据传输方法400中发送机的相关操作。例如,通信单元801,用于接收传输指令,该传输指令用于请求传输识别任务中的待识别数据;发送该待识别数据;以及接收多个第四数据;处理单元802,用于确定接收的每个第四数据与待识别数据之间的距离;判断多个第四数据中与待识别数据之间的距离为第三距 离的第五数据的个数是一个还是多个;如果第五数据的个数是一个,且第三距离与第四距离之间的绝对差值大于预设值,则触发通信单元801输出第五数据表征的识别结果。In yet another optional implementation, the communication device can perform related operations of the transmitter in the above data transmission method 400. For example, the communication unit 801 is used to receive a transmission instruction, which is used to request the transmission of data to be identified in the identification task; to send the data to be identified; and to receive a plurality of fourth data; the processing unit 802 is used to determine the received The distance between each fourth data and the data to be identified; determine the distance between the plurality of fourth data and the data to be identified as the third distance The number of the fifth data is one or more; if the number of the fifth data is one and the absolute difference between the third distance and the fourth distance is greater than the preset value, the communication unit 801 is triggered to output the third distance. Five data representation identification results.
其中,多个第四数据是识别任务的设备的数据库中的第二数据,或是数据库中的第二数据以及数据库中的第三数据。其中,第二数据是数据库中与第一数据之间的距离为第一距离的数据,第三数据是数据库中与第一数据之间的距离为第二距离的数据。其中,数据库中每个数据与第一数据之间的距离中最短的距离是第一距离,除第一距离之外最短的距离是第二距离。第一数据是该设备接收的待识别数据;其中,多个第四数据中每个第四数据与待识别数据之间的距离中最短的距离为第三距离,除第三距离之外最短的距离为第四距离。The plurality of fourth data are the second data in the database of the device that identifies the task, or the second data in the database and the third data in the database. The second data is the data in the database whose distance from the first data is the first distance, and the third data is the data in the database whose distance from the first data is the second distance. Wherein, the shortest distance between each data in the database and the first data is the first distance, and the shortest distance other than the first distance is the second distance. The first data is data to be identified received by the device; wherein the shortest distance between each fourth data in the plurality of fourth data and the data to be identified is the third distance, and the shortest distance other than the third distance is The distance is the fourth distance.
其中,有关上述处理单元802和通信单元801更详细的描述可以参考上述方法实施例中相关描述得到。For more detailed descriptions about the processing unit 802 and the communication unit 801, please refer to the relevant descriptions in the above method embodiments.
图9所示的通信装置可包括处理器901和接口电路902。处理器901和接口电路902之间相互耦合。可以理解的是,接口电路902可以为接口电路或输入输出接口。可选的,图9所示的通信装置还可以包括存储器903,用于存储处理器901执行的指令或存储处理器901运行指令所需要的输入数据或存储处理器901运行指令后产生的数据。The communication device shown in FIG. 9 may include a processor 901 and an interface circuit 902. The processor 901 and the interface circuit 902 are coupled to each other. It can be understood that the interface circuit 902 may be an interface circuit or an input-output interface. Optionally, the communication device shown in FIG. 9 may also include a memory 903 for storing instructions executed by the processor 901 or input data required for the processor 901 to run the instructions or data generated after the processor 901 executes the instructions.
所述通信装置为接收机或接收机中的装置:处理器901可以执行图4中S101至S103;或者,接口电路902执行图5中S201至S203、S206,处理器901可以执行图5中S204、S205;或者,接口电路902执行图6中S301至S303、S306至S308,处理器901可以执行图6中S304、S305;或者,接口电路902执行图7中S401至S403、S406至S407,处理器901可以执行图7中S404、S405。The communication device is a receiver or a device in a receiver: the processor 901 can execute S101 to S103 in Figure 4; or the interface circuit 902 can execute S201 to S203 and S206 in Figure 5, and the processor 901 can execute S204 in Figure 5 , S205; or, the interface circuit 902 executes S301 to S303, S306 to S308 in Fig. 6, and the processor 901 can execute S304, S305 in Fig. 6; or, the interface circuit 902 executes S401 to S403, S406 to S407 in Fig. 7, and the processing The processor 901 can execute S404 and S405 in Figure 7.
所述通信装置为发送机或发送机中的装置:接口电路902执行图5中S201至S203、S206;或者,接口电路902执行图6中S301至S303、S306至S308;或者,接口电路902执行图7中S401至S403、S406至S407,处理器901可以执行图7中S408至S411。The communication device is a transmitter or a device in the transmitter: the interface circuit 902 executes S201 to S203 and S206 in Figure 5; or the interface circuit 902 executes S301 to S303 and S306 to S308 in Figure 6; or the interface circuit 902 executes In S401 to S403 and S406 to S407 in Figure 7 , the processor 901 can execute S408 to S411 in Figure 7 .
应理解,本申请实施例中提及的处理器可以是CPU,还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that the processor mentioned in the embodiments of this application can be a CPU, or other general-purpose processor, digital signal processor (digital signal processor, DSP), application specific integrated circuit (ASIC), off-the-shelf processor Field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
还应理解,本申请实施例中提及的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。It should also be understood that the memory mentioned in the embodiments of the present application may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Among them, non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase electrically programmable read-only memory (EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of illustration, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (direct rambus RAM, DR RAM).
需要说明的是,当处理器为通用处理器、DSP、ASIC、FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件时,存储器(存储模块)集成在处理器中。It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, the memory (storage module) is integrated in the processor.
应注意,本文描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。 It should be noted that the memories described herein are intended to include, but are not limited to, these and any other suitable types of memories.
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的通信方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed communication methods and devices can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
该作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
该功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例该方法的全部或部分步骤。而前述的计算机可读存储介质,可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括随机存取存储器(random access memory,RAM)、只读存储器(read-only memory,ROM)、电可擦可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、紧凑型光盘只读存储器(compact disc read-only memory,CD-ROM)、通用串行总线闪存盘(universal serial bus flash disk)、移动硬盘、或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。If this function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present application or the part that contributes or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions to A computer device (which may be a personal computer, a server, or a network device, etc.) is caused to execute all or part of the steps of the method in each embodiment of the present application. The aforementioned computer-readable storage medium can be any available medium that can be accessed by a computer. Taking this as an example but not limited to: computer-readable media may include random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (electrically erasable programmable) read only memory (EEPROM), compact disc read-only memory (CD-ROM), universal serial bus flash disk (universal serial bus flash disk), mobile hard disk, or other optical disk storage, magnetic disk storage media or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures that can be accessed by a computer.
以上所示,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以权利要求的保护范围为准。 What is shown above is only a specific implementation mode of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes within the technical scope disclosed in the embodiments of the present application. or replacement, all should be covered by the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.

Claims (48)

  1. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method includes:
    确定数据库中每个数据与第一数据之间的距离,所述第一数据是接收的待识别数据或是待识别数据中已接收的行或列构成的矩阵;所述数据库中每个数据与所述第一数据之间的距离中最短的距离为第一距离,除所述第一距离之外最短的距离为第二距离;Determine the distance between each data in the database and the first data, which is the received data to be identified or a matrix composed of received rows or columns in the data to be identified; each data in the database is The shortest distance among the distances between the first data is the first distance, and the shortest distance other than the first distance is the second distance;
    判断所述数据库中与所述第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;Determine whether the number of second data in the database that is a first distance from the first data is one or more;
    如果所述第二数据的个数是一个,且所述第一距离与所述第二距离之间的绝对差值大于预设值,发送所述第二数据表征的识别结果。If the number of the second data is one and the absolute difference between the first distance and the second distance is greater than a preset value, the recognition result represented by the second data is sent.
  2. 根据权利要求1所述的方法,其特征在于,所述确定数据库中每个数据与第一数据之间的距离之前,所述方法还包括:The method according to claim 1, characterized in that before determining the distance between each data in the database and the first data, the method further includes:
    发送传输指令,所述传输指令用于指示当前请求传输的所述待识别数据中的列的列索引或行的行索引;Send a transmission instruction, the transmission instruction being used to indicate the column index of the column or the row index of the row in the data to be identified that is currently requested to be transmitted;
    接收所述列索引对应的列的元素或所述行索引对应的行的元素;Receive elements of the column corresponding to the column index or elements of the row corresponding to the row index;
    利用接收的列的元素或行的元素,确定第一数据。The first data is determined using the received column elements or row elements.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, further comprising:
    如果所述第二数据的个数是多个,或所述第一距离与所述第二距离之间的绝对差值不大于预设值,再次执行所述的发送传输指令的步骤,直至所述第二数据的个数是一个且所述第一距离与所述第二距离之间的绝对差值大于预设值,或者,所述待识别数据中所有列或所有行均已传输,发送所述第二数据表征的识别结果。If the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than the preset value, perform the step of sending a transmission instruction again until the The number of the second data is one and the absolute difference between the first distance and the second distance is greater than a preset value, or all columns or all rows in the data to be identified have been transmitted and sent The second data represents the identification result.
  4. 根据权利要求1所述的方法,其特征在于,所述确定数据库中每个数据与第一数据之间的距离之前,所述方法还包括:The method according to claim 1, characterized in that before determining the distance between each data in the database and the first data, the method further includes:
    发送传输指令,所述传输指令用于请求传输待识别数据;Send a transmission instruction, which is used to request the transmission of the data to be identified;
    接收所述待识别数据,作为第一数据。The data to be identified is received as first data.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, further comprising:
    如果所述第二数据的个数是多个,或所述第一距离与所述第二距离之间的绝对差值不大于预设值,发送重传指令,所述重传指令用于指示所述待识别数据中当前请求重传的行的行索引或列的列索引;If the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than a preset value, a retransmission instruction is sent, and the retransmission instruction is used to indicate The row index or column index of the row currently requested to be retransmitted in the data to be identified;
    接收所述行索引对应的行的元素或所述列索引对应的列的元素;Receive elements of the row corresponding to the row index or elements of the column corresponding to the column index;
    利用所述行的元素或所述列的元素更新所述第一数据,并再次执行所述的确定数据库中每个数据与第一数据之间的距离的步骤,直至所述第二数据的个数是一个且所述第一距离与所述第二距离之间的绝对差值大于预设值,或者,所述待识别数据中所有列或所有行均已重传,发送所述第二数据表征的识别结果。Update the first data using elements of the row or elements of the column, and perform the step of determining the distance between each data in the database and the first data again until the individual data of the second data The number is one and the absolute difference between the first distance and the second distance is greater than the preset value, or all columns or all rows in the data to be identified have been retransmitted, and the second data is sent Recognition results of representations.
  6. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, further comprising:
    如果所述第二数据的个数是多个,或所述第一距离与第二距离之间的绝对差值不大于预 设值,发送多个第四数据,所述多个第四数据是所述数据库中的所述第二数据,或是所述数据库中的所述第二数据以及所述数据库中与所述第一数据之间的距离为第二距离的第三数据。If the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than a predetermined Set value, send a plurality of fourth data, the plurality of fourth data are the second data in the database, or the second data in the database and the data in the database that are the same as the third data. The distance between one data is the second distance and the third data.
  7. 根据权利要求2或3所述的方法,其特征在于,所述传输指令还用于指示所述当前请求传输的列或行进行压缩传输采用的传输参数;The method according to claim 2 or 3, characterized in that the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the column or row currently requested to be transmitted;
    所述传输参数包括所述列或所述行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The transmission parameters include the length of each block into which the column or row is divided, and the codebook information used by which each block is quantized;
    所述接收的所述列索引对应的列的元素是基于所述传输参数对压缩传输的所述列索引对应的列的元素进行解压缩获得的;或The received elements of the column corresponding to the column index are obtained by decompressing the elements of the column corresponding to the compressed and transmitted column index based on the transmission parameters; or
    所述接收的所述行索引对应的行的元素,是基于所述传输参数对压缩传输的所述行索引对应的行的元素进行解压缩获得的。The received row elements corresponding to the row index are obtained by decompressing the compressed and transmitted row elements corresponding to the row index based on the transmission parameters.
  8. 根据权利要求4至6任一项所述的方法,其特征在于,所述传输指令还用于指示所述请求传输的待识别数据进行压缩传输采用的传输参数;The method according to any one of claims 4 to 6, characterized in that the transmission instruction is also used to indicate the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted;
    所述传输参数包括所述待识别数据中每列或每行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The transmission parameters include the length of each block divided into each column or row in the data to be identified, and the codebook information used by each block to be quantized;
    所述接收的所述待识别数据,是基于所述传输参数对压缩传输的待识别数据进行解压缩获得的。The received data to be identified is obtained by decompressing the compressed and transmitted data to be identified based on the transmission parameters.
  9. 根据权利要求8所述的方法,其特征在于,所述重传指令还用于指示所述当前请求重传的行或列进行压缩重传采用的传输参数;The method according to claim 8, characterized in that the retransmission instruction is also used to indicate the transmission parameters used for compressed retransmission of the row or column currently requested to be retransmitted;
    所述传输参数包括所述列或所述行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The transmission parameters include the length of each block into which the column or row is divided, and the codebook information used by which each block is quantized;
    所述接收的所述列索引对应的列的元素是基于所述传输参数对压缩重传的所述列索引对应的列的元素进行解压缩获得的;或The received elements of the column corresponding to the column index are obtained by decompressing the elements of the column corresponding to the compressed and retransmitted column index based on the transmission parameters; or
    所述接收的所述行索引对应的行的元素,是基于所述传输参数对压缩重传的所述行索引对应的行的元素进行解压缩获得的。The received row elements corresponding to the row index are obtained by decompressing the compressed and retransmitted row elements corresponding to the row index based on the transmission parameters.
  10. 根据权利要求9所述的方法,其特征在于,所述当前请求重传的行或列进行压缩重传采用的量化精度,高于所述请求传输的待识别数据进行压缩传输采用的量化精度。The method according to claim 9, characterized in that the quantization precision used for compressed retransmission of the row or column currently requested to be retransmitted is higher than the quantization precision used for compressed transmission of the data to be identified that is requested to be transmitted.
  11. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method includes:
    发送任务请求,所述任务请求用于请求识别任务,所述任务请求中包括所述识别任务中待识别数据的行数N和列数M;Send a task request, the task request is used to request a recognition task, the task request includes the number of rows N and the number of columns M of the data to be recognized in the recognition task;
    接收传输指令,所述传输指令用于指示所述待识别数据中当前请求传输的列的列索引或行的行索引;Receive a transmission instruction, the transmission instruction being used to indicate the column index of the column or the row index of the row currently requested to be transmitted in the data to be identified;
    发送所述列索引对应的列的元素或所述行索引对应的行的元素。Send the element of the column corresponding to the column index or the element of the row corresponding to the row index.
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method according to claim 11, characterized in that, the method further includes:
    接收第二数据表征的识别结果,所述第二数据是响应所述识别任务的设备中的数据库中与第一数据之间的距离为第一距离的数据,所述第一距离是所述数据库中每个数据与所述第 一数据之间的距离中最短的距离,所述第一数据是所述待识别数据中已发送的行或列的元素构成的。Receive the recognition result represented by the second data, the second data is the data in the database in the device that responds to the recognition task, and the distance between the first data and the first data is a first distance, the first distance is the database Each data in the The shortest distance among the distances between data. The first data is composed of elements of rows or columns that have been sent in the data to be identified.
  13. 根据权利要求11或12所述的方法,其特征在于,所述传输指令还用于指示所述当前请求传输的列或行进行压缩传输采用的传输参数;The method according to claim 11 or 12, characterized in that the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the column or row currently requested to be transmitted;
    所述传输参数包括所述列或所述行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The transmission parameters include the length of each block into which the column or row is divided, and the codebook information used by which each block is quantized;
    所述发送的所述列索引对应的列的元素是基于所述传输参数对所述列索引对应的列的元素进行压缩获得的;或The sent elements of the column corresponding to the column index are obtained by compressing the elements of the column corresponding to the column index based on the transmission parameters; or
    所述发送的所述行索引对应的行的元素,是基于所述传输参数对所述行索引对应的行的元素进行压缩获得的。The sent elements of the row corresponding to the row index are obtained by compressing the elements of the row corresponding to the row index based on the transmission parameters.
  14. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method includes:
    接收传输指令,所述传输指令用于请求传输识别任务中的待识别数据;Receive a transmission instruction, which is used to request the transmission of data to be identified in the identification task;
    发送所述待识别数据;Send the data to be identified;
    接收重传指令,所述重传指令用于指示所述待识别数据中当前请求重传的行的行索引或列的列索引;Receive a retransmission instruction, the retransmission instruction being used to indicate the row index or the column index of the row currently requested to be retransmitted in the data to be identified;
    重传所述列索引对应的列的元素或所述行索引对应的行的元素。Retransmit the element of the column corresponding to the column index or the element of the row corresponding to the row index.
  15. 根据权利要求14所述的方法,其特征在于,所述方法还包括:The method of claim 14, further comprising:
    接收第二数据表征的识别结果,所述第二数据是响应所述识别任务的设备中的数据库中与第一数据之间的距离为第一距离的数据,所述第一距离是所述数据库中每个数据与所述第一数据之间的距离中最短的距离,所述第一数据是发送的待识别数据基于已重传的行或列的元素更新后的数据。Receive the recognition result represented by the second data, the second data is the data in the database in the device that responds to the recognition task, and the distance between the first data and the first data is a first distance, the first distance is the database The shortest distance between each data in the data and the first data, the first data is the data that is updated based on the elements of the row or column that have been retransmitted to be identified.
  16. 根据权利要求14或15所述的方法,其特征在于,所述传输指令还用于指示所述请求传输的待识别数据进行压缩传输采用的传输参数;所述传输参数包括所述待识别数据中每列或每行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The method according to claim 14 or 15, characterized in that the transmission instruction is also used to instruct the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted; the transmission parameters include the data to be identified. The length of each block into which each column or row is divided, and the codebook information used by said each block to be quantized;
    所述发送的所述待识别数据,是基于所述传输参数对所述待识别数据进行压缩获得的。The sent data to be identified is obtained by compressing the data to be identified based on the transmission parameters.
  17. 根据权利要求16所述的方法,其特征在于,所述重传指令还用于指示所述当前请求重传的行或列进行压缩重传采用的传输参数;The method according to claim 16, characterized in that the retransmission instruction is also used to indicate the transmission parameters used for compressed retransmission of the row or column currently requested to be retransmitted;
    所述传输参数包括所述列或所述行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The transmission parameters include the length of each block into which the column or row is divided, and the codebook information used by which each block is quantized;
    所述发送的所述列索引对应的列的元素是基于所述传输参数对所述列索引对应的列的元素进行压缩获得的;或The sent elements of the column corresponding to the column index are obtained by compressing the elements of the column corresponding to the column index based on the transmission parameters; or
    所述发送的所述行索引对应的行的元素,是基于所述传输参数对所述行索引对应的行的元素进行压缩获得的。The sent elements of the row corresponding to the row index are obtained by compressing the elements of the row corresponding to the row index based on the transmission parameters.
  18. 根据权利要求17所述的方法,其特征在于,所述当前请求重传的行或列进行压缩重传采用的量化精度,高于所述请求传输的待识别数据进行压缩传输采用的量化精度。 The method according to claim 17, characterized in that the quantization precision used for compressed retransmission of the row or column currently requested to be retransmitted is higher than the quantization precision used for compressed transmission of the data to be identified that is requested to be transmitted.
  19. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method includes:
    接收传输指令,所述传输指令用于请求传输识别任务中的待识别数据;Receive a transmission instruction, which is used to request the transmission of data to be identified in the identification task;
    发送所述待识别数据;Send the data to be identified;
    接收多个第四数据,所述多个第四数据是响应所述识别任务的设备的数据库中的第二数据,或者是所述数据库中的第二数据和第三数据,所述第二数据是所述数据库中与第一数据之间的距离为第一距离的数据,所述第三数据是所述数据库中与所述第一数据之间的距离为第二距离的数据,所述数据库中每个数据与所述第一数据之间的距离中最短的距离为所述第一距离,除所述第一距离之外最短的距离为所述第二距离,所述第一数据是所述设备接收的待识别数据;Receive a plurality of fourth data, the plurality of fourth data being second data in the database of the device responding to the identification task, or second data and third data in the database, the second data being is the data in the database whose distance from the first data is the first distance, the third data is the data in the database whose distance from the first data is the second distance, the database The shortest distance between each data and the first data is the first distance, the shortest distance other than the first distance is the second distance, and the first data is the The data to be identified received by the above device;
    确定接收的每个第四数据与所述待识别数据之间的距离;所述多个第四数据中每个第四数据与所述待识别数据之间的距离中最短的距离为第三距离,除所述第三距离之外最短的距离为第四距离;Determine the distance between each received fourth data and the data to be identified; the shortest distance among the distances between each fourth data in the plurality of fourth data and the data to be identified is the third distance , the shortest distance other than the third distance is the fourth distance;
    判断所述多个第四数据中,与所述待识别数据之间的距离为第三距离的第五数据的个数是一个还是多个;Determine whether the number of fifth data among the plurality of fourth data that is a third distance from the data to be identified is one or more;
    如果所述第五数据的个数是一个,且所述第三距离与所述第四距离之间的绝对差值大于预设值,输出所述第五数据表征的识别结果。If the number of the fifth data is one and the absolute difference between the third distance and the fourth distance is greater than the preset value, the recognition result represented by the fifth data is output.
  20. 根据权利要求19所述的方法,其特征在于,所述传输指令还用于指示所述请求传输的待识别数据进行压缩传输采用的传输参数;所述传输参数包括所述待识别数据中每列或每行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The method according to claim 19, characterized in that the transmission instruction is also used to instruct the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted; the transmission parameters include each column in the data to be identified. Or the length of each block into which each row is divided, and the codebook information used by each block to be quantized;
    所述发送的待识别数据,是基于所述传输参数对所述待识别数据进行压缩获得的。The sent data to be identified is obtained by compressing the data to be identified based on the transmission parameters.
  21. 根据权利要求19或20所述的方法,其特征在于,如果所述第五数据的个数是多个,或所述第三距离与所述第四距离之间的绝对差值不大于预设值,则输出提示信息,所述提示信息用于指示所述待识别数据匹配失败。The method according to claim 19 or 20, characterized in that if the number of the fifth data is multiple, or the absolute difference between the third distance and the fourth distance is not greater than a preset value, then output prompt information, the prompt information is used to indicate that the data to be identified fails to match.
  22. 一种通信装置,其特征在于,包括处理器和收发器,其中,所述收发器用于收发信号,所述处理器用于执行程序指令,以使得所述通信装置执行如权利要求1-10中任一项所述的方法。A communication device, characterized in that it includes a processor and a transceiver, wherein the transceiver is used to send and receive signals, and the processor is used to execute program instructions, so that the communication device executes any of claims 1-10. method described in one item.
  23. 一种通信装置,其特征在于,包括处理器和收发器,其中,所述收发器用于收发信息,所述处理器用于执行程序指令,以使得所述通信装置执行如权利要求11-13中任一项所述的方法,或如权利要求14-18中任一项所述的方法,或如权利要求19-21中任一项所述的方法。A communication device, characterized in that it includes a processor and a transceiver, wherein the transceiver is used to send and receive information, and the processor is used to execute program instructions, so that the communication device executes any of claims 11-13. The method described in any one of claims 14-18, or the method described in any one of claims 19-21.
  24. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时使所述计算机执行如权利要求1-10中任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to execute the instructions as claimed in claim 1 -The method described in any one of 10.
  25. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时使所述计算机执行如权利要 求11-13中任一项所述的方法,或如权利要求14-18中任一项所述的方法,或如权利要求19-21中任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to execute the claims. The method according to any one of claims 11-13, or the method according to any one of claims 14-18, or the method according to any one of claims 19-21.
  26. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-10中任一项所述的方法。A computer program product, characterized in that, when the computer program product is run on a computer, it causes the computer to execute the method according to any one of claims 1-10.
  27. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求11-13中任一项所述的方法,或如权利要求14-18中任一项所述的方法,或如权利要求19-21中任一项所述的方法。A computer program product, characterized in that, when the computer program product is run on a computer, it causes the computer to execute the method as claimed in any one of claims 11-13, or as claimed in claims 14-18. The method of any one of claims 19-21.
  28. 一种通信装置,其特征在于,所述装置包括:A communication device, characterized in that the device includes:
    处理单元,用于确定数据库中每个数据与第一数据之间的距离,所述第一数据是接收的待识别数据或是待识别数据中已接收的行或列构成的矩阵;所述数据库中每个数据与所述第一数据之间的距离中最短的距离为第一距离,除所述第一距离之外最短的距离为第二距离;A processing unit configured to determine the distance between each data in the database and the first data, which is the received data to be identified or a matrix composed of received rows or columns in the data to be identified; the database The shortest distance among the distances between each data and the first data is the first distance, and the shortest distance other than the first distance is the second distance;
    所述处理单元,还用于判断所述数据库中与所述第一数据之间的距离为第一距离的第二数据的个数是一个还是多个;The processing unit is also configured to determine whether the number of second data in the database that is a first distance away from the first data is one or more;
    通信单元,用于如果所述处理单元判断所述第二数据的个数是一个,且所述第一距离与所述第二距离之间的绝对差值大于预设值,发送所述第二数据表征的识别结果。A communication unit configured to send the second data if the processing unit determines that the number of second data is one and the absolute difference between the first distance and the second distance is greater than a preset value. Recognition results of data representation.
  29. 根据权利要求28所述的装置,其特征在于,The device according to claim 28, characterized in that:
    所述通信单元,还用于确定数据库中每个数据与第一数据之间的距离之前,发送传输指令,所述传输指令用于指示当前请求传输的所述待识别数据中的列的列索引或行的行索引;The communication unit is also configured to send a transmission instruction before determining the distance between each data in the database and the first data. The transmission instruction is used to indicate the column index of the column in the data to be identified that is currently requested to be transmitted. or the row index of the row;
    所述通信单元,还用于接收所述列索引对应的列的元素或所述行索引对应的行的元素;The communication unit is further configured to receive elements of the column corresponding to the column index or elements of the row corresponding to the row index;
    所述处理单元,还用于利用接收的列的元素或行的元素,确定第一数据。The processing unit is also configured to determine the first data using the received column elements or row elements.
  30. 根据权利要求29所述的装置,其特征在于,The device according to claim 29, characterized in that:
    所述通信单元,还用于如果所述第二数据的个数是多个,或所述第一距离与所述第二距离之间的绝对差值不大于预设值,再次执行所述的发送传输指令的步骤,直至所述第二数据的个数是一个且所述第一距离与所述第二距离之间的绝对差值大于预设值,或者,所述待识别数据中所有列或所有行均已传输,发送所述第二数据表征的识别结果。The communication unit is also configured to execute the step again if the number of second data is multiple or the absolute difference between the first distance and the second distance is not greater than a preset value. The step of sending a transmission instruction is until the number of the second data is one and the absolute difference between the first distance and the second distance is greater than a preset value, or until all columns in the data to be identified are Or all rows have been transmitted, and the identification result represented by the second data is sent.
  31. 根据权利要求28所述的装置,其特征在于,The device according to claim 28, characterized in that:
    所述通信单元,还用于确定数据库中每个数据与第一数据之间的距离之前,发送传输指令,所述传输指令用于请求传输待识别数据;以及接收所述待识别数据,作为第一数据。The communication unit is also used to send a transmission instruction before determining the distance between each data in the database and the first data. The transmission instruction is used to request the transmission of the data to be identified; and to receive the data to be identified as the third data. One data.
  32. 根据权利要求31所述的装置,其特征在于,The device according to claim 31, characterized in that:
    所述通信单元,还用于如果所述第二数据的个数是多个,或所述第一距离与所述第二距离之间的绝对差值不大于预设值,发送重传指令,所述重传指令用于指示所述待识别数据中当前请求重传的行的行索引或列的列索引;以及接收所述行索引对应的行的元素或所述列索引对应的列的元素;The communication unit is also configured to send a retransmission instruction if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than a preset value, The retransmission instruction is used to indicate the row index or column index of the row currently requested to be retransmitted in the data to be identified; and to receive the element of the row corresponding to the row index or the element of the column corresponding to the column index. ;
    所述处理单元,还用于利用所述行的元素或所述列的元素更新所述第一数据,并再次执 行所述的确定数据库中每个数据与第一数据之间的距离的步骤,直至所述第二数据的个数是一个且所述第一距离与所述第二距离之间的绝对差值大于预设值,或者,所述待识别数据中所有列或所有行均已重传,发送所述第二数据表征的识别结果。The processing unit is also configured to update the first data using elements of the row or elements of the column, and execute again Perform the step of determining the distance between each data in the database and the first data until the number of the second data is one and the absolute difference between the first distance and the second distance is is greater than the preset value, or all columns or rows in the data to be identified have been retransmitted, and the identification result represented by the second data is sent.
  33. 根据权利要求31所述的装置,其特征在于,The device according to claim 31, characterized in that:
    所述通信单元,还用于如果所述第二数据的个数是多个,或所述第一距离与第二距离之间的绝对差值不大于预设值,发送多个第四数据,所述多个第四数据是所述数据库中的所述第二数据,或是所述数据库中的所述第二数据以及所述数据库中与所述第一数据之间的距离为第二距离的第三数据。The communication unit is also configured to send multiple fourth data if the number of second data is multiple, or the absolute difference between the first distance and the second distance is not greater than a preset value, The plurality of fourth data are the second data in the database, or the distance between the second data in the database and the first data in the database is a second distance the third data.
  34. 根据权利要求29或30所述的装置,其特征在于,所述传输指令还用于指示所述当前请求传输的列或行进行压缩传输采用的传输参数;The device according to claim 29 or 30, characterized in that the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the column or row currently requested to be transmitted;
    所述传输参数包括所述列或所述行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The transmission parameters include the length of each block into which the column or row is divided, and the codebook information used by which each block is quantized;
    所述接收的所述列索引对应的列的元素是基于所述传输参数对压缩传输的所述列索引对应的列的元素进行解压缩获得的;或The received elements of the column corresponding to the column index are obtained by decompressing the elements of the column corresponding to the compressed and transmitted column index based on the transmission parameters; or
    所述接收的所述行索引对应的行的元素,是基于所述传输参数对压缩传输的所述行索引对应的行的元素进行解压缩获得的。The received row elements corresponding to the row index are obtained by decompressing the compressed and transmitted row elements corresponding to the row index based on the transmission parameters.
  35. 根据权利要求31至33任一项所述的装置,其特征在于,所述传输指令还用于指示所述请求传输的待识别数据进行压缩传输采用的传输参数;The device according to any one of claims 31 to 33, wherein the transmission instruction is also used to indicate the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted;
    所述传输参数包括所述待识别数据中每列或每行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The transmission parameters include the length of each block divided into each column or row in the data to be identified, and the codebook information used by each block to be quantized;
    所述接收的所述待识别数据,是基于所述传输参数对压缩传输的待识别数据进行解压缩获得的。The received data to be identified is obtained by decompressing the compressed and transmitted data to be identified based on the transmission parameters.
  36. 根据权利要求35所述的装置,其特征在于,所述重传指令还用于指示所述当前请求重传的行或列进行压缩重传采用的传输参数;The device according to claim 35, characterized in that the retransmission instruction is also used to indicate the transmission parameters used for compressed retransmission of the row or column currently requested to be retransmitted;
    所述传输参数包括所述列或所述行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The transmission parameters include the length of each block into which the column or row is divided, and the codebook information used by which each block is quantized;
    所述接收的所述列索引对应的列的元素是基于所述传输参数对压缩重传的所述列索引对应的列的元素进行解压缩获得的;或The received elements of the column corresponding to the column index are obtained by decompressing the elements of the column corresponding to the compressed and retransmitted column index based on the transmission parameters; or
    所述接收的所述行索引对应的行的元素,是基于所述传输参数对压缩重传的所述行索引对应的行的元素进行解压缩获得的。The received row elements corresponding to the row index are obtained by decompressing the compressed and retransmitted row elements corresponding to the row index based on the transmission parameters.
  37. 根据权利要求36所述的装置,其特征在于,所述当前请求重传的行或列进行压缩重传采用的量化精度,高于所述请求传输的待识别数据进行压缩传输采用的量化精度。The device according to claim 36, wherein the quantization precision used for compressed retransmission of the row or column currently requested to be retransmitted is higher than the quantization precision used for compressed transmission of the data to be identified that is requested to be transmitted.
  38. 一种数据传输装置,其特征在于,所述装置包括:A data transmission device, characterized in that the device includes:
    通信单元,用于发送任务请求,所述任务请求用于请求识别任务,所述任务请求中包括所述识别任务中待识别数据的行数N和列数M; A communication unit configured to send a task request, the task request being used to request a recognition task, the task request including the number N of rows and the number M of columns of data to be recognized in the recognition task;
    所述通信单元,还用于接收传输指令,所述传输指令用于指示所述待识别数据中当前请求传输的列的列索引或行的行索引;The communication unit is further configured to receive a transmission instruction, the transmission instruction being used to indicate the column index of the column or the row index of the row currently requested to be transmitted in the data to be identified;
    所述通信单元,还用于发送所述列索引对应的列的元素或所述行索引对应的行的元素。The communication unit is further configured to send elements of the column corresponding to the column index or elements of the row corresponding to the row index.
  39. 根据权利要求38所述的装置,其特征在于,The device according to claim 38, characterized in that:
    所述通信单元,还用于接收第二数据表征的识别结果,所述第二数据是响应所述识别任务的设备中的数据库中与第一数据之间的距离为第一距离的数据,所述第一距离是所述数据库中每个数据与所述第一数据之间的距离中最短的距离,所述第一数据是所述待识别数据中已发送的行或列的元素构成的。The communication unit is also configured to receive the recognition result represented by the second data. The second data is the data whose distance from the first data in the database in the device responding to the recognition task is the first distance, so The first distance is the shortest distance between each data in the database and the first data, which is composed of elements of rows or columns that have been sent in the data to be identified.
  40. 根据权利要求38或39所述的装置,其特征在于,所述传输指令还用于指示所述当前请求传输的列或行进行压缩传输采用的传输参数;The device according to claim 38 or 39, characterized in that the transmission instruction is also used to indicate the transmission parameters used for compressed transmission of the column or row currently requested to be transmitted;
    所述传输参数包括所述列或所述行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The transmission parameters include the length of each block into which the column or row is divided, and the codebook information used by which each block is quantized;
    所述发送的所述列索引对应的列的元素是基于所述传输参数对所述列索引对应的列的元素进行压缩获得的;或The sent elements of the column corresponding to the column index are obtained by compressing the elements of the column corresponding to the column index based on the transmission parameters; or
    所述发送的所述行索引对应的行的元素,是基于所述传输参数对所述行索引对应的行的元素进行压缩获得的。The sent elements of the row corresponding to the row index are obtained by compressing the elements of the row corresponding to the row index based on the transmission parameters.
  41. 一种数据传输装置,其特征在于,所述装置包括:A data transmission device, characterized in that the device includes:
    通信单元,用于接收传输指令,所述传输指令用于请求传输识别任务中的待识别数据;A communication unit configured to receive a transmission instruction, which is used to request the transmission of data to be identified in the identification task;
    所述通信单元,还用于发送所述待识别数据;The communication unit is also used to send the data to be identified;
    所述通信单元,还用于接收重传指令,所述重传指令用于指示所述待识别数据中当前请求重传的行的行索引或列的列索引;The communication unit is further configured to receive a retransmission instruction, where the retransmission instruction is used to indicate the row index or column index of the row currently requested to be retransmitted in the data to be identified;
    所述通信单元,还用于重传所述列索引对应的列的元素或所述行索引对应的行的元素。The communication unit is further configured to retransmit elements of the column corresponding to the column index or elements of the row corresponding to the row index.
  42. 根据权利要求41所述的装置,其特征在于,The device according to claim 41, characterized in that:
    所述通信单元,还用于接收第二数据表征的识别结果,所述第二数据是响应所述识别任务的设备中的数据库中与第一数据之间的距离为第一距离的数据,所述第一距离是所述数据库中每个数据与所述第一数据之间的距离中最短的距离,所述第一数据是发送的待识别数据基于已重传的行或列的元素更新后的数据。The communication unit is also configured to receive the recognition result represented by the second data. The second data is the data whose distance from the first data in the database in the device responding to the recognition task is the first distance, so The first distance is the shortest distance between each data in the database and the first data. The first data is the sent data to be identified after updating based on the elements of the row or column that have been retransmitted. The data.
  43. 根据权利要求41或42所述的装置,其特征在于,所述传输指令还用于指示所述请求传输的待识别数据进行压缩传输采用的传输参数;所述传输参数包括所述待识别数据中每列或每行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The device according to claim 41 or 42, characterized in that the transmission instruction is also used to instruct the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted; the transmission parameters include the data to be identified. The length of each block into which each column or row is divided, and the codebook information used by said each block to be quantized;
    所述发送的所述待识别数据,是基于所述传输参数对所述待识别数据进行压缩获得的。The sent data to be identified is obtained by compressing the data to be identified based on the transmission parameters.
  44. 根据权利要求43所述的装置,其特征在于,所述重传指令还用于指示所述当前请求重传的行或列进行压缩重传采用的传输参数;The device according to claim 43, characterized in that the retransmission instruction is also used to indicate the transmission parameters used for compressed retransmission of the row or column currently requested to be retransmitted;
    所述传输参数包括所述列或所述行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息; The transmission parameters include the length of each block into which the column or row is divided, and the codebook information used by which each block is quantized;
    所述发送的所述列索引对应的列的元素是基于所述传输参数对所述列索引对应的列的元素进行压缩获得的;或The sent elements of the column corresponding to the column index are obtained by compressing the elements of the column corresponding to the column index based on the transmission parameters; or
    所述发送的所述行索引对应的行的元素,是基于所述传输参数对所述行索引对应的行的元素进行压缩获得的。The sent elements of the row corresponding to the row index are obtained by compressing the elements of the row corresponding to the row index based on the transmission parameters.
  45. 根据权利要求44所述的装置,其特征在于,所述当前请求重传的行或列进行压缩重传采用的量化精度,高于所述请求传输的待识别数据进行压缩传输采用的量化精度。The device according to claim 44, wherein the quantization precision used for compressed retransmission of the row or column currently requested to be retransmitted is higher than the quantization precision used for compressed transmission of the data to be identified that is requested to be transmitted.
  46. 一种数据传输装置,其特征在于,所述装置包括:A data transmission device, characterized in that the device includes:
    通信单元,用于接收传输指令,所述传输指令用于请求传输识别任务中的待识别数据;A communication unit configured to receive a transmission instruction, which is used to request the transmission of data to be identified in the identification task;
    所述通信单元,还用于发送所述待识别数据;The communication unit is also used to send the data to be identified;
    所述通信单元,还用于接收多个第四数据,所述多个第四数据是响应所述识别任务的设备的数据库中的第二数据,或者是所述数据库中的第二数据和第三数据,所述第二数据是所述数据库中与第一数据之间的距离为第一距离的数据,所述第三数据是所述数据库中与所述第一数据之间的距离为第二距离的数据,所述数据库中每个数据与所述第一数据之间的距离中最短的距离为所述第一距离,除所述第一距离之外最短的距离为所述第二距离,所述第一数据是所述设备接收的待识别数据;The communication unit is also configured to receive a plurality of fourth data, the plurality of fourth data being second data in the database of the device responding to the identification task, or the second data in the database and the third data. Three data, the second data is data whose distance from the first data in the database is a first distance, and the third data is data whose distance from the first data in the database is a third distance. For data of two distances, the shortest distance between each data in the database and the first data is the first distance, and the shortest distance other than the first distance is the second distance. , the first data is the data to be identified received by the device;
    处理单元,用于确定接收的每个第四数据与所述待识别数据之间的距离;所述多个第四数据中每个第四数据与所述待识别数据之间的距离中最短的距离为第三距离,除所述第三距离之外最短的距离为第四距离;a processing unit, configured to determine the distance between each received fourth data and the data to be identified; the shortest distance between each fourth data in the plurality of fourth data and the data to be identified; The distance is the third distance, and the shortest distance other than the third distance is the fourth distance;
    所述处理单元,还用于判断所述多个第四数据中,与所述待识别数据之间的距离为第三距离的第五数据的个数是一个还是多个;The processing unit is further configured to determine whether the number of fifth data among the plurality of fourth data that is a third distance from the data to be identified is one or more;
    所述通信单元,还用于如果所述处理单元判断所述第五数据的个数是一个,且所述第三距离与所述第四距离之间的绝对差值大于预设值,输出所述第五数据表征的识别结果。The communication unit is also configured to, if the processing unit determines that the number of the fifth data is one and the absolute difference between the third distance and the fourth distance is greater than a preset value, output the Describe the identification results of the fifth data representation.
  47. 根据权利要求46所述的装置,其特征在于,所述传输指令还用于指示所述请求传输的待识别数据进行压缩传输采用的传输参数;所述传输参数包括所述待识别数据中每列或每行被划分的每个块的长度,以及所述每个块被量化所使用的码本信息;The device according to claim 46, characterized in that the transmission instruction is also used to instruct the transmission parameters to be used for compressed transmission of the data to be identified that is requested to be transmitted; the transmission parameters include each column in the data to be identified. Or the length of each block into which each row is divided, and the codebook information used by each block to be quantized;
    所述发送的待识别数据,是基于所述传输参数对所述待识别数据进行压缩获得的。The sent data to be identified is obtained by compressing the data to be identified based on the transmission parameters.
  48. 根据权利要求46或47所述的装置,其特征在于,如果所述第五数据的个数是多个,或所述第三距离与所述第四距离之间的绝对差值不大于预设值,则输出提示信息,所述提示信息用于指示所述待识别数据匹配失败。 The device according to claim 46 or 47, characterized in that if the number of the fifth data is multiple, or the absolute difference between the third distance and the fourth distance is not greater than a preset value, then output prompt information, the prompt information is used to indicate that the data to be identified fails to match.
PCT/CN2023/088550 2022-04-22 2023-04-15 Data transmission method and related device WO2023202499A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210427681.4A CN116980972A (en) 2022-04-22 2022-04-22 Data transmission method and related device
CN202210427681.4 2022-04-22

Publications (1)

Publication Number Publication Date
WO2023202499A1 true WO2023202499A1 (en) 2023-10-26

Family

ID=88419184

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/088550 WO2023202499A1 (en) 2022-04-22 2023-04-15 Data transmission method and related device

Country Status (2)

Country Link
CN (1) CN116980972A (en)
WO (1) WO2023202499A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070106651A1 (en) * 2000-07-13 2007-05-10 Novell, Inc. System and method of semantic correlation of rich content
US20100034469A1 (en) * 2006-10-11 2010-02-11 Spikenet Technology Method of fast searching and recognition of a digital image representative of at least one graphical pattern in a bank of digital images
CN108491862A (en) * 2018-02-24 2018-09-04 全球能源互联网研究院有限公司 A kind of transformer equipment sensor group data fusion and wireless assemblage method and system
CN113468553A (en) * 2021-06-02 2021-10-01 湖北工业大学 Privacy protection analysis system and method for industrial big data
CN113938410A (en) * 2021-10-14 2022-01-14 广东电网有限责任公司 Terminal protocol identification method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070106651A1 (en) * 2000-07-13 2007-05-10 Novell, Inc. System and method of semantic correlation of rich content
US20100034469A1 (en) * 2006-10-11 2010-02-11 Spikenet Technology Method of fast searching and recognition of a digital image representative of at least one graphical pattern in a bank of digital images
CN108491862A (en) * 2018-02-24 2018-09-04 全球能源互联网研究院有限公司 A kind of transformer equipment sensor group data fusion and wireless assemblage method and system
CN113468553A (en) * 2021-06-02 2021-10-01 湖北工业大学 Privacy protection analysis system and method for industrial big data
CN113938410A (en) * 2021-10-14 2022-01-14 广东电网有限责任公司 Terminal protocol identification method and device

Also Published As

Publication number Publication date
CN116980972A (en) 2023-10-31

Similar Documents

Publication Publication Date Title
US8593307B2 (en) Methods of compressing data in storage device
CN114762276A (en) Channel state information feedback
CN108540260B (en) Method and device for determining Polar code encoding and decoding and storage medium
US10693495B2 (en) Data collection device with efficient data compression
KR102251121B1 (en) Methods for encoding and decoding frames in a telecommunication network
KR20190101401A (en) Puncturing and iterating for encoding information
WO2023202499A1 (en) Data transmission method and related device
US9967774B2 (en) Compression method featuring dynamic coding for wireless communication in wireless networks
US9680507B2 (en) Offset selection for error correction data
US9755720B2 (en) Calibration data
WO2021136400A1 (en) Uplink signal compression transmission method and system, computer device, and storage medium
WO2019149210A1 (en) Data compression method and decompression method, and sending end and receiving end
EP4271036A1 (en) Communication method and apparatus
CN104079930A (en) Achieving method of remote-sensing image compression system
CN117413475A (en) Data processing method, device and system
WO2020000490A1 (en) Method and device for decoding polar code
WO2024065804A1 (en) Data compression and transmission method and apparatus, device, and storage medium
WO2024065803A1 (en) Data compression transmission method, apparatus, device, and storage medium
WO2022256988A1 (en) Information feedback method and apparatus, user equipment, base station, system model and storage medium
WO2024020904A1 (en) Method for sending phase shift configuration of intelligent reflecting surface (irs), method for receiving phase shift configuration of irs, and apparatus
EP4325754A1 (en) Coding and decoding methods, communication apparatus, and system
WO2024032775A1 (en) Quantization method and apparatus
WO2022257042A1 (en) Codebook reporting method, and terminal device and network device
WO2023115254A1 (en) Data processing method and device
WO2023231620A1 (en) Communication method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23791154

Country of ref document: EP

Kind code of ref document: A1