Terminal device flow transfer control method and apparatus for a server, device, and medium
By preprocessing the flow data and generating predicted flow information, combined with inertia and multi-form flow information, precise control over flow users is achieved, solving the problems of inaccurate flow levels and high security risks, and improving server load reduction and security.
Patent Information
- Application Number
- CN202510161288.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-13
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2045-02-13
AI Technical Summary
In existing technologies, category tags provide a coarse-grained representation of the flow level, resulting in poor accuracy and precision of the flow level, heavy server load, and an inability to effectively intercept abnormal user flow operations, leading to high system security risks.
By acquiring the initial circulation data of the target item within a preset time period, preprocessing it, and generating inertial circulation information and multi-form circulation information, combined with real-time circulation information, predictive circulation information is generated. When preset threshold conditions are met, circulation users are reconfigured and circulation interception control is performed, including discarding circulation requests, prohibiting form submissions, and modifying device types.
It improved the accuracy and precision of the workflow, reduced server load, enhanced system security, effectively intercepted abnormal workflow operations, and reduced the risk of network attacks.
Smart Images

Figure CN120106974B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this disclosure relate to the field of computer technology, and more specifically to terminal device flow control methods, apparatus, devices, and media for servers. Background Technology
[0002] Automating the flow of target goods (such as agricultural products, metals, energy products, and chemical products) can improve the adaptability of flow decisions. Currently, one approach to controlling the flow of goods is to use macroscopic, discrete category labels to predict the flow level of goods and issue warnings to users to reduce flow based on these category labels. This can reduce the load on servers that process user requests for goods flow.
[0003] However, when using the above method, the following technical problems often exist: the category tags have a coarse granularity in representing the flow level, and the accuracy and precision of the determined flow level are poor. This leads to poor accuracy in the flow reduction decisions determined based on the flow level, and the server receives more flow requests, resulting in a poor effect on reducing server load. In addition, flow control based solely on issuing warnings to users cannot intercept abnormal flow operations by users themselves, resulting in a higher system security risk (for example, a higher number of network attacks on the server system caused by users maliciously modifying the front-end script when performing abnormal flow operations).
[0004] The information disclosed in this background section is only intended to enhance the understanding of the background of the inventive concept, and therefore may contain information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0005] The summary portion of this disclosure is intended to provide a brief overview of the concepts, which will be described in detail in the detailed description portion. This summary portion is not intended to identify key or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.
[0006] Some embodiments of this disclosure provide terminal device flow control methods, apparatuses, electronic devices, and computer-readable media for servers to solve one or more of the technical problems mentioned in the background section above.
[0007] In a first aspect, some embodiments of this disclosure provide a terminal device control method for a server. The method includes: acquiring initial circulation data of a target item within a preset time period, wherein the preset time period includes a first preset time period and a second preset time period, the first preset time period being earlier than the second preset time period, and the current time being within the second preset time period; preprocessing the initial circulation data to obtain preprocessed initial circulation data as circulation data; generating first inertial circulation information corresponding to the current time and second inertial circulation information corresponding to an end time based on the circulation data; generating multi-form circulation information corresponding to the end time based on the circulation data; and generating multi-form circulation information based on the first inertial circulation information and the second inertial circulation information... Inertial circulation information, the aforementioned multi-form circulation information, and real-time circulation information corresponding to the current time are used to generate predicted circulation information corresponding to the end time. In response to determining that the predicted circulation information meets a preset threshold condition, the circulation quantity of the target item corresponding to the circulation user is reconfigured to obtain an updated circulation quantity. In response to detecting that the circulation quantity of the target item corresponding to the circulation user after reconfiguration is equal to the updated circulation quantity, circulation interception control is performed on the terminal device corresponding to the circulation user. The circulation interception control includes at least one of the following: discarding the circulation request of the terminal device, initiating a form to prohibit the submission of tasks for the circulation operation of the target item corresponding to the terminal device, and changing the device type of the terminal device in the server to a dishonest device.
[0008] Secondly, some embodiments of this disclosure provide a terminal device control apparatus for a server. The apparatus includes: an acquisition unit configured to acquire initial circulation data of a target item within a preset time period, wherein the preset time period includes a first preset time period and a second preset time period, the first preset time period being earlier than the second preset time period, and the current time being within the second preset time period; a processing unit configured to preprocess the initial circulation data to obtain preprocessed initial circulation data as circulation data; a first generation unit configured to generate, based on the circulation data, first inertial circulation information corresponding to the current time and second inertial circulation information corresponding to the end time; a second generation unit configured to generate, based on the circulation data, multi-form circulation information corresponding to the end time; and a third generation unit configured to... Based on the aforementioned first inertial circulation information, the aforementioned second inertial circulation information, the aforementioned multi-form circulation information, and the real-time circulation information corresponding to the aforementioned current time, predicted circulation information corresponding to the aforementioned end time is generated; the configuration unit is configured to, in response to determining that the aforementioned predicted circulation information meets a preset threshold condition, reconfigure the circulation quantity of the circulation user corresponding to the aforementioned target item to obtain an updated circulation quantity; the control unit is configured to, in response to detecting that the circulation quantity of the circulation user corresponding to the aforementioned target item after reconfiguration is equal to the aforementioned updated circulation quantity, perform circulation interception control on the terminal device corresponding to the circulation user, wherein the aforementioned circulation interception control includes at least one of the following: discarding the circulation request of the terminal device, initiating a form prohibition task for the circulation operation of the terminal device corresponding to the aforementioned target item, and modifying the device type of the terminal device in the server to a dishonest device.
[0009] Thirdly, some embodiments of this disclosure provide an electronic device, including: one or more processors; and a storage device having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation of the first aspect above.
[0010] Fourthly, some embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
[0011] The above-described embodiments of this disclosure have the following beneficial effects: the terminal device flow control method for servers according to some embodiments of this disclosure improves the effect of reducing server load and enhances server system security. Specifically, the reasons for the poor effect of reducing server load and the high security risk of the server system are: the category tags have a coarse granularity in representing the flow level, resulting in poor accuracy and precision in determining the flow level, leading to poor accuracy in the flow reduction decision determined based on the flow level, and the server receiving more flow requests, thus resulting in a poor effect of reducing server load; in addition, flow control by only issuing warnings to users cannot intercept abnormal flow operations by users themselves, resulting in a high system security risk (for example, the number of network attacks on the server system caused by malicious modification of the front-end script when users perform abnormal flow operations is high). Based on this, the terminal device flow control method for servers according to some embodiments of this disclosure first obtains the initial flow data of the target item within a preset time period, wherein the preset time period includes a first preset time period and a second preset time period, the first preset time period being earlier than the second preset time period, and the current time being within the second preset time period. Thus, source data for predicting flow information can be obtained. Then, the initial circulation data is preprocessed to obtain preprocessed initial circulation data as circulation data. This allows for preprocessing of the acquired source data before prediction. Next, based on the circulation data, first inertial circulation information corresponding to the current time and second inertial circulation information corresponding to the end time are generated. This generates inertial circulation information for the current and end times, which characterizes the comprehensive circulation level of the target item at the corresponding time, influenced by historical data performance, liquidity fluctuations, and trend changes. Then, based on the circulation data, multi-form circulation information corresponding to the end time is generated. This generates a fused circulation level of the target item at the end time, influenced by different types of circulation behaviors and trends. Next, based on the first inertial circulation information, the second inertial circulation information, the multi-form circulation information, and the real-time circulation information corresponding to the current time, predicted circulation information corresponding to the end time is generated. This allows for the fusion of inertial circulation indicators and multi-form circulation indicators to predict the final circulation information after the end time. Then, in response to determining that the predicted circulation information meets the preset threshold conditions, the circulation quantity of the target item corresponding to the circulation user is reconfigured to obtain the updated circulation quantity. Thus, the number of target items that a circulation user can circulate can be limited through reconfiguration.Finally, in response to the detection that the number of transferred items corresponding to the target item for the user after reconfiguration equals the updated number of transferred items, flow interception control is implemented on the terminal device corresponding to the user. This flow interception control includes at least one of the following: discarding the terminal device's flow request, initiating a form to prohibit task submission for the flow operation of the target item for the terminal device, or changing the device type of the terminal device on the server to a distrusted device. Therefore, flow interception can be implemented on the user's terminal device after the number of transferred target items reaches the limit, directly restricting the user's flow requests for the target item and preventing abnormal flow operations, thus improving server system security. Furthermore, the predicted flow information is a numerical indicator that integrates inertial flow indicators and multi-form flow indicators, which can refine the granularity of the flow level and improve the accuracy and precision of the predicted flow level of the target item. This improves the accuracy of flow interception control, reduces the number of flow requests the server needs to process, and thus improves the effect of reducing server load. Therefore, the server load reduction effect is improved, and server system security is enhanced. Attached Figure Description
[0012] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale.
[0013] Figure 1 This is an architecture diagram of an exemplary system to which some embodiments of this disclosure can be applied;
[0014] Figure 2 This is a flowchart of some embodiments of the terminal device flow control method for a server according to the present disclosure;
[0015] Figure 3 This is a schematic diagram of the structure of some embodiments of the terminal device flow control device for a server according to the present disclosure;
[0016] Figure 4 This is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. Detailed Implementation
[0017] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0018] It should also be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings. Unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other.
[0019] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0020] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0021] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0022] This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.
[0023] Figure 1 An exemplary system architecture 100 is shown, which can be applied to a terminal device flow control method or a terminal device flow control device for a server according to some embodiments of the present disclosure.
[0024] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0025] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, e-commerce applications, search applications, instant messaging tools, email clients, social media platform software, etc.
[0026] Terminal devices 101, 102, and 103 can be either hardware or software. When terminal devices 101, 102, and 103 are hardware, they can be various electronic devices with a display screen and supporting web browsing, including but not limited to smartphones, tablets, e-book readers, laptops, and desktop computers. When terminal devices 101, 102, and 103 are software, they can be installed in the aforementioned electronic devices. They can be implemented as, for example, multiple software programs or software modules used to provide distributed services, or as a single software program or software module. No specific limitations are imposed here.
[0027] Server 105 can be a server that provides various services, such as a backend server that supports the information displayed on terminal devices 101, 102, and 103. The backend server can analyze and process received requests and other data, and then feed the processing results back to the terminal devices.
[0028] It should be noted that the terminal device flow control method for a server provided in the embodiments of this disclosure can be executed by the server 105. Accordingly, the terminal device flow control device for a server can be disposed in the server 105.
[0029] It should be noted that a server can be either hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software programs or software modules used to provide distributed services, or as a single software program or software module. No specific limitations are made here.
[0030] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0031] Continue to refer to Figure 2 The diagram illustrates a flow 200 of some embodiments of a terminal device flow control method for a server according to the present disclosure. This terminal device flow control method for a server includes the following steps:
[0032] Step 201: Obtain the initial circulation data of the target item within a preset time period.
[0033] In some embodiments, the execution subject of the terminal device flow control method for the server (e.g., Figure 1The server shown can obtain initial circulation data of a target item within a preset time period. The target item can be any item whose circulation volume is currently being predicted. Here, the item can be, but is not limited to: agricultural products, metals, energy products, and chemical products. The item can also be a virtual item (for example, a virtual item can be an underlying asset, which can be a securities market, a single security, or a single contract). The preset time period includes a first preset time period and a second preset time period. The first preset time period is earlier than the second preset time period. The current time is within the second preset time period. For example, the first preset time period can be the entire period of the previous month. The second preset time period can be the entire period of the current month. The initial circulation data can be minute-level data. The initial circulation data can include a circulation volume sequence. The time dimension corresponding to each circulation volume in the circulation volume sequence can be minutes. The turnover volume can be the quantity of the aforementioned target items that have been successfully traded (for example, when the target item is soybeans, the turnover volume can be the weight of soybeans traded in one minute; when the target item is the securities market, the turnover volume can be the total trading volume of the securities market in one minute; when the target item is a single security, the turnover volume can be the total trading volume of the single security in one minute).
[0034] Step 202: Preprocess the initial flow data to obtain the preprocessed initial flow data as the flow data.
[0035] In some embodiments, the execution entity may preprocess the initial flow data to obtain preprocessed initial flow data as flow data.
[0036] In some optional implementations of certain embodiments, the execution entity may preprocess the initial flow data using the following steps to obtain preprocessed initial flow data as flow data:
[0037] The first step is to perform data format validation on the initial flow data to obtain the data format validation results. In practice, the executing entity can determine whether the time included in the initial flow data is in a preset time format, and also whether the flow volume included in the initial flow data is in a preset numerical format. The data format validation results can include time format validation results and flow volume format validation results. Both time format validation results and flow volume format validation results can be Boolean data.
[0038] The second step is to perform a saturation check on the initial flow data to obtain the saturation check result. In practice, the executing entity can determine the time dimension corresponding to each time period included in the initial flow data to obtain the saturation check result. The time dimension can include, but is not limited to, daily granularity, hourly granularity, minutely granularity, and secondly granularity. Usually, the initial flow data corresponds to minutely granularity, i.e., it includes year, month, day, hour, and minute. Here, it is necessary to sample each flow quantity at the secondly granularity to convert it into flow quantities at the minutely granularity.
[0039] The third step is to perform extreme value verification on the initial flow data to obtain the extreme value verification results. In practice, the executing entity can select the flow quantities that meet the preset extreme value conditions from the initial flow data as the extreme value verification results. The preset extreme value conditions can be that the flow quantity exceeds the historical flow quantity distribution at the same time by a preset number of standard deviations. The preset number can be 3. The historical timeframe can be any historical moment that coincides with the time of the flow quantity.
[0040] Fourth, based on the data format verification results, the initial flow data is format-corrected to obtain the second flow data. In practice, the executing entity can, in response to determining whether the time format verification result included in the data format verification results is valid, uniformly modify the time format of each time in the initial flow data to a preset time format. It can also, in response to determining whether the flow quantity format verification result included in the data format verification results is valid, uniformly modify the numerical format of each flow quantity in the initial flow data to a preset numerical format.
[0041] Fifth, based on the saturation verification results, the second flow data is sampled to obtain the third flow data. In practice, the executing entity can summarize the flow quantities corresponding to the second time dimension in the second flow data at the minute level to obtain the third flow data.
[0042] Step 6: Based on the above extreme value verification results, perform anomaly cleaning on the third flow data to obtain the flow data. In practice, for each flow quantity in the above extreme value verification results, the executing entity can replace the flow quantity in the third flow data with the average of the flow quantities of the target item at various historical times corresponding to the flow quantity, in order to perform anomaly cleaning on the third flow data and obtain the flow data. This allows for preprocessing of the initial flow data in terms of format, time granularity, and data distribution, thereby improving the standardization of the flow data.
[0043] Step 203: Based on the flow data, generate the first inertial flow information corresponding to the current time and the second inertial flow information corresponding to the end time.
[0044] In some embodiments, the execution entity may generate first inertial flow information corresponding to the current time and second inertial flow information corresponding to the end time based on the flow data.
[0045] In some optional implementations of certain embodiments, the aforementioned execution entity can generate first inertial flow information corresponding to the current time and second inertial flow information corresponding to the end time based on the aforementioned flow data through the following steps:
[0046] The first step is to select the first circulation day from the first preset time period based on the circulation data mentioned above, thereby obtaining the first circulation day set.
[0047] The second step is to select the circulation days from the second preset time period based on the circulation data mentioned above, and obtain the second circulation day set.
[0048] The third step is to determine the quantity of each first turnover day included in the above first turnover day set as the first quantity.
[0049] The fourth step is to determine the quantity of each second turnover day included in the above-mentioned second turnover day set as the second quantity.
[0050] Fifth, for each first turnover day in the above set of first turnover days, perform the following steps:
[0051] The first sub-step involves determining the weighting coefficient corresponding to the first turnover date as the first weighting coefficient. In practice, the weighting coefficient corresponding to the first turnover date can be determined using the exponentially weighted moving average method.
[0052] The second sub-step involves determining the flow volume corresponding to the first flow day and the current time in the aforementioned flow data as the first flow volume. The flow volume corresponding to the first flow day and the current time can be the flow volume where the year, month, and day in the aforementioned flow data corresponds to the year, month, and day of the first flow day, and the corresponding time is the current time. The current time can be a minute-level time, i.e., the current moment.
[0053] The third sub-step is to determine the product of the first weighting coefficient and the first turnover amount as the first turnover component.
[0054] The sixth step is to determine the ratio of the sum of the determined first circulation components to the aforementioned first quantity as the first circulation average.
[0055] Step 7: For each second turnover day in the above set of second turnover days, perform the following steps:
[0056] The first sub-step involves determining the weighting coefficient corresponding to the second turnover day as the second weighting coefficient. In practice, the weighting coefficient corresponding to the second turnover day can be determined using the exponentially weighted moving average method.
[0057] The second sub-step involves determining the turnover volume corresponding to the second turnover day and the current time, which is included in the aforementioned turnover data, as the second turnover volume.
[0058] The third sub-step is to determine the product of the second weighting coefficient and the second turnover amount as the second turnover component.
[0059] The eighth step is to determine the ratio of the sum of the determined second circulation components to the aforementioned second quantity as the second circulation mean.
[0060] The ninth step is to determine the average of the first and second circulation averages as the first inertial circulation information corresponding to the current time. Therefore, the inertial circulation indicator for the current time can be determined by comprehensively considering factors such as historical data performance, liquidity fluctuations, and short- to medium-term trend changes.
[0061] Step 10: For each first turnover day in the above set of first turnover days, perform the following steps:
[0062] The first sub-step involves determining the circulation volume corresponding to the first circulation day and the end time, as the third circulation volume, within the aforementioned circulation data. Here, the end time can be a pre-set time for ceasing circulation of the target item on that day. The end time can be a minute-level time, i.e., the end moment. The end time and the current time mentioned above are on the same day.
[0063] The second sub-step is to determine the third circulation component by multiplying the first weight coefficient corresponding to the first circulation day and the third circulation amount.
[0064] The eleventh step is to determine the ratio of the sum of the determined third circulation components to the first quantity mentioned above as the third circulation mean.
[0065] Step 12: For each second turnover day in the above set of second turnover days, perform the following steps:
[0066] The first sub-step is to determine the turnover volume corresponding to the second turnover day and the end time included in the above turnover data as the fourth turnover volume.
[0067] The second sub-step involves determining the product of the second weighting coefficient corresponding to the second circulation day and the fourth circulation amount as the fourth circulation component.
[0068] The thirteenth step is to determine the ratio of the sum of the determined fourth circulation components to the second quantity mentioned above as the fourth circulation mean.
[0069] The fourteenth step is to determine the average of the third and fourth circulation averages as the second inertial circulation information corresponding to the aforementioned end time. Therefore, the inertial circulation indicator for the end time of the day can be determined by comprehensively considering factors such as historical data performance, liquidity fluctuations, and short- to medium-term trend changes.
[0070] In some optional implementations of certain embodiments, the execution entity may, based on the aforementioned flow data, select flow days from the aforementioned first preset time period as first flow days to obtain a first flow day set:
[0071] The first step, for each daily granular time within the first preset time period mentioned above, is to perform the following steps:
[0072] The first sub-step involves determining the flow volume corresponding to the aforementioned daily granularity time in the flow data as a flow volume set. For example, the aforementioned daily granularity time could be one day of the previous month.
[0073] The second sub-step is to determine the average value of each turnover in the above turnover set as the average turnover value corresponding to the above daily granularity time.
[0074] The third sub-step involves determining the total number of each flow time included in the aforementioned daily granular time period. Here, the flow time can be the moment when flow occurs within the aforementioned daily granular time period.
[0075] The fourth sub-step involves performing the following steps for each flow time included in the above-mentioned daily granularity time:
[0076] First, the turnover volume corresponding to the turnover time in the above turnover volume set is determined as the turnover volume to be compared.
[0077] Second, the difference between the above-mentioned turnover volume to be compared and the average turnover volume is determined as the comparison value.
[0078] The fifth sub-step is to determine the sum of the obtained alignment values as the alignment sum.
[0079] The sixth sub-step involves generating volatility based on the aforementioned comparison value and the total number of time periods. In practice, the executing entity can determine the update time period as the difference between the total number of time periods and 1. Then, the ratio of the comparison value and the update time period can be determined as the initial volatility. Finally, the volatility can be determined as the power of half of the initial volatility.
[0080] The seventh sub-step involves determining the first turnover day based on the determination that the volatility meets a preset volatility condition. The preset volatility condition can be that the volatility is less than a preset volatility threshold. For example, the preset volatility threshold could be 0.2.
[0081] The second step is to define the identified first turnover days as the first turnover day set. This allows us to filter turnover days within the first preset time period whose turnover volatility meets the specified criteria. It should be noted that the method for filtering the second turnover day set from the second preset time period can refer to steps one and two above, and will not be repeated here.
[0082] Step 204: Generate multi-form circulation information corresponding to the end time based on the circulation data.
[0083] In some embodiments, the aforementioned execution entity may generate multi-form flow information corresponding to the end time based on the aforementioned flow data.
[0084] In some optional implementations of certain embodiments, the aforementioned execution entity can generate multi-form flow information corresponding to the end time based on the aforementioned flow data through the following steps:
[0085] The first step is to perform the following steps for each shape type in the preset shape type set:
[0086] The first sub-step involves generating predicted flow information corresponding to the aforementioned end time based on the above-mentioned morphology types. The set of morphology types can be functional forms used to predict flow volume. This set of morphology types may include, but is not limited to, at least one of the following: linear, logarithmic, polynomial, power, and autoregressive (differential autoregressive). Each morphology type may correspond to a pre-constructed flow volume prediction formula. In practice, the executing entity can input the aforementioned end time as the independent variable into the flow volume prediction formula corresponding to the aforementioned morphology type to obtain the predicted flow volume as the predicted morphology flow information corresponding to the aforementioned end time.
[0087] The second sub-step involves generating shape weight coefficients corresponding to the aforementioned shape types based on the circulation data and shape types. In practice, the executing entity can use linear fitting to determine the shape weight coefficients for each shape type. The independent variable can be the predicted circulation volume corresponding to the shape type, and the dependent variable can be the actual circulation volume. The coefficients can be the shape weight coefficients. Historical circulation data can be learned through regression to determine the optimal values for the shape weight coefficients.
[0088] The third sub-step involves determining the product of the predicted morphological flow information and the morphological weight coefficient as the morphological flow component information.
[0089] The second step involves summing the determined flow components of each form to define the multi-form flow information for the corresponding end time. This allows for the fusion of flow prediction results from multiple form type functions to determine the multi-form fusion index value at the end time. Fusing the flow prediction results from multiple form type functions provides a more comprehensive and accurate representation of the predicted flow volume at the end time, refining the granularity of the flow level at that time and improving the accuracy and precision of the predicted flow level. This, in turn, enhances the accuracy of the predicted flow information at the end time. Consequently, it improves the accuracy of the final flow interception and control, reduces the number of flow requests the server needs to process, and thus reduces server load.
[0090] In some optional implementations of certain embodiments, the execution entity may generate a form weight coefficient corresponding to the form type based on the flow data and the form type through the following steps:
[0091] The first step is to perform the following steps for each shape type in the preset shape type set:
[0092] The first sub-step involves determining the historical average turnover volume information corresponding to a preset time window for the aforementioned turnover data. The preset time window can be a pre-defined historical time period. For example, the preset time window can be 45 minutes, representing the past 45 minutes. In practice, the executing entity can determine the average of each turnover volume within the preset time window in the aforementioned turnover data as the historical average turnover volume information.
[0093] The second sub-step involves generating predicted morphological flow information for each time point within the aforementioned preset time window, based on the morphological types described above, thus obtaining a set of predicted morphological flow information. Each time point within the preset time window can be one minute. In practice, the executing entity can input the aforementioned time as an independent variable into the flow prediction formula corresponding to the aforementioned morphological type to obtain the predicted flow volume as the predicted morphological flow information. This yields the set of predicted morphological flow information.
[0094] The third sub-step is to determine the mean of the above-mentioned predicted morphological flow information set as the average predicted morphological flow information.
[0095] The fourth sub-step is to determine the step size coefficient as the power of half the step size of the preset time window.
[0096] The fifth sub-step involves performing the following steps for each time point within the aforementioned preset time window:
[0097] First, the turnover amount corresponding to the aforementioned time in the above turnover data is determined as the first value.
[0098] Second, the difference between the first value and the historical average turnover information is determined as the second value.
[0099] Third, the predicted form flow information corresponding to the above time in the above predicted form flow information set is determined as the third value.
[0100] Fourth, the difference between the third value and the average predicted morphological flow information is determined as the fourth value.
[0101] Fifth, the product of the second value and the fourth value is determined as the fifth value.
[0102] Sixth, the square of the second value mentioned above is determined as the sixth value.
[0103] Seventh, the square of the fourth value mentioned above is determined as the seventh value.
[0104] Eighth, the square of the difference between the first value and the third value is determined as the eighth value.
[0105] The sixth sub-step involves summing the obtained fifth values to determine the ninth value.
[0106] The seventh sub-step involves multiplying the aforementioned step size coefficient by the aforementioned ninth value to determine the tenth value.
[0107] The eighth sub-step is to determine the sum of the obtained sixth values as the first sum value.
[0108] The ninth sub-step involves determining the sum of the obtained seventh values as the second sum value.
[0109] The tenth sub-step involves determining the sum of the obtained eighth values as the third sum value.
[0110] The eleventh sub-step involves determining the denominator value as the power of the first half of the product of the first sum, the second sum, and the third sum.
[0111] The twelfth sub-step is to determine the ratio of the tenth value to the denominator value as the initial morphological weight coefficient.
[0112] The second step is to determine the sum of the weight coefficients of each initial form as the weight coefficient sum value.
[0113] The third step involves determining the form weight coefficient for each form type in the aforementioned set by comparing the initial form weight coefficient to the sum of the aforementioned weight coefficients. This allows for the determination of the weight coefficient for each form type by analyzing the difference between the predicted and actual flow rates of each function form within a specified time window, thereby increasing the weight of form types with higher prediction accuracy. This enables the fusion of multiple form type function flow rate predictions to more comprehensively and accurately reflect the predicted flow rate at the end time, refining the granularity of the flow rate level at the end time and improving the accuracy and precision of the predicted flow rate level at the end time. This, in turn, improves the accuracy of the predicted flow rate information at the end time. Ultimately, this enhances the accuracy of the final flow rate interception and control, reduces the number of flow rate requests the server needs to process, and thus improves the server load reduction effect.
[0114] Step 205: Generate predicted flow information for the corresponding end time based on the first inertial flow information, the second inertial flow information, the multi-form flow information, and the real-time flow information corresponding to the current time.
[0115] In some embodiments, the executing entity may generate predicted flow information corresponding to the end time based on the first inertial flow information, the second inertial flow information, the multi-form flow information, and the real-time flow information corresponding to the current time. The predicted flow information can characterize the final flow volume after the end time of the day.
[0116] In some optional implementations of certain embodiments, the execution entity may generate predicted flow information corresponding to the end time by means of the following steps: based on the first inertial flow information, the second inertial flow information, the multi-form flow information, and the real-time flow information corresponding to the current time.
[0117] The first step is to determine the first product by multiplying the first preset coefficient with the above-mentioned real-time circulation information and the above-mentioned second inertial circulation information.
[0118] The second step is to determine the ratio of the first product to the first inertial flow information as the first ratio.
[0119] The third step is to determine the second product by multiplying the second preset coefficient with the aforementioned multi-form circulation information. Here, the first and second preset coefficients can be trained or determined by fitting a function based on the circulation volume over a past period and the actual final circulation volume after the end time. The fitting function can include, but is not limited to, neural network MLPRegressor, linear regression, and nonlinear regression.
[0120] The fourth step involves summing the first ratio and the second product to determine the predicted circulation information corresponding to the aforementioned end time. This allows for the prediction of the final circulation volume after the end of the day. Because the predicted circulation information is a numerical indicator combining inertial circulation metrics and multi-form circulation metrics, it allows for finer granularity in assessing circulation levels, improving the accuracy and precision of the predicted circulation levels of target items. This, in turn, enhances the accuracy of circulation interception and control, reduces the number of circulation requests the server needs to process, and ultimately improves the server load reduction effect.
[0121] Step 206: In response to determining that the predicted circulation information meets the preset threshold conditions, the circulation quantity of the target item corresponding to the circulation user is reconfigured to obtain the updated circulation quantity.
[0122] In some embodiments, the executing entity may, in response to determining that the predicted circulation information meets a preset threshold condition, reconfigure the circulation quantity of the target item corresponding to the circulation user to obtain an updated circulation quantity. The preset threshold condition may be that the predicted circulation information is less than a preset threshold. The circulation user can be any user who can circulate the target item. The circulation user can own the target item. The circulation quantity of the target item corresponding to the circulation user can be the total quantity of the target item that all circulation users can circulate. In practice, the executing entity may determine a preset value as the circulation quantity corresponding to the target item to reconfigure the circulation quantity of the target item corresponding to the circulation user to obtain an updated circulation quantity.
[0123] Step 207: In response to the detection that the number of transferred items corresponding to the transfer user after reconfiguration is equal to the updated number of transferred items, transfer interception control is performed on the terminal device corresponding to the transfer user.
[0124] In some embodiments, the execution entity may, in response to detecting that the number of items already transferred for a user after reconfiguration equals the updated number of transferred items, perform transfer interception control on the terminal device corresponding to the user. The number of items already transferred for a user corresponding to the target item can be the total number of the target item transferred by all users capable of transferring the target item after the transfer quantity of the target item is reconfigured. Terminal device transfer control can be understood as performing transfer interception control on the terminal device. The transfer interception control may include, but is not limited to, at least one of the following: discarding the terminal device's transfer request, initiating a form prohibition for submitting tasks related to the transfer operation of the target item for the terminal device, or changing the device type of the terminal device in the server to a distrusted device.
[0125] In some optional implementations of certain embodiments, the aforementioned execution entity can perform flow interception control on the terminal device corresponding to the user through the following steps:
[0126] The first step is to send a form submission prohibition message for the circulation operation of the aforementioned target item to each terminal device, thereby initially intercepting the circulation of the target item's data. This form submission prohibition message can be a message indicating that the terminal device is prohibited from submitting the form for the circulation of the target item. Upon receiving the form submission prohibition message, the terminal device can use front-end script logic to prohibit the submission of the form for the circulation of the target item, thus initiating the form submission prohibition task for the circulation operation of the target item on the terminal device.
[0127] The second step, in response to detecting a transfer request sent by any terminal device after the initial transfer interception described above, is to perform the following steps:
[0128] The first sub-step involves determining the pre-stored device fingerprint information corresponding to the aforementioned transfer operation for any of the aforementioned terminal devices. This device fingerprint information can be verification information for any of the aforementioned terminal devices performing the transfer operation on the aforementioned target item. The device fingerprint information may include, but is not limited to, at least one of the following: item identifier, operation type, browser type, operating system version, screen resolution, and IP address. In practice, the executing entity can obtain device fingerprint information from a database that includes the item identifier of the aforementioned target item, the operation type of transfer operation, and the IP address of the aforementioned terminal device.
[0129] The second sub-step involves changing the availability of the aforementioned device fingerprint information to a disabled state. It should be noted that device fingerprint information in a disabled state cannot be used for verification during data transfer operations on the terminal device.
[0130] The third step is to identify any of the aforementioned terminal devices as untrustworthy devices. This allows for the initial interception of data transfer requests from terminal devices by prohibiting form submissions at the front end. If a user maliciously modifies the front-end script on a terminal device, this can be considered an abnormal data transfer operation. Consequently, the device fingerprint information of the terminal device can be directly disabled. This effectively intercepts abnormal data transfer operations from terminal devices even during malicious attacks, and directly identifies the terminal device as an untrustworthy device. This reduces the number of network attacks caused by users maliciously modifying the front-end script on terminal devices, further improving server system security.
[0131] Optionally, the aforementioned implementing entity may also perform the following steps:
[0132] The first step is to determine whether the terminal device is a trusted device in response to receiving a transfer request for the target item sent by the terminal device, and the predicted transfer information does not meet the preset threshold conditions.
[0133] The second step involves resolving the determination that the aforementioned terminal device is an authorized device, and then parsing the fingerprint information of the device to be verified from the aforementioned transfer request. The attributes included in the fingerprint information of the device to be verified can correspond to the attributes included in the device fingerprint information.
[0134] The third step is to determine the pre-stored available device fingerprint information corresponding to the aforementioned terminal devices and the aforementioned transfer operations. In practice, the aforementioned executing entity can obtain device fingerprint information from the database that includes the item identifier included in the aforementioned device fingerprint information to be verified, the operation type included in the aforementioned device fingerprint information to be verified, and the IP address included in the aforementioned device fingerprint information to be verified.
[0135] The fourth step involves verifying the device fingerprint information based on the determined device fingerprint information to obtain a verification result. In practice, the executing entity may determine a successful verification result by specifying a preset message indicating successful verification if the attribute values corresponding to all attributes in the device fingerprint information are the same as the attribute values corresponding to all attributes in the device fingerprint information. For example, the preset message indicating successful verification could be "S". Conversely, the executing entity may determine a failed verification result by specifying a failed verification result by specifying a failed verification message by specifying a failed verification result by specifying a failed verification message by specifying a failed verification message. For example, the preset message indicating a failed verification could be "F".
[0136] The fifth step involves responding to the confirmation that the above verification result indicates successful verification and executing the corresponding transfer operation for the transfer request. In practice, the executing entity can execute the transfer task for the target item based on the transfer quantity included in the transfer request. Specifically, the transfer task can be encapsulated in the transfer interface, and the execution logic of the transfer task can be pre-implemented in the implementation code of the transfer interface. Here, the specific execution logic of the transfer task is not limited. Thus, when there is no need to limit the transfer quantity of the target item, upon receiving a transfer request from a terminal device, the system first determines whether the terminal device is an authorized device, and then verifies it based on the device fingerprint information. Only after successful verification can the system respond to the terminal device's request to transfer the target item. This allows the system to discard transfer requests from terminal devices with abnormal transfer operations, effectively intercepting abnormal transfer operations from terminal devices, reducing the number of network attacks caused by users maliciously modifying front-end scripts on the terminal device, and further improving system security.
[0137] The above-described embodiments of this disclosure have the following beneficial effects: the terminal device flow control method for servers according to some embodiments of this disclosure improves the effect of reducing server load and enhances server system security. Specifically, the reasons for the poor effect of reducing server load and the high security risk of the server system are: the category tags have a coarse granularity in representing the flow level, resulting in poor accuracy and precision in determining the flow level, leading to poor accuracy in the flow reduction decision determined based on the flow level, and the server receiving more flow requests, thus resulting in a poor effect of reducing server load; in addition, flow control by only issuing warnings to users cannot intercept abnormal flow operations by users themselves, resulting in a high system security risk (for example, the number of network attacks on the server system caused by malicious modification of the front-end script when users perform abnormal flow operations is high). Based on this, the terminal device flow control method for servers according to some embodiments of this disclosure first obtains the initial flow data of the target item within a preset time period, wherein the preset time period includes a first preset time period and a second preset time period, the first preset time period being earlier than the second preset time period, and the current time being within the second preset time period. Thus, source data for predicting flow information can be obtained. Then, the initial circulation data is preprocessed to obtain preprocessed initial circulation data as circulation data. This allows for preprocessing of the acquired source data before prediction. Next, based on the circulation data, first inertial circulation information corresponding to the current time and second inertial circulation information corresponding to the end time are generated. This generates inertial circulation information for the current and end times, which characterizes the comprehensive circulation level of the target item at the corresponding time, influenced by historical data performance, liquidity fluctuations, and trend changes. Then, based on the circulation data, multi-form circulation information corresponding to the end time is generated. This generates a fused circulation level of the target item at the end time, influenced by different types of circulation behaviors and trends. Next, based on the first inertial circulation information, the second inertial circulation information, the multi-form circulation information, and the real-time circulation information corresponding to the current time, predicted circulation information corresponding to the end time is generated. This allows for the fusion of inertial circulation indicators and multi-form circulation indicators to predict the final circulation information after the end time. Then, in response to determining that the predicted circulation information meets the preset threshold conditions, the circulation quantity of the target item corresponding to the circulation user is reconfigured to obtain the updated circulation quantity. Thus, the number of target items that a circulation user can circulate can be limited through reconfiguration.Finally, in response to the detection that the number of transferred items corresponding to the target item for the user after reconfiguration equals the updated number of transferred items, flow interception control is implemented on the terminal device corresponding to the user. This flow interception control includes at least one of the following: discarding the terminal device's flow request, initiating a form to prohibit task submission for the flow operation of the target item for the terminal device, or changing the device type of the terminal device on the server to a distrusted device. Therefore, flow interception can be implemented on the user's terminal device after the number of transferred target items reaches the limit, directly restricting the user's flow requests for the target item and preventing abnormal flow operations, thus improving server system security. Furthermore, the predicted flow information is a numerical indicator that integrates inertial flow indicators and multi-form flow indicators, which can refine the granularity of the flow level and improve the accuracy and precision of the predicted flow level of the target item. This improves the accuracy of flow interception control, reduces the number of flow requests the server needs to process, and thus improves the effect of reducing server load. Therefore, the server load reduction effect is improved, and server system security is enhanced.
[0138] Further reference Figure 3 As an implementation of the methods shown in the above figures, this disclosure provides some embodiments of a terminal device flow control device for a server, and these device embodiments are similar to... Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0139] like Figure 3As shown, a terminal device flow control device 300 for a server in some embodiments includes: an acquisition unit 301, a processing unit 302, a first generation unit 303, a second generation unit 304, a third generation unit 305, a configuration unit 306, and a control unit 307. The acquisition unit 301 is configured to acquire initial flow data of a target item within a preset time period, wherein the preset time period includes a first preset time period and a second preset time period, the first preset time period being earlier than the second preset time period, and the current time being within the second preset time period; the processing unit 302 is configured to preprocess the initial flow data to obtain preprocessed initial flow data as flow data; the first generation unit 303 is configured to generate first inertial flow information corresponding to the current time and second inertial flow information corresponding to the end time based on the flow data; the second generation unit 304 is configured to generate multi-form flow information corresponding to the end time based on the flow data; the third generation unit 305 is configured to generate multi-form flow information based on the first inertial flow information and the second preset time period. The system generates predicted circulation information corresponding to the end time based on the inertial circulation information, the multi-form circulation information, and the real-time circulation information corresponding to the current time. The configuration unit 306 is configured to reconfigure the circulation quantity of the target item corresponding to the circulation user in response to determining that the predicted circulation information meets a preset threshold condition, thereby obtaining an updated circulation quantity. The control unit 307 is configured to perform circulation interception control on the terminal device corresponding to the circulation user in response to detecting that the circulation quantity of the target item corresponding to the circulation user after reconfiguration is equal to the updated circulation quantity. The circulation interception control includes at least one of the following: discarding the circulation request of the terminal device, initiating a form submission ban for the circulation operation of the target item corresponding to the terminal device, and modifying the device type of the terminal device in the server to a dishonest device.
[0140] It is understandable that the units described in the device 300 are related to the reference. Figure 2 The steps in the described method correspond accordingly. Therefore, the operations, features, and beneficial effects described above for the method also apply to the device 300 and the units contained therein, and will not be repeated here.
[0141] The following is for reference. Figure 4 It illustrates an electronic device 400 suitable for implementing some embodiments of the present disclosure (e.g., Figure 1 A schematic diagram of the structure of the server in the diagram. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this disclosure.
[0142] like Figure 4As shown, the electronic device 400 may include a processing unit 401 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. The RAM 403 also stores various programs and data required for the operation of the electronic device 400. The processing unit 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0143] Typically, the following devices can be connected to I / O interface 405: input devices 406 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 407 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 408 including, for example, magnetic tapes, hard disks, etc.; and communication devices 409. Communication device 409 allows electronic device 400 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 4 An electronic device 400 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 4 Each box shown can represent a device or multiple devices as needed.
[0144] In particular, according to some embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 409, or installed from storage device 408, or installed from ROM 402. When the computer program is executed by processing device 401, it performs the functions defined above in the methods of some embodiments of this disclosure.
[0145] It should be noted that, in some embodiments of this disclosure, the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In some embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In some embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0146] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0147] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently without being assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: acquire initial circulation data of a target item within a preset time period, wherein the preset time period includes a first preset time period and a second preset time period, the first preset time period being earlier than the second preset time period, and the current time being within the second preset time period; preprocess the initial circulation data to obtain preprocessed initial circulation data as circulation data; generate first inertial circulation information corresponding to the current time and second inertial circulation information corresponding to the end time based on the circulation data; generate multi-form circulation information corresponding to the end time based on the circulation data; and generate multi-form circulation information based on the first inertial circulation information. The aforementioned second inertial circulation information, the aforementioned multi-form circulation information, and the real-time circulation information corresponding to the aforementioned current time are used to generate predicted circulation information corresponding to the aforementioned end time. In response to determining that the aforementioned predicted circulation information meets a preset threshold condition, the circulation quantity of the circulation user corresponding to the aforementioned target item is reconfigured to obtain an updated circulation quantity. In response to detecting that the circulation quantity of the circulation user corresponding to the aforementioned target item after reconfiguration is equal to the aforementioned updated circulation quantity, circulation interception control is performed on the terminal device corresponding to the circulation user. The aforementioned circulation interception control includes at least one of the following: discarding the circulation request of the terminal device, initiating a form prohibition task for the circulation operation of the terminal device corresponding to the aforementioned target item, and modifying the device type of the terminal device in the server to a dishonest device.
[0148] Computer program code for performing operations of some embodiments of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0149] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0150] The units described in some embodiments of this disclosure can be implemented in software or hardware. The described units can also be housed in a processor; for example, a processor may be described as including an acquisition unit, a processing unit, a first generation unit, a second generation unit, a third generation unit, a configuration unit, and a control unit. The names of these units do not necessarily limit the specific unit; for example, an acquisition unit may also be described as "a unit that acquires initial circulation data of a target item within a preset time period."
[0151] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0152] The above description is merely a selection of preferred embodiments of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.
Claims
1. A method for controlling the flow of terminal devices for a server, comprising: Acquire initial circulation data of the target item within a preset time period, wherein the preset time period includes a first preset time period and a second preset time period, the first preset time period is earlier than the second preset time period, and the current time is within the second preset time period; The initial flow data is preprocessed to obtain preprocessed initial flow data as flow data; Based on the flow data, generate first inertial flow information corresponding to the current time and second inertial flow information corresponding to the end time; Based on the circulation data, generate multi-form circulation information corresponding to the end time; Based on the first inertial flow information, the second inertial flow information, the multi-form flow information, and the real-time flow information corresponding to the current time, predictive flow information corresponding to the end time is generated; In response to determining that the predicted circulation information meets a preset threshold condition, the circulation quantity of the target item corresponding to the circulation user is reconfigured to obtain an updated circulation quantity; In response to detecting that the number of transactions of the target item corresponding to the user after reconfiguration is equal to the updated number of transactions, transaction interception control is performed on the terminal device corresponding to the user. The transaction interception control includes at least one of the following: discarding the transaction request of the terminal device, initiating a form to prohibit the submission of tasks for the transaction operation of the target item corresponding to the terminal device, and changing the device type of the terminal device in the server to a dishonest device.
2. The method according to claim 1, wherein, The control of data transfer interception for the terminal devices corresponding to the users involved includes: Send a form submission prohibition message for the circulation operation of the target item to each terminal device corresponding to the target item, so as to initially intercept the circulation of the terminal device corresponding to the circulation user; In response to detecting a flow request sent by any terminal device after the initial flow interception, the following steps are performed: Determine the device fingerprint information corresponding to the flow operation for any pre-stored terminal device; Change the available status of the device fingerprint information to the disabled status; The aforementioned terminal device is identified as a dishonest device.
3. The method according to claim 2, wherein, The method further includes: In response to receiving a transfer request for the target item from a terminal device, and the predicted transfer information does not meet the preset threshold condition, it is determined whether the terminal device is a trusted device. In response to determining that the terminal device is an authorized device, the fingerprint information of the device to be verified is parsed from the transfer request; Determine the pre-stored available device fingerprint information corresponding to the terminal device and the transfer operation; Based on the determined device fingerprint information, the fingerprint information of the device to be verified is processed to obtain the verification result; In response to the determination that the verification result indicates successful verification, the corresponding transfer operation for the transfer request is executed.
4. The method according to claim 1, wherein, The step of preprocessing the initial flow data to obtain preprocessed initial flow data as flow data includes: The initial flow data is subjected to data format validation to obtain the data format validation result; The initial flow data is subjected to saturation verification to obtain the saturation verification result; The initial flow data is subjected to extreme value verification to obtain the extreme value verification result; Based on the data format verification result, the initial circulating data is format corrected to obtain the second circulating data; Based on the saturation verification result, the second circulating data is subjected to data sampling processing to obtain the third circulating data; Based on the extreme value verification results of the data, the third circulating data is subjected to anomaly cleaning processing to obtain the circulating data.
5. The method according to claim 1, wherein, The step of generating first inertial flow information corresponding to the current time and second inertial flow information corresponding to the end time based on the flow data includes: Based on the circulation data, circulation days are selected from the first preset time period as first circulation days to obtain a first circulation day set; Based on the circulation data, circulation days are selected from the second preset time period as second circulation days to obtain a second circulation day set; The quantity of each first turnover day included in the first turnover day set is determined as the first quantity; The quantity of each second turnover day included in the second turnover day set is determined as the second quantity; For each first turnover day in the first turnover day set, perform the following steps: The weighting coefficient corresponding to the first circulation day is determined as the first weighting coefficient; The flow data, including the flow volume corresponding to the first flow day and the current time, is defined as the first flow volume; The product of the first weighting coefficient and the first turnover amount is determined as the first turnover component; The ratio of the sum of the determined first circulation components to the first quantity is determined as the first circulation average. For each second turnover day in the second turnover day set, perform the following steps: The weighting coefficient corresponding to the second turnover day is determined as the second weighting coefficient; The flow data, including the flow volume corresponding to the second flow day and the current time, is defined as the second flow volume; The product of the second weighting coefficient and the second turnover amount is determined as the second turnover component; The ratio of the sum of the determined second circulation components to the second quantity is determined as the second circulation mean. The average of the first circulation average and the second circulation average is determined as the first inertial circulation information corresponding to the current time.
6. The method according to claim 5, wherein, The step of generating first inertial flow information corresponding to the current time and second inertial flow information corresponding to the end time based on the flow data further includes: For each first turnover day in the first turnover day set, perform the following steps: The turnover volume corresponding to the first turnover day and the end time included in the turnover data is determined as the third turnover volume; The product of the first weighting coefficient corresponding to the first turnover day and the third turnover amount is determined as the third turnover component; The ratio of the sum of the determined third circulation components to the first quantity is determined as the third circulation mean. For each second turnover day in the second turnover day set, perform the following steps: The turnover volume corresponding to the second turnover day and the end time included in the turnover data is determined as the fourth turnover volume; The product of the second weighting coefficient corresponding to the second turnover day and the fourth turnover amount is determined as the fourth turnover component; The ratio of the sum of the determined fourth circulation components to the second quantity is determined as the fourth circulation mean. The average of the third and fourth flow averages is determined as the second inertial flow information corresponding to the end time.
7. The method according to claim 5, wherein, The step of selecting turnover days from the first preset time period as the first turnover days based on the turnover data to obtain the first turnover day set includes: For each daily granular time within the first preset time period, perform the following steps: Each flow quantity in the flow data corresponding to the daily granular time is determined as a flow quantity set; The average value of each turnover in the turnover set is determined as the average turnover value corresponding to the daily granular time. The number of each flow time included in the daily particle time is determined as the total number of time; For each flow time included in the daily granularity time, perform the following steps: The turnover volume corresponding to the turnover time in the turnover volume set is determined as the turnover volume to be compared; The difference between the turnover volume to be compared and the average turnover volume is determined as the comparison value; The sum of the obtained alignment values is determined as the alignment value sum; Based on the comparison value and the total number of time periods, volatility is generated; In response to determining that the volatility meets the preset volatility conditions, the daily granular time is determined as the first turnover day; Each of the determined first circulation days is defined as the first circulation day set.
8. A terminal device flow control device for a server, comprising: The acquisition unit is configured to acquire the initial circulation data of the target item within a preset time period, wherein the preset time period includes a first preset time period and a second preset time period, the first preset time period is earlier than the second preset time period, and the current time is within the second preset time period; The processing unit is configured to preprocess the initial flow data to obtain preprocessed initial flow data as flow data. The first generation unit is configured to generate, based on the flow data, first inertial flow information corresponding to the current time and second inertial flow information corresponding to the end time; The second generation unit is configured to generate multi-form circulation information corresponding to the end time based on the circulation data; The third generation unit is configured to generate predicted flow information corresponding to the end time based on the first inertial flow information, the second inertial flow information, the multi-form flow information, and the real-time flow information corresponding to the current time. The configuration unit is configured to reconfigure the circulation quantity of the target item corresponding to the circulation user in response to determining that the predicted circulation information meets a preset threshold condition, so as to obtain an updated circulation quantity; The control unit is configured to, in response to detecting that the number of transactions of the target item corresponding to the user after reconfiguration is equal to the updated number of transactions, perform transaction interception control on the terminal device corresponding to the user, wherein the transaction interception control includes at least one of the following: discarding the transaction request of the terminal device, initiating a form to prohibit the submission of tasks for the transaction operation of the target item corresponding to the terminal device, and modifying the device type of the terminal device in the server to a dishonest device.
9. An electronic device, comprising: One or more processors; Storage device, on which one or more programs are stored, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.
10. A computer-readable medium having a computer program stored thereon, wherein, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-7.
Citation Information
Patent Citations
Flow quantity prediction multi-time-sequence model generation method, information sending method and device
CN113408797A
Article circulation information processing method, device and equipment and computer readable medium
CN117689412A